Dynamically use page number in form field on spawned pages?

I have a form with spawned pages.  JS for spawning page(s) works fine.  However, one text field on template is driving me nuts.  I would like this field ("CaseNum") to dynamically display page number, since page number also corresponds to case number.  On templage ("getcase"), I can calculate value for CaseNum using custom calc script (event.value = this.PageNum).  But that doesn't work because every spawned page gets the same value (ie, whatever is last spawned page number). I also tried JS below, using P0.getcase.CaseNum as the field on the template in which I want the page number/case number to be displayed:
var oPage = this.pageNum;
  this.getField("P" + oPage + ".getcase" + ".CaseNum").value = oPage;
But, this doesn't work either, because the field on the spawned page automatically gets the prefix of P + page number + .getcase appended to the field name.  Is there any way to dynamically used page number in a form field on spawned pages?  If so, how? Note that while I am trying to use a dynamic case number on spawned pages, it presents the same issue as dynamically displaying page numbers on spawned pages.  I'm a JS newbie, so any help appreciated.  I've searched high and low on web and in forums and couldn't find the answer.  Thx.

http://forums.adobe.com/thread/1160899
7.George Johnson,
28-Feb-2013 09:42   in reply to natelfo
Is this what you mean?
Also see:
http://www.planetpdf.com/developer/article.asp?ContentID=6466
http://www.wordwizardsinc.com/blog/finding-the-fieldname-prefix-on-acrobat-acroform-spawne d-template-pages-using-javascript-functions/

