Can a dataport be created using multiple tables? Also, is there any good ducmentation on the subject? An example would be the Sales Shipment Header table and the customer table. I would want to export shipment information but include the customer name by linking the customer number in both tables.
Thanks,
Ed
0
Comments
FYI..
if you are familiar with GET'S
Using just the Sales Shipment Header as a dataitem......
you could use a get like Customer.GET("Sell-to Customer No.");
then assign a variable to the field you want to export
PaymentTerms := Customer."Payment Terms Code";
then put the variable name in the dataport field list to export.
I haven't tried it but it sounds good on paper
http://www.BiloBeauty.com
http://www.autismspeaks.org
It can be found on the product cd.
http://www.BiloBeauty.com
http://www.autismspeaks.org
I ended up creating a dataport on table Item Ledger Entries and using Customer.GET("Source No.") in the OnBeforeExportRecord() trigger to get my customer record details so I could have them in my CSV output along with all of the individual details I needed about their purchases for another project partner client doing promotions.
So when running my dataport I simply used whatever filters I needed at run-time.
FYI if you're not familiar with this you can get the related data you need by specifying a Global Variable Name:Customer, Type:Record, Table:Customer
Create global variables for the data you wish to GET from the customer record accordingly:
CustomerName
CustomerAddress
etc...
Then under OnBeforeExportRecord you would add:
etc...
Under Dataport Fields:
CustomerName
CustomerAddress
etc...
Hope this helps. I've learned a lot here since 2007, this forum has saved me many headaches. Good luck.
Thanks.
so just to insure no crashing you can wrap that code just a bit to stop any headaches.
http://www.BiloBeauty.com
http://www.autismspeaks.org
Thanks. I've modified my reports accordingly.
Thanks.