Breaking news from around the world
Get the Bing + MSN extension
Now Available in Community - MBAS 2019 Presentation Videos
Catch the most popular sessions on demand and learn how Dynamics 365, Power BI, Power Apps, Power Automate, and Excel are powering major transformations around the globe. | View Gallery
2019 release wave 2 Discover the latest updates and new features to Dynamics 365 planned through March 2020
Release overview guides and videos Release Plan | View virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming TechTalks
In AX7 i don't know why i can't refresh the tempDB in form.
we add one new method in a class as below:
[FormControlEventHandler(formControlStr(FormTesting, cbxType), FormControlEventType::Modified)]
public static void cbxType_OnModified(FormControl sender, FormControlEventArgs e)
FormDataSource fds = sender.formRun().dataSource(formDataSourceStr(FormTesting, testTempTable)) as FormDataSource;
tempTable.Id = "A";
tempTable.Name = "Test";
After the field data changed in form, no record show...
testTempTable was set to TempDB
in AX2012, we just use testTempTable.linkPhysicalTableInstance(tempTable) is ok -->code in form
but in AX7, the method can only write in a class, we can't use object "testTempTable"(Datasource name) any more...
Can anyone help me? Thanks a lot!!
I resolve this issue by myself .
I put it in wrong class...
there are a [Form] class with same form name, just everything like AX2012
Hi, I too have similar issue, can you please provide more details on the resolution? I cannot access data source table directly in event handlers. ex. "testTempTable(Datasource name)..linkPhysicalTableInstance(tempTable)"
Why you can't? Can you show us your code, please?
Thanks for your response, It was my mistake. Its working properly :)
[PostHandlerFor(formStr(VendOpenInvoicesListPage), formMethodStr(VendOpenInvoicesListPage, init))]
public static void VendOpenInvoicesListPage_Post_init(XppPrePostArgs args)
FormRun formRun = args.getThis();
FormDataSource vendTrans_ds = formRun.dataSource(tableStr(VendTrans));
FormDataSource vendTransFinDim_ds = formRun.dataSource(tableStr(ABCTmpVendInvoiceFinDimValues));
Query query = vendTrans_ds.query();
Business Applications communities