Announcements
Hi,
I have two fields in the Contract and UI Builder, one is worker dropdown and other is a custom field, I have put some logic on the modified method of Worker Field(which is working perfectly fine) but the issue is that the Worker field doesn't get updated after I modify it. Any help ?
Regards,
*This post is locked for comments
I think I have not elaborated correctly, the thing is, the field(Date) tat I am setting based on the select query is working perfectly, the problem is with Worker field i.e. it doesn't get updated when I change the selection, the date field updates perfectly in all cases.
Are you sure that select in modified method returns something ?
Hi,
Already tried this, doesn't work.
Hi,
In the postBuild method of UIBuilder class replace this statement
dialogFieldWorker.registerOverrideMethod(methodstr(FormReferenceGroupControl, modified), methodstr(KSSalaryCertificateUIBuilder, workerModified), this);
with this statement to get the desired value
dialogFieldWorker.registerOverrideMethod(methodstr(FormStringControl, modified), methodstr(KSSalaryCertificateUIBuilder, workerModified), this);
test
It would be easier if you share your code.
The modified method is working fine as the second value that I need to update based on worker is updating perfectly fine, just the worker field is not updating according to the selection.
Hi Abdul Khaliq,
Did you call _control.modified() in your method ? It acts like super() and without it value won't be updated.
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156