Hello All,
I have a scenario where:
1. I have a dynamic table.
2.Every Row has a Button for attaching the new File.
3. When we add new Row to the Table, I want to get the attached file name in the corresponding cell. i.e Cell2 in following example.
I have tried doing it this way
The script which I'm using on Add button is
app.execMenuItem("AddFileAttachment");
var o = event.target.dataObjects;
var n = "";
DataNode.Table1.Row1.Cell2.rawValue = "";
if (o !== null) {
for (var i = 0; i < o.length; i += 1) {
n = o[this.parent.index].name;
}
}var countVal = (DataNode.Table1.Row1.instanceManager.count-1);
xfa.resolveNode("DataNode.Table1.Row1["+countVal+"].Cell2").rawValue = n;
But I'm not able to display the attached file name in Cell2 of the Table.
How can we do it?
Thanks and Regards,
Nikhil
Views
Replies
Total Likes
Hello All,
I even tried doing the same using http://eslifeline.wordpress.com/2009/04/06/adding-attachments-to-pdf-form/
But I'm not able to add the file name to the table cell.
Can anyone please guide me through this?
Thanks and Regards,
Nikhil Joshi
Views
Replies
Total Likes
Try this instead of name (I'm assuming your code works and that the actual name comes through in your Cell2):
n = o[this.parent.index].path;
Kyle
Views
Replies
Total Likes