Hi,
I need a Dataport with 2 Dataitems(say Item & Table X). Both Tables have Item No. as Common Field. I need to create a dataport (Export)with 5-6 Item table fields and Need one field from Table X. How can i do it.
Hi Malajlo,
Acood to you I have one Dataitem (Say Item) , 2 Global Variable one for Table x and other for storing the value of the field in the Table X.
I wrote the code in the Onbeforexport on item, but how can i select the variable in Dataport field. It is giving error.
what is the relation between twop tables ? is it one-to-one relation or one-to-many relation or many-to-one or even many-to-many relation?
If the relation is Item(one) to (many)"Table X" ( that is a given item can have many records in the "Table X" associated with that item) then you should have "Table X" as dataitem in your report and lookup the values from the Item table.
If the relation is Item(many) to (one)"Table X" ( that is several items "belong" to a single record in Table X) then you use Item as dataitem on your report and lookup Table X value
Thnx all, Now the data is exported. Now I have One more query, when exporting Data in a csv file which property of Fields or Datport or Dataitem i will set so that the csv file will show coloumn heading as well.
My problem is that when exporting Data to a CSv file it is showing 5-6 coloumns but not the Coloumn heading.
I tried with caption Property of Fields, i tried writing Dataport fields as dataport.Filed in the source Exp but all is in Vain.
Put Integer DataItem, set filter of dataitem to Number=1, create variables for header, change DataportFelds of Integer as header variables, define header variables in onBeforeExport, change optionaly RecordSeparator <newline><newline>(but then disable import!).
Comments
You should type value.
Acood to you I have one Dataitem (Say Item) , 2 Global Variable one for Table x and other for storing the value of the field in the Table X.
I wrote the code in the Onbeforexport on item, but how can i select the variable in Dataport field. It is giving error.
Where is the problem?
If the relation is Item(one) to (many)"Table X" ( that is a given item can have many records in the "Table X" associated with that item) then you should have "Table X" as dataitem in your report and lookup the values from the Item table.
If the relation is Item(many) to (one)"Table X" ( that is several items "belong" to a single record in Table X) then you use Item as dataitem on your report and lookup Table X value
RIS Plus, LLC
My problem is that when exporting Data to a CSv file it is showing 5-6 coloumns but not the Coloumn heading.
I tried with caption Property of Fields, i tried writing Dataport fields as dataport.Filed in the source Exp but all is in Vain.
Please Suggest.
FYI
http://www.mibuso.com/forum/viewtopic.php?t=10564
http://www.BiloBeauty.com
http://www.autismspeaks.org