on 08-22-2006 1:08 AM
Hi Friends,
when I have no record, I display one populated dummy record on the screen.
when thsi is the case, user should not eb able to clcik on this dummy row.
for that, I think, need to set readonly as true and rowselectable as false.
Can some one help me with piece of code idea and where to place it.
I have some idea, that I can get it in wdmodifyView.. and there, I can access attributes of a table.
Thanks!
After the suitable call to the RFC to populate the table values, check the size of the node that is bound to the table datasource. If the size is zero, then you may add your dummy row and set the attribute (mentioned by Maksim) to WDTableSelectionMode.NONE.
Bala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nav,
Try this Solution. This one is working for me. When i have a single record the table it wont give lead selection.For your requirement, when that dummy data is there you can do row selection false.
//keep this code in wdDoModifyView()
// Table - is table Element ID
// TestNode - is binded node for the table
IWDTable table = (IWDTable)view.getElement("Table");
if(wdContext.nodeTestNode().size() > 1){
table.setRowSelectable(true);
}else{
table.setRowSelectable(false);
}
Correct me, if this is not the correct procedure.
Regards,
Sridhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nav,
Table UI element has property selectionMode<a href="http://help.sap.com/saphelp_nw04/helpdata/en/0e/23b3c8b0a238439f664f73a04e6332/frameset.htm">Web Dynpro Table API - IWDTable</a>. Create context attribute and bind it this property to it. Set it to WDTableSelectionMode.NONE to disable row selection or to WDTableSelectionMode.AUTO, SINGLE, MULTI to appropriate selection mode depending on your conditions. See <a href="https://media.sdn.sap.com/javadocs/NW04/SPS15/wd/com/sap/tc/webdynpro/clientserver/uielib/standard/api/WDTableSelectionMode.html">WDTableSelectionMode</a>
Best regards, Maksim Rashchysnki.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
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.