I went through the same thing with TS. Tim will probably chime in. The problem is that the dirty flag is not set when dot notation is used against an object field. In your scenario the following will work…
OB SET ([Table1]Object;”value”;b_value) //this will set the record dirty. And, yes, I too was told that the engineers were leaning to declaring this as standard behavior. Why? I have not a clue. So the workaround is not to use dot notation against an object field, or to always save the object to itself before saving the record as that will also set the dirty flag… [Table1]Object.value:=$b_value [Table1]Object:=[Table1]Object SAVE RECORD([Table1) John > On Oct 30, 2017, at 11:21 AM, Alberto Bachler via 4D_Tech > <[email protected]> wrote: > > Hello, > > If the value of a property is modified using object notation directly over an > object field the modified value is not stored on the record. > This is reproducible in v16R4 and v16R5. > > > READ WRITE([Table1]) > GOTO RECORD([Table1];0) // [Table1]Object.value is False > $b_value:=True > [Table1]Object.value:=$b_value > SAVE RECORD([Table1]) // [Table1]Object.value is True after Save Record > UNLOAD RECORD([Table1]) > GOTO RECORD([Table1];0) // after changing the current selection by reloading > the record [Table1]Object.value is false > > I reported this to 4D via TAOW and the Forum. > 4D answer was that is as standard behavior and they recommend me to assign > the object field to itself after modification. > > You can also use OB SET or assign the object to a variable and work with it > before reassign it to the object field. > > Alberto. > > > > ********************************************************************** > 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] > ********************************************************************** John Baughman Kailua, Hawaii (808) 262-0328 [email protected] ********************************************************************** 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] **********************************************************************

