Search This Blog

Friday, June 17, 2022

Create hyperlink in infolog to navigate to the required form with the filter

public static void main(Args _args)

    {

        CustTable                   custTable;

        MenuItemMessageAction       messageAction;

 

        select firstonly * from custTable;

 

 

        messageAction = new MenuItemMessageAction();

 

        messageAction.MenuItemName(menuItemDisplayStr(Custtable));

        messageAction.TableName(tableStr(CustTable));

        messageAction.RecId(custTable.recid);

 

        str jsonData = FormJsonSerializer::serializeClass(messageAction);

 

        Message::AddAction(MessageSeverity::Informational,"Click on account number to check more detail ",custTable.AccountNum,MessageActionType::DisplayMenuItem,jsonData);   

    }

The output will be as per below and when you click on the account number customer detail form will going to open.









No comments:

Post a Comment