Invoking Javascript with Items from Different Page

I have a two page application. "Page 1" has a Javascript function to which I pass ITEMS from Page 1.
Can I include Items from "Page 2" in this function ?
thanks
abhay

I need to pass three arguments to a Javascript function. The first two are the values of two ITEMS on Page 1.
The function is being called from Page 1.
Is it possible to pass value of an item which is on Page 2 ?
ak.

Similar Messages

  • Working with items from different tables

    I have a form with item P1_A whose source is from database column that is from database table A.
    How do create another item P1_B whose source is from another database column that is from database table B? This item P1_B is on the same form where P1_A is on.
    How do I set the Fetch Row from table process to fetch P1_A from table A and to fetch P1_B from table B?
    How do I set the Process Row of table process to update/insert/delete row from table A and from table B simultaneously?

    I create my own row fetch process with a sequence number higher than the Automated Row Fetch process. So, it does the following in the correct order:
    1) It fetches all columns in table A via the Automated Row Fetch process and display them on page 7, and then
    2) it fetches column cust_name from table B via my new process and suppose to display it on page 7 as well. The problem is it doesn't display the value for cust_name. Why?
    My new process is of type PL/SQL anonymous block and its source is below:
    BEGIN
    SELECT name INTO :p7_cust_name
    FROM b
    WHERE pk_id = :p7_id;
    END;
    I get to page 7 by clicking an edit icon/link column on a row that is displayed on page 2 which is a report page. The link passes the pk_id value to page 7 for retrieve data for that row.

  • Reference Items from different pages

    Hey Guys,
    I have a short question:
    How can I reference Items from a different page?
    I have a query, which references to a datepicker from another page.....
    Can anybody help?
    Thanks,
    Tim

    Tim,
    just as you would reference the item on the same page.
    The current value is written to session state.
    For example, you datepicker on page 1 is called P1_DATE1.
    Then you can reference is using the usual methods on page 2:
    select v('P1_DATE1') from dual;
    select :P1_DATE1 from dual;
    select '&P1_DATE1.' from dual;~Dietmar.

  • Problems when copying item from a page to another one

    I am copying a value of an item, from a page to another one in branch, and it cuts the value to me in ' : '
    ej: item a = 08:00 Hs
    item b = 08
    thanks
    Juan Pablo

    I had to deal with the same thing and I know at least two solutions - one is "dirty" and the other one is a "clean":
    1. dirty - replace ':' (colon) with ';' (semicolon) and pass that value using URL. On the page, where your item(s) is, create a computation using REPLACE(P1_ITEM, ';', ':') on load and before header.
    2. clean - as Scott says and it works in many cases - pass only a primary key and a request to your target page and create there a procedure to fetch the values you need and populate the items
    If you use the documentation and search on keywords "COMPUTATION" and "REQUEST", you will find a lot of usefull information.
    Denes Kubicek

  • My ipad is jumping from different pages and it looks like someone is typing on the page.

    Hi my ipad has started jumping from different pages and then the keyboard comes up and it looks like someone else is typing on the screen, can anyone help?

    You can try these things first and see if they help at all.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    Quit all apps and restart the iPad.
    Go to the home screen first by tapping the home button. Quit/close open apps by double tapping the home button and the task bar will appear with all of you recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner to close the apps. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.

  • Is it possible to retrieve deleted items from the Pages App please?

    IIs it possible to retrieve deleted items from the Pages App? Thanks

    From within the Pages app, no. If you have an iTunes or iCloud backup that would have contained the file, and you are backing up Pages, it could be received via a restore using that backup (this would wipe out any newer data however).

  • TEXT ITEM from different table

    When a TEXT ITEM from different table exists in the DATA BLOCK,
    and when after EXECUTE_QUERY (in trigger POST_QUERY) we issue
    the SELECT for filling the TEXT ITEM from different table, how
    we can prevent FROM_STATUS and RECORD_STATUS to get the
    value "CHANGED" (because othervise COMMIT is updating all the
    records which are the result of EXECUTE_QUERY)?

    Set the record status back to query in Post Query trigger:
    SET_RECORD_PROPERTY(:SYSTEM.TRIGGER_RECORD, 'BLOCK_NAME', STATUS
    , QUERY_STATUS);

  • Place one order with Products from different sales orgs

    Hello,
    We are in CRM 7.0 EHP2 connected to ECC 6.0. We have Internet
    sales/Webchannel Application.
    We are rolling out Internet sales for a new country but they want the option to
    place one single order with products from different sales
    organizations.
    Currently Customers send fax/email to customer
    representative(CR) with list of products. The CR identifies and places
    multiple orders if products belong to different sales orgs.
    Currently customers don't have idea about sales orgs and they don't
    have a clue which product belongs to which sales orgs. So, for them to
    use Internet sales, we have to provide them an option to place one
    order with products from different sales orgs.
    I understand SAP doesn't support this. But, is there any way we can achieve this through some custom/out of the box solutions?
    Thanks,
    Ravi

    Hi Ravi,
    Please have a below help link, it may help you to explain the role of Distribution Channel and if it fits to your requirement.
    Organizational Data Determination in CRM E-Commerce - E-Commerce - SAP Library
    Thanks,
    Hamendra

  • I would love to be able to drag and drop items from one page to another from the plan window. Is that possible?

    In desiging my website, I would like to be able to move items from one page to another by dragging and dropping from the plan architecture screen. It might also help if the window could have a zoom in and out feature to facilitate that.

    I just tried zooming in the plan window and discovered it works.

  • Remotely add and remove Instances from different pages

    Similar to my other post, I have a form that has multiple pages, one being a calculator (OA_CALC) that shows every variable for calculation; the second (OA_PG1), customer facing showing only pertinent information. So both tables should add/remove and show the data being contolled from OA_CALC. I am able to addInstance and source the date to both pages, but for some reason removeInstance only works on the page where the button exists. So rows on OA_PG1 never delete, please advise.
    On OA_CALC i have an ADD ROW button with the following code:
    form1.OA_CALC.Table1.HeaderRow.#subform[0].AddRow::click - (JavaScript, client)
    OA_CALC.Table1.RowItems.instanceManager.addInstance(1);
    OA_PG1.ProjectSavingsGROUP.Table1.RowItems.instanceManager.addInstance(1);
    and a DELETE ROW with the following code:
    form1.OA_CALC.Table1.RowItems.#subform[0].DelRow::click - (JavaScript, client)
    var vIndex = this.parent.parent.index;
    OA_CALC.Table1.RowItems.instanceManager.removeInstance(vIndex);
    OA_PG1.ProjectSavingsGROUP.Table1.RowItems.instanceManager.removeInstance(vIndex);
    One thing that I tried was creating buttons on OA_PG1 with the code specific to that table, that seemed to work. So I know the syntax works, but cannot figure out how to control it from a different page. Please help.
    Thanks

    urgh, apparently I am still very close. I have used your sample, but it seems that the execEvent("click") is not working correctly or my syntax is wrong somewhere. Where am I going wrong?
    Button Code on first table:
    form1.OA_CALC.Table1.RowItems.deleteBtn::click - (JavaScript, client)
    var vCurrentRow = this.parent.index;
    OA_CALC.Table1._RowItems.removeInstance(vCurrentRow);
    xfa.resolveNode("OA_PG1.ProjectSavingsGROUP.Table1.RowItems[" + vCurrentRow + "]").deleteBtn.execEvent("click");
    Invisible Button Code on second table:
    form1.OA_PG1.ProjectSavingsGROUP.Table1.RowItems.deleteBtn::click - (JavaScript, client)
    OA_PG1.ProjectSavingsGROUP.Table1._RowItems.removeInstance(this.parent.index);
    Edit: Here is the Console report from the Acrobat JavaScript Debugger:
    xfa.resolveNode("OA_PG1.ProjectSavingsGROUP.Table1.RowItems[" + vCurrentRow + "]") is null
    7:XFA:form1[0]:OA_CALC[0]:Table1[0]:RowItems[1]:deleteBtn[0]:clickException in line 7 of function top_level, script XFA:form1[0]:OA_CALC[0]:Table1[0]:RowItems[1]:deleteBtn[0]:click
    TypeError: xfa.resolveNode("OA_PG1.ProjectSavingsGROUP.Table1.RowItems[" + vCurrentRow + "]") is null
    7:XFA:form1[0]:OA_CALC[0]:Table1[0]:RowItems[1]:deleteBtn[0]:click

  • Search syntax for Safari history? how to remove items from specific pages?

    I'm using Safari 5.0.3 and I prefer keeping the browsing history quite long for accessing contents I had been searching in the net some weeks ago.
    However, that way I'm collecting lots of clutter and therefore I'd like to remove selected entries from the history, e. g. from the page where I'm reading daily news etc.
    I tried to use the search field (accessible with Cmd-F in the history view) to search for parts of the corresponding web address, e. g. "http://www.heute.de", but I do not only get the history items from that site but many others from google and other pages.
    So I'd like to know: is there a search syntax to use the search field, like address=www.heute.de* which enables wild cards, operators like OR/AND etc.?
    If not, is there a 3rd party tool which can help or can I use spotlight/the finder to find and remove the unwanted items from the browser history?

    Hi beckmart
    there might be ready-made apps or add-ons to do that - but this may help...
    quit safari, open Home/Library/Safari/History.plist using PrefSetter
    enter the url you want removed in the search box, no need for quotes - say www.google.com
    expand the 'web history dates' section at left to see individual results, then select the first one & shift-click the last (don't use select all) to highlight/select all the results - then press the delete key to remove them. Then save the file.
    Naturally, a backup copy of history.plist would be wise - but the above seems to work very well.

  • Detach all master item from a page

    hi
    i developp an extension for indesign with CS extension builder 2 and flashbuilder 4.6 and i don't find the Page panel menu command  "detach all master item" in the page method... how detach all the master item of a page ?
    thanks
    Simon

    This question is three years old but it took me some time to collect all information snippets from this thread to a working answer so to shorten the time for everyone who has the same problem here an answer with working code - that's what I prefer ;-)
    var doc = app.activeDocument;
    DetachMasterItems(doc.pages[1]); // Let's try it on page two function DetachMasterItems(page) {
        var allItems = page.appliedMaster.pageItems.everyItem().getElements();
        for (var i=0; i<allItems.length; i++){
            try { allItems[i].override(page); } catch(e) {}
        for (var i=0; i<page.allPageItems.length; i++) {
             try{page.allPageItems[i].detach(); } catch(e){}

  • Need Urgent help in passing items from one page to another

    Hi
    I have a page with item "X" holding a value. The page displays a report in which one of the fields "Devide name" is a link to Interface page. By clicking the link on "Device name" Im passing the value device name to another page and displayes all the interfaces under the device.
    But I need to access the variable "X" also in the second page i:e Interface page.
    Can somebody help me on this?
    ~rose

    The problem is is P29_IV_SERVERS is defined in page 29 and Im using
    UPDATE PROVISION_IV
                   SET PROVISION_STATE_ID = 2,SERVER_ID = :P29_IV_SERVERSin page 50. That was my initial issue. As suugested I used the '&' and its throwinf error..
    Here is my complete code.
    DECLARE
    LATEST_TASK_ID Number;
    TASK_NAME_IV varchar2(50);
    --TASK_NAME_ISM varchar2(50);
    SELECT_FLAG_IV Number:=1;
    --SELECT_FLAG_ISM Number:=1;
    DS_COUNT_IV Number;
    --DS_COUNT_ISM Number;
    DS_ID_IV Number;
    --SELECT_FLAG_IV:=1;
    --SELECT_FLAG_ISM:=1;
    BEGIN
    FOR i in 1..APEX_APPLICATION.G_F10.count
    LOOP
        UPDATE PROVISION_IV
                   SET "PROVISION_STATE_ID" = 2,"SERVER_ID" = :P29_IV_SERVERS
                   --SET "PROVISION_STATE_ID" = 2,"SERVER_ID" = 2
                    WHERE
                    TERMINATION_ID=APEX_APPLICATION.G_F10(i);
    SELECT DELIVERED_SERVICE_ID INTO DS_ID_IV FROM DELIVERED_SERVICE
    WHERE DELIVERED_SERVICE_NAME=APEX_APPLICATION.G_F11(i);
    SELECT COUNT(*) INTO DS_COUNT_IV FROM DELIVERED_SERVICE_MAPPING 
        WHERE TERMINATION_ID=APEX_APPLICATION.G_F10(i);
    IF DS_COUNT_IV=0 THEN
        INSERT INTO DELIVERED_SERVICE_MAPPING
        (ID,
        CUSTOMER_ID,
        EQUIPMENT_ID,
        TERMINATION_ID,
        DELIVERED_SERVICE_ID,
        LAST_MODIFIED_BY,
        LAST_MODIFIED_ON)
        VALUES
        (DELIVERED_SERVICE_SEQ.nextval,
        NULL,
        NULL,
        APEX_APPLICATION.G_F10(i),
        DS_ID_IV,
        :APP_USER,
        sysdate);
        SELECT_FLAG_IV:=0;
    ELSE
        UPDATE DELIVERED_SERVICE_MAPPING SET DELIVERED_SERVICE_ID = DS_ID_IV,
        LAST_MODIFIED_BY = :APP_USER,
        LAST_MODIFIED_ON = sysdate
        WHERE TERMINATION_ID = APEX_APPLICATION.G_F11(i);
        SELECT_FLAG_IV:=0;
    END IF;
    END LOOP;
    IF SELECT_FLAG_IV=0 THEN
        IF :P29_CHECK_TASK_NAME_IV=1 THEN
            IF :P29_TASK_NAME_IV is NULL THEN
                TASK_NAME_IV:=:APP_USER||'_INTERFACE PROVISIONING_'||SYSDATE;
                INSERT INTO TASKS
                (TASK_ID,
                TASK_NAME,
                CREATED_BY,
                CREATED_ON,
                TASK_ACTION,
                TASK_STATE_ID,
                SERVER_ID)
                VALUES
                (TASK_ID_SEQ.nextval,
                TASK_NAME_IV,
                :APP_USER,
                sysdate,
                5,
                1,
                2);
            ELSE
                INSERT INTO TASKS
                (TASK_ID,
                TASK_NAME,
                CREATED_BY,
                CREATED_ON,
                TASK_ACTION,
                TASK_STATE_ID,
                SERVER_ID)
                VALUES
                (TASK_ID_SEQ.nextval,
                :P29_P50_TASKNAME,
                :APP_USER,
                sysdate,
                5,
                1,
                2);
            END IF;
        SELECT max(TASK_ID) INTO  LATEST_TASK_ID from TASKS where CREATED_BY=:APP_USER;
        FOR i in 1..APEX_APPLICATION.G_F01.count
        LOOP
            INSERT INTO TASK_DETAILS
            (TASK_DETAILS_ID,
            EQUIPMENT_ID,
            TERMINATION_ID,
            TASK_ID)
            VALUES
            (task_detail_seq.nextval,
            :P29_TO_INTERFACEPAGE,
            APEX_APPLICATION.G_F10(i),
            LATEST_TASK_ID);
        END LOOP;
        END IF;
    END IF;
    END;I have the variables P29_CHECK_TASK_NAME_IV, P29_TASK_NAME_IV and P29_IV_SERVERS defined in page 29.
    But the above query is written in page 50, so I want to access the value of these variables as set in pahe 29.. :-(

  • How to add buttons with links to different pages in my flash document?

    Hi I created a template for my flash animation which is a simple content box and a scroll bar beside it.. Anyway at the top I also have 3 pages (they are currently just part of the png background image so they are not buttons of any sort).. My question is how can I make links to these different pages so when clicked in the flash animation they will just open normally like they would in like a website..
    I am a flash beginner so I'm not too technical with it... I don't know if I would have to create 3 seperate documents for my 3 pages or something else?
    Thanks!

    Do you expect the loaded SWF to load "into" the SWF that contains the buttons or are you expecting it to overwrite the existing SWF you're already in (similar to a web page)?
    Loading a SWF inside is pretty straight forward, as long as the SWF is on the same domain or the domain you're loading from has a crossdomain.xml policy allowing it and the SWF is set to publish with the networking sandbox:
    import flash.display.Loader;
    import flash.net.URLRequest; 
    import flash.events.Event;
    var myLoader:Loader = new Loader();
    // listen for completion
    myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, handleCompleteF);
    // usually add some IOErrorEvent or SecurityErrorEvent handlers here
    // button hook here
    myButtonInstanceName.addEventListener(MouseEvent.CLICK, loadPageF);
    function loadPageF(e:MouseEvent):void
         // try to load
         try
              myLoader.load(new URLRequest('another.swf'));
         catch (e:*)
              // catch any error, trace it to flash IDE for debugging
              trace("Error loading SWF: " + e);
    function handleCompleteF(e:Event):void
         // success, add to display list
         addChild(myLoader);
    Season to taste, like moving the position of the Loader object. The Loader will contain the SWF in the .content property (e.g. myLoader.content) and is a display object so you can just add it directly to the display list.
    If you add a second button you can re-use the myLoader to .load() a different SWF, just point it to a new function. You could re-use the same function but you'd need to detect the different buttons (possibly via the .name property). I presume you might want to do "different things" when different pages are loaded so I'm assuming you'd probably use a different function rather than make a huge reused branching function.
    More info on Loader with sample code here:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Loader.ht ml#includeExamplesSummary

  • Need to Copy a subform along with content from one page to another page

    Hi All,
    I am new to Adobe Live Cycle .
    I am facing a particular problem in one scenario.
    I have a growing list of item i.e the number of Items are uncertain. I have put all these item in a sub form.
    Now I need a copy of this sub form from the First page to the 2nd Page.
    Basically , I want to copy a Subform along with the content from one page to another.
    Can anybody please help me.

    In source project open Tempo List (the one that is a list editor). Select all tempo changes and "copy them (command+c)
    close project
    Open destination project, open Tempo List delete all information and paste (command+V). Remember that Logic should be stopped at the exact position where the first tempo event happens. This is ussually 1.1.1.1, but check it in the source before closing it.
    hope this helps.
    regards

Maybe you are looking for

  • Problem in scheduling agreement  dates with 2LIS_12_VCSCL extractor

    I am using 2LIS_12_VCSCL extractor to get the order fulfilment report. I am using ODS as an infprovider and on BW 3.5. Scenario on Sale Order screen - VA33 [ Scheduling Agreemnent ] Sales doc   Item  Line-No     Qty      Del NO    Req-Date         Ac

  • Warning messages for purchage order date?

    Hi Friends,   I am ABAP developer, and I am developing one webservice to create value contract from dotnet front end, So user can enter inputs from that front end and he will get SAP generated value contract id.    Here I did validations for all the

  • Mouse down problem

    On a custom panel I implement MouseInputAdapter. In the mouseEntered(MouseEvent e) method, I want to do something only if the mouse button is not down. So when the cursor enters the panel and the mouseEntered(MouseEvent e) method is called I want to

  • How do you reduce the number of pages designated for a Photo Book? I have iPhoto 11 and OS X Lion.

    I have been putting together a photo book.  The program is not as intuitive as I had hoped and I have spent hours trying to fit my photos into the spaces they provide, but I am sticking to it.  My problem is that I have been told by the program I hav

  • Need help with installing itunes.

    I seem to be having trouble installing itunes. it seems all fine till it starts removing applications then the message "The older version of Apple Software Update cannot be removed. Contact your technical support group." comes up and itunes does not