Forum: Tables & Charts
June 1st, 2017, 10:48 AM
|
Replies: 67
Views: 136,517
Re: JavaScript Table API – The Basics
It's the <title> tag, as documented in the FusionPro Tags Reference. But there's no corresponding property in the JavaScript table API, because, quite frankly, it's just as easy to put the title in...
|
Forum: Tables & Charts
May 4th, 2017, 11:33 AM
|
Replies: 67
Views: 136,517
Re: JavaScript Table API – The Basics
Yes, in FusionPro 9.3.36 and later, you can specify the leading mode as 9.3 on the Global Paragraph Settings dialog, which improves several issues like this regarding text layout in tables.
|
Forum: Tables & Charts
January 26th, 2015, 01:52 PM
|
Replies: 67
Views: 136,517
|
Forum: Tables & Charts
January 26th, 2015, 09:09 AM
|
Replies: 67
Views: 136,517
Re: JavaScript Table API – The Basics
Setting the margins should work. Can you post your code?
There's no copyfitting in tables. Each cell expands as necessary to accommodate its contents.
|
Forum: Tables & Charts
November 25th, 2013, 03:13 PM
|
Replies: 67
Views: 136,517
Re: JavaScript Table API – The Basics
Thanks for the sample job. I played around with it a bit, and I can reproduce what you're seeing.
However, it's not so much that the text is aligned to the top; it's that it's shifted up very...
|
Forum: Tables & Charts
November 5th, 2013, 10:18 AM
|
Replies: 67
Views: 136,517
Re: JavaScript Table API – The Basics
Okay, well, that's a little more information, although it's still hard to tell what's going on without the entire job to look at.
Also, it would have been more useful to copy-and-paste the...
|
Forum: Tables & Charts
November 4th, 2013, 01:24 PM
|
Replies: 67
Views: 136,517
Re: JavaScript Table API – The Basics
It's hard to say without seeing more of the job. Maybe you have the wrong row or cell number. Maybe the text content in the cell has some <br> or <p> tags in it. It might depend on your Legacy...
|
Forum: Tables & Charts
May 24th, 2013, 04:03 PM
|
Replies: 67
Views: 136,517
Re: JavaScript Table API – The Basics
No, sorry, there's no way to specify a shading percentage on a table border or cell, either with the JavaScript Table API or with tagging. You have to create a new color.
|
Forum: Tables & Charts
April 10th, 2013, 05:12 PM
|
Replies: 67
Views: 136,517
|
Forum: Tables & Charts
March 20th, 2013, 05:36 PM
|
Replies: 67
Views: 136,517
|
Forum: Tables & Charts
March 14th, 2013, 04:27 PM
|
Replies: 67
Views: 136,517
Re: JavaScript Table API – The Basics
The "var c" loop has to be inside the "var r" loop, like so:
var myTable = new FPTable;
myTable.AddColumns(7200, 7200, 10800, 7200, 7200, 7200, 7200, 7200);
var headerRow = myTable.AddRow();...
|
Forum: Tables & Charts
March 14th, 2013, 10:16 AM
|
Replies: 67
Views: 136,517
Re: JavaScript Table API – The Basics
Sure, inside the "r" loop, after the call to AddRow, you can do something like this:
for (var c = 0; c < myTable.Columns.length; c++)
{
row.Cells[c].Font = "Arial";
...
|
Forum: Tables & Charts
March 13th, 2013, 02:33 PM
|
Replies: 67
Views: 136,517
Re: JavaScript Table API – The Basics
Oh my goodness! Yes, there is a much easier way to do all of that, with a simple "for" loop:
var myTable = new FPTable;
myTable.AddColumns(7200, 7200, 10800, 7200, 7200, 7200, 7200, 7200);
var...
|
Forum: Tables & Charts
March 13th, 2013, 01:22 PM
|
Replies: 67
Views: 136,517
Re: JavaScript Table API – The Basics
Sure. As you're going through and building up the table with calls to FPTable.AddRow(), just don't add a row if there's nothing to populate it with. You may need to change the logic to call...
|
Forum: Tables & Charts
January 3rd, 2013, 10:37 AM
|
Replies: 67
Views: 136,517
Re: JavaScript Table API – The Basics
Are you sure that those data fields have values for the record you're composing or previewing? What happens if you just use hard-coded data instead? Try this rule verbatim and see what you get:...
|
Forum: Tables & Charts
January 3rd, 2013, 10:25 AM
|
Replies: 67
Views: 136,517
Re: JavaScript Table API – The Basics
FPTable.SetContents is a function, so you don't want the equal sign after it. The last few lines should look like this:
myTable.Rows[0].SetContents("Earnings", "Company Paid");...
|
Forum: Tables & Charts
April 4th, 2012, 10:37 AM
|
Replies: 67
Views: 136,517
Re: JavaScript Table API – The Basics
You can iterate through the cells and set whatever attributes you want, as in this example (http://forums.printable.com/showpost.php?p=10022&postcount=2). Also take a look at the Money Table rule in...
|
Forum: Tables & Charts
November 29th, 2011, 07:45 AM
|
Replies: 67
Views: 136,517
|
Forum: Tables & Charts
November 28th, 2011, 04:17 PM
|
Replies: 67
Views: 136,517
Re: JavaScript Table API – The Basics
Yes, that's correct. You could also do this:
text.Rows[0].Cells[0].Rulings.Top.Color = "Red";
text.Rows[0].Cells[0].Rulings.Top.Thickness = "Thin";
text.Rows[0].Cells[0].Rulings.Bottom.Color =...
|
Forum: Tables & Charts
November 7th, 2011, 03:24 PM
|
Replies: 67
Views: 136,517
Re: JavaScript Table API – The Basics
This is called "straddle" in FusionPro. From the original post:
These properties correspond to the HStraddle and VStraddle attributes of the <cell> tag, as documented in the Tags Reference Guide.
|
Forum: Tables & Charts
October 26th, 2011, 12:48 PM
|
Replies: 67
Views: 136,517
|
Forum: Tables & Charts
June 22nd, 2011, 03:47 PM
|
Replies: 67
Views: 136,517
Re: JavaScript Table API – The Basics
Yes, you can use the alignment attribute of the <table> tag to control the alignment of the table itself within the text frame, as documented in the FusionPro Tags Reference Guide. Specifically,...
|
Forum: Tables & Charts
March 29th, 2011, 11:59 AM
|
Replies: 67
Views: 136,517
|
Forum: Tables & Charts
March 29th, 2011, 11:12 AM
|
Replies: 67
Views: 136,517
Re: JavaScript Table API – The Basics
If you only want to generate the chart data dynamically, that's easy to do with JavaScript. You don't need a .txt file at all. The tagging for a chart is much simpler than it is for a table - the...
|
Forum: Tables & Charts
March 29th, 2011, 09:49 AM
|
Replies: 67
Views: 136,517
Re: JavaScript Table API – The Basics
Not at this time. Chart formats are defined in the Chart Properties GUI, not via tags as tables are, so wrapping that functionality in a JavaScript object is much more complicated. You can use the...
|