Doesn't Modified only work in a form event? So it turns out that Old works fine with an object field, but you can't do an = comparison. I think what I'm going to do is the following:
If ((JSON Stringify($fieldPtr->))#(JSON Stringify(Old($fieldPtr->)))) Seems really inefficient, but it works. Jeff -- Jeffrey Kain [email protected] > On Feb 22, 2017, at 12:52 PM, Kirk Brooks via 4D_Tech <[email protected]> > wrote: > > I think this is going to track back to a discussion some time ago about > trying to compare two c-objects, or JSON, to each other. It turns out to be > really tricky. For instance: > > JSON a: {key1:1234, key2:"abcd"} > > is that equal to > > {key2:"abcd", key1:1234} > > or > > {key2:"abcd", key1:"1234"} > > and so on. > > I think, haven't tried, to test Modified on the c-obj field. That might > work for you. Otherwise I'd just update the c-obj every time. ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

