How to display the number of current page to formcalc?

I have a client that will not allow JavaScript in their forms for security reasons.  I am trying to convert the JS, I'm used to working with FormCalc instead, but I don't have much experience with the CF and I am stuck at the first hurdle.

I want to display the current and total pages in the master page and I changed the code generated to use FormCalc and modified to use the reference to the dollar, but the form is not make the current page number.

Here is the code

return. #pageSet [0]. Restricted.CurrentPageNumber::ready:layout - (FormCalc, client)

Does not work, even if it is copied from the reference material

this.rawValue = xfa.layout.page ($)

also tried

$ = xfa.layout.page ($)


return. #pageSet [0]. Restricted.NumberofPages::ready:layout - (FormCalc, client)

Work

this.rawValue = xfa.layout.pageCount)

Any help would be really appreciated

Hello

to get the current page, you can use the index of your master page ("Restricted").

$ = $. parent.index + 1

and for the total number of pages, use

$ = $layout.pageCount)

Tags: Adobe LiveCycle

Similar Questions

  • How to display the watermark to each page number?

    Hello.

    app.documents.item(0).watermarkPreferences.watermarkText = "page";
    app.documents.item(0).watermarkPreferences.watermarkVisibility = true;
    
    

    These are all same watermark settings.

    It is impossible to set a nonzero value of the element.

    I want to display the watermark to each page number.

    If there is no way, I want to create this similar feature.

    Any ideas?

    And please tell me if the function already exists.

    Thank you.

    I think I know what you want.

    You need a different watermark to each page of a document.

    Which seems not be possible since watermarkPreference is not a preference of page but a preference document.

    If you need this for the PDF export for example, you can export single pages in single PDF files and change the watermarkText according to the name of the page you are currently exporting.

    After the export of all pages you could assemble in Acrobat Pro. Or place them in InDesign page-by-page and export again to a multipage PDF document.

    // ExportPages-ChangeWatermarkForEveryPage.jsx
    // Uwe Laubender
    
    /**
    * @@@BUILDINFO@@@ ExportPages-ChangeWatermarkForEveryPage.jsx !Version! Mon Dec 14 2015 20:28:23 GMT+0100
    */
    
    var doc = app.documents[0];
    var pages = doc.pages.everyItem().getElements();
    
    // You can also assign a preset by its name
    // For simplicity here the second preset listed in assigned:
    var pdfExportPreset = app.pdfExportPresets[1];
    
    // Loop through all the pages:
    
    for(var n=0;n
    

    Hope, that helps.

    Uwe

  • How to display the number of socket in the ListBox UI control?

    I want to display the number of socket in the Listbox control on execution. I use DisplayExpression method, set the entry as '% TestSocketIndex', but it does not work. This methond works fine if I connect the Combobox of UI control to ExecutionViewMgr.ConnectExecutionList.

    Is there a solution

    Hey wellsc,

    I have looked at this issue and ran into the same issue you described. I dropped the CAR 482840 for a developer study the matter further. Unfortunately, workarounds only I can think immediately would be to use a ComboBox control or to implement the functionality desired by using a native LabVIEW ListBox.

    Let us know if there is something we can do to help, or if you have other questions about how to implement one of the workarounds. You can still use this CAR number to check the status of the issue, as well.

  • How to display the number of lines of time giving the values of the columns?

    Hi all

    I want to display the number of rows times the value exists in the column num in the query below


    with t AS
       ( SELECT 'venkatesh' NAME, 'hyd' LOC, 2 NUM FROM DUAL
         UNION ALL
         SELECT 'prasad' NAME, 'hyd' LOC, 3 NUM FROM DUAL
         UNION ALL
         SELECT 'krishna' NAME,     'hyd' LOC, 1 NUM FROM DUAL )
      SELECT T.* FROM T
      CONNECT BY ROWNUM <= NUM
    
    
    Expected output:
    
             venkatesh            hyd      2
             venkatesh            hyd        2
             prasad                 hyd        3
             prasad                   hyd      3
             prasad                   hyd      3
             krishna           hyd       1
    Published by: Nag Aswadhati on November 1, 2012 12:34

    Aswadhati NAG wrote:
    Hi all

    I want to display the number of rows times the value exists in the column num in the query below

    Expected output:
    
    venkatesh            hyd      2
    venkatesh            hyd        2
    prasad                 hyd        3
    prasad                   hyd      3
    prasad                   hyd      3
    krishna           hyd       1
    

    With the help of connection by: -.

    with t AS
       ( SELECT 'venkatesh' NAME, 'hyd' LOC, 2 NUM FROM DUAL
         UNION ALL
         SELECT 'prasad' NAME, 'hyd' LOC, 3 NUM FROM DUAL
         UNION ALL
         select 'krishna' name,     'hyd' loc, 1 num from dual )
      select t.name, t.loc
      from t
      connect by level <= num
             and name = prior name
             and (prior sys_guid() is not null);
    
    NAME      LOC
    --------- ---
    krishna   hyd
    prasad    hyd
    prasad    hyd
    prasad    hyd
    venkatesh hyd
    venkatesh hyd 
    
     6 rows selected
    
  • BI Publisher - how to display the number of lines displayed at the bottom of the table on each page

    Hello

    We are the conversion reports Actuate BEEP and not able to understand how to view "Accum.Total = < n >" at the bottom of each page. In the attached report to operate it, "Accum.Total = < n >" must be displayed at the bottom of each page where < n > is the number of lines displayed on the current page and previous page.

    For example, if there are 10 rows in the result set, if the 1st page displays 4 rows, 2nd page displays 3 rows and 3rd page is 3 lines and then Accum.Total = 4 on page 1, Accum.Total = 7 on page 2 and Accum.Total = 10 on page 3.

    Note that we use the property table "allow the lines to break Pages = False" as we do not want a specific line can be split across pages.

    I enclose a sample of report actuate, rtf, BEEP and XML report for testing file.

    Approach used so far-

    1 > I tried to put the counter in the footer, but it seems that only the fields that come directly from the IC can be used on the header/footer. No matter what form text field or variables defined in the report.

    2 > I used approach given in the link below. Using this approach, I am able to view a coded value hard at the bottom of every page (just below the table) but his does not work for the variable (in my case the counter c1).

    https://blogs.oracle.com/xmlpublisher/entry/continued

    3 > on Google, I found a few articles on the page break conditionally as display only certain numbers on a page or the page by section break but in our case, its dynamics and its number of lines to display on a page is driven by data, so I could not think of a certain condition to use in "Condition." ": If" for use as a page break.

    Thank you

    Richa

    Watch see the-Report

    http://docs.Oracle.com/CD/E28280_01/bi.1111/e22254/create_rtf_tmpl.htm#do_bf_cf

    Download the https://blogs.oracle.com/xmlpublisher/entry/continued sample

    Add

    <>

    name = "contd_footer".

    format = "99G999G999" / >

    After the field "Footer."

    If need to use a footer to display the meter then and sous-modèle with code above and call it in footer

  • How to display the time elapsed/current of a song in Actionscript.

    Hi I have a question on how I can make my code to display an total time for a song from a media player, I have created with Actionscript 3.0, using XML to load the track of the song.

    It's my current function, what I've done and I'm not sure on what the problem is that does not have the time to be displayed in a textfield on my stage.

    stage.addEventListener (Event.ENTER_FRAME, timeElapsed);

    function timeElapsed(e:Event):void

    {

    var minutesCurr:Number = Math.floor ((my_channel.position /1000)/60);

    var secondsCurr = Math.floor ((my_channel.position /1000) % 60);

    If (secondsCurr < 10)

    {

    secondsCurr = '0' + secondsCurr;

    }

    var minutesTot:Number = Math.floor ((my_sound.length /1000)/60);

    var secondsTot = Math.floor ((my_sound.length /1000) % 60);

    If (secondsTot < 10)

    {

    secondsTot = '0' + secondsTot;

    }

    completeText_txt.text = minutesCurr + ': ' + secondsCurr + ' / ' + minutesTot + ': ' + secondsTot;

    }

    I tried to add to the scene and I get a null object reference.

    Thanks, Casey

    1009 error indicates that one of the objects targeted by your code are out of reach.  This may mean that the object...

    -is declared but not instantiated

    n ' is not have an instance name (or the name of the instance is misspelled)

    n ' is not in the frame where this code tries to talk to her

    -is animated in place, but is not assigned the name of the instances of each keyframe for her

    -is one of the two or more consecutive keyframes of the same objects without a name assigned in the image previous (s).

    If you go to your section to publish the Flash settings and select permit debugging option, your error message should have a suite of line number the number of the frame that will help you to isolate the object that is involved.

  • How to display the number of dynamics and the progress bar graphic on the title of the region

    Hello

    I have several show/hide parts of a report on a dashboard page. When the user comes to this dashboard page, it see areas collapsed and a status appropriate for each region and click on the region concerned the status listed in the title bar of region-based. Each region show different reports as "Exits", "Tasks", "Communiqué of progress" etc., for example, the user want to see the number of questions and tasks as a number displayed on the side right of the 'from', 'Tasks' area, in the same line as the title of the region. In addition, the user wants to see a progress bar graphic of liitle for the region 'Progress of the liberation' displayed on the right side of the area, in the same line as the title of the report. I have the return function to get these numbers and the graphic progress bar, but do not know how to post them on the right side of the area in the same line as the title of the region. all the ideas are really appreciated.

    Thanks for your time,
    Surya

    Seems interesting. Could create an example on apex.oracle.com experiment?

    Try this approach:

    Create an item hidden in each region to receive these values of synthesis (e.g. P1_DASH_TASK_COUNT) and calculate them the or some functions in regions before calculations.

    These values using the notation of substitution in the region of reference titles:

    Tasks &P1_DASH_TASK_COUNT.
    

    This can then be styled with CSS to get the look required, starting with:

    .dash-summary {
      float: right;
    }
    

    Exactly what is required in the CSS will depend on the theme/template used, why it would be a good idea to see on apex.oracle.com.

  • How to display the voltage and current of synchronously

    Recently, doing a project on the acquizeing voltage and current synchronouly, then display. the design is welding a resistor(1%) 0.5 ohm in NI 6251 entered analog of her HAVE differential, then acquired the differential voltage at the input to convert current. At the same time, I hope to recover the path of analog input voltage. My problem is that the current profile data. Please help me .the program screenshot is show below. ---1. Perhaps you ask why not use no. - a way to get voltage at all port of AI, then in the use of the software less to get a voltage inputs HAVE. in this way, my problem is solved. I try, but the current accuracy is failure. because my current range expect is 1uA ~ 100mA. precision current samll won't be promised if you use simple ways for granted NOR 6251 voltage. NEITHER 6251 device spec (HAVE an absolute precision) (v) nominal range sensitivity absolute Accuracy (uV) 10 1920 112 5 1010 56 2 410 22.8 74 0.2 6.4 0.1 52 6.0 (I want to use this range to measure current samll) - cordially Shawnh.Chen

    shawn1 wrote:
    1. how show the waveform by accumulating 1 d data table, rather than showing all 100 acquisition

    Use a waveform graph.  Graphics keep history, you do not have to accumulate the data.  He does it for you on the screen.

    shawn1 wrote:
    2. What is the minimum unit of identification of the TSC103IPT amplifier? I doubt that the 0.5uA can be identified? (0.5uV = 0.5 ohm * 1uA) Because I can't find anything on the auccary in TSC101IPT datasheet.

    The amplifier is analog.  Thus, he can win anything.  But you should really think about a higher resistance if you really want to measure this small of a current.

  • How to display the arraylist &lt; list &gt; jsf page

    HII all,.

    I'm having a jspx page where I want to display the value from a bean class Get accessor...

    the Get accessor returns a list Arrarylist

    and I want to display the list of table in its entirety on the jspx page when it is loaded.

    The method is: -.

    public ArrayList < list > getMyList() {}
    myList = getDocumentProperties ();
    return myList;
    }

    How to navigate the entire list on jsf... ??

    any idea... !!

    Thank you

    You can use or in an ADF Faces page to iterate over the items returned by the method getMyList() of the bean:

    
      
    
    

    If you want to browse the internal lists, then use a nested iterator:

    
      
        
      
    
    

    Dimitar

  • How to display the number of steps on Apple Watch

    I want to read on Apple Watch the number of steps I did in one day

    http://www.IMore.com/how-view-your-step-count-Apple-watch

  • How to display the number of steps on the dial of the watch

    I so enjoyed my Fitbit wanted an Apple Watch, but may not know how to get the steps, heart rate, etc., on the dial of the watch so I don't have tro go in applications every time.  Any thoughts?

    Thank you very much!  I think I can do this :)

    Really useful.

    Jan

  • How to identify the number of current row in a tabular form?

    Hi all

    I have a tabular presentation on the emp table. I want to recalculate the commission only column for the row where I changed the number of salaries. I gave my javascript below. I'm trying to triggerItem.slice (4) to identify the line number, but it doesn't seem to work. Anyone can point out the issue with it please?
    <script language="JavaScript" type="text/javascript">
    
    function getTheCurrentRow(triggerItem){   
          var theRow = triggerItem.slice(4);
          return theRow;         
    }
    
    function getComm(){
       var theRow = getTheCurrentRow(pThis.id);
       document.wwv_flow.f05[theRow].value = (document.wwv_flow.f04[theRow].value)*0.1;
    }
    </script>
    I use Oracle 10 g and Apex 4.0.

    Thank you

    Hello

    You forgot pThis in your second code I think.

    function getComm(pThis){
       var theRow = getTheCurrentRow(pThis.id);
       document.wwv_flow.f05[theRow].value = (document.wwv_flow.f04[theRow].value)*0.1;
    }
    

    You must call getComm thereby

       getComm(this);
    

    Thank you

  • How to display the number of selected images?

    Hello!

    Editing window displays useful information.

    How can I see the currently selected in the timeline panel images?

    flash-cc.png

    This information is useful to me often when the fine tuning of animation time.

    Best regards!

    http://forums.Adobe.com/thread/1035618

  • How to display the number of option button

    Hi gurus,

    IM my page based on the login name should show buttons.no radio radio buttons will be depends on the logon name.
    How to do this?

    Thanks in advance
    Knockaert

    Hello

    -In co processRequest, you can get the connection information...

    String userName = pageContext.getUsername ();

    AM. Method (username);

    -In the Module of the application:

    Method public void (String userName)
    {
    If ("Mgr".equalsTo (username))
    String where = "Lookupcode = 'A'; - as here you can pass to condition"
    on the other
    String where = "Lookupcode = 'B'; - as here you can pass to condition"

    VOImpl vo = getVO1();
    vo.setWhereClauseParams (null);
    vo.setWhereClause (where);
    vo.clearCache ();
    vo.executeQuery ();
    }

    Concerning
    Meher Irk

    Published by: Meher Irk on November 10, 2010 07:08

  • How to display the connections Discoverer Plus page

    Hello
    With the URL I need access discoverer, I don't see the option to create connections as shown below in the user guide.
    http://download.Oracle.com/docs/HTML/B13915_04/intro_start.htm#CHDEIGIF
    Require a configuration on the server?
    I have a fashion apps EUL on discoverer 10.1.2.2.

    Thank you
    Ma'ariv

    Hello
    Alternatively, you can change it by changing the configuration. XML on the server.
    you just need to change the value of 'useConnectionMgmt' to true or false, as you like.
    Also if you're already here so I also propose to change 'webcache' false

