Hi
I have a G/L Entry filter in Request Page in report. DropDown List appears . I want first record field should be displayed by default.
Thanks
*This post is locked for comments
Hi
I have a G/L Entry filter in Request Page in report. DropDown List appears . I want first record field should be displayed by default.
Thanks
*This post is locked for comments
Hi jsshivalik,
Are you new to NAV ?
1. You need to find the first location.
2. Then assign it to a global variable.
3. Show that global variable on the request page.
4. Then write code to check if this global variable has a value then filter your GL entries.
Hi
It is not a variable. It is G/L Entry Filter Location Code . How to assign default value to it.
Thanks
Do you have "Location Code" in "G/L Entry"?
"G/L Entry.SETFILTER("Location Code",LocationRec.GETFILTER(Code));
Hi
It is a Filter Location Code . How i can assign default value . It is not a variable
Thanks
IF LocationRec.FINDFIRST THEN
yourVariable := LocationRec.Code;
yourVariable is a variable of type Code 10;
Hi
I am trying like this . How to assign a value to G/L Entry Filter Location code
OnOpenPage()
IF LocationRec.FINDFIRST THEN BEGIN
"G/L Entry".GETFILTER("G/L Entry"."Location Code") = LocationRec;
END;
Thanks
Hello,
Please think and try to add some code, it is very basic. You need get the Locations Record find the first record and assign the value to the variable. Try something out and we will help you to correct it.
Hi
ON the field in request page Locations dropdown appears. I want value of first record should appear by default in that field when page appears. User may not require to selecct value by clicking on DropDown.
Thanks
Hi
Can u pls provide some sample code .
THanks
Hi
There is no code. Just Filters are selected. On the field in G/L Entry table Table Relation is given. Location.Code . So Locations appear in the dropdown . I just want that field value from the first record in that list should be displayed as default.
Thanks
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156