Personalized Community is here!
Quickly customize your community to find the content you seek.
Now Available in Community - New TechTalk Videos for 2020
Read More about New TechTalks for 2020
2020 release wave 1Discover the latest updates and new features to Dynamics 365 planned through September 2020
Release overview guides and videos Release Plan | Preview 2020 Release Wave 1 TimelineWatch the 2020 Release Wave 1 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 | 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