1) Create a Boolean in the subpage and set IncludeInDataset property to yes
2) assign the Boolean variable to the Editable property of the "Item Type" field
3) Create a global function in the subpage to allow you to set the Boolean variable to true or false
4) Call the subpage function (CurrPage.lines.SetMyBoolean(...)) from the main page on the OnValidate of the field in the header and also in the OnAfterGetCurrentRecord trigger
@mohana_cse06 thanks, Yes i trigger the code at onvalidate field.
Can anyone help me why my codes always return message for first condition only even though there are 2 scenarios tested?
Returning --> MESSAGE(Text001)
CASE GPOTender."Able to Quote" OF
GPOTender."Able to Quote"::"1":
BEGIN
MESSAGE(Text001);
END;
GPOTender."Able to Quote"::"0":
BEGIN
MESSAGE(Text000);
DisableLines;
END;
END;
Answers
you can show error if requirement is not met..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
1) Create a Boolean in the subpage and set IncludeInDataset property to yes
2) assign the Boolean variable to the Editable property of the "Item Type" field
3) Create a global function in the subpage to allow you to set the Boolean variable to true or false
4) Call the subpage function (CurrPage.lines.SetMyBoolean(...)) from the main page on the OnValidate of the field in the header and also in the OnAfterGetCurrentRecord trigger
Can anyone help me why my codes always return message for first condition only even though there are 2 scenarios tested?
Returning --> MESSAGE(Text001)
CASE GPOTender."Able to Quote" OF
GPOTender."Able to Quote"::"1":
BEGIN
MESSAGE(Text001);
END;
GPOTender."Able to Quote"::"0":
BEGIN
MESSAGE(Text000);
DisableLines;
END;
END;
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Is this correct?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav