How to count the page that is provided on page element

How to count the page that is provided on page element

Hi durgeshj41842015,

the kDocBoss has an IPageList interface with GetPageCount() function.

Markus

Tags: InDesign

Similar Questions

  • How to position the page element?

    Hello

    I created a report in the same region, has also created a page element in the same region. The page element is now on the top of the report, but I need to show in the report. How can I achieve that?

    Thank you

    Victor

    Depends on your version of the apex. 4.1/4.2ish there is an attribute on the region of the "Position of the display element.

    Enter this below content.

  • How to use the entry that is provided in the form of report parameters and use it in a field to a report parameter.

    Hi, I'am, creating a new report, which is a combination of ' form_letter & tabular ' style.

    I also created a report with 2 inputs parameter, which is 'to_date' & 'from_date '.

    The value that will be inserted in 'to_date' & 'from_date' in the parameter_form, should be displayed in the report.

    So to do this, I created a field for 'to_date' & added the code for him in the pl/sql Editor.

    the code is as below:

    function boolean return F_TO_DATEFormatTrigger is

    date of f_to_date;

    Start

    f_to_date: =: PF_P_TO_DATE;  VALUE ASSIGNMENT (f_to_date) OF ENTRY OF PARAMETER the REPORT (PF_P_TO_DATE) FIELD.

    return (f_to_date);

    end;

    BUT I GET THE ERROR MESSAGE "THE FOLLOWING LINK VARIABLE IS NOT SET TO REP-0730: PF_P_TO_DATE.»

    I tried to decode the error, but I think that the problem is different. (The code above only works if "PF_P_TO_DATE" was part of the statement of the query, which is one of the columns of database, but PF_P_TO_DATE is a parameter). So can someone please help me with how can I take the value of input parameter and display it on the field in the report?

    Thank you.

    Hello

    Basically, you need to print the date two file - entry mark on your report.

    1. you get just two entry.

    2. in the layout - on header of page - Insert filed-> select source Frm_Date field.

    3. Repeat step 2 for the Date of filing.

    Now you should get that don't you need.

    If this isn't the case, work let me know the details.

  • How to count the number of hit on the page, click

    Hello..
    can someone tell me...
    How to count the number of hit on the page, click

    Thanks in anticipation...

    Somethig like that?
    http://www.baigzeeshan.com/2011/12/Oracle-ADF-storing-temporary-values-in.html

  • How to count the number of pages on the spread

    How to count the number of pages on the spread

    #include "ILayoutControlData.h".

    #include "ILayoutUIUtils.h".

    #include "ISpread.h".

    InterfacePtr layoutData (Utils()-> QueryFrontLayoutData());

    If (layoutData)

    {

    UIDRef spreadRef is layoutData-> GetSpreadRef();.

    InterfacePtr activeSpread (spreadRef, UseDefaultIID ());

    Int32 count is activeSpread-> GetNumPages();.   Number of pages of active propagation.

    }

  • When I go to some sites I don't see the pictures that are provided by some sites

    Fixing my computer
    When I go to some sites, I don't see the pictures that are provided by some sites how can I fix

    The following links may be worth a visit:

    (283807) pictures are not displayed on Web Sites in Internet Explorer
    http://support.Microsoft.com/default.aspx?scid=kb;en-us;283807

    (837489) content of the Web site not all charges
    When you use Internet Explorer 6
    http://support.Microsoft.com/?kbid=837489

    (915158) red X appears instead of a
    photo on some Web pages in Internet Explorer
    in Windows XP
    http://support.Microsoft.com/?kbid=915158

  • How to count the number of nodes under each parent in any given xml

    How to count the number of nodes under each parent in any given xml. for example the xml below was
    books has 3 childern, library [1] has 4, [2] library has 6 and bookshop [3] has 2. is it possible to get the number of tags in a childnode duplicate IE library [1]
    Book1 Tagus repeated twice... vice versa. do we need to make plsql lie we can achieve through sql

    < book >
    < library >
    ABC < book1 > < / book1 >
    BCA < book2 > < / book2 >
    ACR < book1 > < / book1 >
    Lac < Book4 > < / Book4 >
    < / book >
    < library >
    ABC < book1 > < / book1 >
    BCA < book2 > < / book2 >
    ACR < book3 > < / book3 >
    ACR < book3 > < / book3 >
    tray of < bookn_1 > < / bookn_1 >
    adjusted cost base < bookn > < / bookn >
    < / book >
    < library >
    ABC < book1 > < / book1 >
    BCA < book2 > < / book2 >
    < / book >
    < / books >


    I tried this... query.

    Select
    XMLQUERY ('count($doc/Books/Bookstore[1]/descendant::*)' in the way of xmltype ("< books >
    < library >
    ABC < book1 > < / book1 >
    ACR < book1 > < / book1 >
    Lac < Book4 > < / Book4 >
    < / book >
    < library >
    ABC < book1 > < / book1 >
    BCA < book2 > < / book2 >
    < / book >
    (< / books > ')
    as 'doc' of happy return) .getNumberVal () as node_count
    of the double

    Select
    XMLQUERY ('count($doc/Books/descendant::*)' in the way of xmltype ("< books >
    < library >
    ABC < book1 > < / book1 >
    ACR < book1 > < / book1 >
    Lac < Book4 > < / Book4 >
    < / book >
    < library >
    ABC < book1 > < / book1 >
    BCA < book2 > < / book2 >
    < / book >
    (< / books > ')
    as 'doc' of happy return) .getNumberVal () as node_count
    of the double

    How can I get the counts for each parent in a single query

    Published by: user7955917 on August 24, 2012 07:26

    Generic function how you want the query to be.

    If the structure is known in advance, as in your example a 'books' and then a 'library' root element, it's as simple as:

    SQL> select x1.parent_id, x2.child_name, count(*)
      2  from tmp_xml t
      3     , xmltable(
      4         '/books/bookstore'
      5         passing t.object_value
      6         columns parent_id   for ordinality
      7               , child_list  xmltype path '*'
      8       ) x1
      9     , xmltable(
     10         '/*'
     11         passing x1.child_list
     12         columns child_name varchar2(30) path 'name()'
     13       ) x2
     14  group by x1.parent_id, x2.child_name
     15  order by x1.parent_id, x2.child_name
     16  ;
    
     PARENT_ID CHILD_NAME                       COUNT(*)
    ---------- ------------------------------ ----------
             1 book1                                   2
             1 book2                                   1
             1 book4                                   1
             2 bookn                                   1
             2 bookn_1                                 1
             2 book1                                   1
             2 book2                                   1
             2 book3                                   2
             3 book1                                   1
             3 book2                                   1
    
    10 rows selected
     
    

    If you want a generic solution that works without knowledge of the structure, you will need a recursive approach, and most importantly, you should know which nodes in distinct, I suppose that the leafs?

    Also, please help if you can provide the link of reference on the function name() years what are the other expression, that I can use after the path

    You can start reading the documentation: http://docs.oracle.com/cd/E11882_01/appdev.112/e23094/xdb_xquery.htm#CBAGCBGJ

    The clause PATH expects a XQuery expression however before 11.2, we can put only simple XPath expressions.

  • I deleted pages by error, anyone know how to reinstall the pages? Thank you!

    I deleted pages by mistake with mackeeper, anyone know how to reinstall the pages? Thank you!

    First - get rid of MacKeeper - it will wreak havoc with your Mac. This is an absolute piece of garbageware. See this link for full instructions:

    How can I remove mackeeper to my macbook pro

    For re - download pages to your Mac, open the Mac App Store, and then click "buy". You should see that pages listed there with the button download beside him.

    Good luck

    GB

  • How to prolong the time that deleted files stay for me to see

    How to prolong the time that deleted files stay for me to see

    Original title: files deleted

    How to prolong the time that deleted files stay for me to see

    Hello

    You ask about the trash?

    Files remain in the Recycle Bin until you manually clear the location or you or someone else, manages the disk cleanup.

    If you do not ask the trash, please provide details.

    Don

  • How to change the page numbers after adding &amp; save page numbers in the pdf document - need to change the existing page printed on the upper right in the header numbers

    How to change the page numbers after you add and save the page numbers in the pdf document - need to change the existing page printed on the upper right in the header numbers.

    These page numbers were initially created using Acrobat PDF header and footer.

    I have a 750 page pdf document that I've created.

    I have to sometimes the pages up and down after that I added the page numbers in the document by using the Header_Footer tool on the right column of tools.

    But after you save the document, if I get a few pages around, I can't go back and change the page numbers.

    I thought that the page numbers, as indicated in the header and footer must have changed automatically, but I guess that once its print, that it cannot be edited - is that, as what is?

    So I guess we should always first get a copy without numbers of pages before confirming the documents and the creation of an index.

    A way to remove these page numbers already there and add new page numbers.

    Its a lot of work to align 750 court documents and then realize that you must move some and then realize the page numbers cannot be changed and thus begin to do this all over again to compile which can take about 10 hours.

    My question is quite simple, but I hope that overall, I got my point. Sorry if I made it is too complex.

    If no simple way, want to know if anyone has another different tool or a few recommendations to better highlight what I'm doing wrong.

    Thank you for your review and response.

    You should be able to update with tools - Pages - header & foot-

    Update... It not work for you?

    If this isn't the case, then try to remove from this menu and then re - adding them.

    Tuesday, June 23, 2015 23:55, Fortune Mile [email protected]>

  • How to count the number or lines in the file

    Hi Experts,

    I'm file as source and Oracle as target. My folder that contains some data that will load the target.
    My requirement is that I want to count the number of lines that contains my folder. Please help me how to count the total number of lines in the file.


    THX,
    Sara.

    Hi Sahaveda,

    Now, I tried and it works.

    Sorry my mistake again.

    I created HR. ETL_FILE_LOG as below:

    CREATE THE TABLE HR. ETL_FILE_LOG (numero_fichier varchar2 (10))

    Below the code will run without error:

    import java.lang as lang

    import java.sql SQL

    import of java.lang.String

    Import os

    disadvantages is sql. DriverManager.getConnection ("<%=snpRef.getInfo("DEST_JAVA_URL")%>", "<%=snpRef.getInfo("DEST_USER_NAME")%>", "<%=snpRef.getInfo("DEST_PASS")%>")

    dblinks = cons.createStatement)

    File1 = Open ('c:\EMP.txt','r')

    Count = 0

    Line = file1. ReadLine()

    all online! ='' :

    Count += 1

    Line = file1. ReadLine()

    File1. Close()

    sqlQuery = "insert into HR. "The values of ETL_FILE_LOG (numero_fichier) (" + str (count) + ' ") '.

    rqQuery = dblinks.execute (sqlQuery)

    jerks. Close()

    Concerning

  • How to use the value of the page element in other pages too?

    Hi all

    How to pass the value of the item P26_NO from 26 to all other pages (such as 1, 2, 3... 25) using the & P26_NO. ???
    I set the default for this item.but I can't able to find value in the session state itself?

    Please post your suggestion here!

    Thank you and best regards,
    Robette.

    Robette wrote:
    Hi Amelia,.

    Through application process only we can able to save the page element value in session state? is there another way?
    Since my requirement is like I need to display footer text in all the pages, I have the version number included in this text, so I created a table and my intention to create an item and passing the point value for all other pages and see that point value & P26_NO. in the text. Version number is dynamic, it will change at each deployment.
    Is another way simple, other than my approach?

    Thank you best regards &,.
    Robette.

    You should use point demand for it and an application process to fill

    IF :APP_ITEM_NAME IS NULL THEN
      APEX_UTIL.SET_SESSION_STATE('APP_ITEM_NAME','myvalue');
    END IF;
    

    Published by: VC on June 25, 2012 13:48

  • How to find the page contains the indesign sdk?

    PLS, someone help me, how to find the page contains the indesign sdk?

    Thank you

    screen410099

    Don't know, if you find a shorter way, but it works:

    UIDRef language = YOUR_TABLE;

    Error result code.

    do

    {

    InterfacePtr textModel;

    TextIndex beginning;

    Len Int32;

    result = table_get_text_model (read, 0, 0, textModel, start, len);

    If (result! = kSuccess) break;

    If (! textModel) break;

    UIDRef frameRef = text_query_frame (textModel, start);

    If (! frameRef) break;

    Int32 pnum = - 1;

    PageRef UIDRef = page_getref (frameRef, &pnum);)

    If (! pageRef) break;

    :

    :

    } While (false);

    //***************************************************************************

    Error code (Table_get_text_model)

    Language UIDRef,

    Int32 left,

    top of Int32,

    InterfacePtr & textModel,

    TextIndex & start,

    Int32 & len)

    {

    Result ErrorCode = kFailure;

    do

    {

    Inits

    textModel = InterfacePtr (Nile);

    Start = 0;

    Len = text::kTextLen;

    Make sure that we have a valid table model

    InterfacePtr tableModel (label, UseDefaultIID());

    if(!tableModel) break;

    convert the network to a network ID address

    GridAddress gridAddress (top, left);

    get the container text table so we could make the text template.

    InterfacePtr tableTextContainer (tableModel, UseDefaultIID());

    if(!tableTextContainer) break;

    textModel = InterfacePtr (tableTextContainer-> QueryTextModel());

    if(!textModel) break;

    InterfacePtr tableTextContent (tableModel, UseDefaultIID());

    if(!tableTextContent) break;

    GA GridArea (up, left, top + 1, left + 1);

    Len = tableTextContent-> GetTextChunk (ga, start);

    If (! len) break;

    result = kSuccess;

    } While (false);

    return the result;

    }

    //***************************************************************************

    #if (csversion_<>

    # define ITextFrameC_ ITextFrame

    #else

    # define ITextFrameC_ ITextFrameColumn

    #endif

    UIDRef text_query_frame (InterfacePtr txt, TextIndex istartPos)

    {

    UID uid = kInvalidUID;

    TextIndex startPos = istartPos;

    do

    {

    If (! txt) break;

    INNERE Textrahmen of the items

    InterfacePtr frameList (txt-> QueryFrameList ());

    If (! frameList | frameList-> GetFrameCount ())<= 0)="">

    First INNERER Textrahmen of the items

    InterfacePtr textFrame (frameList-> QueryNthFrame (0) / * QUF,: UseDefaultIID () * /);

    #ifndef (csversion_<>

    Location of RangeData (startPos, startPos);

    #else

    TextIndex location = startPos;

    #endif

    Int32 frameIndex = - 1;

    InterfacePtr tf = InterfacePtr (Nile);

    If (startPos < txt-=""> tf TotalLength ()) = InterfacePtr (frameList-> QueryFrameContaining (location, & frameIndex));

    of other tf = InterfacePtr (frameList-> QueryNthFrame (frameList-> GetFrameCount () - 1));

    If textFrame (tf) tf =;

    If (! textFrame) break;

    //

    Aus dem first inner Textrahmen bilden wir jetzt eine hierarchy.

    In der Ebene uber hierarchy suchen wir jetzt nach nach einem dieser

    Objekt, das ein Graphicrahmen ist. Dieses element ist der gesuchte

    ÄUßERE Rahmen.

    //

    InterfacePtr child (textFrame, UseDefaultIID());

    If (! child) break;

    do

    {

    InterfacePtr parent (child-> QueryParent());

    If (parent == nil) break;

    InterfacePtr graphicFrameData (parent, UseDefaultIID());

    If (graphicFrameData! = nil)

    {

    We have a regular text frame.

    UID =: GetUID (graphicFrameData);

    break;

    }

    child = parent;

    } While (child! = nil);

    } While (false);

    If (uid == kInvalidUID) return UIDRef (Nile, kInvalidUID);

    Return UIDRef (: GetDataBase (txt), uid);

    }

    //***************************************************************************

    #if (csversion_<>

    # define GLayout_:

    #else

    # define GLayout_ Utils ()->

    #endif

    UIDRef page_getref (const UIDRef & frameRef, int32 * pgNum)

    {

    UIDRef result = UIDRef::gNull;

    do

    {

    If (pgNum) * pgNum = 0;

    If (! frameRef) break;

    InterfacePtr itemHier (frameRef, IID_IHIERARCHY);

    If (! itemHier) break;

    If (! pause frameRef.ExistsInDB ());

    ES more like evil EIB GetOwnerPageUID AB. ICH denke badly, at least

    Ein muss ein Rahmen wohl schon haben Parent. Wenn wir da keinen find,.

    tschüss Dann.

    InterfacePtr parent (itemHier-> QueryParent());

    If (! parent) break;

    PageUID UID = GLayout_ GetOwnerPageUID (itemHier);

    If (pageUID == kInvalidUID) break;

    result = UIDRef (frameRef.GetDataBase (), pageUID);

    If (pgNum)

    {

    IDataBase * db = frameRef.GetDataBase ();

    If (! db) break;

    UIDRef docRef (db, db-> GetRootUID ());

    InterfacePtr PageList (docRef, IID_IPAGELIST);

    If (!.) (Break from PageList);

    Int32 pageIndex is PageList-> GetPageIndex (pageUID);.

    * pgNum = pageIndex;

    }

    } While (false);

    return the result;

    }

    //***************************************************************************

  • Not sure how to get the result that I need.

    Hi all

    I'm not a very good programmer, but I'm learning so please bear with me.

    My problem is that I need to be able to create a page that we can imput two dates and get all the items in our database which are equal or between imputted dates and be sent to the page.

    The part of sql is not my problem, but I'm not sure on how to create the page with in the date boxes.

    As it is now I have created the page, but it is retreving all elements of my table and comes it a grid of smiple and the output how many entries table for this is manageable.

    So, if someone can help me or point me in the right direction that would be great.

    Thnaks

    Pat

    Basis of a form.

    Basis of a SQL clause

    
      SELECT aField,bField,cField
      FROM aTable
      WHERE aDateField BETWEEN
               AND
              
    
    

    There is much for you to learn and understand to make a function and a business page.  But you should get at least close to return results.

  • How to count the number of data records?

    Hey guys, how to count the number of records, I had on a data object variable?

    Im having a result of sql query in a variable like this:

    oDB.resolveNode("#command").query.select.value = "SELECT * FROM Customers WHERE CliNombre LIKE ' % ' + input1 +" %' ";

    oDB.open ();

    oDB.first ();

    So I need to count the number of records retrieved by this SQL query at the moment. Help please

    Then move the cursor back to the first record after you have your account.

    There is a keyword count in SQL that will allow you to get the account of your request. You can run that first - get your account, and then run the actual query to get the Recordset. This would require a separate data connection. Some examples of code.

    var xfa.event.newText = inName;
    If (inName == "") {}
    App.Alert ("you must enter a name--try again!")
    }
    var nIndex = 0;
    While (xfa.sourceSet.nodes.item (nIndex) .name! = "DataConnection2")
    {
    nIndex ++;
    }

    oDB = xfa.sourceSet.nodes.item (nIndex) .racing var (1); pertaining to the specified data connection node
    App.Alert (ODB.saveXML ("Pretty"));

    var nIndex = 0;
    While (xfa.sourceSet.nodes.item (nIndex) .name! = "DataConnection3")
    {
    nIndex ++;
    }
    var oDBCount = xfa.sourceSet.nodes.item (nIndex) .racing (1); pertaining to the specified data connection node
    Configure sql call DB to get the number of records that match the criteria

    oDBCount.nodes.item (1).query.setAttribute ("text", "commandType");
    oDBCount.nodes.item (1).query.select.nodes.item (0) .value = "Select count (*) from table1 where AcctNumber = '" + inName + "'";
    oDBCount.open)
    oDBCount.close)

    Configure sql call DB to get the specified employee number

    oDB.nodes.item (1).query.setAttribute ("text", "commandType");
    oDB.nodes.item (1).query.select.nodes.item (0) .value = "Select * from table1 where AcctNumber = '" + inName + "'";
    App.Alert (ODB. Nodes.Item (1) .saveXML ("Pretty"));

    now connect to the DB and get a recording
    oDB.open)
    oDB.close ();

    Note the SQL command use the keyword count (take a look at the oDBCount section). This will return a number of return to the cllaer. When I set up the data connection, a node count (*) that appeared there. I dragged to the form and it has created a field called count that the onus at this node. When the query is executed, the number of resulting records returns to this field. You can have hidden it so that your users can not see it and also to change the binding votes to zero, so it is not included in the data file that is submitted when the form is complete.

    Paul

Maybe you are looking for