Notifications
Announcements
No record found.
I want to clear previously enter values whenever the dialog form open, how can I do so. Should I need to work at form level or data-source level, please mention method to override
Thank You
Hi itlabnarmi,
Seems this is a custom dialog form. I guess this is not previously entered values - i thing there is some code behind to pre fill the values when dialog form opens or they are setting the range to datasource used in the dialog form.
So please see on the dialog form for the codes.
If the form DataSource has a parameter table which has only record in the table - Then try setting the form view open mode to New on the menu item property of the dialog form.
Thanks,
Girish S.
Yes, its custom dialog form and there is no code behind to pre fill. After enter these values to of parameter when I remove values manually before closing this dialog form and when I open it again now this time it will show empty parameter, this mean last values entered in a parameter are saving. I also checked there is no code to save last values. Is there any way to empty parameter values whenever form open ?
No you wrongly understood - Parameter values are coming from table which will be having only on record on the table. If that table is added as datasource it will display that single record by default.
As I said earlier try setting the menu item property Open mode to "New" and check.
Also can you confirm that parameters you are saying is datasource bound control or unbound control?
Menu-item property Open mode set to New, still no effect. Yes these parameter are data-source bound control.
No parameter tables are to added to form data source.
Can you confirm that the tables used for the parameter form is used anywhere in the forms?
Also try clearing the usage data for the user and try again.
If above suggestion doesn't work, just add the range in the init method of the form to the particular datasource with RecId equal to 0.
DataSourceName_ds.queryBuildDataSource().addRange(fieldnum(TableName, RecId)).value(queryvalue(0));
As you said these fields are datasource bound, so while opening the form, means init() method of form try calling clear() method of table.
Thank you so much @Girish S , below line of code work for me.
But make sure you have fully tested with all the required scenarios - Like creating data and save it with full process flow.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 646 Most Valuable Professional
André Arnaud de Cal... 529 Super User 2025 Season 2
Sohaib Cheema 285 User Group Leader