
Hi
In Request Page I am displaying a list from Customer Posting Group in a variable of DataType Text . In Request Page in Properties I have given TableRelation "Customer Posting Group" . I want first record value should automatically gets displayed in that field for user selection.
Thanks
*This post is locked for comments
I have the same question (0)Hello jsshivalik ,
Write C/AL Code on RequestPage of Field/Variable Looup triger
CustomerPostingGroupG - OnLookup(VAR Text : Text) : Boolean
//>>Sbinesh
// CustomerPostingGroups is a record variable of TABLE Customer Posting Groups
// CustomerPostingGroupG is a global variable [you can use that variable/field you want to lookup]
IF PAGE.RUNMODAL(110,CustomerPostingGroups) = ACTION::LookupOK THEN BEGIN
CustomerPostingGroupG := CustomerPostingGroups.Code;
END ELSE CLEAR(CustomerPostingGroups);
//<<Sbinesh
See below screenshot for better understanding.