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

Similar Messages

  • 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!)

  • WRT54G v7.0 How to increment TTL value for input packets

    Hi guys
    I bought Linksys WRT54G v 7.0 and want share internet connection. But my ISP(connetion is PPPoE) make TTL of incoming packets 1. How can increment the value of incoming packets?
    Best Regards
    Dimitar Kolev

    Hi guys
    I bought Linksys WRT54G v 7.0 and want share internet connection. But my ISP(connetion is PPPoE) make TTL of incoming packets 1. How can increment the value of incoming packets?
    Best Regards
    Dimitar Kolev

  • How to add two values from a textField ???

    Hi all,
    I'm new to Java and the J2ME, I jumped to J2ME immediately, and I'm wondering how can I compute two values coming from textField. Let say I would add this two values,.
    like
    txtAnswer = txtNum1 + txtNum2 ; (in some other PL)
    Here's my snippet code in J2ME
    TextField txtAnswer = new TextField("Answer ","",10,TextField.NUMBER);
    TextField txtNum1 = new TextField("Number1 ","",10,TextField.NUMBER);
    TextField txtNum2 = new TextField("Number2 ","",10,TextField.NUMBER);
    Command cmdAdd = new Command("ADD",Command.SCREEN,1);
    // add the UI
    What would be the code inside my commandAction method?
    Thanks a lot.
    God Bless.

    Thanks JC,
    I already solved the problem, JC you provided the right answer, it's my fault why my program does not run at the first time.
    Thanks,. I'm just wondering the difference between these two implementaiton and why does the first implementation causes an error, (an error that I posted before this.)
    Implementation 1
    public class myClass extends...... implements .... {
    private TextField txtNum1, txtNum2, txtAns;
    public void myFunctionAdd( )
    TextField txtNum1 = new TextField("Number1 ","",10,TextField.NUMERIC);
    TextField txtNum2 = new TextField("Number2 ","",10,TextField.NUMERIC);
    TextField txtAns = new TextField("Answer","",10,TextField.NUMERIC);
    public void commandAction(Command c, Displayable s )
    if ( ....... )
    int answer = Integer.parseInt(txtNum1.getString()) + Integer.parseInt(txtNum2.getString() );
         txtAns.setString(String.valueOf(answer));
    Implementation 2:
    public class myClass extends...... implements .... {
    private TextField txtNum1, txtNum2, txtAns;
    public void myFunctionAdd( )
    txtNum1 = new TextField("Number1 ","",10,TextField.NUMERIC);
    txtNum2 = new TextField("Number2 ","",10,TextField.NUMERIC);
    txtAns = new TextField("Answer","",10,TextField.NUMERIC);
    public void commandAction(Command c, Displayable s )
    if ( ....... )
    int answer = Integer.parseInt(txtNum1.getString()) + Integer.parseInt(txtNum2.getString() );
         txtAns.setString(String.valueOf(answer));
    What's seems to be the difference?
    Thanks for any kind reply....

  • How to Increment a Value by 1 in each execution of a Package

    Hi All,
    Below is a brief about my requirement,
    We have a requirement that we need to send workflow notification reminders 3 times with prefix like
    1st notification with prefix "REMINDER# 1"
    2nd notification with prefix "REMINDER# 2"
    3rd notification prefix "REMINDER#3 ", and these notifications will time out every 2 hrs.
    so the logic should be handled in PLSQL, i am not sure how can i achieve this.
    I have declared a variable and incremented the value by 1, we will execute the below block 3 times, the problem is all the time the value remains as 1 and lc_prefix is always  REMINDER#1 in all the notifications.
    Please advise a solution for this.
    when i execute the PLSQL block first time the value should be 1, if i execute the same block again the value should be 2 and 3 time the value should be 3.
    DECLARE
    ln_loop_count   NUMBER         := 0;
    BEGIN
    ln_loop_count=ln_loop_count+1
    IF ln_loop_count = 1
          THEN
             lc_prefix := 'REMINDER#1:';
          ELSIF ln_loop_count = 2
          THEN
             lc_prefix := 'REMINDER#2:';
          ELSIF ln_loop_count = 3
          THEN
             lc_prefix := 'REMINDER#3:';
          ELSE
             lc_prefix := NULL;
          END IF;
    END;
    Thanks,
    CSK

    Hi,
    CSK wrote:
    Hi All,
    Below is a brief about my requirement,
    We have a requirement that we need to send workflow notification reminders 3 times with prefix like
    1st notification with prefix "REMINDER# 1"
    2nd notification with prefix "REMINDER# 2"
    3rd notification prefix "REMINDER#3 ", and these notifications will time out every 2 hrs.
    so the logic should be handled in PLSQL, i am not sure how can i achieve this.
    I have declared a variable and incremented the value by 1, we will execute the below block 3 times, the problem is all the time the value remains as 1 and lc_prefix is always  REMINDER#1 in all the notifications.
    Please advise a solution for this.
    when i execute the PLSQL block first time the value should be 1, if i execute the same block again the value should be 2 and 3 time the value should be 3.
    DECLARE
    ln_loop_count   NUMBER         := 0;
    BEGIN
    ln_loop_count=ln_loop_count+1
    IF ln_loop_count = 1
          THEN
             lc_prefix := 'REMINDER#1:';
          ELSIF ln_loop_count = 2
          THEN
             lc_prefix := 'REMINDER#2:';
          ELSIF ln_loop_count = 3
          THEN
             lc_prefix := 'REMINDER#3:';
          ELSE
             lc_prefix := NULL;
          END IF;
    END;
    Thanks,
    CSK
    Are you sure this is the code you're running?  It looks like it would raise an error because you're using =  where := is required:
    ln_loop_count=ln_loop_count+1
    The answer to your question is in the title of your thread.  You want a package, not an anonymous block.  An anonymous block is compiled anew every time you run it.  A package can contain variables (such as ln_loop_count in the example below) that last as long as your database session lasts.
    Here's one way to do what you requested:
    CREATE OR REPLACE PACKAGE  pkg_lc
    AS
        FUNCTION get_lc_prefix
        RETURN VARCHAR2;
    END   pkg_lc;
    SHOW ERRORS
    CREATE OR REPLACE PACKAGE BODY  pkg_lc
    AS
        ln_loop_count PLS_INTEGER := 0;
        FUNCTION get_lc_prefix
        RETURN VARCHAR2
        IS
        BEGIN
            ln_loop_count := ln_loop_count + 1;
            RETURN  'REMINDER#' || ln_loop_count;
        END  get_lc_prefix;
    END  pkg_lc;
    SHOW ERRORS
    You can call the function in PL/SQL like this:
    str := pkg_lc.get_lc_prefix;
    or in SQL like this:
    SELECT  pkg_lc.get_lc_prefix
    FROM    dual;
    The package name is optional  when you call the function from inside the package itself.
    You may want (or need) to store the counter in a table, rather than in a package variable.

  • How to Increment a value automatically

    Hi,
    I have a table named "Tbl_Outdirection_Dtl" which contains the following fields
    Tbl_OutDirection_Dtl: Outyear, OUTNO, OTSERNO, DI_CODE,REPLYHDATE, INNO, INHDATE, IN_UD_UID, IN_REMARKS, SCLOSE, St_CODE, CONT_RECNUM.
    In this, the CONT_RECNUM is starting from 3200001 for the first record then it should be increment by one for the next new record. My Query is how to increment it automatically when I am trying to insert a new record with out mentioning this field?
    Please help me

    To add to Whitehat's comments - most of this table design does not seem correct from a standards perspective either.
    Tbl_OutDirection_Dtl: Outyear, OUTNO, OTSERNO, DI_CODE,REPLYHDATE, INNO, INHDATE, IN_UD_UID, IN_REMARKS, SCLOSE, St_CODE, CONT_RECNUM.Why the TBL_ prefix? It does not achieve anything ito scope, identification, usability or readability. It is useless. It is based on Hungarian notation that in today's software engineering environment, is just plain stupid. (and well-known programmers like Linux Torvalds has even worse names for it)
    What is the basic requirement for an object name (be that a hash table, a partition table, an index organised table or pipeline table function or whatever)? Describing accurately what that object is using a meaningful name. There is absolutely no need to identify the type of the object. (the type itself can easily change, but the object ito data model and attributes will remain constant).
    The column names are a mixed of "+let's use underscores+" and "+let's not use underscores+". The correct standard is using underscores and again, using meaningful names.
    For example, what does INHDATE means? And why does it not have underscores like the other columns? Compare that to for example HIRE_DATE that exactly tells you what the column contains.
    Note that the so-called standards you think you have learned and used with SQL-Server is not just not applicable - it actually does the converse of what standards do. It makes your code and data model more difficult to read, understand, and use.
    Basic SQL standards are simple. Meaningful names. Use underscores. Objects containing multiple entities (like employee rows for example), must be in plural - e.g. the ERD will describe the EMPLOYEE entity and the database model will contain the EMPLOYEES table.
    It is that easy and that simple.

  • How to display F4 values in one field based on other field selection

    Hi All,
    How to hide a UI element (i.e Link to action) highlited for Normal User and display the same to super user.
    Component Name : /SAPSRM/WDC_DODC_SC_GAF_C
    2.Can i know how to display  the entries in supplier field based on Product category selection.
    Right now all the entries are getting displayed in the supplier field.
    I want to display only entries based on Product category.
    Search Help Name : BBP_BUPA_CLL_PARTNER
    Component Name : /SAPSRM/WDC_DODC_SC_I_LIM
    How to enhance the web dynpro component with the filtered values.
    Regards,
    Krish.

    Hi Ashvin,
                 Thanks for the document. In the search help there is a standard FM which is getting executed.
    Can i enhance that FM or should i copy and edit.
    BBP_F4IF_SHLP_EXIT_CLL_PARTNER
    If i creata a Z FM and make changes how to pass that values to my standard Component View UI Element.
    If not then suggest me some alternative.
    Regards,
    Krish

  • How to print a value at the top of each page in the detail section of a rpt

    Thanks for helping, I will try to get right to the point.
    I have RTF template. Very simplistic template. I have the Group at the top (there is only 1 per XML file) and several DETAIL lines with like 10 columns.
    The first displayed field is "ACCOUNT_NUMBER". The user wished that if the ACCOUNT NUMBER for line 2 was the same as line 1, that it be suppressed, for example:
    Acct No other other other other
    1234 XX XX XX XX
    YY YY YY YY
    This was not a problem, I was able to accomplish it with the following code:
    <?if:position()=1 or ACCOUNT_NUMBER!=preceding::ACCOUNT_NUMBER[1]?><?ACCOUNT_NUMBER?><?end if?>
    But what happens is that IF THE FIRST line on a page has the same ACCOUNT_NUMBER as the last line on the previous page, the ACCOUNT NUMBER is not displayed.
    What I would like is for the ACCOUNT NUMBER to be displayed anytime we are at the first record on a page, AND anytime it is different from the previous record's value.
    I do not know how many lines per page are possible, because there are other line breaks which exist which put a space between lines when values change too. So I cannot just count how many total lines and divide it by lines per page.
    My thought was that there must be a way I could store a variable called LAST_PAGE, and at the end of each record, copy the current page number to that variable. Then in my ACCOUNT_NUMBER code, I could check if current page is NOT equal to last page along with my other conditions.
    1. Is this the best way to do this? If so, please help, I am new to BI and am having trouble figuring out where to put variables and stuff like that.
    2. If not, how can I do this?
    3. If your recommendation is going to be to group my items by Account Number, I may not have time to redo the report that way. I will happily supply the rtf and xml if that will help you help me.
    Regards:
    Michael Coughlin

    Here ya go. Obviously you can duplicate the G_DETAILS blocks to get enough for 2 pages. I have the data pre-sorted before the output is generated because I had trouble getting the RTF to work if I didn't, just so you know.
    <?xml version="1.0" encoding="UTF-8" ?>
    <!-- Generated by Oracle Reports version 6.0.8.28.0 -->
    <XXDIPICK_RPT>
    <LIST_G_HEADERS>
    <G_HEADERS>
    <SHIP_FROM_ORG_CODE>202</SHIP_FROM_ORG_CODE>
    <LINE_STATUS>Picked</LINE_STATUS>
    <LIST_G_DETAILS>
    <G_DETAILS>
    <SHIP_FROM_ORG_CODE1>202</SHIP_FROM_ORG_CODE1>
    <ACCOUNT_NUMBER>1000</ACCOUNT_NUMBER>
    <DELIVERY_NUMBER>8062</DELIVERY_NUMBER>
    <ORDER_NUMBER>103049</ORDER_NUMBER>
    <CUST_NAME>DIAMOND INNOVATIONS INT SALES - NEWCO</CUST_NAME>
    <DELIVERY_DETAIL_ID>12474</DELIVERY_DETAIL_ID>
    <LINE_NO>1.1</LINE_NO>
    <ITEM_NO>4087401</ITEM_NO>
    <ITEM_DESCRIPTION>HPD M SD-CTO-0 Pot</ITEM_DESCRIPTION>
    <OPEN_FLAG>Y</OPEN_FLAG>
    <CANCELLED_FLAG>N</CANCELLED_FLAG>
    <BOOKED_FLAG>Y</BOOKED_FLAG>
    <ORDERED_QUANTITY>1</ORDERED_QUANTITY>
    <ORDER_QUANTITY_UOM>EA</ORDER_QUANTITY_UOM>
    <SHIPPED_QUANTITY></SHIPPED_QUANTITY>
    <SCHEDULE_SHIP_DATE>2011-01-31T23:59:00+00:00</SCHEDULE_SHIP_DATE>
    <NAME>INTERNAL ORDER - US</NAME>
    <CUST_ACCOUNT_ID>16404</CUST_ACCOUNT_ID>
    <HEADER_ID>6446</HEADER_ID>
    <LINE_ID>7926</LINE_ID>
    <ORG_ID>84</ORG_ID>
    <SHIP_TO_ORG_ID>16050</SHIP_TO_ORG_ID>
    <INVOICE_TO_ORG_ID>16052</INVOICE_TO_ORG_ID>
    <SHIP_SET_ID></SHIP_SET_ID>
    <INVENTORY_ITEM_ID>63927</INVENTORY_ITEM_ID>
    </G_DETAILS>
    <G_DETAILS>
    <SHIP_FROM_ORG_CODE1>202</SHIP_FROM_ORG_CODE1>
    <ACCOUNT_NUMBER>1000</ACCOUNT_NUMBER>
    <DELIVERY_NUMBER>8062</DELIVERY_NUMBER>
    <ORDER_NUMBER>103049</ORDER_NUMBER>
    <CUST_NAME>DIAMOND INNOVATIONS INT SALES - NEWCO</CUST_NAME>
    <DELIVERY_DETAIL_ID>12475</DELIVERY_DETAIL_ID>
    <LINE_NO>2.1</LINE_NO>
    <ITEM_NO>3732307</ITEM_NO>
    <ITEM_DESCRIPTION>NV MBS 2325 Bushing Asm</ITEM_DESCRIPTION>
    <OPEN_FLAG>Y</OPEN_FLAG>
    <CANCELLED_FLAG>N</CANCELLED_FLAG>
    <BOOKED_FLAG>Y</BOOKED_FLAG>
    <ORDERED_QUANTITY>1</ORDERED_QUANTITY>
    <ORDER_QUANTITY_UOM>EA</ORDER_QUANTITY_UOM>
    <SHIPPED_QUANTITY></SHIPPED_QUANTITY>
    <SCHEDULE_SHIP_DATE>2011-01-31T23:59:00+00:00</SCHEDULE_SHIP_DATE>
    <NAME>INTERNAL ORDER - US</NAME>
    <CUST_ACCOUNT_ID>16404</CUST_ACCOUNT_ID>
    <HEADER_ID>6446</HEADER_ID>
    <LINE_ID>7927</LINE_ID>
    <ORG_ID>84</ORG_ID>
    <SHIP_TO_ORG_ID>16050</SHIP_TO_ORG_ID>
    <INVOICE_TO_ORG_ID>16052</INVOICE_TO_ORG_ID>
    <SHIP_SET_ID></SHIP_SET_ID>
    <INVENTORY_ITEM_ID>67865</INVENTORY_ITEM_ID>
    </G_DETAILS>
    <G_DETAILS>
    <SHIP_FROM_ORG_CODE1>202</SHIP_FROM_ORG_CODE1>
    <ACCOUNT_NUMBER>46711</ACCOUNT_NUMBER>
    <DELIVERY_NUMBER></DELIVERY_NUMBER>
    <ORDER_NUMBER>102980</ORDER_NUMBER>
    <CUST_NAME>VAREL EUROPE</CUST_NAME>
    <DELIVERY_DETAIL_ID>12356</DELIVERY_DETAIL_ID>
    <LINE_NO>1.1</LINE_NO>
    <ITEM_NO>11004002</ITEM_NO>
    <ITEM_DESCRIPTION>TYPE I 100/120 MISC</ITEM_DESCRIPTION>
    <OPEN_FLAG>Y</OPEN_FLAG>
    <CANCELLED_FLAG>N</CANCELLED_FLAG>
    <BOOKED_FLAG>Y</BOOKED_FLAG>
    <ORDERED_QUANTITY>75</ORDERED_QUANTITY>
    <ORDER_QUANTITY_UOM>CT</ORDER_QUANTITY_UOM>
    <SHIPPED_QUANTITY></SHIPPED_QUANTITY>
    <SCHEDULE_SHIP_DATE>2011-01-27T23:59:00+00:00</SCHEDULE_SHIP_DATE>
    <NAME>STANDARD ORDER - IRE</NAME>
    <CUST_ACCOUNT_ID>5004</CUST_ACCOUNT_ID>
    <HEADER_ID>6234</HEADER_ID>
    <LINE_ID>7312</LINE_ID>
    <ORG_ID>85</ORG_ID>
    <SHIP_TO_ORG_ID>18929</SHIP_TO_ORG_ID>
    <INVOICE_TO_ORG_ID>4995</INVOICE_TO_ORG_ID>
    <SHIP_SET_ID></SHIP_SET_ID>
    <INVENTORY_ITEM_ID>42032</INVENTORY_ITEM_ID>
    </G_DETAILS>
    <G_DETAILS>
    <SHIP_FROM_ORG_CODE1>202</SHIP_FROM_ORG_CODE1>
    <ACCOUNT_NUMBER>76127</ACCOUNT_NUMBER>
    <DELIVERY_NUMBER>7608</DELIVERY_NUMBER>
    <ORDER_NUMBER>102981</ORDER_NUMBER>
    <CUST_NAME>LION ENGINEERING SERVICES LTD</CUST_NAME>
    <DELIVERY_DETAIL_ID>12357</DELIVERY_DETAIL_ID>
    <LINE_NO>1.1</LINE_NO>
    <ITEM_NO>11004002</ITEM_NO>
    <ITEM_DESCRIPTION>TYPE I 100/120 MISC</ITEM_DESCRIPTION>
    <OPEN_FLAG>Y</OPEN_FLAG>
    <CANCELLED_FLAG>N</CANCELLED_FLAG>
    <BOOKED_FLAG>Y</BOOKED_FLAG>
    <ORDERED_QUANTITY>200</ORDERED_QUANTITY>
    <ORDER_QUANTITY_UOM>CT</ORDER_QUANTITY_UOM>
    <SHIPPED_QUANTITY></SHIPPED_QUANTITY>
    <SCHEDULE_SHIP_DATE>2011-01-27T23:59:00+00:00</SCHEDULE_SHIP_DATE>
    <NAME>STANDARD ORDER - IRE</NAME>
    <CUST_ACCOUNT_ID>5614</CUST_ACCOUNT_ID>
    <HEADER_ID>6235</HEADER_ID>
    <LINE_ID>7318</LINE_ID>
    <ORG_ID>85</ORG_ID>
    <SHIP_TO_ORG_ID>18429</SHIP_TO_ORG_ID>
    <INVOICE_TO_ORG_ID>5605</INVOICE_TO_ORG_ID>
    <SHIP_SET_ID></SHIP_SET_ID>
    <INVENTORY_ITEM_ID>42032</INVENTORY_ITEM_ID>
    </G_DETAILS>
    </LIST_G_DETAILS>
    </G_HEADERS>
    </LIST_G_HEADERS>
    </XXDIPICK_RPT>

  • How to change the values in an LOV based on values selected in another LOV

    Hi,
    I have a requirement in ADF where there are two LOVs. Based on the values that I select in the 1st LOV, the values in the second LOV should change dynamically.
    Also, the 1st LOV accepts 3 values, for every value I select, a different query is executed to populate the 2nd LOV.
    I have a rough thought that I can use 3 different read only view objects containing these 3 queries. And based on the value I select in the 1st LOV I can execute the corresponding View object from the backing bean. But my doubt is how to link the results of that query that is executed to populate the 2nd LOV.
    Thanks in advance.
    Edited by: 886591 on Sep 21, 2011 4:48 AM

    Hi Brisk,
    Thanks for your reply.
    The link that you have provided explains how to disable and enable the other LOVs based on a parent LOV. But in my case there are two Select One Choice fields i.e. the dropdowns (sorry that I addressed it as LOV in my previous post which might be confusing). There are 3 static values in the parent dropdown where each of them are associated with a different query. for e.g if the three values in the drop down are A, B and C; if i select A, then query associated to A should be executed ; if i select B, then query associated to B should be executed and if I select C, query associated to C should be executed. Then the output attribute of that query should be populated in the child dropdown.
    Please let me know about the solutions to this.
    Thanks,
    Kavitha

  • How to pass a value of the radiogroup to another page item

    Hi, I have a report with one column as a radiogroup. I have a process that execute the next code when I press a button:
    begin
    for i in 1..htmldb_application.g_f01.count
    loop
    update mesa_entrada set retomada = sysdate where id = htmldb_application.g_f01(i);
    end loop;
    end;
    I want to set the value of the item in another page with the value of the selected radiogroup, How i have to do?
    any suggestion will be welcome!
    Thanks!

    I have the same problem.
    On the new page the global variable HTMLDB_ITEM.G_F01 has 0 values.
    I created a process like this in the new page:
    :P300_FILENAME := HTMLDB_APPLICATION.G_F01.count;
    FOR I IN 1..HTMLDB_APPLICATION.G_F01.COUNT
    LOOP
    :P300_TEST := HTMLDB_APPLICATION.G_F01(I);
    END LOOP;
    and P300_FILENAME gets 0 and P300_TEST is empty. Any sugestions?

  • How to set item values when redirecting to the same page.

    I just created a redirect button that I want to redirect to the same page and set the 2 page items on the page to the same value they had before the redirect.
    But I can't write:
    Set These Items: P1_Permit_Number,P1_Fishing_Year
    With These Values: &P1_Permit_Number.,&P1_Fishing_Year.
    Because there are no values in the session state, since a submit has not been done.
    So how do I do this?
    I know how to get the values stored in the items, e.g., $v('P1_PERMIT_NUMBER')
    but where do I place that command? It's not allowed under "With These Values"
    And I don't really want to make this a submit button and create a process that says:
    P1_PERMIT_NUMBER := $v('P1_PERMIT_NUMBER') because that would complicate the page too much -- I already have other processes and branches on the pages whose conditions would have to be modified so that they don't run during this scenario.
    Thanks.

    Thanks Gary and Andy. I rewrote the function according to above instructions:
    function redirectToURL()
    var permitNumber = document.getElementById('P1_Permit_Number');
    var fishingYear = document.getElementById('P1_Fishing_Year');
    var url = 'f?p=&APP_ID.:1:&APP_SESSION.::::P1_Permit_Number,P1_Fishing_Year:' + permitNumber +',' + fishingYear;
    window.location.href = url;
    But when I entered a value for permit number and fishing year and redirected, the word "null" appeared in the Permit page item, instead of the permit number that I had entered.
    Remember that I am not submitting here. So if the syntax you showed me, i.e. getElementById('P1_Permit_Number'), searches for the item's session state, then it will be wrong, since there is no session state value for the items at this point. Perhaps that is the reason I got the null?
    If so, what can I do?

  • I,m new to Mac book. Have used Pages and written 49  chapters of a novel. How can I get them into one doc. and have Pages number them?

    I'm new to Mac book.  Using Pages I have written 49 chapters of a novel.  Can anyone tell me in simple terms how to put them into one document and have Pages number them?   I am lost.

    Hello, Lost! Yes you are a bit; try the Pages forum here; https://discussions.apple.com/community/iwork/pages
    While I do use Pages, I don't know the answer to that one, but I'm sure you'll soon get help in the right forum.

  • How to setAction  and make a bookmark linked to a page number?

    I am writing a vbscript...
    set ADoc=CreateObject("AcroExch.AVDoc")
    ADoc.Open   "D:\aaa.pdf"
    set BMark = ADoc.GetPDDoc.GetJSObject.BookMarkRoot
    BMS= BMark.Children
    MsgBox     BMS(0).name
    Now i want to give BMS(0) a link to the page number 11.
    Is "setAction" can do this?
    How?

    click file/publish settings/html and use the quality settings dropdown.
    if that doesn't lead to satisfactory file size, you may need to check the properties of each bitmap in the library to see if it's set to over-ride the global settings.

  • Moving objects incrementally based on page number

    Hey all,
    Trying to automate a group of objects moving down a page, driven by the page location in a book.
    New to scripting, just need some pointers on best practise, gotchas etc.
    Any thoughts?

    Using a script doesn't make it 'live', the object will not be 'affected' after you move it once. But apart from that, it's pretty simple.
    Given a current page number n, a number of pages ntot, a page height h, and an object height oh, you can use this calculation for the top position:
    topy = n*(h – oh)/ntot
    You can change an object's y position by writing the value into its geometricBounds array:
    var myBounds = someFrame.geometricBounds;
    myBounds[2] = myBounds[2] - myBounds[0] + topy;
    myBounds[0] = topy;
    someFrame.geometricBounds = myBounds;
    As you can see, you have to read and write the array in one single piece. You need to change two elements: number [0] holds the top y position, number [2] holds the bottom y position. As you can see, you have to 'calculate' the bottom first, based on the top (A good alternative is using the move function but I can't write that from the top of my head.)

  • How to increment variable value in single select statement

    Hi guys
    in this select statement i have hard coded date value but i need to put variable instead of hard coded date and then i want to increment that variable value till sysdate.. i have tried using curser , type tables but they are very very slow .. any experiance guys can give me good hint what should i use.
    my query
    select
    start_dt,
    end_dt,
    hi_start_dt,
    hi_end_dt,
    ph_start_dt,
    ph_end_dt,
    h_start_date,
    h_end_date,
    g_code,
    emp_det.ref,
    u_code,
    costing,
    emp_nm,
    emp_no
    from
    emp_det,
    emp_ph_det,
    emp_hi_det,
    emp_h_det
    where
    emp_det.ref(+) = emp_ph_det.ref
    and emp_hi_det.p_ref(+) = emp_ph_det.p_ref
    and emp_h_det.ph_ref = emp_ph_det.ph_ref
    and emp_h_det.ph_st_dt(+) = emp_hi_det.st_date;
    and to_date('01-MAR-2008') between i.start_dt and nvl(i.end_dt, to_date('01-MAR-2008') +1)
    and to_date('01-MAR-2008') between i.hi_start_dt and nvl(i.hi_end_dt, to_date('01-MAR-2008') + 1)
    and to_date('01-MAR-2008') between i.ph_start_dt and nvl(i.ph_end_dt, to_date('01-MAR-2008') + 1)
    and to_date('01-MAR-2008') between i.h_start_date and nvl(i.h_end_date, to_date('01-MAR-2008') + 1)
    or
    (----emp has left this month
    i.start_dt < i.emp_end_dt
    and i.end_dt between add_months(to_date('01-MAR-2008'), -1) + 1 and to_date('01-MAR-2008')
    and i.hi_start_dt < i.hi_end_dt
    and i.hi between add_months(to_date('01-MAR-2008'), -1) + 1 and to_date('01-MAR-2008')
    and i.ph_start_dt < i.ph_end_dt
    and i.ph_end_dt between add_months(to_date('01-MAR-2008'), -1) + 1 and to_date('01-MAR-2008')
    and i.h_start_date < i.h_end_date
    and i.h_end_date between add_months(to_date('01-MAR-2008'), -1) + 1 and to_date('01-MAR-2008')

    Hi Anurag
    Thanks for the reply.please find my sample data below . below i am only showing data for one employee only.. i want to write a query where i will query for a month like march 2008 and then i need to find out the record for employe where this month march 2008 is between all the start and end dates like it should be between start_dt and end_dt and h_start_date and h_end_date and hi_strt_dt and hi_end_dt and ph_start_dt and ph_end_dt and where all the combination are true show me that record only .. i don't want any other record.
    h_start h_end_
    start_dt      end_dt     date        date          histrt_dt hi_end_dt ph_start_dt ph_end_dt
    1-Sep-07     31-Dec-08     8-Feb-08     31-Aug-08     1-Sep-07     31-Dec-07     8-Feb-08     31-Dec-08
    1-Sep-07     31-Dec-08     1-Sep-07     31-Dec-07     1-Sep-07     31-Dec-07     1-Sep-07     31-Dec-07
    1-Sep-07     31-Dec-08     1-Sep-08     31-Dec-08     1-Sep-07     31-Dec-07     8-Feb-08     31-Dec-08
    1-Sep-07     31-Dec-08     8-Feb-08     31-Aug-08     1-Aug-08     31-Aug-08     8-Feb-08     31-Dec-08
    1-Sep-07     31-Dec-08     1-Sep-07     31-Dec-07     1-Aug-08     31-Aug-08     1-Sep-07     31-Dec-07
    1-Sep-07     31-Dec-08     1-Sep-08     31-Dec-08     1-Aug-08     31-Aug-08     8-Feb-08     31-Dec-08
    1-Sep-07     31-Dec-08     8-Feb-08     31-Aug-08     1-Oct-08     31-Dec-08     8-Feb-08     31-Dec-08
    1-Sep-07     31-Dec-08     1-Sep-07     31-Dec-07     1-Oct-08     31-Dec-08     1-Sep-07     31-Dec-07
    1-Sep-07     31-Dec-08     1-Sep-08     31-Dec-08     1-Oct-08     31-Dec-08     8-Feb-08     31-Dec-08
    1-Sep-07     31-Dec-08     8-Feb-08     31-Aug-08     1-Sep-08     30-Sep-08     8-Feb-08     31-Dec-08
    1-Sep-07     31-Dec-08     1-Sep-07     31-Dec-07     1-Sep-08     30-Sep-08     1-Sep-07     31-Dec-07
    1-Sep-07     31-Dec-08     1-Sep-08     31-Dec-08     1-Sep-08     30-Sep-08     8-Feb-08     31-Dec-08
    1-Sep-07     31-Dec-08     8-Feb-08     31-Aug-08     8-Feb-08     31-Jul-08     8-Feb-08     31-Dec-08
    1-Sep-07     31-Dec-08     1-Sep-07     31-Dec-07     8-Feb-08     31-Jul-08     1-Sep-07     31-Dec-07
    1-Sep-07     31-Dec-08     1-Sep-08     31-Dec-08     8-Feb-08     31-Jul-08     8-Feb-08     31-Dec-08

Maybe you are looking for