on 07-03-2006 6:15 PM
Hello,
I have the following situation:
I have a table (populated by supp-method A) and some other UI elements (populated by supp-method B showing additional information / details to the table entry).
Supp-method B is executed anytime the lead selection of the table changes.
If some of these values in the underlying UI elements are changed, I'd like to prompt the user with a "Save"-dialog if he changes the lead selection of the table. Unlikely the PopUp dialog runs asynchronously and the change to the lead selection occurs in the background while the PopUp dialog is being displayed. I can avoid the execution of the supp-method B (so the data isn't lost), but the lead selection is still on the wrong table line.
Is there a way to "consume" or redirect the events provided by UI elements (similar to the IF_WD_COMPONENT->CANCEL_NAVIGATION( ) method) ?
Best Regards
Waldemar
Hi Waldemar
To avoid changing of lead-selection in background that you mentioned
you can try to set 'selectionChangeBehaviour' property to MANUAL. The following passage is from help.
This selection change behaviour determines that the table does not change its data source's lead selection upon user interaction, but only fires the onLeadSelect event. It is the event handler's responsibility to actually change the lead selection, or else the table will not be functional in a master-detail scenario. This behaviour allows application code to first evaluate if a lead selection change is to be allowed or not.
BR
Sergei
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.