Passing the value of the element of a page to the other

I have the following requirements.

Page 1: Register Username (form)
-Insert the user name in A Table
-Redirect to the new page
Page 2: Collect modules (form)
-Insert the info collected in table B
-User name of Page 1 is the primary key

My problem:
I can't understand how to use the value of the username (Item1) from Page 1 to Page 2.

What I tried:
(A) Item2 created in Page 2
-After that treatment direction Page 1 value with the value of Item1 Item2
-no value not transferred (failure)
(B) source edited Item2 on Page 2 for:
-Used: Always, replacing an existing value in session state
-Type: point
-Session State: per session
-Value of source: P1_ITEM1
& Several combinations of the two

My question:
Passing a value of item from a page to another seems to be a relatively basic operation.
Am I trying to do something that APEX isn't designed to handle?
Is there a practical way more traditional or better to deal with these issues?

Any comments I can get would be great

Thank you
Dan

Published by: 903485 on December 20, 2011 06:26

If the value of the item has been saved in session state (it is generally except if you explicitly Apex to not save the value in session state), then you can reference any element in your application to any other page or another process. So in other words you have a process on page 2 that runs before your page content (FRONT header, AFTER the header or BEFORE REGIONS) that does something like this:

:P2_ITEM := :P1_ITEM;

If you do that, then should have recorded the value on your other section of the page. This can also be done with calculations. It can also be done with the attribute of the SOURCE of your page, article, and there is probably some other ways to do it as well. One of these should be able to meet your need. Good luck.

Earl

Tags: Database

