Skip to Content

Numeric Counter on the forms

hi,

i have to display a Counter on the Form which should be incremented based on the Number Of PERNRs of a Person ID.

Both PERNR and Person ID are present on the Forms. But was wondering how to display or calculate the counter.

Is there any scripting available or should i use some events on the form.

please suggest.

Ags.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Nov 11, 2009 at 08:30 AM

    hello,

    do you mean you have to count the people on the form, but you donĀ“t know the count in the ABAP/ WD initial coding? so you dynamically add nw persons (remove too) on the form without the DB communication, right?

    you can always use the scripting: get the number of the row instances and next check if the field are filled/ changed/ etc.

    very similar post was send few days ago.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 11, 2009 at 09:06 AM

    ou may utilize this: (author Mr. Norbert Prager)

    var TestNodesLen = xfa.resolveNodes("xfa.record.YOURTABLE.DATA[*]").length; //for accessing via hierarchy

    xfa.resolveNode("xfa.record.TESTTYPE.DATA["+ i +"].YOURFIELD").rawValue;

    and I guess you will need some loop to work with all the rows.

    You´d better read through this "book": http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.