Jump to content

randdevin

Registered Users - Approved
  • Posts

    17
  • Joined

Posts posted by randdevin

  1. Think I got it working.

    I added a simple If statement

     

    var numColumns = (names.length < 6) ? 1 : 2;
    for (var c = 1; c <= numColumns; c++)
    if ( numColumns <= 1 ) 
       myTable.AddColumn(32000);
    else
       myTable.AddColumn(16000);

     

    Thanks Dan..

    I will start modifying the format for the customers needs..

  2. Dan,

     

    Looking over what you came up with and If I understand it correctly

     

    This code is deremiitng how many columns.

     

    var numColumns = (names.length < 6) ? 1 : 2;

     

    And this part is how wide to make them and how many based on numColumns

    for (var c = 1; c <= numColumns; c++)
       myTable.AddColumn(16000);

     

    If that is the case then I'm guess adding another if statement if less then 5 then make the column 32000. ( Double)?

  3. So I figured out 2 ways I can place multiple fields in to my Cells.

     

    First would be calling multiple Fileds as part as the Table Rule

     

    myTable.Rows[0].Cells[0].Content = Field("Name1") + '<br>' + Field("Location1") + '<br>' + Field("Phone1");

     

    Or I could call make another Rules for each cell

    return [
       Field("Name1"),
       Field("Location1"),
       Field("Phone1")
    ].join('<p verticalstart=topofcolumn>');

     

    Then the Table rule would be like this

    myTable.Rows[0].Cells[1].Content = Rule("Cell1");

     

    My question still stands on how to write the Table for the Varying number of Rows and Columns. Any Help in guiding me would be great. Thanks

  4. Whats the Frodo tutorial?

     

    Right now I've been able to write a simple table like this example below.

    I still need to figure many things things like how do I even get other fields added to a cell?

     

    But the bigger issue is how do I make this dynamic based on the fields used.

    I've uploaded a sample data set that I made to for testing.

     

    var myTable = new FPTable;
    myTable.AddColumns(10800, 10800);
    myTable.AddRows(3);
    myTable.Rows[0].Cells[0].Content = Field("Name1");
    myTable.Rows[0].Cells[1].Content = Field("Name2");
    myTable.Rows[1].Cells[0].Content = Field("Name3");
    myTable.Rows[1].Cells[1].Content = Field("Name4");
    myTable.Rows[2].Cells[0].Content = Field("Name5");
    myTable.Rows[2].Cells[1].Content = Field("Name6");
    return myTable.MakeTags()

    DataFile.zip

  5. Glad to here that it's possible.. I did not want to deep dive into to much info from the start if was not going to work.

     

    So the Table needs to fit with in a certain size window. When it goes to a single column the width can stay the same.. I was thinking just merge them would work just fine.

  6. I've got a project that the customer is wanting a table like layout. I've never have used Fusion Pro Tables so this will be a learning curve.

     

    The issue is the amount of cells varies depending on the amount of info.

     

    In this example 10 cells Max. ( 2 Columns 5 rows ).

    I don't see an issue if they are suppling 10 names.

     

    The issue is they are wanting to go to a single Column if their is less then 6 names. If their is more then 5 Names and an odd number of names they want the last Name to merge into a single Column.

     

    Providing 3 screen shots of different options.

     

    Is this even Possible? If so any help getting this done would be extremely helpful. Thanks Devin

    Tables.zip

  7. Customer is wanting to force an email address to use a certain FQDN.

    they only want the customer to enter everything before the @.

     

    Issue is some people can't read and they enter the full email address.

    So were looking at removing the complexity for the end users and create a rule that is smart enough to remove the @ and everything after.

     

    Thanks for your help.

×
×
  • Create New...