Hello,
I created a two tables and I try to go to the main table from the form but it does not work.
A first table is named TRI_NettingCorrelationAR with a field TRI_HFMCode.
And a second table is named TRI_HFMCode with a field TRI_HFMCode.
I triy to go to the main table from TRI_NettingCorrelationAR.TRI_HFMCode field in my form.
I added jumRef method in the table TRI_NettingCorrelationAR as below :
public void jumpRef()
{
TRI_HFMCode tri_HFMCode;
Args args;
MenuFunction menuFunction;
;
tri_HFMCode = TRI_HFMCode::find(this.TRI_HFMCode);
if (!tri_HFMCode)
{
return;
}
args = new Args();
//Go to the Main Table FormGo to the Main Table Formadding
//args.caller(tri_HFMCode);
args.record(tri_HFMCode);
menuFunction = new MenuFunction(menuitemdisplaystr(TRI_HFMCode),MenuItemType::Display);
menuFunction.run(args);
}
But it does not work, I get an error on the line :
menuFunction = new MenuFunction(menuitemdisplaystr(TRI_HFMCode),MenuItemType::Display);
The operand for the function is not an element.
Could you help please ? I do not know exactly if my way is right.
Thanks a lot