[RPG/Javascript] newdbrow function
Posted: Thu Nov 05, 2015 10:25 pm
Hello,
In RPG Example 303 - "Browse TutorialContacts" there's an add new row button with the following operation:
OnClick.Operation +
( +
Type : NewDbRow
) +
&.Tbl: TutorialContacts
I'm trying to convert this into something that is used in a javascript for an offline form, I assume what I want is some sort of:
this.q_setProperties( { 'RunOperation.Type':'NewDbRow',
'RunOperation.Tbl':'SAVEDTABLE'} );
command, but I can't get the syntax right, I've tried:
Runoperation.tbl
&tbl
&.tbl
which all come back as unrecognsied. I'm probably missing something very obvious but would appreciate if someone could point it out please.
Thanks
In RPG Example 303 - "Browse TutorialContacts" there's an add new row button with the following operation:
OnClick.Operation +
( +
Type : NewDbRow
) +
&.Tbl: TutorialContacts
I'm trying to convert this into something that is used in a javascript for an offline form, I assume what I want is some sort of:
this.q_setProperties( { 'RunOperation.Type':'NewDbRow',
'RunOperation.Tbl':'SAVEDTABLE'} );
command, but I can't get the syntax right, I've tried:
Runoperation.tbl
&tbl
&.tbl
which all come back as unrecognsied. I'm probably missing something very obvious but would appreciate if someone could point it out please.
Thanks