Search help using methods for a Data Element in SAP - abap

I have an existing method in a class that returns a list of ids that I would like to use in the search help of a data element (using SE11 transaction). I have been looking for a way to use the method in the search help of my data element but so far I haven't been able to find any way.
Is it possible to use a method while setting up a search help in SE11 or do I only have rely on table, view or CDS views ?

What you need is to create a search help that has a search help exit, and then assign this search help to the data element.
Inside the exit you can add any ABAP code you want, including calling the method to retrieve the IDs.
You create the custom search help via SE11, and assign it to the data element in the tab Further Attributes also in SE11.
A good tutorial on how to accomplish is here: https://blogs.sap.com/2009/03/11/controllingmanipulating-data-of-search-help-using-search-help-exit/ but this is widely used so you can just search for "search help exit in abap" and you will find many tutorials, including in youtube.
Also I am assuming you have access to a system, so you can search in SE11 for search helps and use one with a search help exit as reference.

You can try to call the method at search help exit if the search help is custom.
If you can make a CDS for retrieving the values from table then you can expose it in Odata services and use the annotation #Consumption.valueHelp : at your result set view.

Related

Jira Custom fields list of real names

Does anyone know if there is a list of what the custom fields equate to when calling jira via an api to bring the results back?
Not sure a way through restapi, but a workaround.
I had similar issue, so I exported JQL result with All fields which gave field names like custom_field012(SomeFieldName) then I had created a reference table with Custom_field and corresponding field name
I found this link worked and brought up a list of all custom fields.
https://MY-JIRA-URL/jira/rest/api/2/field
You also need to have your Jira open in the same browser.

Value Suggestion for SAP Dynpro input field

I need to show suggestions when someone types something into my input field.
It's a field for a transport request. So if someone starts to type something in it shows at the moment last entered entries but it should make suggestions what to type in (like it happens for example in transaciton VA02 ). I want a dropdown of a selection of the table E070 where I can see the request and the short text.
I did use google but i just found this, but i've got a normal dynpro and no WebDynpro.
The keyword you are looking for is Enhanced Search. You can provide your own enhanced search implementation by creating a search help and activating the proposal search feature. Note that the enhanced search can be turned off in the GUI Settings, though - and many users and organizations do so because it tends to be irritating for long-time experienced users.

how to dynamically extract data from dropdown lists or multiple textboxes using import.io

I am making an API wherein I want to dynamically get data from the site http://transportformumbai.com/mumbai_local_train.php
Depending on start and end station and timings I want to get the list of all available trains along with the table given by clicking on viewroute column table. i.e. for eg.
I am using import.io connector... But it works well with a single textbox but not with multiple textboxes (Refer this link)or dropdown lists...
Can anyone guide what should I do next...
Apart from import.io is there anyother alternative?
I am a newbie working with crawlers... So please justify your answer.
What is web scraping... Do I have to use web scraper??
Thank you.
Actually, if you look in the URL bar the parameters for destination and time are defined there (highlighted below), so you don't need to worry about drop down menus, or using a Connector.
Use an Extractor on this page:
http://transportformumbai.com/get_schedule_new.php?user_route=western&start_station=khar_road&end_station=malad&start_time=00&end_time=18
Train it to get every column - note that the view route column contains links.
You can create a separate Extractor for the "view route" page:
http://transportformumbai.com/view_route_new.php?trainno=BYR1097&user_route=western&train_origin=Churchgate&train_end=Bhayandar&train_speed=S
Now you should "Chain" the second Extractor to the first one and it will pull that information from every link on the first one.
If you want to choose different destinations and times, just change the URL parameters of the original link.
http://support.import.io/knowledgebase/articles/613374-how-do-i-get-data-behind-dropdown-menus
Your best bet here seems to have an API for every URL combination. You have to analyze the URL structure.

Best approach to build a DYNAMIC query-by-example form in AngularJS?

I'm relatively experienced with Angular having written many directives, but I have a new requirement where I have to build a query-by-example form into which a user can enter different search criteria. My problem is that I do not know ahead of time what the possible criteria will be. This criteria information will be coming from the server via an ajax request and can differ per user. Thus I will need to dynamically construct a suitable user interface based on the information I get from the server.
I have built individual directives suitable for capturing the search criteria (for example a custom calendar control for date criteria) but I am unsure of the best approach to adding these directives to a form dynamically. Is this even possible in Angular?
I have built something like this before in jQuery but its not so clear to me how I would best do this in an 'Angular way'?
Any suggestions would be most appreciated!
Everything that you can express as a model-to-view projection can be implemented in AngularJS.
I think here you can make a model consisting of "query params". Each of them has name, type and data for filter builder. For example, for the "select" type a data can contain a list of all possible values to choose from.
Then you iterate through the list of "query params" with ng-repeat, rendering each control differently according to its type. That's all.
If I understood the task wrong, please provide more info.

Include field(s) from another module in SugarCRM Dashlet

I have created a custom module that tracks callbacks pertaining to a specific account. I need to know how to build a dashlet that can pull that account information based on the foreign key given. Can someone help me understand how to modify a dashlet to reference data from another module?
Take a look at the dashlet definitions in modules/Home/dashlets folder. What kind on view you want to achieve will depend how to do it. I allways used custom html view that i populated with data using php. Another option is to use generate listview functions and query's to utilize the SugarCRM function.
There is no simple explanation here.