Notifications
Announcements
No record found.
Hi all,
Want to execute a method if a field is blank previously but now entered with a new value.
And that new value is used in that method.
How can i do this and on which method of the table i should write the code to do this.
Thanks and regards
Siddhant Singh
Hi Siddhant,
In which area do you need to prepare such a solution ?
I hope I understood you correctly
you can use the modifiedField method to do this
public void modifiedField(fieldId _fieldId)
{
super(_fieldId);
switch(_fieldId)
case fieldnum(MyTable, custAccount):
this.CurrencyCode="";
break;
default:
}
Hi Siddhant Singh,
As mentioned here you need to override modifiedField field on the table level and add your logic there, if you want to check that field was blank before you can this.orig() nuxulu.com/.../Understanding_modifedField_Table_method_in_DAX_2012.html
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 611 Most Valuable Professional
André Arnaud de Cal... 529 Super User 2025 Season 2
Sohaib Cheema 285 User Group Leader