Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
DataDeploy multiple sub tables
marcussteiner
Hi all,
I'd like to fill the tables found in the attachment using DataDeploy for some replicants. We're running DD in a filelist mode and and run it against the tables. We also use External Data Source in order to generate the para_id and the link_id. We've for now created two Java classes in order to fill both para_id and link_id. I now need to know if there is "datadeploy way" of to get the para_id from the paragraph table into the link table when running over the replicant or if I need to do that using some java code. If I need some java then and any hint on how to do this would be highly appreciated.
Cheers
hollis
Find more posts tagged with
Comments
Migrateduser
You will be better off using the Tuple Pre Processor (TPP) so that you wouldnt have to write additional java code. In your TPP call your existing ID generator code.
As far as linking paraid to links table just include para_id in the <primary-keys> section and also in the <foreign key> section and link it to the appropriate table.
Hope this helps.
marcussteiner
well...
as far as the linking para_id to zzz_linklist not really.
still dont know how to call the para_id in this table. tried several ways but nothing worked. currently got this:
<column name="para_nbr" data-type="VARCHAR(255)" value-from-field="para_nbr" allows-null="no"/>
<group name="zzz_PARAGRAPHS" root-group="no" table="zzz_PARAGRAPHS">
<attrmap>
<column name="ID" data-type="VARCHAR(255)" value-from-field="data-record/0/imageID/0" allows-null="no"/>
<column name="para_nbr" data-type="VARCHAR(255)" value-from-callout="iwov:dd:java:sample.HDIWDataDeploy" allows-null="no"/>
<column name="textfield" data-type="VARCHAR(255)" is-replicant="yes" value-from-field="data-record/0/paragraph/[0-5]/Textfield/[0-5]" allows-null="no"/>
<column name="linktext" data-type="VARCHAR(255)" is-replicant="yes" value-from-field="data-record/0/paragraph/[0-5]/Linktext/[0-5]" allows-null="no"/>
</attrmap>
<keys>
<primary-key>
<key-column name="ID"/>
<key-column name="para_nbr"/>
</primary-key>
<foreign-key parent-group="zzz_component">
<column-pair parent-column="ID" child-column="ID" />
</foreign-key>
</keys>
</group>
<group name="zzz_LINKLIST" root-group="no" table="zzz_LINKLIST">
<attrmap>
<column name="ID" data-type="VARCHAR(255)" value-from-field="data-record/0/imageID/0" allows-null="no"/>
<column name="para_nbr" data-type="VARCHAR(255)" value-from-field="para_nbr" allows-null="no"/>
<column name="seq" data-type="VARCHAR(255)" value-from-callout="iwov:dd:java:sample.HDIWDataDeploy2" allows-null="no"/>
<column name="LINK" data-type="VARCHAR(255)" is-replicant="yes" value-from-field="data-record/0/paragraph/0/Linklist/[0-5]/link/0" allows-null="no"/>
</attrmap>
<keys>
<primary-key>
<key-column name="ID"/>
<key-column name="para_nbr"/>
<key-column name="seq"/>
</primary-key>
<foreign-key parent-group="zzz_PARAGRAPHS">
<column-pair parent-column="ID" child-column="ID" />
<column-pair parent-column="para_nbr" child-column="para_nbr" />
</foreign-key>
</keys>
</group>
any ideas?
cheers
hollis