SysInfoAction

Found this blog entry made by Kamal. The entry explains how to use the SysInfoAction classes. I played around with this classes and found out that you can get pretty specific when referring the user to the source of the info message.

This is a simple job that produces an info box that gives the user the option to open a form and edit a specific field on a specific record:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
static void FO_SysInfoAction(Args _args)
{
    CustTable  custTable    = CustTable::find("4001");
    SysInfoAction_FormRun   SysInfoAction;
    ;
 
    SysInfoAction =
    SysInfoAction_FormRun::newFormnameDesc(
    "CustTable", "Edit record");
    SysInfoAction.parmControlname("Address_City");
    SysInfoAction.parmCallerBuffer(custTable);
 
    info("Go and edit specific field.","", SysInfoAction);
}

parmControlname is the name of the specific control in the CustTable form design that we want to edit, parmCallerBuffer is of course the record that needs to be edited.


Author: Erik Paulsson

Tags: , , ,

Leave a Reply