assign/update a SDV field (help! - I'm a newbie)

AKJ

New Member
NB. I'm new to this GUI and ADM stuff so if i'm barking up the wrong tree, plz tell me the tree i should be using...

Prog 9.1b. I have a Smart win with a SDO, SDV, Smart toolbar.

On my SDV I have a character field that consists of a comma separated list of values. i also have a button on the SDV to allow simplyfied editing of the comma separeted list. this button trigger runs a prog which allows me to select values from a list, populate a variable with the comma sep data and then pass it back to the viewer (set screen-value).

This is where my problem happens. How do i get the value back to the SDV field and ensure all things that should as if i'd entered the data manually happen.

i run setDataModified to make the SAVE option appear on the toolbar, but when i SAVE, the change is lost.

it won't let me assign the rowobject field.

I'm guessing there is some method to pass the value to the field so all things that should happen, happen.

Any help is welcome. Cheers.

AKJ
 
Thanks to PEG persons I got the following solution (for anyone interested)...

Setting the modified attribute did the trick.

It seems that because it was an editor widget I was
using, and these are the only type not to be
automatically set to “modified = yes” when
programmatically assigned a value, so I had to manually do
it.
 
Back
Top