Dynamic action to get the value of the item page

Hello

I have user 4.2 APEX with DB11g, I have a dynamic action with 2 real action:

  • 1 (value) in a State of variable defined on page like this
BEGIN
  IF lecture_pkg.is_guest_submit_poll ('PUSH') THEN
    :P0_URL := 'http://www.google.com';
  ELSE
    :P0_URL := 'f?p=&APP_ID.:504:&APP_SESSION.::::P504_POLL_TYPE:PUSH';
  END IF;
END;

  • 2nd (Execute the JavaScript Code) for javascript with setting of sending call which set step 1 "P0_URL" , for example to draw attention of:
alert('&P0_URL.');

the problem is in the 2nd step, displaying alert is displayed with the null value

Note that i 1st stage i chose the option "wait for result"

Any suggestion

Step 1:

Items affected

Selection type - point

Objects - P0_URL

Step 2:

Alert ($x('P0_URL').value);

Please, make these changes and see if you get what you want.

Tags: Database

Similar Questions

  • help on the use of dynamic action to update the items in a table (more precisely, the radio button) based on the collection

    Hi everyone, I posted this question in the past and made huge strides with the help of Denes Kubicek: https://apex.oracle.com/pls/apex/f?p=31517:294:115851992029365: based on my previous question posted: https://forums.oracle.com/forums/thread.jspa?threadID=2537494

    I'm fighting with a single element in my tabular presentation.  There is a radio button.  The choices all seem correctly, but the value is not saved in the collection (and therefore not recorded in the table).  All the other elements in the form of tables to record properly.

    Here's what I have for the query.   This is element c024 (which maps to;) ("F03'), which is defined as a radio based on an existing LOV LOV.

    Currently I have:

    2 items on the page:

    P110_ID

    P110_VALUE

    Dynamic action called COLUMN of CHANGE:

    event: CHANGE

    selection type: jQUERY Selector

    jQuery:

    Select jQuery = input [name = "f03"], select [name "f08"], select [name = "f09"], input [name = 'f10'], input [name = 'f11'], input [name = 'f12'], select [name = "f40"], input [name = "f21"], input [name = 'f22'], input [name = "f23"], input [name = 'f50']

    scope of the event: Dynamics

    real action #1: set the P110_ID javascript expression this.triggeringElement.id

    real action #2: set the P110_VALUE javascript expression this.triggeringElement.value

    action 3: run pl/sql code

    declare
      v_member number;
      v_seq number;
    begin 
      v_member := TO_NUMBER (SUBSTR (:p110_id, 2, 2));
      select ltrim(substr(:p110_ID,5,4),'0') into v_seq from dual;
      safis_collections.update_column(v_seq,
                                    v_member,
                                    :p110_value);
    
    
    

    refreshment area true creation #4: LANDINGS_COLLECTION

    the tabular presentation is based on the query:

    SELECT
    apex_item.text(1,seq_id,'','','id="f01_'||seq_id,'','') "DeleteRow",
    seq_id,
    seq_id display_seq_id,
    apex_item.text_from_LOV(c004,'SPECIES')||'-'||apex_item.text_from_LOV(c005,'GRADE')||'-'||apex_item.text_from_LOV(c006,'MARKETCODE')||'-'||apex_item.text_from_LOV_query(c007,'select unit_of_measure d, unit_of_measure r from species_qc') unit,
    apex_item.select_list_from_LOV(8,c008,'DISPOSITIONS','onchange="getAllDisposition('||seq_id||')"','YES','0','  -- Select Favorite --  ','f08_'||seq_id,'') Disposition,
    apex_item.select_list_from_LOV(9,c009,'GEARS','style="background-color:#FBEC5D; "onFocus="checkGearPreviousFocus('||seq_id||');"onchange="getAllGears('||seq_id||')"','YES','3333','-- Select Favorite --','f09_'||seq_id,'') Gear,
    apex_item.text(10,TO_NUMBER(c010),5,null, 'onchange="setTotal('||seq_id||')"','f10_'||seq_id,'') Quantity,
    apex_item.text(11,TO_NUMBER(c011),5,null,'onchange="getPriceBoundaries('||seq_id||')"','f11_'||seq_id,'') Price,
    
    apex_item.text(12, TO_NUMBER(c012),5,null, 'onchange="changePrice
    ('||seq_id||')" onKeyDown="selectDollarsFocus('||seq_id||',event);"','f12_'||seq_id,'') Dollars,
    decode(c013,'Y',apex_item.text(14, c014,30,null,'style="background-color:#FBEC5D;" onClick="onFocusAreaFished('||seq_id||');"','f14_'||seq_id,''),'N','N/A') Area_Fished,
    decode(c017,'Y',apex_item.text(18, c018,4,null,'style="background-color:#FBEC5D; "onBlur="setUnitQuantity('||seq_id||')"','f18_'||seq_id,''),'N','N/A') UNIT_QUANTITY,
    decode(c017,'Y',apex_item.text(19,'CN',3,null,'readOnly=readOnly;','f19_'||seq_id,''),'N','N/A') UNIT_COUNT,
    c024 hms_flag,
    decode(c050,'Y',apex_item.checkbox(21,'Y','id="f21_'||seq_id||'" style="background-color:#FBEC5D; " onClick="alterYes('||seq_id||');" onKeyPress="alterYes('||seq_id||');"',c021),'N','N/A') FinsAttached,
    decode(c050,'Y',apex_item.checkbox(22,'N','id="f22_'||seq_id||'" style="background-color:#FBEC5D;" onClick="alterNo('||seq_id||');" onKeyPress="alterNo('||seq_id||');"',c022),'N','N/A') FinsNotAttached,
    decode(c050,'Y',apex_item.checkbox(23,'U','id="f23_'||seq_id||'" style="background-color:#FBEC5D;" onClick="alterUnk('||seq_id||');" onKeyPress="alterUnk('||seq_id||');"',c023),'N','N/A') FinsUnknown,
    decode(c050,'Y',apex_item.textarea(28,c028,3,null,null,'f28_'||seq_id,''),'N','N/A') Explanation,
    decode(c024,'N',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'U',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'Y','N/A') Nature_Of_Sale,
    decode(c020,'Y',
    apex_item.select_list_from_LOV(40,c040,'HMS_AREA_CODE','style="background-color:#FBEC5D;"',null,null,null,'f40_'||seq_id,''),
    'N','N/A') HMS_AREA_CODE,
    c020,c050,
    decode(c020,'Y',
    apex_item.text(41,TO_NUMBER(c041),5,null,null,'f41_'||seq_id,''),
    'N','N/A') Sale_Price
    from apex_collections
     where collection_name = 'SPECIES_COLLECTION' order by seq_id
    
    
    
    
    
    

    I noticed the following:

    When I change the column C011 (price) the following values are defined in dynamic action:

    P110_ID = f11_1

    P110_VALUE is everything that I change the price.

    When I change the column C024 (hms_flag), the following values are defined:

    P110_ID = f03_0001

    P110_VALUE = change everything what I hms_flag to.

    the region is updated in my dynamic action, and change of hms_flag does not take.  I tested the SQL query that generates the value of v_SEQ in the dynamic action.   Both a change of price and HMS_FLAG, it seems valid

    Select ltrim (substr(:p110_ID,5,4),'0 ') in the double v_seq;

    If f11_1, v_seq: = 1

    If f03_0001, v_seq: = 1

    Thank you!

    solved.  sort of.

    domain c024 references f03.

    dynamic ACtion, step 4 calculated v_member as a substring of P110_ID... and in all other areas, the column and the field (fxx) displayed the same value... otherwise c024.

    I'm not exactly sure how solve it, but see the problem.

  • Dynamic action - check if the size of the texfield values does not exceed limit

    Hello

    I have a form and I'm trying to use dynamic Action to process the form values. I don't know how to get the length of the value of a textfield and compare to what I said in the values

    The order of the day called P6_USERNAME which can be more than 10 characters long.

    So I tried to create a dynamic Action with the following parameters in the region when .

    EVENT: Press button
    SELECTION TYPE: jQuery Selector
    jQuery SELECTOR: $("P6_USERNAME").val () .length
    CONDITION: above
    VALUE: 10

    Of ACTION GENUINE, I had a view only showing a message "you have exceeded the limit.

    The above didn't work and tried to work it around with:

    $v("P6_USERNAME").val () .length

    that no longer works.

    Any suggestions on how I can achieve this? The only options I got in the Type of selection are: point, area, object DOM and jQuery Selector. What I'm really after is retrieving the value of the element, so I can use it for comparison with the value to run my Real Action

    APEX 4.0 - Oracle XE 11 G - Windows 7 32 bit

    It is not necessary to use a validation/dynamic action. Set the maximum width for the element attribute and the browser will prevent users to enter values longer than that.

  • Dynamic action to set the value to select the text box list

    Hello

    I want the value in the list box select text box i.e list selection with 5 static values and on the user's selection, this value must be added in a box.

    I am using dynamic measurements. I tried with dynamic action and created the change list box select evnent but now how to set the value of the selection list to
    text box that I don't know.

    Help, please.

    Thanks in advance

    Hello

    I changed the dynamic on this page action to make it work now. I changed the "value Type" action 'Set value' 'Expression JavaScript' and "JavaScript Expression" do the following:

    $v(this.triggeringElement)
    

    This example gets the value of the page element 'DESPROGES', bypassing the server for nothing, as you did before.

    I hope this helps. Let us know if you have any other questions.

    Kind regards
    Anthony

  • How to use PL/SQL to create dynamic action to set the value of a selection by another list?

    Hello

    I would like to know how to use PL/SQL to create dynamic action to set the value of a list of selection by another selection list.

    1.PNG

    I wish can create dynamic action to manage the two above the Room select list (: P9_ROOM) and building (: P8_BUILDING).

    When you select "1074" in the bathroom, building highlights like "BRM BLD 5"

    When you select 'Area of the black box' in the room, building must assign the value "7 BLD BRM"

    When the room is Null, building should also be Null.

    I thank you,

    Alice

    I forgot to mention, for the PL/SQL Code, because you are working with items in the selection list, the return values are different from the display on your LOV values, you must instead use the return values.

    Thank you

    Erick

  • Dynamic action to display the button

    Hi all

    I use Apex 4.1

    I want to build a dynamic action:
    If a value in the select list is changed - a button must be indicated.

    It does not work!

    Yes, I did:

    In the model of button:
    either:

    < button value = "" #LABEL # "class ="grey button"type ="button""
    #BUTTON_ATTRIBUTES # >
    < span > #LABEL # </span >
    < / button >

    or this:

    "< button value =" "#LABEL #" class = "grey button" type = "button" onclick = "#LINK #
    #BUTTON_ATTRIBUTES # >
    < span > #LABEL # </span >
    < / button >

    The button:
    The button attributes:
    ID = "button_dyn_action".

    In dynamic action:

    Event: change
    Selection type: elements
    Product (s): P51_KW_ID
    Condition: No strings attached

    Action: show
    Fires when the result of the event is: true
    Fire when the Page loads: no

    Items affected
    Selection type: DOM object
    DOM object: button_dyn_action

    Would be nice to get help in this forum about this, as a dynamic action to display the buttons are not described anywhere!

    Published by: oraman on December 12, 2011 07:42

    oraman,

    I think this thread is cursed. He deleted my answer!

    I made a mistake in my first post. Your model of button should look like this:

    
    

    and you must include the following in your attributes of button, then your button is hidden when the page loads:

    style="display:none;"
    

    Here's a demo: http://apex.oracle.com/pls/apex/f?p=43401:34:0

    See you soon,.
    Janet Tyson

    Published by: Tyson Janet December 12, 2011 10:30

    Published by: Tyson Janet December 12, 2011 10:33

  • Dynamic action to refresh the region-&gt; see the message to user

    Hello

    I have a page in the apex 4.2.2.

    In this page, I have an interactive report and a filter sets, users can choose.

    When users choose one of the filters, I implemented a dynamic action to refresh the interactive report region, so it should refresh the data being shown without submitting it.

    So far so good... but... when the region is refreshing there is point 'charge of circle' which displays and allows the user to know he is done on the page. But this icon is not so obvious.

    What I want is to add a message, for example to display a region, which showed a message like "being the updating of the report, please wait" (something like that).

    I tried to insert in my dynamic action, as 1st action, to SHOW this area and as the last action to HIDE. But nothing is done, the region is never shown.

    How can I perform this task? All I need is to be able to display a message, for the duration of the dynamic action, to inform the user that he or she must wait until the task is completed.

    All real common actions have been reported to "wait for result", if I didn't get this wrong, it means that he expects the previous real action remaining to be done, in order to trigger the next... This should show the region and then hide it, but it does not work.

    Can someone help me with this? Maybe give an idea?

    Kind regards.

    You can actually go several routes with a solution for this. A refresh of the IR will start forward and after updating the events that you can hang on to dynamic actions or jQuery, so you can show something at the start of the update and then hide it again. And since you can do all this in jQuery you could easily hold it in a javascript file and attach it to every page of the ir. This is probably the cleanest solution and more independable.

    Another way is to use the already existing waiting icon and play with his presentation a little. You know, that you are talking about loading icon. You can change this to something much better with minimal effort!

    Example:

    Run when the page loads, to execute javascript code:

    $("#apexir_LOADER").append("
    Please wait. Refreshing the data.
    ");

    Add this css to inline css in the page:

    span#apexir_LOADER {
    display: block;
    width: 150px;
    text-align: center;
    background-color: white;
    border-style: solid;
    border-radius: 5px;
    border-width: 2px;
    top: 20%;
    }
    

    It'll make a little white box with black borders rounded around the loading icon and put a text below.

    You can get the html code to add a bit more generic, or you can raise some html of the page if necessary. You can put it in a dynamic action on the load, put in a js file, or whatever. The css can be put in a page template or a css file.

    It's only less independable hanging in front or after updating because we are taking advantage of the system in place, which means that maybe he could change in the future - but this is hardly on the same scale as the 'hacking' the ir for example javascript.

  • Dynamic action to change the point label

    Hi all

    How can I use dynamic action to change the point label?

    Thank you.

    Hello

    I don't think that there is a solution out-of-the-box for it. However, it seems that the Apex 4 correct uses of the elements of the label HTML for labels. So you can use a jQuery selector that is simple to get and manipulate the tag of an element.

    Something like this:

    $('label[for="P1_CUSTOMER_NAME"]').html ("new label");

    Note that there is sometimes a scope nested within the tag tag.

    You can use a type of dynamic action "run the javascript" to do.

    Luis

  • read the value of the item page after filling value pop-up window

    I can't read or insert and also I cannot perform dynamic action of a page element data after the filling of the data page of the window popup (pass back to the point of the page). But I can read and insert, perform a dynamic action data while filling in the data using ajax and PLSQL code...


    How to read the value after the filling of database page popup window?


    SKUD

    Set value using Javascript is that in your browser page but is not yet available in the session. This is why the report does not return the expected results.

    Before you refresh the report, you need to set the session state from this point.

    You can configure after assigning a new value or before the report is updated to the element
    For interactive reports, is available built in
    You can go to report attributes > attributes advanced-> Page elements to submit and specify P2_X1 for the field (and any other page element that depends on the report)

    For standard reports, you can create a dynamic Action that is triggered 'before updating"report region, select PLSQL as action types, give a code BÉGIN END NULL; model and specify the name of the item in the item page to submit the field so that it affects the value of items in the session.

  • Adaptive tags: pt: data .currpagedata - could not get the current page id

    I use a Basic Page layout and need to create a DIV box which is linked to the Page ID - < div id = "pt-page-1234" >. The Page ID must be inserted dynamically when you navigate around the pages.

    I try to use the Adaptive tags pt: data to get the ID of the current Page; Therefore, I am currpagedata. When I use the attribute of the object ID of the object, I get the Community ID (which seems to be a bug).

    Does anyone know how I can get the current Page ID on a pt tag: data? Here is my current code:

    < pt:ptdata.currpagedata pt:id = "currPage" / >
    < pt:logic.foreach pt: data = "currPage' pt:var = 'temp' >
    < pt:logic.variable = pt pt:key: value = "$temp.objid" / "currPageId" >
    < /pt:logic.foreach >
    < pt:logic.concat pt:key = 'target' pt:value1 = 'pt - page -"pt:value2 ="$currPageId"/ >
    < pt:core.html pt:tag = "div" id = "$target" >

    I get... < div id = "pt-page-245" > but the page ID is 4015

    Published by: user11124236 on July 2, 2010 10:44

    Hello

    This may be too late, but for other people who have the same problem, use. PageID instead of .objid (case-sensitive).






    See you soon,.

    Jefi Santoso
    Collaboration technologies (http://www.collaborativetechnologies.com.au)

    Edited by: jefis on 14-Sep-2010 17:20

  • When I try to print a page, I get the entire page of very low, either I get only part of the page. Which setting I'm missing?

    I am trying to print a page of a web page. If I check, 'reduced to fit' print / page setup, I get the whole page but small enough to be useless. If I uncheck 'reduced to adjust', I get only about 1/3 of the page. I tried the % function, and it only changes the size of the narrow portion I see already. How to print the whole page in a reasonable size?

    If Firefox does not use the entire sheet of paper, it can result from Firefox after having extracted the Windows incorrect paper size settings when reading data from the print driver. Compensation it may involve conclusions some mask parameters, but here goes:

    (1) in a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.

    (2) in the search above the list box, type or paste print and make a pause so that the list is filtered

    (3) for each parameter which specifically mentions the problem printer, right click and reset The fastest way is to click with the mouse and press the r key on the keyboard with your other hand.

    Note: In a few discussions involving Brother printers, printer_printer_name.print_paper_data preference was established in 256 and when the user changed it to 1 which, in itself, solve the paper size. If you are using a Brother printer and see a 256 here, you can change the value by double-clicking it or by using the right click > modify.

    Any improvement?

  • Cannot get the home page of firefox on my computer

    I get the start page. I want to be my firefox home page

    This is the home page of mozilla firefox 3.6 version

    http://www.Google.com.my/Firefox?client=Firefox-a & rls = org.mozilla:-org.mozilla

    Simply go to options. And the link above as your homepage. Firefox 4 does not show this page. I have no idea why.

  • Why an I get the test page yellow and black with each print job. I have a HP PSC 1350

    Why an I get the test page yellow and black with each print job? I have a HP PSC 1350

    Hi - I assume that the page that you see printed is the alignment page.  This happens usually if the alignment process has not been made.  All you should have to do is take the printed alignment page and place it face down on the scan scanner glass and press.  Who must complete the alignment process and eliminate the page printing every time.  If you have problems, try following the procedure described in this document.

    Hope that helps.

  • Can I create an action to move the last page to the first?  I can only find how to manually drag the pages, and I need to make it simpler when there are a lot of pages.

    Can I create an action to move the last page to the first?  I can only find how to manually drag the pages, and I need to make it simpler when there are a lot of pages.

    Yes, you can do it using a script. This code should do the trick:

    this.movePage (this.numPages - 1, -1);

  • Change Photoshop elements for windows in Phot 11, now I have no more a windows PC. Can change my serial number of windows in a MAC/OS serial number? What should I do to get the items 11 (download) for OS, one a serial number for 11 elements for OS?

    I have Photoshop elements 11 (full version with serial number) for windows; now I have more to a windows PC. Can change my serial number of windows in a MAC/OS serial number? What should I do to get the items 11 (download) for OS, one a serial number for 11 elements?

    You can download PES 11 via the following linked web page:

    PES 10: 11 - http://helpx.adobe.com/photoshop-elements/kb/photoshop-elements-10-11-downloads.html

Maybe you are looking for

  • How to return to the default font on the bookmarks bar?

    Last night, I increased the font size on my bookmarks bar and made "BOLD", I want to return to the default size that I forgot what I did? Duh me. Please help, thanks

  • Satellite M60 off - set overheating scrapped

    Hi all I had some problems with my laptop recently. The problem is that it turns off suddenly. Firstly I thought a problem of overheating, but the laptop is quite warm, the radiator is clean and the fan works well. When he died, I have two options: (

  • L50 - A - PSKK6F - BIOS update v1.9 satellite fails

    First time I had to deal with so many things to get my bios updated.This model never constant speed... is up and down and some hardware options not available or at par with the specifications provided. Sounds like a bios problem. Current BIOS v1.7.Wh

  • Combining programs, files, folders, etc from two user accounts has a handset (i.e. administrative)

    Hello When I transferred files and folders, etc from my old computer to my new one, it divided them in two user accounts, which is the administrator (apparently I got the documents under two users on my old computer but didn't). The problem is now I

  • Glass

    Any informaion on if using line Z5 4 Gorilla glass or they always use Gorilla glass 3/Dragontrail X? It is a word about this headset is included in the box? Noice that cancel parts obtained with Z2 or regular?