Thank you very much. I had my datasource set wrong on my form. regards, G
--- In development-axapta@yahoogroups.com, enki...@... wrote: > > Hi, > > the relation should be in DataDictionary. So, if > PojInvoiceTable.ProjInvoiceProjID is on ProjInvoiceProjId and your table is > only joined on this, the EDT should have a relation to ProjInvoiceTable and > your ID should be on this EDT. Then you have a relation between your tables. > Then, on the form, on the "child" datasource, you have to set its join source > to the "parent" datasource. Then it will use the dictionary relation. > > If it's not and you need specific relations on the form, you have to set tose > in init method of your "child" datasouce adding the relation to the query. > > > Regards, > Geoffrey Delmée > > ----- Mail Original ----- > De: "giarc 127" <girac...@...> > Ã: "development-axapta" <development-axapta@yahoogroups.com> > Envoyé: Mercredi 17 Juin 2009 21:13:55 GMT +01:00 Amsterdam / Berlin / Berne > / Rome / Stockholm / Vienne > Objet: [development-axapta] How do I update a db field from another field... > > > > Being new to Ax Development have created a few forms, and now I need to add > the relation to the table. How would I go abouts doing that? > Where would I put the code, this is what I am most confused on. the placement > of the code. Will I need to add a new method, and how do the methods get > executed at what point). > > Example: I want the PojInvoiceTable.ProjInvoiceProjID == MyTable.ID > > Any assistance would be appreciated. > > ciao > > G >