Jump to content

geeool

Registered Users - Approved
  • Posts

    23
  • Joined

Converted

  • Location
    Hilliard, OH

Converted

  • FusionPro Products
    Yes

Converted

  • FusionPro VDP software version
    Creator 10.0.16

Converted

  • OS
    Windows 10

Converted

  • Acrobat Version
    Acrobat XI (11)

geeool's Achievements

Explorer

Explorer (4/14)

  • First Post Rare
  • Collaborator Rare
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

10

Reputation

  1. Hi All - I have a little bit of a unique situation here and I'm open to suggestions on how best to handle it. One of our sites is for a retailer that has stores across the United States and Canada. The item we sell the most, by far, is product tags. This is a FusionPro version product that is linked to an external data file. The buyer enters a SKU number, if it exists in the external data file, FusionPro builds the product tag, the buyer approves and adds to the shopping cart and all is good. When I fist programmed the item, if the entered SKU number didn't exist in the external data file, I had FusionPro display an error page saying that the tag doesn't exist. But, the error page, which was all black with the word ERROR in big bold yellow type, didn't keep some buyers from approving and adding it to their shopping cart. To prevent this, I used the FusionPro.Composition.Abort function, which prevented the buyer from adding a tag that didn't match to a SKU number in the external data file. The FusionPro.Composition.Abort function prevented the proof preview from displaying in Marcom and it also prevented the tag from being approved and added to the shopping cart. Problem solved. Now that Marcom isn't using Flash preview the FusionPro.Composition.Abort function no longer prevents from previewing or adding a non-existent tag to their shopping cart. Now, if a SKU doesn't exist in the external data file, there is an error message below the preview window in Marcom and the preview is a distorted blue/green thumbnail that comes from within the Marcom system (not sure what it is or where it comes from). I can change the programming so FusionPro returns my error page again in these circumstances, but my goal is to physically prevent the buyer from ordering a tag that doesn't exist. Any ideas on a way to do this?
  2. I have an online product that accesses an external data file to pull-in data for generating barcodes. Is it possible to use an OnRecordStart rule to pull in the data from the external data file, put the data into an array and then make the array available globally for use in other rules? Currently I'm putting the data from the external data file into variables and then creating an array. What I don't understand is how to make it available globally? I've tried using "return arrayname;" in the OnRecordStart rule, but that hasn't worked when trying to use the array in other rules. Is what I want to do possible? Any help is greatly appreciated. (FusionPro Creator 10.0.6, MarcomCentral storefront)
  3. I'm thinking I have the first option worked out. Determine the number of items. Create a two column table where the row count is half the item count (or half + 1 for an odd number of items). Then place the items in the table. That should work - thanks!
  4. Yes, they are placing orders with "Error" on the page. Repeatedly. Unfortunately, when this happens I'm tasked with contacting the buyer and explaining that the tags don't exist and we are cancelling their order. The good thing about FusionPro.Composition.Abort is that it prevents the buyer from buying the non-existing tags. I think I will stick with it and just include extensive instructions above the form about what to do if they get the error message. Thanks for the feedback!
  5. Thanks for the reply. I looked at adding a second table, but if I have columns turned off that would mean I would need a two column table and any overflow text would need to flow from the first column to the second. How do you code that? Everything I've seen about overflow text talks about creating an overflow page.
  6. I know this should go under the MarcomCentral area, but I put in a request to join a couple weeks ago and haven't been granted access yet - my apologies for posting here. In a MarcomCentral site I have price tags setup as a variable item. The buyer enters their pricing information as well as the product SKU number. The SKU number is checked against an external data file. If it exists, then FusionPro pulls in PDF art for that specific tag. If it doesn't exist, it pulls in an error page with the word 'ERROR' written in big red text. The problem is that buyers are still placing orders for tags that do not exist. I did a little research and found the FusionPro.Composition.Abort() function and added it to my programming. It works wonderful and prevents buyers from ordering tags that don't exist. My only issue is that I would like to customize the error message and so far I haven't been able to. Below is the code I'm using. Is it formatted correctly? Is there away to return a custom error message? FusionPro.Composition.Abort(["Please check and make sure the Item Number was entered correctly." , false]);
  7. Hi, I have a bunch of recipe cards and I'm working on programming FusionPro to merge them into a layout. Each card has an ingredient list formatted as a table. I have that programmed and it works fine. My problem is that below the ingredient list is a list of tools required for producing the recipe. The tool list is in a two column format and it needs to move with the ingredient table so it is always the same distance below the table. In my text frame I have my rule for my ingredient table, a rule for my tool list and I have set the text frame to have two columns. The problem is that when the tool list starts the second column, the text goes to the top of the frame and is overlapping the table. I have attached screen captures of what I'm trying to achieve and what I am achieving. Is there a way to do this? I've looked through the tag reference guide but I don't see any tags for creating a paragraph that has columns. I also don't see any documentation for feeding overflow content from one table cell into another one. Any advice is appreciated. (FusionPro Creator 10.0.16 on Windows 10)
  8. Hi, I have a business card where my client wants to use a carrot '>' symbol between the label and the phone number (see attached screen capture for reference). I decided to use a table for laying out the numbers because the top number will sometimes have an extension, so it needs to float. As I'm building my table and testing it, I'm finding that the carrot '>' symbol won't display. I've tried escaping it, but that hasn't worked. var office = 'O '+'/\(>\)/ '+' '+Rule("OfficePhoneRULE")+' Ext.'+Field("Ext.");Full table code below. Any suggestions? var table = new FPTable; var NoR = 3// NoR = number of rows (one less than actual) // Setting the table width of the columns table.AddColumns(6000, 1000, 10000); table.AddRows(4); // Adds the number of rows to the table. for(a=0;a<=NoR;a++) // Counter for building the rows (rows 0 thru 3) { for(b=0;b<1;b++) // Counter for building the cells (cell 0 ) { table.Rows[a].Cells[b].SetBorders("Thin", "Red", "Top", "Bottom", "Left", "Right"); // Adds red line around table cell table.Rows[a].Cells[b].Margins = new FPTableMargins; // This needs to be set every time the margins change table.Rows[a].Cells[b].Margins.Top = 55; // I had to have a larger Top Margin to make the text look centered between the top and bottom borders table.Rows[a].Cells[b].Margins.Bottom = 55; table.Rows[a].Cells[b].Margins.Left = 200; table.Rows[a].Cells[b].Margins.Right = 200; table.Rows[a].Cells[b].Font = "Knockout HTF31-JuniorMiddlewt"; // This sets the font for the first cell, the second is set at the text frame. table.Rows[a].Cells[b].TextColor = "Black"; // This sets the font for the first cell, the second is set at the text frame. } for(c=1;c<2;c++) // Counter for building the cells (cell 1) { table.Rows[a].Cells[c].SetBorders("Thin", "Red", "Top", "Bottom", "Left", "Right"); // Adds red line around table cell table.Rows[a].Cells[c].Margins = new FPTableMargins; // This needs to be set every time the margins change table.Rows[a].Cells[c].Margins.Top = 55; // I had to have a larger Top Margin to make the text look centered between the top and bottom borders table.Rows[a].Cells[c].Margins.Bottom = 55; table.Rows[a].Cells[c].Margins.Left = 200; table.Rows[a].Cells[c].Margins.Right = 200; } for(d=2;d<3;d++) // Counter for building the cells (cell 2) { table.Rows[a].Cells[d].SetBorders("Thin", "Red", "Top", "Bottom", "Left", "Right"); // Adds red line around table cell table.Rows[a].Cells[d].Margins = new FPTableMargins; // This needs to be set every time the margins change table.Rows[a].Cells[d].Margins.Top = 55; // I had to have a larger Top Margin to make the text look centered between the top and bottom borders table.Rows[a].Cells[d].Margins.Bottom = 55; table.Rows[a].Cells[d].Margins.Left = 200; table.Rows[a].Cells[d].Margins.Right = 200; } } for(i=0;i<=4;i++) { //var prep_field_num = i+1; //var prep_field = 'Instruction'+prep_field_num; var ext = Field("Ext."); var office = 'O '+'/\(>\)/ '+' '+Rule("OfficePhoneRULE")+' Ext.'+Field("Ext."); var store = Field("S"); var mobile = Field("M"); var fax = Field("F"); if (ext != "") { table.Rows[0].Cells[0].Margins = new FPTableMargins; // This needs to be set every time the margins change table.Rows[0].Cells[0].Margins.Top = 65; // I had to have a larger Top Margin to make the text look centered between the top and bottom borders table.Rows[0].Cells[0].Margins.Bottom = 40; table.Rows[0].Cells[0].Margins.Left = 200; table.Rows[0].Cells[0].Margins.Right = 200; table.Rows[0].Cells[0].Font = "Knockout HTF31-JuniorMiddlewt"; table.Rows[0].Cells[0].PointSize= "8"; table.Rows[0].Cells[0].HStraddle = 3; table.Rows[0].Cells[0].Content = office; } if (store != "") { // if field contains *h2* it will be a headline table.Rows[1].Cells[1].Margins = new FPTableMargins; // This needs to be set every time the margins change table.Rows[1].Cells[1].Margins.Top = 65; // I had to have a larger Top Margin to make the text look centered between the top and bottom borders table.Rows[1].Cells[1].Margins.Bottom = 40; table.Rows[1].Cells[1].Margins.Left = 200; table.Rows[1].Cells[1].Margins.Right = 200; table.Rows[1].Cells[1].Font = "Knockout HTF31-JuniorMiddlewt"; table.Rows[1].Cells[1].PointSize= "8"; table.Rows[1].Cells[1].Content = store; //removing the *h2* in front of the field content } else { // When an empty field is encountered, break loop and build table break; } } table = table.MakeTags(); // This is required return table; // This is required Thanks for the help.
  9. #2 worked. Also, thanks for explaining everything. It's always helpful to have a detailed response to better understand what is happening.
  10. Hi Dan, I've stripped everything but the essentials out of my FusionPro file and I'm running it from my desktop, but I'm still having the problem. I do have a resource called error.pdf (see my collected files). Any insight you can give me is appreciated. Thanks, Barcode Test6.zip
  11. Hi, This is for an online product. I'm using FusionPro Creator 10.0.6 on Windows. I am programming tags for people to customize and order online through a MarcomCentral site. There are 100 or so different tag backgrounds that are being called in based on the SKU number the buyer enters. I have these backgrounds setup as resources and they are named with the SKU number (for example: 356304.pdf). If the SKU number entered doesn't match one of the resources, then I want it to return error.pdf instead. My rule works fine if the resource is present, but it doesn't return the error.pdf if the resource is missing. Below is the code. Any suggestions would be appreciated. var tagImage = Resource(Field("SKU") + ".pdf", "graphic", true); if (tagImage.exists) { return tagImage; } else { return Resource("error.pdf"); }
  12. Hi, I need help thinking through a potential project. What I'm looking at is a directory of care providers. Each entry for a provider could have between 10 to 20 lines of data. It needs to be formatted in a three column layout (see diagram) and a provider's listing should never be split between columns. http://dsf.baesman.com/dsf/CustomImages/TableLayout.JPG Questions: 1) My thought for keeping the provider's listing intact is to create a formatted text resource and then return it using a rule. Is that a good way to approach this or is there a better way? 2) How do I get the data to flow from one column into the next and then into the next? Is it as simple as assigning the columns in my text frame or do I need special coding in my table rule to make that happen? All insight/thoughts are appreciated. Thanks
  13. Thanks Dan, The code worked but it looks like DSF doesn't allow more than one page of the PDF to be displayed at a time. As soon as I add a second graphic frame to display another page of the PDF file, DSF errors out. This is true even if I make the PDF a resource added during programming as opposed to uploading. Creator handles it fine on my computer, but DSF returns a "can not communicate" error every time.
×
×
  • Create New...