Expand my Community achievements bar.

SOLVED

Customize exported data

Avatar

Level 4

The submit button includes ALL the PDF's fields in the XML file it generates.  Is it possible to pick and choose the fields that are used to create this XML file?   If yes, how please?

1 Accepted Solution

Avatar

Correct answer by
Level 10

You could also construct your own xml data in hidden fields.

This example is for making a csv file but you could do the same by building the xml structure:

this.rawValue = empSub.AeroplanNumber.rawValue + "," +
empSub.EMPLastName.rawValue + "," +
empSub.EMPFirstName.rawValue + "," +
empSub.AeroplanNumber.rawValue + "," +
areacode + "," +
phonenumber + "," +
empSub.EMPEmail.rawValue + "," +
accountSub.Client.rawValue + "-" +
accountSub.Responsibility.rawValue + "-" +
accountSub.ServiceLine.rawValue + "-" +
accountSub.Project.rawValue + "," +
privSub.Privileges.rawValue + "," +
empSub.EMPMinistry.rawValue;

View solution in original post

6 Replies

Avatar

Level 4

Sorry people for bringing this question forward again... but I'm on a serious deadline (project due tomorrow) and I really need to know if it is possible to customize the XML data file or not.   And if yes, how?

PLEASE can someone help??

Avatar

Former Community Member

If you do not want a field in yor data file then set it sbinding to None. Note that you cannot change the binding programmatically. Once the form is rendered with a set of bindings then you are done. They cannot be changed.

Paul

Avatar

Level 4

Well drats! We were hoping to be able to split the exported XML data into 4 separate packets and e-mail each packet separately.

Back to the drawing board! Thanks Paul.

Avatar

Former Community Member

You could split the data on the receiving side using a serverside program (like LiveCycle) or a servlet and have that do the splitting and emailing for you.

Paul

Avatar

Correct answer by
Level 10

You could also construct your own xml data in hidden fields.

This example is for making a csv file but you could do the same by building the xml structure:

this.rawValue = empSub.AeroplanNumber.rawValue + "," +
empSub.EMPLastName.rawValue + "," +
empSub.EMPFirstName.rawValue + "," +
empSub.AeroplanNumber.rawValue + "," +
areacode + "," +
phonenumber + "," +
empSub.EMPEmail.rawValue + "," +
accountSub.Client.rawValue + "-" +
accountSub.Responsibility.rawValue + "-" +
accountSub.ServiceLine.rawValue + "-" +
accountSub.Project.rawValue + "," +
privSub.Privileges.rawValue + "," +
empSub.EMPMinistry.rawValue;

Avatar

Level 4

YOU ARE BRILLIANT!!!!!! I love people who can think outside the box -- or in the case -- software limitations!!

Thank you so much ….b