Maybe you are looking for

  • iPod Nano Bluetooth incompatibility

    My iPod has water damage and cannot be repaired. It offered me a replacement which I accepted. The new device had a problem with sound when it is connected to a bluetooth speaker. The unit has been returned, and whenever I got a new machine the probl

  • Satellite A100-811 - maximum memory capacity

    I have an old A100-811 Satellite with Windows XP SP3. It has 1 GB of memory (2 x 512). I want to improve the memory. What should I do? 1. put another memory of 2 GB so the total is 2.5 GB (will I get in trouble for using two types of 512 MB and 2 GB

  • W540 - wifi disabled after reboot - Intel (r) Dual Band Wireless-AC 7260

    Hello WiFi adapter is not started after the reboot. I have the latest bios and drivers installed. The w540 is new and my old w540 backup has been restored. My restored backup and from my new w540 hardware change is improved, dual band wifi. Hope some

  • RE: WINDOWS XP SP3 of queries sent October 2, 2010 dear Sir,

    RE: Queries WINDOWS XP SP3 Envoy on October 2, 2010 Dear Sir. We just installed Service Pack 3.  Now several changes have taken place, we want to reverse. 1. all records have the beginning with FILE menu command FIND the best choice (in bold).  That

  • Very annoying local firewall alert detechting a parent request unauthorized

    Alert Firewall detected an unauthorized request of parent. I block and remove a notice of our protection of fiewall search protocal host exe application is the parent of a process that is in communication. Do you want to be an authorized parent. He c