on 01-23-2007 4:39 PM
Hi ,
I have an application in which the user is required to fill up a form or modify an existing entry. When the user clicks on the save button I want to check if the user has made any changes or not. There are 40 odd fields in the form. I'm looking for an option other than the normal If-Then-Else.
Does someone know a better way of comparing the data in two different elements?
Are there any API's which do this?
Thanks in advance
Pradeep
Hi Pradeep,
I am not sure about my soultion but you can give a try.
Check the isChanged() and isChangedByClient() API on IWDNodeElement
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 Pradeepkumar
Try IWDNodeElement.isChangedByClient() method.
BR
Sergei
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Try out this code.
int size = wdContext.node<nodename>.size();
for(int i=0;i<size;i++)
{
if(wdContext.node<nodename>.get<nodename>ElementAt(i).isChanged())
{
<do what you want to do>
}
}
Regards,
Gopi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.