0 votes
170 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 43 views
0 votes
0 answers 30 views
0 votes
0 answers 15 views
0 votes
0 answers 29 views
0 votes
1 answer 144 views
0 votes
0 answers 24 views
0 votes
1 answer 298 views
0 votes
1 answer 101 views
0 votes
1 answer 101 views
...