Expand my Community achievements bar.

_Bruce_Robertson
_Bruce_Robertson
Offline
Type
  • All
  • Questions
  • Discussions
  • Ideas
  • Blogs
Filter by user contributions
  • Hi,  Are you wanting to remove blank spaces from the data coming from the SAP system or remove the left indent on the field in the Paragraph palette?Could you include a screen shot of the problem?

    Type

    Questions

    Views

    5.7K

    Likes

    0

    Replies

    0
  • Hi,When you use $.item.[Type=='A'], that is with square brackets then the expression is expected to be a FromCalc expression, which means you need to use double quotes, i.e. $.item.[Type=="A"].  The JavaScript equivalent would be $.item.(Type.value=='B') ... using the round brackets.  I do tend to s...

    Type

    Questions

    Views

    4.4K

    Likes

    2

    Replies

    1
  • Hi,There's an example in this blog of choosing different page sizes at run time (which means choosing different master pages).  It uses a technique to define the form once and placing it under the reference element in the form structure.Maybe they will help

    Type

    Questions

    Views

    7.1K

    Like

    1

    Replies

    0
  • Hi,I new the script was only going to help deleting the last page, that is why I asked how it was going to know to delete the last or all but the last two responses ago.The only way I know of switching master pages at runtime is to duplicate the form, one for each master page and then only add the i...

    Type

    Questions

    Views

    7.1K

    Likes

    0

    Replies

    0
  • Hi,You could move the script to the layout:ready event.  You will need to force the relayout to get the presence update to take effect.  The problem then is to stop this script from firing again as you will probably end up with all the pages hidden eventually as the relayout will trigger the layout:...

    Type

    Questions

    Views

    7.1K

    Like

    1

    Replies

    0
  • So what software is producing the PDF, one of the server products like LiveCycle Output?  How will the script know to delete the last page or all but the last page?

    Type

    Questions

    Views

    7.1K

    Likes

    0

    Replies

    0
  • Hi,  There's lots I'm not sure about with what you are trying o do.  I tried that code in the click event of a button.  But maybe the DocReady would work?Brue

    Type

    Questions

    Views

    7.1K

    Likes

    0

    Replies

    0
  • I guess your repeating_subform and my_text allows page breaks within content?  If so then we will need to get rid of one more.So try this;var pageCount = xfa.layout.pageCount();    var lastVisible = null;for (var i = _repeating_subform.count - 1; i >=0; i--) {        if (xfa.layout.page(repeating_su...

    Type

    Questions

    Views

    7.1K

    Like

    1

    Replies

    0
  • Hi,I had thought the last page was different, that is an alternative to content in your sample.  So that print options approach wont work.This script will hide all repeating_subform objects that are on the last page.var pageCount = xfa.layout.pageCount();  for (var i = _repeating_subform.count - 1; ...

    Type

    Questions

    Views

    7.1K

    Likes

    0

    Replies

    0
  • That is difficult to say without seeing the structure of your form. But, I would hope you could have a second master page that the last page was linked with.  Can you structure your form that way?

    Type

    Questions

    Views

    7.1K

    Likes

    0

    Replies

    0