Field value in page number X

Hi everyone
By using JavaScript, how can I get field value in page number X at runtime?
Thanks

I can recommend you to check the JavaScript scripting guide: http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf
Especially last chapter called "Examples of Common Scripting Tasks", last three sub-chapters working with the instance manager. Shows how can you add, delete, count, view, move instances.

Similar Messages

  • Cant pass field values from page to page!!!!

    good day every1,
    this issue might be difficult to believe it exist!!!! but yes unfortunately i am having it and i just don't know what to do about it....
    my case is ...
    i have 3 text fields in a page and i want to send their values to another page that has 3 display only text fields i tried the "  branch to " and set the items with the correspondent values it didn't work !!!
    i tried setting the text field itself in the target page to take the value of the item in the previous page (this is in the source section of the item) also didn't work ....
    and i have no clue why this is not working or maybe  i missed doing something else....it was working the first time i run the page but now it doesn't
    if any1 can help me please

    Hello, the first things you should check:
    1) Are there multiple branches that can fire on the event? eg. some unconditionals?
    If you have some unconditional branch that fires on the page too, set the button branch above that one.
    2) Change the fieldtype to text in the "reciever" page
    Also, your picture http://i43.tinypic.com/10wmeqg.jpg is very low quality.. So I could not see if you in fact have a dot (punctuation) in the value field?
    eg.: &Pxxx_yyy*.*
    Also you might want to consider if you can in fact stay on the same page, if the data is related and there is not very much data.
    I have made some pages lately, which traditionally one would make maybe 15 pages of.. I used 2 pages and conditional display.
    For choosing what to display, I use a hidden field.
    The hidden field gets a value, let's say: POSTCODE
    Then there is a condition, display if the field contains for instance POSTCODE.
    This is not related to your problem, but it is good for RAD where it can be used.

  • Hide a header field depending on page number

    Hi and I have a header subform for my form which I am using as a overflow header, but I need to exclude 2 fields for the FIRST PAGE only,  I have used the following formcalc SCRIPT but it does not seem to work... I am new to ADOBE FORMS and scripting... please help!
    var curpage = $layout.page ( ref ( $ ))
    if ( curpage == 1  ) then
    $.presence = "hidden"
    endif

    In the FO you can not access the page numbers as such for calculations, because the XSLT
    runs before the pages are rendered.
    Typical work arounds are
    1) Differenet page layout for first, last or even/odd numbers with different mark in header/footer.
    2) Create document first and use BI Publisher java api's to (a) get number of pages (b) b add mark
    after the fact. This has been implemented for a large to be unnamed customer.
    Klaus

  • How to increment a value in a textfield based on page number

    Hi,
    I am doing PDF based print forms which is non interactive, i got a requirment where i have to increment the binded value of a text field based on page number.
    presently i am using this code in initialize event of that textfield.
    var curpage = $layout.page ( ref ( $ ) )
    var totpages = $layout.pageCount()
    $.rawValue = $.rawValue - totpages
    $.rawValue = $.rawValue + curpage
    but this is not helping me, can anyone help me regarding this

    Thanks for yor reply.please you can tellme clearly how to set use 'NQ_SESSION.USER' to set the value to logged in User.i.e i have circle table in that users and circle names will be there.it is teradata database.so how can i set that in to the dashboard prompt and one thing along with that prompt the follwing prompts will be there
    mobile no<>
    date<>
    circle name<"user">
    this is my requirement so please help me step by step what to do for achiving this.
    thanking oyu

  • Repeating  field values per paage in Master Detail Report

    I know there are lots of threads about repeating fields values across pages but not seem to work that I have tried and I was looking for a simple resolution to my problem.
    I have a master detail report like:
    Deptno: 10 Dname: Accounting
    Empno Surname Job Sal
    1234 Smith Clerk 1000
    1235 Jones Clerk 1200
    Deptno: 20 Dname: Research
    Empno Surname Job Sal
    2234 Smith Clerk 1000
    2235 Jones Clerk 1200
    etc. The employee data is displayed in a Word table.
    Now if I use the standard emp/dept tables (with only 14 employees) the report paginates properly and I see one department per page and the corresponding employees per page. I have used the <?split-by-page-break: ?> tag. A sample of the rtf file is:
    <?for-each:dept?>Dept: <?deptno?> Name: <?dname?>
    TABLE of EMPS (via insert -> table ->advanced etc)
    <?split-by-page-break: ?>
    <?end for-each?>
    Everything works fine but if I then apply a larger xml file to this rtf where the number of employees spill over onto another page the deptno and the dname do not print before the table when I want them to.
    I have tried putting things into Word headers, using the <?start:body?> tag and a couple of other ways (like @section). Could someone be quite explicit about the steps I need to follow (rather than just say put it in a header) to make sure that if the employees spill over the page the deptno and dname will display. I don't know if its made more difficult because I have multiple departments but any help would be appreciated.

    I sent a template to Chris who was able to solve the problem.
    The change that he made was from:
    <?for-each:dept?>Dept: <?deptno?> Name: <?dname?>
    TABLE of EMPS (via insert -> table ->advanced etc)
    <?split-by-page-break: ?>
    <?end for-each?>
    to:
    Dept: <?deptno?> Name: <?dname?>
    <?start:body?><?for-each@section:dept?>
    TABLE of EMPS (via insert -> table ->advanced etc)
    <?end for-each?><?end body?>
    That is, he used the start and end body tags and the section attribute and took out the <?split-by-page-break: ?> tag. I put back in the split page tag on the template he gave me but it gave me an extra page each time the department changed. So maybe you can really only use one of the other.
    Regardless, Chris sorted it out for me, so thanks.

  • Conditional formatting based on page number that resets on repeating frame

    Hello everyone,
    I have searched through multiple forums on multiple sites and haven't come across anyone who has accomplished this.
    I have a report with pages numbers that reset on a repeating frame.
    I have a text boiler plate that I want to only show up on page 1. On every occurrence of page 1.
    SRW.GET_PAGE_NUM does not work because it returns physical page number.
    I'm trying to access the value of the field for my page number. The value comes from "source" drop down with value of "Page Number".
    I've tried accessing the <&page number> in the PL/SQL of my conditional formatting trigger but no luck.
    This report is 14K plus pages so I'd rather not be inserting and selecting the value back out of the database.
    Does anyone have any ideas??
    Thanks,
    Alan

    To avoid inserting/selecting from the database
    Maybe you could create a small package on the database to store page numbering information.
    Then use get/set routines per your requirements.
    CREATE OR REPLACE PACKAGE rep_page_no IS
       gPageNo NUMBER;
       PROCEDURE set_it(pPage NUMBER);
       FUNCTION get_it RETURN NUMBER;
    END rep_page_no;
    CREATE OR REPLACE PACKAGE BODY rep_page_no IS
       PROCEDURE set_it(pPage NUMBER) IS
       BEGIN
          gPageNo := pPage;
       END set_it;
       FUNCTION get_it RETURN NUMBER
       IS
       BEGIN
          RETURN(gPageNo);
       END get_it;
    END rep_page_no;Then in your repeating frame you could access this package rather than insert/select from any database table.
    Let me know if this works, I might like to try it.
    Thanks

  • Getting page number

    Hi, I have a label in my report which is a placeholder column. Is there a way which I can find out which page number that label will print on?
    Report Builder 10.1.2.3.0
    many thanks

    Like InoL said, srw.get_page_num will tell a formula what page number. If you want your field to display the page number on the report output, set the field source to "Page Number".
    function F_SignatureFormatTrigger return boolean is
    /* Using the "Print object on" property did not control the
       signature line because it's in the margin.*/
    v_page_num          number;
    begin
         srw.get_page_num (v_page_num);
         if     v_page_num = 1
         then     return (TRUE);
         else     return (FALSE);
         end if;
    end;

  • Assigning a value to a number field through a button

    11gxe , apex 4.x ,
    hi all ,
    i am trying to assign value to a number field through a button ,
    i created a button , then a dynamic action for this button , when it is clicked ,
    the dynamic action is based on Pl\Sql code , and the code is
    begin
    :p2_assign := 455 ; -- where the page is "p2" and the number field is "assign"
    end ;
    but it does not work , why ?

    I can see the toolbar now from the last link you provided me with ,
    but you showed me the way to use the static assigning , and assigning with sql , and i want to do it with "Pl\Sql"
    in order to know why my way of writing the code does not work , although it is written properly , and should work .
    every input item is a variable , and i am doing so
    begin 
    :p2_assign := 455 ; -- where the page is "p2" and the number field is "assign" 
    end ;
    to assign a value to a variable ,
    and
    doing this
    begin 
    select 455 into :p2_no from dual ; 
    end ;  
    to select a value into a variable , then
    why does not it work ??
    and how to do it with pl\sql ?
    thanks

  • 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/

  • How To Print Field Value in TOP-OF-PAGE During Line Selection.

    How To Print Field Value in TOP-OF-PAGE During Line Selection when double click on field.

    (If my memory serves me well (not used for long time ago)
    Assign values to system fields sy-tvar0 - sy-tvar9, they will replace the placeholders "&0" through "&9" in the list headers and column headers.
    TOP-OF-PAGE DURING LINE-SELECTION.
         WRITE: / 'Interactive Report &3'.
      WRITE record-vbeln TO sy-tvar3.
    Regards,
    Raymond

  • Repeat Text Field Value on Master page

    This might be a really simple question. I have a form with two master pages. The second is applied to all but the first page. On the second master page I have a text field that I populate with user entered data from a text field. I want this value to show on all pages after the first page (page 2 to n). It shows up with the value on page 2, but all the rest have a blank value. Do I need to script something to make it repeat for all pages? Any help would be appreciated.

    The simpliest method would be:
    Under the Object tab, select Binding, and change the Default Binding to Global. The TextFields you create must have the same name, and Global binding will populate all the fields.

  • Field value on BSP Page

    Hi,
          I have a requirement to show previous entered values in an input  field on BSP Page. for example suppose I enter value '0998' in an input field say 'XYZ'  and then I close or refresh the browser. again i open the page in browser and click the input field then system should suggest me the previous entered value i.e. '0998'.   does anyone have idea how we can do it?
    Regards
    Amit kumar
    Edited by: amitku1201 on Jan 8, 2010 12:19 PM

    Hi Amit,
    I saw your code..
    <htmlb:form id="Form1" method="POST" autoComplete = "TRUE">
    <bsp:findAndReplace find = "ON" replace = "ON">
    In the link I provided
    <bsp findAndReplace find = "off" replace = "on">
    I dont see the closing tag
    </bsp:findAndReplace>
    anywhere in your code.
    The tag should be not used immediately after the FORM tag instaed it is used just before the tag for particular element.
    Like in your case if you want to used it for the inputfield i_case , it should be done as
    <bsp findAndReplace find = "off" replace = "on">
    <htmlb:inputField id="i_case" value="<%=i_case%>" type="string" maxlength="12" width="100"/>
    </bsp:findAndReplace>
    The inputfield tag will be used between find and replace tags.
    I hope this will help you solve the issue.
    Regards,
    Anubhav

  • How to link a value in a cell to a page number?

    I have a series of diagrams that I'd like to create a table for showing the page it's on, and a description of it. during creation, i an simply store the value of the page number in an array, and use it when creating the table, however, if the diagram is moved onto another page, then the cell shows the wrong page number, and the table loses meaning. Is there a way I can link the page number shown in the table cell with that of the page number it's currently on?

    Excellent thank you. While I was creating this sample code, I kept seeing an undefined destination text with either PB or OV shown in the cross references. This was because the textframe inside the frame that contains the image wasn't set to the same geometricBoundaries as the container frame!
    #target indesign
    var doc = app.documents.add();
    // add new page with image
    var page = doc.pages.add();
    var imageGraphic = page.place(File('image.jpg'));
    var imageFrame = imageGraphic[0].parent;
    imageFrame.geometricBounds = [0,0,100,100];
    imageFrame.fit(FitOptions.fillProportionally);
    // add text frame to imageframe for hyperlink dest
    var tf = imageFrame.textFrames.add();
    tf.contents = " ";    // insert blank text
    tf.geometricBounds = [0,0,100,100];     // THIS IS VITAL otherwise the destination becomes invalid for some reason
    var destination = tf.paragraphs.item(0);    // find text / char destination
    var destination = doc.hyperlinkTextDestinations.add(destination, {name:"foo"});    // hyperlinktextdestination reference 
    var creditPage = doc.pages.add();
    var creditPageTF = creditPage.textFrames.add();
    creditPageTF.geometricBounds = [0,300, 100, 400];
    creditPageTF.contents = "...";
    var xRefForm = doc.crossReferenceFormats.item("Page Number");   // Default CS5 xref format that shows "Page 45" etc
    var sourceText = creditPageTF.paragraphs.item(0);
    var source = doc.crossReferenceSources.add(sourceText, xRefForm);
    var destination = doc.hyperlinkTextDestinations.item("foo");     // find text anchor by name from above
    var myLink = doc.hyperlinks.add(source, destination);
    myLink.visible = false;
    very confusingly, there seems to be two types of cross references for cs5, cross references for text, which are actually hyperlinks, and crossreferences for tocs i believe (which I know nothing about atm!)

  • How to show header value in each page same as Page field value.

    Hi there
    It would be very helpful if anyone could tell us how to set header value based on the page field.
    To make it more clear.. i have a field in my Rtf (which is basically a group by) so in each page it'll differ.. My Header should reflect the same as field value.
    what my understanding is header wont change for each page. but ,my requirement is something like i have to show the header which is same as one of my filed value..
    for eg:
    HEADER: ABC page-1
    Field - ABC
    HEADER:XYZ page-2
    Field - XYZ
    Regards - Vijay
    Edited by: Vijay Santhanam on 23-Oct-2008 3:51 PM

    Hi Haiye ,
    The Pointer you gave would keep Header ABC through out all the pages in report right, actually i had tried this and got same header for all pages,
    but what i need is my first page Header should be based on one of the field of Page 1, second pge Header again based on the same field, but the value may differ... (coz the page field is group by ).
    Would appreciate your help on this issue!!
    Regards - Vijay

  • Inserting a value from page field into an xml file

    Hi there,
    I have added a field 'Comments' on a create vacancy page.
    There are other fields on that page and the values from those fields are getting stored in an xml file.
    This xml file is getting stored in TRANSACTION_DOCUMENT column of table HR_API_TRANSACTIONS.
    Is it possible to add the value from the field (that I've added on the page) into the same xml file?
    If yes, please tell me how
    and if no, tell me what should I do to store that value.
    Regards,
    Gaurav.

    Hi Gaurav,
    You need to check in seeded files for the logic of generation of XML file and setting it in DB column. May be in PLSQL API this code would exist.
    Once you get that logic you can append your column value in XML tag (need to create new tag) if you are allowed to modify seeded API. Otherwise use free additional attributes of the table.
    Hope I am clear.
    Regards,
    Mukesh Uchaniya

Maybe you are looking for