Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10671

Re: How to Link to Object in a System Form

$
0
0

Hi Jonny,

 

The DBDatasource collection contains all the "tables" used by the form. They can be access by numerical index (just as in your code) or by "name" index.

 

sCardCode = oQuotationForm.DataSources.DBDataSources.Item("OQUT").GetValue("CardCode", 0);
sProject = oQuotationForm.DataSources.DBDataSources.Item("OQUT").GetValue("Project", 0);

To access the "body" (I'm assuming you mean the lines) simply use the table that stores the lines (QUT1).

 

ItemCode = oQuotationForm.DataSources.DBDataSources.Item("QUT1").GetValue("ItemCode", 0);
Quantity = oQuotationForm.DataSources.DBDataSources.Item("QUT1").GetValue("Quantity", 0);


This would return you the information for the first line. Change the index (0 in the above case) to access other lines.

Hope this helps.


Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn


Viewing all articles
Browse latest Browse all 10671

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>