Hawk
-
Posts
25 -
Joined
Posts posted by Hawk
-
-
I'm getting this error on composition when I have a field name in my OnJobStart rule. "no data source defined or data could not be loaded"
I does preview correctly. When I remove the field name it previews and composes correctly.
This works
var filename = 'CompanyName' + '.txt';
XDF = new ExternalDataFileEx("C:\\Shared\\130515_IdealSolutions\\" + filename, "\t");
return XDF.valid;
This Does Not
var filename = Field("ER.Name").replace(/ /g, '') + '.txt';
XDF = new ExternalDataFileEx("C:\\Shared\\130515_IdealSolutions\\" + filename, "\t");
return XDF.valid;
-
I'm trying to create a table form an external data file. There could be 1 or more matches in the external file from my main data file. I can't get the first matching row to display in my pdf. if there is only one row I get nothing.
Here is my rule;
if(FusionPro.Composition.isPreview == true || FusionPro.inValidation == true)
{
Rule("OnJobStart");
}
var numRecsExtDF = XDF.recordCount;
var myTable = '<table columns=16><column width=17400><column width=8500><column width=7200><column width=4400><column width=2875><column width=2875>'
myTable += '<column width=2875><column width=2875><column width=2875><column width=2875><column width=2875><column width=2875><column width=2875>'
myTable += '<column width=2875><column width=2875><column width=2875>';
for (recordWalker = 1; recordWalker <= numRecsExtDF; recordWalker++)
{
if (XDF.GetFieldValue(recordWalker, 3) == Field("EE.SSN"))
{
var ssNo = Right(XDF.GetFieldValue(recordWalker, 8),4)
myTable += '<row minheight=3650><cell margins="top:030;bottom:030"><p br=false quad=C>'
+ XDF.GetFieldValue(recordWalker, 4) + ' ' + XDF.GetFieldValue(recordWalker, 6)
myTable += '<cell margins="top:030;bottom:030"><p br=false quad=C>'+ "***-**-" + ssNo
myTable += '<cell margins="top:030;bottom:030"><p br=false quad=C>'+ XDF.GetFieldValue(recordWalker, 9)
myTable += '<cell margins="top:030;bottom:030"><p br=false quad=C>'+ XDF.GetFieldValue(recordWalker, 10)
myTable += '<cell margins="top:030;bottom:030"><p br=false quad=C>'+ XDF.GetFieldValue(recordWalker, 11)
myTable += '<cell margins="top:030;bottom:030"><p br=false quad=C>'+ XDF.GetFieldValue(recordWalker, 12)
myTable += '<cell margins="top:030;bottom:030"><p br=false quad=C>'+ XDF.GetFieldValue(recordWalker, 13)
myTable += '<cell margins="top:030;bottom:030"><p br=false quad=C>'+ XDF.GetFieldValue(recordWalker, 14)
myTable += '<cell margins="top:030;bottom:030"><p br=false quad=C>'+ XDF.GetFieldValue(recordWalker, 15)
myTable += '<cell margins="top:030;bottom:030"><p br=false quad=C>'+ XDF.GetFieldValue(recordWalker, 16)
myTable += '<cell margins="top:030;bottom:030"><p br=false quad=C>'+ XDF.GetFieldValue(recordWalker, 17)
myTable += '<cell margins="top:030;bottom:030"><p br=false quad=C>'+ XDF.GetFieldValue(recordWalker, 18)
myTable += '<cell margins="top:030;bottom:030"><p br=false quad=C>'+ XDF.GetFieldValue(recordWalker, 19)
myTable += '<cell margins="top:030;bottom:030"><p br=false quad=C>'+ XDF.GetFieldValue(recordWalker, 20)
myTable += '<cell margins="top:030;bottom:030"><p br=false quad=C>'+ XDF.GetFieldValue(recordWalker, 21)
myTable += '<cell margins="top:030;bottom:030"><p br=false quad=C>'+ XDF.GetFieldValue(recordWalker, 22)
}
}
myTable += '</table>';
return myTable;
-
Creator: FusionPro VDP Producer 8.2.5
-
Hi. I'm trying to insert a variable image from a url. The url is in an external data file. This previews and produces a correct pdf file if I compose localy. When using VDP Producer I get no images.
This is the message that I get.
Check for file existence and that it is of the proper format.
Graphic is not found or is not processed properly: Error downloading URL: http://blackbooklivemarketing.net/Ev...280_032_3U.jpg.
Can I even do this? If so, How?
Thanks,
Larry
-
I get a error when trying to upload an attachment. Can I email the files to you?
Thanks,
Larry
-
Is there a maximum number of records allowed in an external data file?
I have an external data file with over 200,000 records, and I can't get all of the records to populate. If I pull out samples in a smaller file it works fine. Other wise it is inconsistant. It seams that after it gets to a certian record it fails. There is no error message, it just doesn't work.
Thanks,
Larry
-
I have an external data. The first one is the id that matches a record in the main data file. The second is categories, each category can be listed more than once for each Id. The third is category codes. I am trying to create a table that lists the unique categories with the codes for that category listed beneath for each id. Any help would be appriciated.
Thanks,
Larry
-
I am creating a table from an external data file. I need the text color of a row to be red if there is a Y in the last column of the external file. Can't seem to get it.
Here is what i have so far.
numRecsExtDF = XDFTop.recordCount; var numRecsExtDF = XDFTop.recordCount; var myTable = '<table columns="6" Space="Above:180;Below:180" Alignment="Center" Margins="Top:60;Bottom:60;Left:60;Right:60"' myTable +='BoxRules="Top:thin,BLACK;Bottom:thin,BLACK;Left:thin,BLACK;Right:thin,BLACK" HeaderRules="Rule:thin,BLACK;" ' myTable +='ColumnRules="Freq:1;Default:thin,BLACK;Alternate:thin,BLACK" RowRules="Freq:1;Default:thin,BLACK;Alternate:thin,BLACK">' myTable +='<column width=8000><column width=8000><column width=12000><column width=8000><column width=8000><column width=8000>' myTable += '<row><cell margins="top:030;bottom:030"><p br=false quad=C>Provider Type<br />(renering service)' myTable += '<cell margins="top:030;bottom:030"><p br=false quad=C>Last Known<br />ICD-9 Code' myTable += '<cell margins="top:030;bottom:030"><p br=false quad=C>ICD-9<br />Description' myTable += '<cell margins="top:030;bottom:030"><p br=false quad=C>Date Last<br />Confirmed' myTable += '<cell margins="top:030;bottom:030"><p br=false quad=C>DHCC<br />Grouping' myTable += '<cell margins="top:030;bottom:030"><p br=false quad=C>Need to be<br />Confirmed in<br />2012 (Y/N)' for (i=0; i <= numRecsExtDF; i++) { if (XDFTop.GetFieldValue(i, 0)==Field("hicn")) { myTable += '<row>' myTable += '<cell margins="top:030;bottom:030"><p br=false quad=C>'+ NormalizeEntities(XDFTop.GetFieldValue(i, 1)) myTable += '<cell margins="top:030;bottom:030"><p br=false quad=C>'+ NormalizeEntities(XDFTop.GetFieldValue(i, 2)) myTable += '<cell margins="top:030;bottom:030"><p br=false quad=C>'+ NormalizeEntities(XDFTop.GetFieldValue(i, 3)) myTable += '<cell margins="top:030;bottom:030"><p br=false quad=C>'+ NormalizeEntities(XDFTop.GetFieldValue(i, 4)) myTable += '<cell margins="top:030;bottom:030"><p br=false quad=C>'+ NormalizeEntities(XDFTop.GetFieldValue(i, 5)) myTable += '<cell margins="top:030;bottom:030"><p br=false quad=C>'+ NormalizeEntities(XDFTop.GetFieldValue(i, 6)) } } myTable += '</table>'; return myTable;
I can't even change the color with a color tag.
I'm using VDP Creator 8. And Acrobat 9.
Thanks,
Larry
-
We are running FusionPro Direct Version 7.2P1k on Windows server 2008 R2 the server has Accrobat X. I am using Accrobat 9.4.6 with FusionPro Version 7.2P1k on Windows XP Pro. The ports 12093 and 12083 are open for UDP, the rest are TCP.
Thanks,
Larry
-
I am getting error 4555 when processing a job in FusionPro Direct. I have open all of the required ports. But port 12093 and 12083 show as Blocked.
Thanks,
Larry
External data file no data source defined or data could not be loaded
in FusionPro® VDP Creator
Posted
It seems that the OnJobStart rule will not run with a field in it. I cant get the filename variable to print.
This is what I got;