0 votes
189 views
in Javascript API by

1 Answer

0 votes
by
edited by anonymous

There is a simple way to compare two business objects for equality, the string representation of xml of two complex variables or list of complex variables will exactly be same if their contents are same 

make a copy by value before editing

tw.local.savedcopy = tw.system.serializer.fromXml(tw.system.serializer.toXml(tw.local.originalvariable))

compare as

if (tw.system.serializer.toXml(tw.local.savedcopy).toString(true) == tw.system.serializer.toXml(tw.local.originalvariable).toString(true)){

;

}

Related questions

0 votes
0 answers 48 views
0 votes
0 answers 37 views
0 votes
0 answers 17 views
0 votes
1 answer 55 views
0 votes
0 answers 30 views
0 votes
1 answer 172 views
0 votes
0 answers 25 views
0 votes
1 answer 351 views
0 votes
1 answer 122 views
0 votes
1 answer 116 views
...