![]() Session.findById("wnd/usr/ctxtSUID_ST_BNAME-BNAME").text = newKey enter key from Dropdown Listbox into User name field ![]() ![]() Note that "source.key" or "session.findById('ddlb_id').key" contain the previously selected key, not the new key. In SP02: When onSelect is triggered it automatically provides a variable in the script named "newKey". Also "source.key" or "session.findById('ddlb_id').key" will contain the newly selected key. This variable always contains the key of the selected Dropdown Listbox entry. In SP01: When onSelect is triggered it automatically provides a variable in the script named "key". It is not fired if a script triggers a change of a Dropdown Listbox selection. The assigned script is executed when a user changes the selected entry in the dropdown listbox. The onSelect event is available for Dropdown Listboxes. The article was updated to reflect these changes. Please note that event used in this articel, GuiComboBox.onSelect has changed significantly between SP01 and SP02. The following section will describe when the event is fired, and how you can use it. ![]() This article gives a quick explanation of the event, and a small example of how to use it. SAP Screen Personas 3.0 does allow you to trigger scripts on each change of a Dropdown Listbox value. SAP SCREEN PERSONAS KNOWLEDGE BASE - by Tamas Hoznek Scripting: onSelect - Use Dropdown Listboxes to streamline text input
0 Comments
Leave a Reply. |