Jump to content

Multi-Line Record Input Help


Recommended Posts

I have a job that looks like the perfect job for the multi-Line Record Input feature, but I'm unsure has how to proceed. I've attached a sample template with data and a sample output. I've create a 3 column text box for this data and defined it as a multi-Line Record. From here I'm a little lost. I know I ned to call out the FusionPro.GetMultiLineRecords(), but unsure how. Once again i know what I need to say just not how to say it it javascript. Ugh.

I need to rerun the "Check Num", "Check Date and "Check Amount" for each record. The record changes is every time the name changes.

FusionPro 11.1.2 Mac Indesign 2020 and latest Acrobat.

Thanks for the help.

Sample_Job_Collect.zip

Link to comment
Share on other sites

This rule should work:

var result = "";

var data = FusionPro.GetMultiLineRecords();
for (var r = 1; r <= data.recordCount; r++)
{
   result += "Check#: " + data.GetFieldValue(r, "Check Number") + "\n";
   result += "Check Date: " + data.GetFieldValue(r, "Check Date") + "\n";
   result += "Amount: " + data.GetFieldValue(r, "Check Amt") + "\n\n";
}

return result;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...