SELECT OPTION Control in SAP UI5
Hi all,
is there a select option control in SAP UI5. I didn't find any description on the description page !
Thanks for information.
Best regards,
Christoph
Hi,
the value help dialog has the select option handling included :-)
SAPUI5 Explored
Thanks for help.
Best regards,
Christoph
Similar Messages
-
Validations for DatePicker control in SAP UI5
Hi,
I am using DatePicker control from sap.ui.commons library. I want to add validations to this date. What can be the best possible way to have validations apart from implementing change method ?
Is it possible for the framework to popup the error message in the red color as we get to see in some standard form?
Any help will be appreciated.
Thanks,
Supriya KaleThat's the beauty of the formatter and the use of a model:
var oDP = new sap.ui.commons.DatePicker({
valueState :{
parts : ["/myDate", "/notBeforeDate"], //bound to both 'myDate' and 'notBeforeDate' property in your model
formatter : function(oDateValue, oNotBeforeDateValue) {
return (oDateValue < oNotBeforeDateValue) ? sap.ui.core.ValueState.Error : sap.ui.core.ValueState.None;
See Custom Formatter Functions - User Interface Add-On for SAP NetWeaver - SAP Library for more info -
How to highlight selected list item in sap ui5?
I have a list..in which custom list items have been used.
On click of any custom list item it should get highlighted,
I am able to click on each custom item...and have added an browser event
on its click..which changes its color ..
function to change its color goes like this:
hbox.attachBrowserEvent("click", function(event) {
var idOfHbox= this.getId();
$('#'+idOfHbox).css"backgroundcolor","#e6f2f9");
ALso for each custom list item I have used a button and a checkbox in a HBox..
So am changing the hbox color (on click event).
The problem here is...
When i select one item, and then select another item..both of them are highlighted..
I want only the current selected item to be highlighted.
Please guide..Have you tried using the SelectionChange event on the list, rather than the browser onClick event?
I believe the SelectionChange event is fired for each selected and deselected item in the list.
https://sapui5.hana.ondemand.com/sdk/docs/api/symbols/sap.m.ListBase.html#event:selectionChange
Many thanks,
Jason -
Select-options in WDJ user interface
Hi Experts,
I would like to know why select-options found in SAP GUI screens is not available in WDJ. WDA however has provided this. Is there a possibility that this might be added sometime soon? Or may I please know the reason for omission.
Warm Regards,
Abdullahno, what I mean is the select-options user interface component. Where in you can specify a range. For example: I can enter a range of employee numbers to be selected for a particular report. In that same control, I can omit some of the employees that I dont want. You can also check the following link for the select-options feature in WDA.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c09fec07-0dab-2a10-dbbe-c9a26bdff03e -
How to create interactive map in SAP Visual Business using SAP UI5 SDK
Hi,
Please tell me,
How to create interactive map in SAP Visual Business using SAP UI5 SDK.
Is it possible to create interactive map using VB Control in SAP UI5 SDK..?
if possible please any one let me know.Hi folks, one question:
We have our development close moved and now it is earlier than originally planned.
That means that we maybe can't finish our convenient API and you have to wait till we will release it - early 2015 is planned.
But there is another option:
Currently we have a API based on json. The developer has to create json and to transfer it to the Visual Business control.
This interface is more used as a low level API and we are developing on top the more convenient one. So all the features are the same.
It will stay stable & compatible in the future and you can build on it.
Do you want to use this interface?
Then I will publish the documentation.
Let me know.
Thanks -
How To... Change the Data Type for a SELECT-OPTIONS at run time.
Hello,
I am trying to restrict the values available for entry into a SELECT-OPTIONS at run time depending on user input.
The logic is as follows. The user has two input fields. A PARAMETER field which has the type RSDIOBJNM and allows them to choose an InfoObject. And the user has a SELECT-OPTIONS field to allow them to select the Characteristic values for that InfoObject.
I would like the following example to be possible:
The user enters 0MATERIAL into the PARAMETER. When the user clicks on the SELECT-OPTIONS control code will derive a list of possible options the user can enter in the SELECT-OPTIONS. In this case only values found in the master data or at least no values greater than 18 characters.
I have looked at the following function module SELECT_OPTIONS_RESTRICT and this do not appear to be helpful as they only restrict on the signs allowed for the values (unless I misunderstand, it is a complex function module!).
The code I have so far is (thus the user enters a InfoObject into p_char1 and the select options so_char1 should only accept active values of that InfoObject):
declaration of variables for user interface
DATA c_char(32) TYPE c.
declaration of count variable
DATA i_count TYPE i.
declaration of user interface
SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-001.
PARAMETERS: p_ipack TYPE RSLOGDPID.
SELECTION-SCREEN END OF BLOCK a1.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-002.
PARAMETERS: p_char1 TYPE RSDIOBJNM.
SELECT-OPTIONS: so_char1 for c_char NO INTERVALS.
PARAMETERS: p_char2 TYPE RSDIOBJNM.
SELECT-OPTIONS: so_char2 for c_char NO INTERVALS.
PARAMETERS: p_char3 TYPE RSDIOBJNM.
SELECT-OPTIONS: so_char3 for c_char NO INTERVALS.
SELECTION-SCREEN END OF BLOCK b1.
Is what I am trying to do possible???
Thanks for any help. Ross.You really want to restrict possible values of a select-option based on another field, not change the length of type of the select-option field, right?
Here is what you do: Code a custom F4 value help for the select-option at event AT SELECTION-SCREEN ON VALUE REQUEST FOR.. The first thing you do here is read the value of the parameter field (p_ipack in your example). You can use function module DYNP_VALUES_READ. Based on this value, you can propose values for the select-option fields. Note that the use can still enter whatever s(he) wishes in to the select-option field without pressing F4. In this case, you will have to code some input validations taking into account the value in the p_ipack field. -
Remove ":" from select option label(description)
Hello All
I have a requirement to remove the select option description (which SAP displays by default from the field label maintained in the data element),
I thought the best way to achieve that requirement is by passing "space" to the parameter 'I_DESCRIPTION' to the method IF_WD_SELECT_OPTIONS->ADD_SELECTION_FIELD, however, it turned out that SAP still displays the label from the data element inspite of passing space(blank) to the parameter 'I_DESCRIPTION', to overcome this limitation I have created a data element without maintaining any labels this approach worked expect that SAP still displays ":"(colon) as the label, is there any way to get rid of this ":" too?
As shown above, ":" is still displayed as the label of the date select option. I'm also looking for a way to reduce the distance between the last radio button and the select option, any pointers would be appreciated.
Thanks for looking into this.
-Vikram.You could use the below methods to recursively scan all elements of the view and set the design of all labels to light.
method adjust_view .
* IO_VIEW Importing RefTo IF_WD_VIEW
data lo_container type ref to cl_wd_uielement_container.
check io_view is bound.
lo_container ?= io_view->get_root_element( ).
process_elements( io_container = lo_container ).
endmethod.
method PROCESS_ELEMENTS .
* IO_CONTAINER Importing RefTo CL_WD_UIELEMENT_CONTAINER
data lo_container type ref to cl_wd_uielement_container.
data lt_elements type cl_wd_uielement=>tt_uielement.
data ls_elements type ref to cl_wd_uielement.
data lo_lbl type ref to cl_wd_label.
lt_elements = io_container->get_children( ).
loop at lt_elements into ls_elements.
try.
lo_container ?= ls_elements.
process_elements( io_container = lo_container ).
catch cx_sy_move_cast_error .
if ls_elements->_definition_name eq 'LABEL'.
lo_lbl ?= ls_elements.
lo_lbl->set_design( value = '01' ).
endif.
endtry.
endloop.
endmethod. -
hi experts,
i am using select-options in my report prg.
i want to make its display length more than 8 characters since select-option variable can be upto 8 characters long.
how can i achieve this?
thanx in advance...
Thanx & Regards,
Viral PatelFor technical limits on SELECT-OPTIONS read SAP documentation ([SELECT-OPTIONS|http://help.sap.com/abapdocu_70/en/ABAPSELECT-OPTIONS.htm])
The name of the selection criterion selcrit is limited to a maximum of 8 characters. This statement is allowed in the global declaration part of executable programs, function groups, and module-pools. In function groups and module-pools it is only allowed within the definition of an independent selection screen. In executable programs it is otherwise automatically assigned to the standard selection screen.
and
Two input fields with the name selcrit-low and selcrit-high are created on the current selection screen using a matching external data type in a new line at positions 35 and 60. The length of the input fields bases upon the length of the data type which is defined after FOR. The maximum length of the input fields is 45. The maximum visible length of the input fields is, depending on the nesting depth, in blocks with frames between 10 and 18. If the length is larger than the maximum visible length, then the content is scrollable.
So if your field (the field after the FOR option) is less than 8 character the visible length will be less than 8, you may use another field with 8 character, but you will have to map it to the correct field length (in AT SELECTION-SCREEN ON so, fill a TYPE RANGE internal table that you will use in following statements) you may also need to manage the search-help in your code (may work without problem if no conversion exit and character type field, else manage the AT SELECTION-SCREEN ON VALUE-REQUEST)
Regards,
Raymond -
Hello
Can you please help me with aligning with the date range select option with the radio button group on the left and with the
button on the right, the select option for "DATE" seems to be slightly mis-aligned.
all the above UI elements are included in a 'Group' UI element which as matrix layout. I tried to play around with the 'vAlign'(top,baseline,middle,bottom) settingfor the different UI elements without any luck, this setting doesnt' seem to have any effect on the position of the select option.
please let me know if you need any other info.
ThanksHi,
Here is what you could try out,
1. Create a transparent container and put the Date Select Option( View Container ) in that.
2. Set vAlign for the radio buttons and Transparent container to Middle.
3. Experiment with the vAlign a bit with various combinations till you get desired result.
For e..g dont put any vAlign on Transparent container, but retain them for radio buttons.
This is a tough one to solve, you can get it very close but not completely. This is because the caption for the select option control seems to be always set to vAlign as bottom.
If this does not work.You may need to put the date selector on a different line or in another group with some gap between the Radiobutton group and the Date group.
Hope this helps.
Regards,
Jon -
How can i decleare select-options in module pool table control?
Hi everybody!!
Can anyone tell me how can I decleare select-options in module pool table control screen?. I have declared it in a screen with a table control but a dump is triggered due to an error when generating the selection screen.
Regards...My suggestion will be try to use fm
call function 'FREE_SELECTIONS_DIALOG'
Please search this forum you can find lot of threads related to this.
a® -
Select option in dialog, in a table control
Hi Friends,
My need is creating dynamic select options in a table control in dialog screen. How can I do my desire?
Thanks.Hi,
You can make use of
FREE_SELECTIONS_INIT
and
FREE_SELECTIONS_DIALOG
Please see the documentation
a®s -
Select-option in module pool with table Control
HI,
How to use the select-option in Module Pool and how Can i use the Table control in it.
Can any body give me some Clues.
with rgds
RanjithHi ..
PBO.
LOOP at <table contriol>
module --- Inside the module
DATA: g_uti TYPE REF TO cl_fobu_input_util.
if rollname <> space.
CREATE OBJECT g_uti
EXPORTING typename =rollname.
*....convert to external pattern
CALL METHOD g_util->output_convert
EXPORTING
field_value_int = p_value " This is Tablecontrol-low
IMPORTING
field_value_ext = p_value. " Retrun value for Low
ENDLOOP.
lly you have code in PAI
DATA: g_util_1 TYPE REF TO cl_fobu_input_util.
if rollname <> space.
CREATE OBJECT g_util_1
EXPORTING typename = rollname.
*....convert to internal pattern
CALL METHOD g_util_1->input_convert
EXPORTING
field_value_ext = p_value
IMPORTING
field_value_int_c = p_value.
The above code should be written for tablecontrol-high aswell..
you can also refer: Inlcude LSE16NF10 line no 341 & 434 (SE16n)
Nag -
Upload image from Mobile device using SAP ui5 controls
Hello Team ,
Can we use SAP UI5 controls to upload image from photo gallery of the mobile device, the idea is to use simple sap UI5 codding and not SMP.
please do let me know if you guys have idea on same.
ArmaanHi Armaanjit,
Please have a look at my post
File upload using SAPUI5 Control -
Controlling the space between label and Input field in SELECT-OPTION
Hi ,
I am using WDR_SELECT_OPTIONS as a used component in order to dynamically generate the Select option in my WD Component.
Can any one tell me if there is a way to control the spacing between Label and Input field? This is because rest of the UI elements are in one particular order but for this dynamically generated UI.
Please help me.
Thanks,
KavithaHi Kavitha,
The label is required for accessibility reasons. It's not possible to remove it and to use your own label from outside the component to point to it. Labels cannot point to targets across views (and hence acress component) boundaries.
Best regards,
Thomas -
Select-options in WEB UI View on SAP CRM7
Hello,
I wanted to know how to make a u2018select-optionu2019 on a view in Web UI on CRM7.
Is there a standard BSP application that I can use in component usage for this?
I need to have show only one value but for one field I may have several values filled like a multivalues in select-options as in Transaction SE16.
I can't use an advanced search page because for some criteria I can have more 100 different values.
Tank you for your response.Thank you Kiran for your response, but you misunderstand my question.
In my process I can't use a ADVANCED SEARCH PAGE for these reason :
- the display of fields depends on a value selected from a dropdown list on a first view
- Some fields can contain multiple values (value list) not a range value like Between, but i can't show all theses values in a view like in an ADVANCED SEARCH PAGE
I need to know if exist a standard BSP application that can used in USAGE COMPONENT for my specific BSP application like a Popup to put several values and associate this value list to a field of my specific view.
Regards.
David Méloux
Maybe you are looking for
-
Can i transfer music between 2 iTunes accounts on 1 computer
Can I transfer music from one itunes account to another on the same computer?
-
More than one iCloud and match on the same iMac
We have 3 users accounts and 3 apple ids on the same iMac. Can we each use our own icloud on our own user account , as previously with itunes match have got myself locked out for having the computer associated with more than one apple id.
-
Display mean value in chart legend
I generated a line chart in SSDT 12 using the following query: SELECT FCP, NFS, TimeIndex FROM Controllers WHERE ControllerName LIKE 'Controller-A' Then I created a trend line using the guide here. In step 5 of the guide it says to set the legend tex
-
N80 and Peap :( please help me
hi all... ı am troubleing to connect my N80 to my school wireless network... Here is the link for my schools network settings for windows.. can anyone help me to configure these settings to my cell phone.. thank you all EDIT: Removed link to non-engl
-
I bought an iPhone 6 yesterday. I also bought a stereo dock that works with iPhone 5/5s. And a cord to connect iPhone 6 to USB port on my car stereo. No sound comes out of the stereo dock or car stereo. In Best Buy today, Sales Associate tried his iP