on 04-03-2008 12:14 PM
Dear All
I have a scenerio in which user can delete entries in the table.
As soon as he selects the rows to be deleted and performs delete action, corresponding rows gets deleted along with its elements/ values.
My requirement is that users should not see the deleted rows but entries should remain in the node as those still needs to be passed to RFC along with a flag.
I do not want to use an extra value node as this results in un-necessary looping which affects performance.
Can anybody help me with this.
Regards
Vineet Vikram
You could "move" the deleted entries to another node that has the same structure. Later, when writing data back, move the deleted entries back to the original node.
Another possibility (NW04s and later): Use table row grouping and provide two groups, "available" and "deleted". Move the deleted entries into the "deleted" group.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Armin
How to do table row grouping and provide two groups, "available" and "deleted". Move the deleted entries into the "deleted" group.
Also, I got a reply to my another query for copying tables.
" You can use WDCopyService.copyElements(wdContext.nodeSource(), wdContext
.nodeTarget());"
Will this replace the elements already present in the target node or it will just append the source into the target ?
My target node contains some rows that are not to be deleted/ replaced.
Regards
Vineet Vikram
Hi ,
Using Tables VisibleRowCount property u can Delete table row but retain values in the row ..
Create a Value Attribute of type integer and bind it to the VisibleRowCount of the Table.
Intially get the node size of the table and set this value to the value attribute.
i.e wdContext.currentContextElement().setTableSize(<get nodes sixe>);
on Delete Action decrease the Table Size.
int size = wdContext.currentContextElement().getTableSize();
wdContext.currentContextElement().setTableSize(size-1);
Regards,
Sunitha Hari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vineet,
When u select the row, lead select will be called. If u want to delete the row at that point of time, its not possible i think bcos for removing the row from the table , u need to refresh the table.If the data is avaialble in the node , it will again show that data.
Better to put a remove or delete button & use that for deleting the row.
regards
Sumit
Edited by: Sumit Malhotra on Apr 3, 2008 5:41 PM
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
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.