on 11-21-2005 8:45 AM
Hi,
My WebDynpro application has two tables (Header and Details table).
Header and Details table are populated by executing a function module in SAP.The FM from SAP returns two tables (header and details)
These two table have a link and the key is Document No.
My requirement is,
1. When ever a user selects a entry in Header Table and clicks "DELETE" button, that entry in Header table and corresponding entries in Details table should be deleted.
2. After deleting the entries, the header and details should be refreshed so that it has the real time data from SAP.
3. If no entries are there in header table, both the table should not be visible.
Please let me know your thoughts.
Thanks
Senthil
Hi,
You can combine step1,2 and 3 in "Delete" click.
In the action you can call the FM that deletes the selected row and you can refresh the table with new data .
1. Delete the selected row.
2. Invalidate the Node
3. Bind the Table node with new data by calling the FM onceagain
4. Check if there are any rows in the node.If not make the tables invisible
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi senthil,
For hiding the visibility of the table go to the
table node properties, in that the node type can be
changed.
click on the type property of the node and select the ... option.
<b>In the dictionary simple type-->click on the
com.sap.ide.webdynpro.uielement defenitions--->visibility.</b>
Inside ur hiding table condition just give this code.
wdContext.currentContextElement().setNode(WDVisibility.NONE);
Hope so this one solves ur problem senthil,
Regards,
Nagarajan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anil,
Thanks for that.
As i understood you want me to do this
1.Delete the selected entry in Controller Context.
2.Invalidate the node.
3.Call FM again means, you want me to create a input element object and bind it to the input node and execute it again or just execute the FM again.
If any changes to the above please let me know.
Thanks
Senthil
Hi,
How you are deleting the entries in the table.Please post code also.
You mean if you navigate from top to bottom then you can able to delete all the entries whereas the same is not working if you navigate from bottom to top ?
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.