I have a multi-row region based on a table in which I have two particular columns of interest. The first has an LOV defined for which I have set up a pick-list of codes associated with the item's status as "OK" or having some problem, for which there are a small number of set codes associated. Most rows will be OK, but when there is a problem, the pick-list will be used.
My header function (that doesn't work) is going to be something like this (where the status column LOV having a value = 6 means "OK"). Note I'm using alert for a debug mechamism. The $s line is my failed attempt to set he column value, here with a hard-coded string "Changed COMMENTS":
alert('It is not 6!');
$s('#COMMENTS','Changed COMMENTS','Changed COMMENTS',TRUE);
alert('It is 6, you know!');
Ideally, I want any existing comments blanked if the user picks "OK" (6) as the new status, whereas for debug above I'm setting the hardcoded debug string. You will probably also note I realise I haven't properly understood the purpose of the third parameter in the $s API.
(This is a reports region, by the way. A detail block, in forms-speak, with a header block above it.)
Thanks for any assistance.