Saturday, October 15, 2011

Send and recieve parameter string through args in axapta

1. Send
void clicked()
{
    Args  args = new Args();
    ;
    Args.parm("retrive hell");
    new MenuFunction(menuitemdisplaystr(Sunny_Param_String_Recieve), MenuItemType::Display).run(args);
}
2. Receive
public void init()
{
   // super();
    str paramString;
    Args args;
;
    super();
    args = new args();
    paramString = element.args().parm();
    info(strfmt("paramString = %1",paramString));
}

No comments:

Post a Comment