Similar Questions

  • How to unload the external .swf file when pass the other section?

    Hello

    The following code provided by Mr. kglad works very well to load an external .swf file on stage. Now, when I click on Contact (button), the file external .swf to disappear completely. How to encode on contact (button) to get by.

    Gallery.addEventListener (MouseEvent.CLICK, GalleryClick);

    function GalleryClick(e:Event):void {}

    If (currentClip! = Gallery_mc) {}

    currentClip.visible = false;

    Gallery_mc. Visible = true;

    currentClip = Gallery_mc ;}

    var loader: Loader = new Loader();

    loader.contentLoaderInfo.addEventListener (Event.COMPLETE, ClipLoaded);

    Loader.Load (new URLRequest ("Gallery.swf"));

    function ClipLoaded(e:Event):void {}

    Gallery_mc. AddChild (Loader);

    Loader.x = 0;

    Loader.y = 120;

    Loader.Width = 1000;

    Loader.Height = 700

    }}

    I tried the following code for Contact_btn unload the Gallery.swf file that launches an error message: 1120: access of undefined property loader.

    Contact.addEventListener (MouseEvent.CLICK, ContactClick);

    function ContactClick(e:Event):void {}

    If (currentClip! = Cotnact_mc) {}

    currentClip.visible = false;

    Cotnact_mc. Visible = true;

    currentClip = Cotnact_mc;

    Gallery_mc.removeChild (loader);}}

    unloadAndStop() is supported by flash player 10 or higher (fp 10 +).

    p.s. Please check the useful/correct, if there is.

  • How to pass the value of the element from one form to another form?

    Hi all

    I need your help to complete this task.
    I have a form page named reserve form.i have some five fields selection list in the form of reserve, after I chose the first value from the selection list, I create a button in the form of reserve, when I click on the button create, it will open another form page named set form in this form page , I have a field selected, the list of values in configure the form depends on the values selected as a reserve, it means that I have to change the value of page of a form to another form.

    Please suggest a solution, how to pass the value?

    Thank you
    Robette.

    Check out the button create on Page 8.

    In the Action when the button is clicked, the configuration is

    The value of these P35_IT_PRODUCT
    With these values & P8_IT_PRODUCT.

    Kind regards

  • How to pass the value of the element where to call a procedure

    Hello
    I tried to display an image blob by calling a procedure
    It's working if I hardcode the parameter, for example < img src = "#OWNER # .download_my_file?" P_ID = 1 & p_picture = 1' height = 60 width = 40 line >
    But if I pass the value with values of point page p_id < img src = "#OWNER # .download_my_file?" "p_id =: P_ITEM_ID & p_picture = 1 ' height = 60 width = 40 line >
    the image appears... Is there something wrong with my syntax?

    Thank you

    Vincent

    Try

    Scott

  • How to pass all the values of an element of the shuttle in AJAX

    Hello

    I'm trying to pass the value from the point of the shuttle to a dynamic process using Ajax. But if I use shuttle_right, I'm able to get only the first selected value. If I simply give the shuttle it returns null.
    Please let me know how I can get the set of values separated by ':'

    Thank you
    Vikas

    Vikas,

    Here's a little snippet that should go you:

    var shtVals = '';
    var shuttle = new dhtml_ShuttleObject("PXX_SHUTTLE_LEFT","PXX_SHUTTLE_RIGHT");
    
    for (x=0; x
    

    Kind regards
    Dan

  • Waterfalls by passing the value between QML

    Hi, I have the main.qml with a display list, on, click on any element of the display of the list, I want to pass the value to another QML which is a leaf to change or remove, I followed what is on the tutorial to use the alias property to the second page to set the alias for the fields that I want to access another page and have the main.qml to create the object in the worksheet and assign value and open. Right now, it's say those alias not found. Here is the excerpt code sheet QML import bb.cascades 1.0 sheet {id: content newEventSheet: Page {id: addEventPage... eventNameText.text = ' '; eventTimePicker.value = eventTimePicker.dateFromTime("00:00:00"); newEventSheet.close (); mainObj.addData (eventName, selectedHour, selectedMinute, selectedSecond);}} Container}}} {layout: StackLayout {orientation: LayoutOrientation.TopToBottom} container {container {layout: StackLayout {orientation: LayoutOrientation.LeftToRight} leftPadding: 20.0 topPadding: 50.0 bottomPadding: 50.0 Label {text: preferredWidth 'Event name': 200.0} TextField {property alias txtEventName: eventNameText id: eventNameText hintText: preferredWidth 'Enter event name': 500.0}} container {layout: StackLayout {orientation: LayoutOrientation.LeftToRight} leftPadding: 20.0 Label {text: preferredWidth "Event time": 200.0} DateTimePicker {property alias pickEventTime}}} {{: eventTimePicker id: eventTimePicker mode: DateTimePickerMode.Timer minuteInterval: 1 preferredWidth: 500.0 onValueChanged: {}}} hand QML Container {id: eventListContainer ListView {id: eventList dataModel: eventsModel / / use a ListItemComponent to customize the appearance of the list function itemType view (data, row) {console.log ("Calling itemType:" + row);}}} return "item"; return (indexPath.length == 1? ("head": "item"); } listItemComponents: [ListItemComponent {type: 'the point' StandardListItem {title: "event:"+ ListItemData.EventName; "}}] Description: "time:" + ListItemData.EventHour + ":" + ListItemData.EventMinute + ":" + ListItemData.EventSecond ;}}] "." onTriggered: {console.log ("Calling onTriggered:" + row);} var selectedEvent = dataModel.data (row); var eventDetailPage = eventDetailDefinition.createObject (); eventDetailPage.txtEventName.text = selectedEvent ['EventName']; eventDetailPage.pickEventTime.value = picker.dateFromTime(selectedEvent["EventHour"]+":"+selectedEvent["EventMinute"]+":"+selectedEvent["EventSecond"]); eventDetailPage.open (); }} the device connect by default to the 14:44:50.432 com.example.IntervalTimer1.testDev_ervalTimer1a7a2c2e2.11214974 may 28 9000 REVIEWS asset:///main.qml:122: TypeError: result of expression 'eventDetailPage.txtEventName' [undefined] is not an object. Can someone help me? Thank you

    Have you tried to put the alias property in the root of the sheet in the TextField?

  • To move a page item value in another element of the page

    I have page 1 and page 2, page 1 to an element name is name: _ and page 2 has an element name is your name _. How to pass the First Name of the element value in your name point.

    Please suggest me

    one way can be branch

    https://Apex.Oracle.com/pls/Apex/f?p=57481:22:8403002623920:no:

    WORKSPACE:-REEMATEST

    username:-test

    password:-test

    Page 22

  • Passing the value of the SQL query select list

    Hello

    In my application users have in their homepage to a region which has two simple things, a part of LIST SLECT lov function and a BUTTON

    There is also another page which has a normal life to report which shows the employees.


    Homepage the user can select certain number of Department in its 'SLECT-LIST' and click 'open '.


    For example: If the user has selected a DEP_NUM_5 and click on the BUTTON it will be redirected to the page of a report and gets only showed the employees belonging to the Department 5.


    The report page contains a simple SQL query, and I understand that somehow I must pass the value in the SELECT LIST, where I now have the '?


    How can I do this, where should I start?

    Of course I would really appreciate an example of code, if anyone has time to do a.

    
    select "EMP_ID", 
    "EMP_FORNAME",
    "EMP_SURNAME",
    "DEP_NUMBER"
    from EMP E
    where E.DEP_NUMBER = ????????
    
    

    Hi Sozua,

    1. create an item hidden on the page where you have the report.

    I say P2_DEPT_NO

    2 assign to that in your sql query

    select "EMP_ID",
        "EMP_FORNAME",
        "EMP_SURNAME",
        "DEP_NUMBER"
        from EMP E
        where E.DEP_NUMBER = :P2_DEPT_NO
    

    below the area source ther is also an option

    Elements of page to submit-> put this element in this.

    for example;

    Page to submit items: P2_DEPT_NO

    3. change your button

    Action: Redirecting to page of this application

    Page: 2 / / assuming that page 2 is the report page

    Place these items: P2_DEPT_NO

    with these values: & P1_SELECT_LIST.  assuming that selection list is on page 1

    Hope this helps you,

    Kind regards

    Jitendra

  • Passing the value of the where clause with the page

    Dear friends,

    I have a requirement like when I select a selection list value I should pass this value to sql query where clause without submitting the page

    ex I have a select like: P1_Dept guess I selects the value 10 in this

    then I have a query select * from emp where deptno =: P1_Dept.

    DB. ORACLE 11G

    APEX 4.1.1.00.23

    is this possible? can someone help me please in this topic

    Thanks and greetings

    Vballeda

    Suppose we have the selection list with the name P1_DEPT and query for report

    select * from emp where deptno = :P1_DEPT
    

    We create dynamic Action on the evolution of the P1_DEPT point. We will need two real actions:

    1-> set value action

    Set the Type - > body of the PL/SQL function

    The function of body - > return 1;

    Page item to submit-> P1_DEPT

    Change to delete-> Yes event

    Selecttion Type-> trigger element

    2. action-> Refresh

    Selecttion Type-> region

    Region-> your region of report

  • Passing multiple values at the request of the State (no status page)

    Hello

    [APEX 4.2.4.00.08 on the 11.2.0.3 database]

    I didn't know how to explain briefly what I need in the title of the discussion, that's why I added the song "(non page rapport)". "  I met a lot of threads associated with passing of selections multiple values from one page to another, or via a URL from one page to another.  I know how to do this.  The problem I have right now is trying to pass the commas of the values contained in an application to a report query element.  Here's where the "(rapport non page) ' comes into play."  I refer to the report query at the level of the application (i.e. shared components-> report queries).  I wish really it had another name for it.  "Report on the application of queries", perhaps?

    In any case, my report query has a bind variable, AI_ID_NUMBERS, that is defined correctly in the shared-> components report queries. However, when this item application has multiple values such that AI_ID_NUMBERS = 4, 5, 6, 7 etc., my URL looks like this:

    myapexsite.com/f? p = 456:2:1234567890:PRINT_REPORT = report_1:AI_ID_NUMBERS:4, 5, 6, 7

    So, this returns only one record for the report where the identification number is 4, one.  I tried a string parameter of Substitution of Application (URL_REPORT_1) with the two following variants (for which both return only a single record):

    Substitution string = URL_REPORT_1 and Substitution value = f? p = & APP_ID.:0 : & SESSION. : PRINT_REPORT = report_1:AI_ID_NUMBERS: & AI_ID_NUMBERS.

    Substitution string = URL_REPORT_1 and Substitution value = f? p = & APP_ID.:0 : & SESSION. : PRINT_REPORT = report_1:AI_ID_NUMBERS:-& AI_ID_NUMBERS. \

    returns...

    myapexsite.com/f? p = 456:2:1234567890:PRINT_REPORT = report_1:AI_ID_NUMBERS:4, 5, 6, 7

    myapexsite.com/f?p=456:2:1234567890:PRINT_REPORT=report_1:::AI_ID_NUMBERS:\4,5,6,7\

    .. .respectively

    I really thought that the backslashes would have solved the problem.  Any ideas why my report request (PDF) returns only one line?

    Thank you

    -Seth.

    Well, too bad. I realized the mistake I did.

    When you work with 'request report queries', there is an option to include variable bind, for example the application or page elements.  I had already done that, but for some reason, thought that I also had to pass the parameter and its values in the URL.  This is not necessary since the report query query already has the issue of the application/page related to it.  The following URL works fine:

    myapexsite.com/f? p = 456:2:1234567890:PRINT_REPORT = report_1

    And, Yes, it's the URL that is provided when you set up a "application report query.  I was thinking too hard.

    -Seth.

  • Pass the value modal page using static URLS

    Hi guys,.

    I have a simple page with three boxes.

    When one of the check boxes is selected, I want to draw a new page which I use as a modal page (SkillBuilders Modal plug to help).  I need to pass a value of a checkbox (P1_WTD_OPT_OUT) in the new modal page.

    I have the following in the static URL

    f? p = & APP_ID.:2: & APP_SESSION.:2:P2_WTD_ID, P2_WTD_OPT_OUT: & P1_WTD_ID, & P1_WTD_OPT_OUT. :

    where I'm moving the value of P2_WTD_OPT_OUT to P1_WTD_OPT_OUT.

    As I don't submit anything when the check box that calls the modal page is checked, how I would pass the value in the modal page?

    At the moment, if P1_WTD_OPT_OUT is enabled or not, P2_WTD_OPT_OUT is always null when modal page.

    I use apex v4.0

    Any help would be great,

    Thank you

    Here is what goes wrong:

    -page is first rendered, P8_WDT_OPT_OUT is NULL

    -the static url for the modal lov is generated. Given that the item is NULL value in the url for the P9_WDT_OPT_OUT point shall be void in this url

    -l' change event fires. The P8_WDT value is stored in session state

    -the modal opens and navigates to the static url

    End result is that the P9 indeed will be null.

    The solution to this is to not not to set the value of the item through the URL, because it will simply not work. But given that the element of P8 is located in session state, you can use the value of it to the default value of the element on P9.

    On page 8, I changed the dynamic action to not set the value of the element in the URL, and on page 9 I changed the default value of the element.

  • Pass the value to the process of request through javascript

    Hey everybody,

    I am currently struggling with the call to an application process and passing a value to it through javascript. Ideally, my javascript is triggered by a dynamic action, which itself is triggered when a user changes the value of a selection list. Below is the javascript code that is relevant:

    for (k=0; k<active_array.length; k++){
          var request = new htmldb_Get(null, &APP_ID., 'APPLICATION_PROCESS=CAL_COLORS', 0);
          request.add('x01', check_array[j]);
           var ajaxResult = ajax.get();
           alert(ajaxResult);
          active_array[k].parentNode.style.backgroundColor=document.getElementById('P14_TEST_COLOR').value;}
    

    And she calls the application process is also shown below:

    declare
    v_color varchar2(20);
    begin
    select color into v_color from cal_colors where other_user = apex_application.g_x01 and user_id = :USER_ID;
    :P14_TEST_COLOR := v_color
    end;
    

    The issue seems to be that online 03 my JavaScript, especially since my array element is not spent properly in my process. In an attempt to debug this, I added the alert message, however, instead of any relevant information, the alert shows just the HTML page! I'm at a loss as to what I'm doing wrong here, so if anyone has any input, I would very much appreciate it.

    Basically, you need to rewrite in the http buffer, using htp.p:

    DECLARE
      v_color VARCHAR2(20);
    BEGIN
      SELECT color
        INTO v_color
        FROM cal_colors
       WHERE other_user = apex_application.g_x01
         AND user_id = :USER_ID;
    
      htp.p(v_color);
    EXCEPTION WHEN no_data_found THEN
      htp.p('white');
    END;
    

    You could potentially make it much more efficient also. At the present time you loop on what is probably an array of elements, so from a tabular form probably. Rather than call an ajax for each line, you can group together them and make a call.

    Example:

    JS, you can use this to create an array with values to be placed on the server:

    var lArray = [];
    $("input[name=f03]").each(function(){
    lArray.push($(this).val());
    });
    

    And you can use the apex.server.process api to call a process on demand:

    apex.server.process("MYPROCESS", {f01: lArray}, {success: function(pData){console.log(pData);}})
    

    As you can see, the table with the values is put in the table in the f01. You must use the option of success well since it will be asynchronous (htmldb_Get.get is a synchronous call).

    With respect to the CLASS code:

    DECLARE
      l_return VARCHAR2(4000);
    BEGIN
      FOR i IN 1..apex_application.g_f01.count
      LOOP
        l_return := l_return || '"VALUE' || i || '",';
      END LOOP;
    
      l_return := RTRIM(l_return, ',');
      IF l_return IS NOT NULL THEN
        l_return := '[' || l_return || ']';
      END IF;
    
      htp.p(l_return);
    END;
    

    It will loop through the items in the table-f01 and build a new JSON notation and write it back to the http buffer so it returns to the client. It will look like this:

    ["VALUE1", "VALUE2", "VALUE3", "VALUE4", "VALUE5", "VALUE6", "VALUE7", "VALUE8", "VALUE9", "VALUE10"]
    

    I say this because when users use your application, you do not want such a quantity of calls. A single call by treatment action would save a lot of resources. You may have to loop twice on your items to apply your backgroundcolor, but I don't voluntarily not too mention jQuery since you is perhaps not familiar with it and get scared by him.

  • Move the 2 values to 2 elements in the interactive report via a url

    Hello

    I have it here's the url to pass the 2 values to 2 elements in the interactive report via a url

    apex_util.prepare_url ('f? p = & APP_ID.:0 00 :'||: APP_SESSION |':000:P000_STATUS, P000_DATE :'|| ccodes.code, '1 year') in the form of url

    The second value is not passed in, P000_DATE the interactive report item.  "1 year" is the option in the selection list on . I also tried below and a combination of IREQ_, etc., but no worked


    apex_util.prepare_url ('f? p = & APP_ID.:0 00 :'||: APP_SESSION |':000:P000_STATUS, P000_DATE :'|| ccodes.code,'| 1 year "")


    Some advice on this one?

    Thank you

    Alexander

    The code doesn't seem right for me

    apex_util.prepare_url ('f? p = & APP_ID.: 0 00 :'||: APP_SESSION |':000:P000_STATUS, P000_DATE :'|| ccodes.code, '1 year') in the form of url

    Ilyalieude modifierlereglement like this.


    apex_util.prepare_url ('f? p = & APP_ID.: 0 00:' |: APP_SESSION |) ": 000:P000_STATUS, P000_DATE:' |" ccodes.code | 1 year") in the form of url


    Kind regards

  • APEX - passing values from one page to the other

    Hello

    I created a new page with a report. I put one of the columns as a link that opens another page. This page should contain other details of the particular line.

    For example:
    There is a page with a list of employee names and the number of employees in both columns. When I click on the name of employee, he must open another page with additional details of the employee in particular (such as date of birth, e-mail etc.).

    What I'm trying at the moment is to create another page with a report inside. How do I pass the name of the employee as a parameter to this second page? And how do I do the query in the second page accept this setting?

    Is there a better way to do this?

    Kind regards
    Santhosh Jose

    Hello

    on your detail page (2nd report) create a hidden page element called P2_EMPID
    Now change the query on this page to use this page element in the where clause (such as a variable binding).
    for example:

    Select * from EMP
    where empid =: P2_EMPID

    On your first page, you need to set a link to the column for the chosen, employed at the point P2_EMP on the second page. This can easily be done via a column binding in the report on the first page (have it redirect to a page in the apex and set the page to the second page of the report, and also set the P2_EMPID value to the value of #EMPID #, correcting the names of these variables can be chosen in the selection lists when you set the link in the column).

    concerning
    Bottom

  • How to pass the value of the Timestamp from one Page to another

    From a column report link, I need to pass a DATE (that includes both) form one page to the next. If I use the basic name/value pairs under the section of the column link, the URL stops when it encounters a colon. For example, '2012-05-08 16:38 ' invades as ' 2012-05-08 16 "»

    In addition, all values after the colon in the DATE value are removed from the URL.

    I know not why this is happening. This is because oracle sees the ":" and this is a field terminator does not assume.

    How can I work around this problem? I saw the post suggesting the API URL_ENCODE but, I can see someone to call this, or any other code in the section of the link column. I've also seen some people suggest that this be done as a conditional branch. Simularly, I can't find in any case to call the branch section of the link column.

    There must be a way to pass this value, and I can't be the first person to ever attempt this. I am totally stuck and have spend hours on this issue.

    Thank you


    -Joe

    As fac586 said, you wouldn't have this problem if RISKDM2. INTRADAY_VM_CLEARER has a primary key, you can reference instead. Still, can you guarantee that the date will be unique?

    If so, suggested use fac586 of 'YYYYMMDDHH24MI' format mask for the link, but set the value of a hidden point new (say PX_HIDDEN_PARAM_ITEM). The last step then on the page that you are linking, have simply a page process that defines the element of effective date of to_date (PX_HIDDEN_PARAM_ITEM, 'YYYYMMDDHH24MI'). This before the process that brings back the record and after that should work just fine.

Maybe you are looking for

  • T430 cannot connect to WiFi unless the battery is removed and then re-installed

    Had trouble with t430 a colleague. It is impossible to connect to the WiFi unless the battery is removed and then reinserted. Once connected WiFi is strong and reliable. This seems to have started a few weeks without any notice. I think of a power se

  • SR400 while the loop does not work

    Hello I'm using LabVIEW for control SR400 through a GPIB card. I use SR400 to count the number of signal in a second, wait 0.05 s, then again count the signal once, wait 0.05 s once again, and so on. However, the while loop didn't iterate. When I sta

  • When I insert the cd I get no automatic read notification

    I get no message that its operation

  • Netflix streaming constantly freezes and expires

    I bought 2 blu - ray player Sony bdp-s185 about 8 months, for the primary purpose of streaming netflix on my TV.  I wanted to replace my XBox as the primary instrument of streaming.  They worked fine until a month ago.  Now, I can't watch anything on

  • Cannot find SM bus controller driver.

    SM Bus controller doesn't have a driver and I can't find it on Windows update, where can I download it and what is its role. ?  I factory reset my laptop and after doing so he was missing several drivers, found everything except this one.