[RPG]Changing Backcolor of DropDown in a table on value change
Posted: Mon Oct 24, 2016 5:08 pm
Hi,
I would like to change the backcolor of dropdown in a table row if its value is changed.
THis works offline.
I thought I can do it with using javascript like this;
However, I don't know how to set table "ID" of the table on offline form.
The ROWLIST of this table is as follows:
Could you please give me some advice how to implement this?
Best Regards,
Megumi Sawada
I would like to change the backcolor of dropdown in a table row if its value is changed.
THis works offline.
I thought I can do it with using javascript like this;
Code: Select all
/* These files should be saved as UTF-8 */
var myId = "";
var myId2 = "";
var myValue = "";
lrexec(
function()
{
myId = "Form.Fields.TABLE1.CurrentRowID%1";
this.q_getProperty(myId);
},
function(var1)
{
myValue = var1 ;
myId = 'Form.Fields.TABLE1.Row%' + myValue;
/* Now Queue a request show the updated variables as results on the screen */
myId2 = myId + '.DDOWN1.BackColor';
var propsout =
{
myId2: "RED"
};
this.q_setProperties(propsout);
},
/* End marker */
null
);
The ROWLIST of this table is as follows:
Code: Select all
A ROWLIST.&+
A ( +
A TBL:CONTACT +
A SQL:"SELECT ROWID,EMPNO,SURNAME, +
A HOMEADDR2 FROM CONTACT" +
A ) +
Best Regards,
Megumi Sawada