Jump to content

mattg

Registered Users - Approved
  • Posts

    4
  • Joined

Converted

  • FusionPro Products
    Yes

Converted

  • FusionPro VDP software version
    9.2.31

Converted

  • OS
    Mac OS 10.9.5

Converted

  • Acrobat Version
    Acrobat X (10)

mattg's Achievements

Rookie

Rookie (2/14)

  • First Post Rare
  • Conversation Starter Rare
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

10

Reputation

  1. Dan, Now I'm having an issue where I set a cell's color after I've created the table based on a variable. It will work for the first cell but it will not for the remaining two. See below. myTable.Rows[0].Cells[0].Font="R Frutiger Roman"; myTable.Rows[0].Cells[0].TextColor="Black"; myTable.Rows[0].Cells[0].SetBorders("Medium", "Black", "Top"); myTable.Rows[0].Cells[0].SetBorders("Thin", "Gray", "Bottom"); myTable.Rows[0].Cells[0].Content = Field("numberPayments") + " payments @ $0 followed by"; myTable.Rows[0].Cells[0].VAlign = "Middle"; myTable.Rows[0].Cells[0].ShadePct = 10; myTable.Rows[1].Cells[0].Font="R Frutiger Roman"; myTable.Rows[1].Cells[0].TextColor="Black"; myTable.Rows[1].Cells[0].SetBorders("Thin", "Gray", "Bottom"); myTable.Rows[1].Cells[0].Content = "Payment"; myTable.Rows[1].Cells[0].VAlign = "Middle"; myTable.Rows[1].Cells[0].ShadePct = 10; myTable.Rows[2].Cells[0].Font="R Frutiger Roman"; myTable.Rows[2].Cells[0].TextColor="Black"; myTable.Rows[2].Cells[0].SetBorders("Thin", "Black", "Bottom"); myTable.Rows[2].Cells[0].Content = "Rate"; myTable.Rows[2].Cells[0].VAlign = "Middle"; myTable.Rows[2].Cells[0].ShadePct = 10; ////////// if (Field("vendor") == "VendorA") myTable.Rows[0].Cells[0].ShadeColor = "Forest"; myTable.Rows[1].Cells[0].ShadeColor = "Forest"; myTable.Rows[2].Cells[0].ShadeColor = "Forest"; if (Field("vendor") == "VendorB") myTable.Rows[0].Cells[0].ShadeColor = "Warm Gray"; myTable.Rows[1].Cells[0].ShadeColor = "Warm Gray"; myTable.Rows[2].Cells[0].ShadeColor = "Warm Gray"; return myTable.MakeTags(); The example above will make the first row's cell color Forest, but the 2 remaining rows are set at Warm Gray. Where am I messing up? Thanks in advance.
  2. I have a client who needs to allow their users to upload 2 documents as attachments that will accompany a versioned product. They want to make these 2 documents required so I can't use the Attach Files by Line Item setting. I will not know how many pages the 2 documents will be so I need to know how to allow for multiple page file uploads into my versioned file so that the output file will contain the template page plus however many pages the user uploaded files are. Thanks in advance. Matt
  3. I am new to tables and I'm trying to work my way through it. The problem is that I need to change the ShadeColor of a cell based on a variable in my data file. I'm afraid I'm not that familiar with javascript to be able to set this up myself. I think the logic would be something like this. ///////////////////// if (field("myVariable") == "A") { return (myTable.Rows[0].Cells[2].ShadeColor = "Green"); } if (field("myVariable") == "B") { return (myTable.Rows[0].Cells[2].ShadeColor = "Blue"); } else return ""; // then have my table setup below... Thanks in advance.
×
×
  • Create New...