Go Back   MarcomCentral (PTI) and FusionPro User Communities > Search Forums

Notices

Showing results 1 to 25 of 26
Search took 0.01 seconds.
Search: Posts Made By: Dan Korn
Forum: Tables & Charts June 1st, 2017, 09:48 AM
Replies: 67
Views: 91,178
Posted By Dan Korn
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, 10:33 AM
Replies: 67
Views: 91,178
Posted By Dan Korn
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, 12:52 PM
Replies: 67
Views: 91,178
Posted By Dan Korn
Re: JavaScript Table API – The Basics

Yeah, there's a really old bug where the left and right margins are reversed. Also, 60 is a pretty small number. Try something like Right:100.
Forum: Tables & Charts January 26th, 2015, 08:09 AM
Replies: 67
Views: 91,178
Posted By Dan Korn
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, 02:13 PM
Replies: 67
Views: 91,178
Posted By Dan Korn
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, 09:18 AM
Replies: 67
Views: 91,178
Posted By Dan Korn
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, 12:24 PM
Replies: 67
Views: 91,178
Posted By Dan Korn
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, 03:03 PM
Replies: 67
Views: 91,178
Posted By Dan Korn
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, 04:12 PM
Replies: 67
Views: 91,178
Posted By Dan Korn
Re: JavaScript Table API – The Basics

Please start a new thread with questions not related to the table API, to keep this thread on-topic. Thanks.
Forum: Tables & Charts March 20th, 2013, 04:36 PM
Replies: 67
Views: 91,178
Posted By Dan Korn
Re: JavaScript Table API – The Basics

The answer is in post 9 in this same thread (http://forums.pti.com/showthread.php?p=8067#post8067).
Forum: Tables & Charts March 14th, 2013, 03:27 PM
Replies: 67
Views: 91,178
Posted By Dan Korn
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, 09:16 AM
Replies: 67
Views: 91,178
Posted By Dan Korn
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, 01:33 PM
Replies: 67
Views: 91,178
Posted By Dan Korn
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, 12:22 PM
Replies: 67
Views: 91,178
Posted By Dan Korn
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, 09:37 AM
Replies: 67
Views: 91,178
Posted By Dan Korn
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, 09:25 AM
Replies: 67
Views: 91,178
Posted By Dan Korn
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, 09:37 AM
Replies: 67
Views: 91,178
Posted By Dan Korn
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, 06:45 AM
Replies: 67
Views: 91,178
Posted By Dan Korn
Re: JavaScript Table API – The Basics

Please create a new thread with your specific question. If you can post an example, that would be great.
Forum: Tables & Charts November 28th, 2011, 03:17 PM
Replies: 67
Views: 91,178
Posted By Dan Korn
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, 02:24 PM
Replies: 67
Views: 91,178
Posted By Dan Korn
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, 11:48 AM
Replies: 67
Views: 91,178
Posted By Dan Korn
Re: JavaScript Table API – The Basics

Yes. I'll answer in that other thread to keep this one on a narrower topic.
Forum: Tables & Charts June 22nd, 2011, 02:47 PM
Replies: 67
Views: 91,178
Posted By Dan Korn
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, 10:59 AM
Replies: 67
Views: 91,178
Posted By Dan Korn
Re: JavaScript Table API – The Basics

Please start a new thread with your chart-specific questions, so that we can keep this thread about the table API. Thanks.
Forum: Tables & Charts March 29th, 2011, 10:12 AM
Replies: 67
Views: 91,178
Posted By Dan Korn
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, 08:49 AM
Replies: 67
Views: 91,178
Posted By Dan Korn
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...
Showing results 1 to 25 of 26

 
Forum Jump

All times are GMT -7. The time now is 03:41 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.