Announcements
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
But make sure you have fully tested with all the required scenarios - Like creating data and save it with full process flow.
Thanks,
Girish S.
Thank you so much @Girish S , below line of code work for me.
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.
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));
Thanks,
Girish S.
No parameter tables are to added to form data source.
Menu-item property Open mode set to New, still no effect. Yes these parameter are data-source bound control.
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?
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 ?
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.
André Arnaud de Cal...
294,095
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator