Hi,
I have two comboboxes in my form- Journal type and Posting Layer.
When I make a selection in the first combobox i.e. Journal type, to "Allocation" and make a selection in the second combobox i.e, Posting Layer, to other than default ("Current"), it should be remembered.
Then if I change the Journal Type to other and when I again change it to "Allocation", the item in Posting Layer combobox should not be reset to its Default value.
It should be the one which I had selected previously.
Presently it is being reset to default value.
Please suggest what I have to do for this.
Thanks in advance.
*This post is locked for comments
Hi,
I have enabled the Posting layer field for Allocation journal type.
Yes you are right, I think this is the standard behavior and we cant change it.
Thanks.
Hi Yunus,
I was already thinking of this form, but was not sure. This is standard behavior on this form. In my environment the Posting layer field is not editable when the Journal type is set to Allocation.
The name of the form is LedgerJournalSetup
Hi Yunus,
You would help yourself if you mention the form name. Then we can advise where it is and what to do.
Hi,
It is an existing form and the combobox does not have any associated modified field method.
I think I have to override the modified method of combobox for avoiding the selection to be reset.
Please suggest and let me know if there is any built in class for remembering the selection of a combobox item.
Thanks.
Hi Yunus,
Is it a new form with fields binded with new table or did you modify anything on existing form? It seems that there is some code written on modified field method of combo boxes or at the modified field method of datasource fields binded with these combo boxes. Which is changing your selected values on form refresh. You can also check in form init() method, there might be a case values for these combo boxes are setting there too.
Seems logical issue. Please debug you code.
Hi Yunus,
Have you created an new form or are you referring to an existing form? If it is a new form, do you have used an existing or new table? Please provide some more details.
What's your current logic for changing Posting Layer? (Because fields don't change values by themselves.)
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,219 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156