By this code I can open the form and filter the value but I need to open menu item and filter the value.
Click button:
void clicked()
{
Args args;
FormRun formRun;
;
args = new Args();
args.parm(KMVirtualNetworkAnswerTable_kmVirtualNetworkAnswerTableId.valueStr());
args.name(formstr("KMQuestionnaireList"));
formRun = new Formrun(args);
formRun.init();
formRun.run();
formRun.wait();
super();
}
Second form:-
init method:
if (element.args().parm())
{
kmVirtualNetworkAnswerTableId = element.args().parm();
}
executeQuery on form datasource
public void executeQuery()
{
this.query().dataSourceTable(tablenum(KMTmpQuestionnaireList)).addRange(fieldnum(KMTmpQuestionnaireList,kmVirtualNetworkAnswerTableId)).value(kmVirtualNetworkAnswerTableId);
super();
}
*This post is locked for comments
I have the same question (0)