Hi Isomorphic,
how would you solve the following usecase best?
I want to import data with the BatchUploader. As the user export will have different columns by default than what I am expecting, I need a mapping csvColumnName -> dsFieldName.
You already have that in .ds.xml with uploadFieldName. In order to have this dynamic I'm using a DynamicDSGenerator that replaces the entries for uploadFieldName on the fly.
My table for the mapping looks like this (excerpt):
I know the number of rows for each SETTINGS_LEADIMPORT_ID in advance, it's 20. Users have to edit the CSVFIELDNAME for these 20 rows.
As you can see, I have many rows for what should be "one logical record" when maintaining the mapping.
Now the question:
How would you display the data best in a ListGrid or DynamicForm? There is some pivoting needed.
Currently I can think of two possibilities:
Could you please advise?
Thank you & Best regards
Blama
how would you solve the following usecase best?
I want to import data with the BatchUploader. As the user export will have different columns by default than what I am expecting, I need a mapping csvColumnName -> dsFieldName.
You already have that in .ds.xml with uploadFieldName. In order to have this dynamic I'm using a DynamicDSGenerator that replaces the entries for uploadFieldName on the fly.
My table for the mapping looks like this (excerpt):
Code:
<field foreignKey="T_SETTINGS_LEADIMPORT.ID" [B]name="SETTINGS_LEADIMPORT_ID"[/B] type="integer" required="true" /> <field [B]name="DSXMLFIELDNAME"[/B] length="30" type="text" escapeHTML="true" [B]canEdit="false"[/B] required="true"> <title><fmt:message key="fieldNameApplication" /></title> </field> <field [B]name="CSVFIELDNAME"[/B] length="30" type="text" escapeHTML="true"> <title><fmt:message key="fieldNameCSVFile" /></title> <validators> <validator serverOnly="true" type="isUnique" [B]criteriaFields="SETTINGS_LEADIMPORT_ID"[/B]></validator> </validators> </field>
As you can see, I have many rows for what should be "one logical record" when maintaining the mapping.
Now the question:
How would you display the data best in a ListGrid or DynamicForm? There is some pivoting needed.
Currently I can think of two possibilities:
- Pivoting in an Oracle View, insteadOf-trigger on the view that distributes the values to the rows.
- 20 DynamicForms, each with just one TextItem (for every DSXMLFIELDNAME one DynamicForm), load and save as Queue
Could you please advise?
Thank you & Best regards
Blama
Comment