Similar Messages

  • Hide Tab order number in form fields

    Hi,
    In Acrobat 7.0 Professional (I know it's old), how do you hide the the tab order number in form fields you create? When I type in the form fields I've created, the tab order shows up on screen and on the hardcopy printed document.
    HELP!
    Thanks!

    This is what I'm seeing, however I think we would like to know how to change the order.
    For instance, I have formatted the form to have two columns of data entry: Personal info in column 1, product info in column 2. When the user types their name in column 1, row 1 for "Name" then go to tab down to "Email", it actually tabs right to column 2, row 1, "Product Year." Altering the tab order would fix this problem.
    Thanks!

  • How can I see which specific page number I'm on in a Pages document?

    How can I see which specific page number I'm on in a Pages document? Thanks.

    Hi and thanks. Pages is V 5.0.1. And I've got OSX 10.9.1.
    I just tried what you suggested and while it works I'm looking for something like what a Word doc shows, where at the bottom of the screen you see - Pages: 1 of 37 (it's to the left of where a Word doc shows - Words: 7 of 9024).
    I recently switched to Pages and want to start using it all the time and get rid of Word.

  • BIP Template - How to display form field on next page?

    I have a BIP word template with the below form-fields. How do I display the fk_job_title and p_grade on the next page if it continues on next page (same class title)?
    ** form fields **
    CLASS TITLE: F fk_job_title PAY GRADE: p_grade
    JOB CODE: job_code SALARY RANGE: s1 - s2
    LOCATION OF WORK: work_location
    GENERAL DESCRIPTION: general_descr
    ESSENTIAL WORK TASKS: work_task
    KNOWLEDGE, SKILLS, AND ABILITIES: knowledge_skill
    EDUCATIONAL AND EXPERIENCE: education_exp
    SUBSTITUTIONS: sub
    CERTIFICATIONS/LICENSES: certification_license
    OTHER JOB ASPECTS: job_aspect E
    PB
    Thank you so much,
    MT

    Hi ,
    For the Header on each page...
    http://blogs.oracle.com/xmlpublisher/2010/04/repeat_row_headers_after_page.html
    Number of rows restriction
    http://bipublisher.blogspot.com/2009/06/bi-publisher-conditionally-limiting.html
    Hope this might helpful for you.
    Thanks,
    Ananth
    http://bintelligencegroup.wordpress.com/

  • Duplicate form fields across multi-page forms

    Hello!
    I have some multi-page forms which include a few identically laid out pages; pages which take a long time to manually set up (nearly 100 fields per page, of varying sizes and positions)...
    I tried to duplicate the fields from one page to the others, which worked; but they are identical fields, meaning text input into one will likewise be seen in the other pages. I need the other pages to be unique, even though they look identical (field-wise they look identical, the background images for my form distinguish the actual contents of each field).
    Copy/Paste is the same as duplicate.
    I can just do that and then manually rename a few hundred fields; but at that point I am not much better off than manually placing the fields. Some, but not much.
    Is there any way to do this?

    I would look at using the template object within for this task.

  • Anyone know how to update page artwork leaving Form Fields where they were?

    I set up my form fields just the right way and line them up right over where they are supposed to be, but the client makes a change to the artwork that the forms sit on.
    Is there any way to just update the page leaving form fields exactly where they were?
    As far as cutting and pasting to th enew pdf, thats too time consuming and there is no paste in place either. So I have to keep tapping them to back to where I put them the first time, but can’t do that every time not to mention it isn’t lockdown accurate and I have to make sure I have all the forms selected. Perhaps there is at least a Paste in Place for Acrobat plug-in somewhere, that would work.

    Wow, really? I keep using these links to find the answer to my question and the forum keeps bouncing me back to the forum starting page. Anyone have the current link, or is this just the Adobe server freaking out?

  • Dynamically modifying the number of Form detail rows

    Hi,
    A challenge for you all!
    I am building a product details system in Portal forms.
    One of the screens is a Product Ingredients form with Product as the master block and ingredients as the Detail block. There can be between 1 and 20 ingredients in any 1 product and as these all have to sum to a volume percentage of 100% the client would like to see all ingredients for a product on 1 screen and not have to do Next/Previous to see them all.
    As you increase detail rows on a master detail form the performance of the form decreases dramatically so I would like to minimise the number of detail rows displayed for each product to maximise performance.
    To this end I wish to dynamically modify the number of detail rows displayed to match the number of ingredients on a product as that product is queried.
    I can handle figuring out how many rows I want to set the page to but have not been able to figure out how to change the number of detail rows displayed at run time.
    Anyone know how (or if!) this is possible ?
    All help gratefully recieved
    Andy

    The rownum pseudo-column hold the number of the row but it doesn't work like you expect. It is assigned before sorting for example and it is not absolute. SQL conceptually deals with sets and sets have no inherent order. See http://www.oracle.com/technology/oramag/oracle/06-sep/o56asktom.html
    If you want to have an absolute number in a row you will need to maintain it yourself with PLSQL code.

  • Page Number does not display on every page

    I am having a problem showing the page number on every page. I can get it to show on the first page if I place the XML tags at the top OR if I place the XML tags at the bottom then it shows only on the last page.
    I tried to use the <?body-start?><?body-end?> tags and placing the page number in front of or behind these. I have tried to insert the native word page number functionality as well as <?fo:page-number?> and get the same results.
    Any help would be greatly appreciated -
    Thanks,
    Rob

    I have inserted the page number in the RTF and it definitely shows up on the first page but not on any of the following pages.
    As a side note - if I use Word's header and put anything up there it does not show up at all on the template.

  • Page number shows up on the last page only

    Hello,
    I have a report that includs 5 sub reports. After modifing the order of the sub reports per user requests, I lost  the page number (Page N of M ) on each page except the last page.  The same thing happened before on a cross-tab report without any sub report in it.
    Please advise me !
    Thanks a lot,
    Lin

    Hello,
    Thank you for your replay. Actually the page number is on the Page Foot. Is any one has the same problem ?
    Your input is grate appreciated !
    Lin

  • Best way using ADDT? : No page refresh, but form fields change on selection.

    The top half of the form is a simple user registration. The bottom half is dependent on the user selecting an item from a dropdown menu which then changes the form accordingly.
    What is the best way to do this?

    -----
    How about an alternate solution, where each form is on an a spry widget accordion plane?
    When tyring to do that with ADDT or Dreamweaver forms, you would have to define multiple insert or update transactions as well -- that´s per se not possible, also because an insert/update transaction always comes with an "redirect after insert/update" trigger, means the user will be leaving that page.
    But is there a way to still have the simple registration form at the top of the page?
    see my "redirect after insert" comment above.
    Would each widget form have its own submit button?
    You might want to consider creating separate (non ADDT) forms for each SPRY accordion which submit their stuff to the database behind the scenes and without leaving the page. To my knowledge the SPRY documentation shows how this can be done -- but as this isn´t related to ADDT, I´m not going to comment on that :-)
    Then on submit it inserts the simple registration form along with its own form?
    the main form
    (regardless if it´s driven by ADDT´s or Dreamweaver´s insert/update behaviours) will be redirecting to another page
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Accessing form field on a page with JSP code on the SAME page

    Hello people,
    This is what i want to do...
    I need a profile form for my project wherein the user can update his profile.
    it has a username field. I want the username to be changeable at any point of time.
    if the user wishes to change his username he simply goes to the Change_Profile page (the one im talking about) and changes it.
    But the username should not conflict with the username that any other member might have already chosen
    so i put a button on the form right below the field "username" for the user to check for the username's availability.
    I want the following things to happen when the user types a username and clicks on this button (which is not a submit button)
    1. I want to access my MS SQL 2000 server database and check for all usernames accepted by that form
    2. I want to compare each with this username
    3. I want to show the result to the user on the very same page+*. that is "Username available" or "Username Taken"
    4. I want to show the result using an alert message from javascript+*
    help me if u can please.

    1. Don't do SELECT * FROM users for fun unless you want to list them all to the client.
    2. Use a WHERE clause in your query and just check if it returns zero rows or not.
    3. Let the servlet with the business logic forward the request to the same page using RequestDispatcher.
    4. Let the JSP print the Javascript code to the response based on a condition.

  • Form field to add pages to document

    I work for a power utility and we recently digitized our permit process for cable and telephone companies to attach to us. The permit is per pole so when they send us a new job it may have anywhere from 1-150 poles which are each separate permits. Is it possible to add a combo box field on the first page where they can select how many poles they will have and the whole document opens to 1 to however many permits they need. Currently what we have is the same permit on 50 pages but if they need less they don't fill in all the pages and if they have more they must fill out the document multiple times.
    If this isn't possible does anyone have any other suggestions for this? Each permit looks the same but needs to be done for each pole so ideally we would want a selection on the first page that they can enter they need 30 permits and it adds 29 more pages of the same first page to work with.
    Any suggestions would be helpful, we need a new method! By the way, the companies filling in the permits will only have the free license for adobe reader, not standard or pro.

    Well seeing as the Reader 11 should be a free update then I can just ask our cable or telephone companies to use the current version so that shouldn't be a problem.
    I've honestly just started using Adobe Standard, version 9, within the past two days so I am very new to all of this. I was able to build the whole pdf with the different inputs but I've never done a template before. If you know of a forum or anything that will help I can use that if you don't want to try to explain it all to me. Also, the permit has nothing of importance on it so if it helps for me to share it somehow I can do that.
    Seems like I'm on the right track!
    Thank you!

  • ORA-01465: invalid hex number on form field having values like $0-$10k...

    Hi
    I have a form item (SPEND) of select list having values like
    $0 - $10k
    $10k - $50k
    $50k - $100k
    $100k - $250k
    $250k+
    For the new record, when I hit "SAVE” buttons it inserts the new records to the table with values ($0-$10k...)
    BUT when i edited the same record, and then try to "Apply Changes” getting following error message
    ORA-01465: invalid hex number
    Again when I change the value to null it simply allows the record to UPDATE.
    Again I changed the item to a text field i am getting same error when I try with charter (ABc...). BUT it allows to the number (123..)
    Column attribute is SPEND VARCHAR2 (15 BYTE)
    ie - when I try to update the SPEND field with the values ($0 - $10k,$10k - $50k,$50k - $100k,$100k - $250k,$250k+) I am getting above error message.
    ORA-01465: invalid hex number
    Environment:
    Oracle Apex- 4.1
    DB-11g
    Thanks,
    Amu
    Edited by: Amuly on Jul 16, 2012 5:00 PM

    Use utl_raw.cast_to_raw() function when you convert HEX value into RAW(), e.g.:
    SQL> create table ztest (ff raw(1000));
    Table created
    SQL> insert into ztest (ff) values
      2  (utl_raw.cast_to_raw('596F75207765726520646973636F6E6E65637465642066 726 F 6D207468652041494D207365727669996365207768656E20796F752073696
      3  76E656420696E2066726F6D20616E6F74686572206C6F636174'));
    1 row inserted

  • How do you use CS6 to add form fields to tables?

    Im trying to learn the new features of CS6 where you can add fields, buttons, dropdowns, etc... from within ID CS6.  The only thing about it I cant seem to find info on is what if I was using a table?  I generally create a text box and use the table/insert table to add my rows and columns.  Though when trying to make them into fields, it seems to want to make the whole text box a field and not the individual cells.  Is there a way to do this?

    You can find the list by using your iPhone to go to the app store. Under the featured section at the top scroll to the right until you see the icon labeled "Apps for Passbook." Click that and you will see the same apps that was listed on the screen of the Passbook app itself. I don't know if Apple intended for this to be this way, but unless they change things you can't get back to the main screen within the Passbook app itself. The "Apps for Passbook" will not appear if you do the search from an iPad.

  • How to Add Dynamic af:inputText or UI comp fields in JSPX pages?

    i want to add one <af:inputText> Field in my jspx page.
    it is based on MaxQuantity (af:inputText field). Say if value of MaxQuantity >3 it should add one UI component next to MaxQuantity field.
    How to achieve this ? will that be produced in Backing Bean or should be Partial rendering ?
    need URGENT REPLY
    Thanks

    Problem still exists. with almost similiar results.
    with config --> #{bindings.CreateNewEquip_AccMaxQty==6} it gives
    javax.faces.el.EvaluationException: com.sun.faces.el.impl.ElException: Attempt to coerce a value of type "oracle.adfinternal.view.faces.model.binding.FacesCtrlAttrsBinding" to type "java.lang.Long"
    with Config --->#{bindings.CreateNewEquip_AccMaxQty=='6'} it produces similar action as before i.e. no rendering for EquipName component

Maybe you are looking for

  • Need help to get started with iMovie

    I have used the iMac for sometime but never created a movie. With my new iMac, I want to start using the iMovie '09. The first basic problem is that it will not accept any of my videos. I have videos made on a fairly new Cannon camera (*.movl), on a

  • Thai Codepage on MAC OSX 10.4.8

    Hi All Export, I install sapgui on mac osx sussesfully, but I cannot use it becase problem thai codepage. help me please. thank you all expert

  • Slow broadband in Bangor, North Wales: is there an...

    I apologise in advance for the length of this post, but wonder whether anybody could advise me. I live in Bangor, a small University town (though technically a city) in north Wales. In the Autumn of last year I took out a broadband contract with BT.

  • Where best to check conditions, main loop?

    Ok, with a little tinkering, I now have a nearly functional app. As I put pieces up on the board, I keep count. When I remove a piece from the board, I decrement my count, and the level is complete when the count reaches 0. So, where is the best plac

  • Getting rid of signing in before getting on internet

    When i start my mac up, i have to put in a password before i can get on the internet. how do i by pass it or get rid of that? i just want to turn on my computer and not have the hassle of passwords.