Hi
Try this
action("Protocol Without Value")
{
ApplicationArea = all;
Caption = 'Protocol Without Value';
ToolTip = 'Opens the protocol values without value';
Image = Card;
RunObject = Page "Protocol Card Page"; // Provide the card page Name in the place of "Protocol Card Page"
RunPageMode = Create; // opens in New mode
RunPageLink = "Line No." = field("Line No."),
"Protocol Code" = field("Protocol Code"); // Filters need to be changes accordingly
}
action("Protocol With Value")
{
ApplicationArea = all;
Caption = 'Protocol Without Value';
ToolTip = 'Opens the protocol values with value';
Image = Card;
RunObject = Page "Protocol Card Page"; // Provide the card page Name in the place of "Protocol Card Page"
RunPageMode = Edit; // Opens in Edit mode
RunPageLink = "Line No." = field("Line No."),
"Protocol Code" = field("Protocol Code"); // Filters need to be changes accordingly
}
Regards
Avinash B