Skip to Content
avatar image
Former Member

Rendering dynamic layout on PDF

Hello All,

I am trying to render and PDF( Using Webdynpro for Java ) with some text fields, And i want to hide few fileds based on some check.

Any idea how to hidd it, If at all i hide an text filed, is there any way to render the next text field in that place instead of blank space.

Regards,

Trikanth

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Apr 04, 2007 at 11:32 AM

    Hi Trikanth,

    insert your text fields into subform with flowed content (tab Object->Subform).

    You can hide a text field by setting its property presence to "hidden".

    Michal

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Michal,

      Thank you for your quick response,

      Do i need to set the property of the Subform or Text field. My requirement is to hide Text field.

      Regards,

      Trikanth

  • avatar image
    Former Member
    Apr 04, 2007 at 11:37 AM

    Hello Trikanth,

    There are two steps involved:

    1. Create a dynamic PDF first (using Wd4J).

    2. Go on making the fields visible/invisible ((scripting)) as per your requirements. You would not find any blank space in between in case of a dynamic PDF as it would have been otherwise with the static forms. Dynamic form gets rendered/re-rendered on the client.

    Best Regards,

    Krish

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Krish,

      Could you please provide me a sample script to toggle it visible / invisible. As i am not so expert in this area.

      Regards,

      Trikanth

  • avatar image
    Former Member
    Apr 04, 2007 at 11:58 AM

    Hi Trikanth,

    example javascript for hiding textField:

    xfa.resolveNode("data.subPage1.subFlowed.TextField1").presence="hidden";

    I think that http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf can help you, especially pages 11 and 20 (To insert object reference syntax automatically).

    And as Krish wrote your form must be dynamic for this functionality.

    Michal

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Michal,

      Still i am not clear about where to add this script. For example i want to hide an text field if it has no value in it.

      Is there any generic way to hide all the text fields with null value.

      Thanks,

      Trikanth

  • avatar image
    Former Member
    Apr 04, 2007 at 12:40 PM

    Hi Trikanth,

    you can add script where you want. For example to click event of some button. Maybe page 93 (Hiding and showing objects) will help you.

    For processing all fields there is an example http://blogs.adobe.com/formbuilder/2006/06/process_all_fields.html

    Michal

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 05, 2007 at 03:40 AM

    Hi Michal & Krish,

    Thank you very much for your effort. I have got enough idea to proceed with my requirement.

    Regards,

    Trikanth

    Add comment
    10|10000 characters needed characters exceeded