APEX 4.0 IE8 - definition of value with dynamic Action - no display of the result

Hello

I use APEX 4.0 and IE8. I made a dynamic action that fires on the editing an item.

Event: change

Rype of selection items

Article: P77_item_1

Condition: No strings attached

Real Actions: The value

Action: Set

Set type: PL/SQL function body

: P77_item_2: = Y;

Page items to submit P77_item_1

Items affected

Items of Type selection

Elements P77_item_2

I see that it works in session. Now, I see that P77_item_2 is inserted. But there is no display of the value.

I tried item_2 as textfield, view only, or read-only, but the behavior is always the same. What can I do to show the change in the order of the day?

Thank you!

Le_di wrote:

I use APEX 4.0 and IE8. I made a dynamic action that fires on the editing an item.

Event: change

Rype of selection items

Article: P77_item_1

Condition: No strings attached

Real Actions: The value

Action: Set

Set type: PL/SQL function body

: P77_item_2: = Y;

Page items to submit P77_item_1

Items affected

Items of Type selection

Elements P77_item_2

I see that it works in session. Now, I see that P77_item_2 is inserted. But there is no display of the value.

I tried item_2 as textfield, view only, or read-only, but the behavior is always the same. What can I do to show the change in the order of the day?

Do not have access to an instance of APEX 4.0 to study, but any code of "PL/SQL function body" must include a RETURN clause:

:p77_item_2 := 'Y';
return :p77_item_2;

Tags: Database

Similar Questions

  • More than one Page objects of value with dynamic action parameter

    Hello

    How to set the values of the two elements of the page based on another page, article in dynamic action IE

    -variable value tr_type is set using the function get_type

    -passing the p1_code parameter

    TR_TYPE; = GET_TYPE (P1_CODE);

    If TR_TYPE = "DR" THEN

    P1_DR: = P1_AMT;

    ON THE OTHER

    P1_CR: = P1_AMT;

    END IF;

    -If I write the function get_type with Exp of PL/SQL of TYPE 'SET', it triggers the error on the use of the service.

    -If I put body of the PL/SQL TYPE of function 'SET', the page displays error unhandled expception.

    How can I achieve this using dynamic action.

    Hi, IK,.

    Can you please quote the u of changes/amendments made to the code, I am unable to find it.

    Included missing: for element names.

    --value variable tr_type is set using function get_type
    --passing p1_code parameter
    TR_TYPE:=GET_TYPE(:P1_CODE); 
    
    if TR_TYPE='DR' THEN
    :P1_DR:=:P1_AMT;
    ELSE
    :P1_CR:=:P1_AMT;
    END IF;  
    

    Here is my scenario with code.

    I have a form with 4 elements (account (P1_CODE), quantity (P1_AMT), DR (P1_DR, hidden), CR (P1_CR, hidden), I am writing a dynamic action on P1_AMT (change) of the code)

    DECLARE

    TR_TYPE char (2);

    BEGIN

    -calling a function "GET_TYPE.

    -passing the P1_CODE parameter

    TR_TYPE; = GET_TYPE (P1_CODE);

    If TR_TYPE = "DR" THEN

    P1_DR: = P1_AMT;

    ON THE OTHER

    P1_CR: = P1_AMT;

    end if;

    end;

    Again, we know not not how you want to call a dynamic action,.

    assuming that on the evolution of the account (P1_CODE), the function call GET_TYPE(:P1_CODE) to retrieve the type of transaction,

    on the basis of the transaction that you want to set the amount of specific element.

    on the change of point P1_code

    Action: execute the PL/SQL code

    Parameters

    DECLARE
    TR_TYPE  char(2);
    BEGIN
    --calling a function "GET_TYPE"
    --passing parameter P1_CODE
    TR_TYPE := GET_TYPE(:P1_CODE);
    if TR_TYPE='DR' THEN
    :P1_DR:=:P1_AMT;
    ELSE
    :P1_CR:=:P1_AMT;
    end if;
    end;
    

    page elements to present - P1_CODE, P1_AMT

    page items to return - P1_DR, P1_CR

    Check the screenshot

    There are other ways to set the values using dynamic action, try the above

    Kind regards

    Jitendra

  • Need help with dynamic Action through 4 items

    Hello everyone.

    I'm having some trouble trying to comp with dynamic action that will turn on or display a select list item when a value is set for the four elements of the Radio button group.

    P1_SELCT_LIST

    P1_RADIO_GROUP_1

    P1_RADIO_GROUP_2

    P1_RADIO_GROUP_3

    P1_RADIO_GROUP_4

    So once all four Radio groups are not null, I want the select View list item.

    Any help with this would be great.

    I'm on Apex 4.2.0.00.27

    Hello

    You can create the following action:

    Event: click on

    Selection type: jQuery selector

    jQuery selector: radio

    condition:

    $v ('P1_RADIO_GROUP_1')! == ''

    &&

    $v ('P1_RADIO_GROUP_2')! == ''

    &&

    $v ('P1_RADIO_GROUP_3')! == ''

    &&

    $v ('P1_RADIO_GROUP_4')! == ''

    Then add a real Action as follows:

    ACtion: show

    Fires when the result of the event is: true

    Fire on the page loading: No. (uncheck)

    Assigned to elements, selection type: product (s)

    Product (s): P1_SELECT

    Also add an Action to false as follows:

    ACtion: hide

    Fires when the result of the event is: false

    Fire on the page loading: YES (check)

    Assigned to elements, selection type: product (s)

    Product (s): P1_SELECT

    Kind regards

    Vincent

    http://vincentdeelen.blogspot.com

  • Help with dynamic action and the selection list item

    G ' Day Apex gurus.

    I have problems trying to achieve to trigger the Help window from an element automatically select. A Help window is triggered when it is clicked on the label of an item, but my customer wants to be triguered automatically as soon as the user clicks to view the options in the select list.

    I think I should be able to do with dynamic actions but I can't function.

    I know when someone clicks on the label of the item selection list trigger this JavaScript

    JavaScript:popupFieldHelp('277938589795252851','1545903379570909')

    So I want to trigger the javascript also when the user click on the item selection list and pull down the options and for that I think that the dynamic action is the way to go, but I can't do things.

    That's what I have to do:

    I created a dynamic option as follows:

    Name: test
    Sequence: 30
    Even: click
    Selection type: product (s)
    Article (s): P1_RATING <-a selection list item
    Condtion: - no requirement.

    Real Actions
    Sequence: 10
    Action: Run the JavaScript Code
    Fires when the result of the event is: true
    Fire on loading the page: checked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')

    Thank you anyone who can tell me what I'm doing wrong here or bring a solution to my problem to trigger the Help window from an element automatically select.

    Kind regards
    Carlos

    Hi Carlos,

    I've set up a test case of exactly in the same way and it worked fine for me. I've created a page element called P1_DA_DEMO and added some values of the static selection list, then added a help text. I used the settings are lower, I suggest you try again, but also make sure that you have no other Javascript errors on the page. Use a tool like firebug to check.

    Name: Action Dynamics demo
    Sequence: 10
    Even: click
    Selection type: product (s)
    Product (s): P1_DA_DEMO<- a="" selection="" list="">
    Condtion: - no requirement.

    Real Actions
    Sequence: 10
    Action: Run the JavaScript Code
    Fires when the result of the event is: true
    Fire on loading the page: unchecked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')

    Scope of the event set a Bind s.

    Thank you

    Paul

  • Performance issues with dynamic action (PL/SQL)

    Hello!


    I have problems of perfomance with dynamic action that is triggered on click of a button.

    I have 5 drop-down lists to select the columns that users want filter, 5 drop-down lists to select an operation and 5 boxes of input values.

    After that, it has a filter button that submits just the page based on the selected filters.

    This part works fine, the data are filtered almost instantly.

    After that, I have 3 selectors 3 boxes where users put the values they wish to update the filtered rows and column

    There is a update button that calls the dynamic action (a procedure which is written below).

    It should be in a straight line, the issue of performance might be the decoding section, because I need to cover the case when the user wants to set a null (@), and when it won't update the 3 columns, but less (he leaves ").

    That's why P99_X_UC1 | ' = decode(' ||) P99_X_UV1 |', "«,» | P99_X_UC1 ||',''@'',null,'|| P99_X_UV1 |')

    However, when I click finally on the button update, my browser freezes and nothing happens on the table.

    Can anyone help me solve this problem and improve the speed of the update?

    Kind regards

    Ivan

    PS The procedure code is below:

    create or replace

    DWP PROCEDURE. PROC_UPD

    (P99_X_UC1 in VARCHAR2,

    P99_X_UV1 in VARCHAR2,

    P99_X_UC2 in VARCHAR2,

    P99_X_UV2 in VARCHAR2,

    P99_X_UC3 in VARCHAR2,

    P99_X_UV3 in VARCHAR2,

    P99_X_COL in VARCHAR2,

    P99_X_O in VARCHAR2,

    P99_X_V in VARCHAR2,

    P99_X_COL2 in VARCHAR2,

    P99_X_O2 in VARCHAR2,

    P99_X_V2 in VARCHAR2,

    P99_X_COL3 in VARCHAR2,

    P99_X_O3 in VARCHAR2,

    P99_X_V3 in VARCHAR2,

    P99_X_COL4 in VARCHAR2,

    P99_X_O4 in VARCHAR2,

    P99_X_V4 in VARCHAR2,

    P99_X_COL5 in VARCHAR2,

    P99_X_O5 in VARCHAR2,

    P99_X_V5 in VARCHAR2,

    P99_X_CD in VARCHAR2,

    P99_X_VD in VARCHAR2

    ) IS

    l_sql_stmt varchar2 (32600);

    nom_table_p varchar2 (30): = ' DWP. IZV_SLOG_DET';

    BEGIN

    l_sql_stmt: = "update". nom_table_p | 'set '.

    || P99_X_UC1 | ' = decode(' ||) P99_X_UV1 |', "«,» | P99_X_UC1 ||',''@'',null,'|| P99_X_UV1 |'),'

    || P99_X_UC2 | ' = decode(' ||) P99_X_UV2 |', "«,» | P99_X_UC2 ||',''@'',null,'|| P99_X_UV2 |'),'

    || P99_X_UC3 | ' = decode(' ||) P99_X_UV3 |', "«,» | P99_X_UC3 ||',''@'',null,'|| P99_X_UV3 |') where ' |

    P99_X_COL | » '|| P99_X_O | » ' || P99_X_V | «and» |

    P99_X_COL2 | » '|| P99_X_O2 | » ' || P99_X_V2 | «and» |

    P99_X_COL3 | » '|| P99_X_O3 | » ' || P99_X_V3 | «and» |

    P99_X_COL4 | » '|| P99_X_O4 | » ' || P99_X_V4 | «and» |

    P99_X_COL5 | » '|| P99_X_O5 | » ' || P99_X_V5 | «and» |

    P99_X_CD |       ' = '         || P99_X_VD;

    -dbms_output.put_line (l_sql_stmt);

    EXECUTE IMMEDIATE l_sql_stmt;

    END;

    Hello Ivan,.

    I don't think that the decoding is relevant performance. Perhaps the update is suspended because another transaction has changes that are uncommitted to any of the affected rows or where clause is not quite selective and has a huge amount of documents to update.

    In addition - and I may be wrong, because I only have a portion of your app - the code here looks like you've got a guy here huge sql injection vulnerability. Perhaps you should consider re - write your logic in the static sql. If this is not possible, you must make sure that the entered user contains only allowed values, for example by P99_X_On white list (i.e. to ensure that they contain only values known as 'is', ')<', ...),="" and="" by="" using="" dbms_assert.enquote_name/enquote_literal="" on="" the="" other="" p99_x_nnn="">

    Kind regards

    Christian

  • Masking multiple elements with dynamic action me gives error

    Hello

    I have a selection list, and I tried to create a dynamic action on this subject. When the list is zero I want to hide items. The problem is that I thing 200 articles on my page and when I try to list them all under the dynamic action, it gives me an error or cut off my list. I tried created two separate actions of dynamics, but it did not work. Any suggestions? Any help would be so appreciated. Thank you!
    The problem is that I thing 200 articles on my page and when I try to list them all under the dynamic action, it gives me an error or cut off my list.

    Is it that you were able to cross the mark of products/page 100? But the official documentation has to say otherwise:
    http://docs.Oracle.com/CD/E23903_01/doc/doc.41/e21674/limits002.htm#BGGIECDF

    It is possible to define and to return more than 100 items on a page, but you will get a 404 error when running if you submit a page with over 100 articles (including the hidden objects and elements of page zero). You will not be able to present and process a page that has made more than 200 points. You will be able to set more than 200 items in your page and send, and then process the page If the actual number of elements returned is limited to 100 or less by using permissions and conditions.

    * Specify error messages you received

    Error message: error failed to create dynamic action.
    ORA-20001: error creating dynamic action sub-action name = "NATIVE_HIDE" id = "" ORA-01461: can bind to a LONG value only for insert into a LONG column > "

    You seem to have exceeded a 4000 or 32 K bytes on a column of metadata for dynamic action when you set the dynamic action. Because you cannot use all 200 points at the same time, you must create multiple dynamic actions that correspond to some subsets of items are actually rendered.

  • refresh the report with dynamic action title

    Hi all

    I have a report that is updated with dynamic action. When the update is done, first the value of two hidden variables are defined (P2_ID and P2_NAME) and are subject (using a dynamic action type "pl/sql", with the code "null"; and items to submit page: P2_ID, P2_NAME).

    In the report query, I use: P2_ID in the where clause. Everything works like a charm! The only thing that doen't work, is the title of the region: which is defined as "properties of & P2_NAME.", but the title is not updated when the report is refreshed.

    Is there a solution for this? I hope I am clear enough.

    See Re: dynamic action - update

    If you are right; the native just Refresh action updates the content of the report, it does not perform & POINT. substitutions throughout the region.

    What you could do is use a RANGE named as the title as

    &P2_NAME.
    

    and add a REAL action to your dynamic Action to set the title using Javascript to run code

    $s('my_title',$v('P2_NAME'));
    

    I hope this helps.

  • activation / deactivation of field with dynamic action and apply the attribute 'required value.

    Hello

    Wanted to know how to force the 'required' attribute for the element off after that is "activated" by a dynamic action.

    For example, consider employee form.  I would like to disable the column of employment and salary.  As soon as the user enters the name of the employee, I will 'activate' JOB and SAL columns using "dynamic action".

    IMG-1.png

    IMG-2.png

    And above works fine.  Please note that both JOBS & SAL of columns 'NULL' according to the DB table.  My question is, how to comply with the condition of 'value' Yes, after allowing them.

    Another example would be, when the user selects 'Check' or 'Project', the 'no project' column will be activated.  Otherwise, "Project No." column is disabled (that is, the value is not required).  However, when turned on, I want to apply "value required" in this column.   How to get there?   (I use APEX 4.2.6)

    Thank you

    -Anand

    Why you do not create a function that returns a Boolean, validation of the page?

    You can do something like

    BEGIN

    IF: P5_ENAME IS NOT NULL THEN

    IF: P5_JOB IS NULL THEN

    Returns false;

    ON THE OTHER

    Returns true;

    END IF;

    END IF;

    END;

    You can change it to any desired column.

  • Set values in a table with dynamic Action?

    Hi, I need help for my Application first, Apex, please. This page is for users of fuel truck who buy several gallons of fuel and use this page to distribute this fuel among the many projects. These users are familiar with filling in the Date of the Transaction, the Site, the Type of fuel from the fuel tank #, etc. on the top of the page and then using the lines below to split the fuel in different projects.

    Example: The user gets 100 gallons delivered, fills the Page elements on top with the details of the purchase and uses then 3 rows of tabular form to distribute among 3 project (Project1 gets 20 gallons, Project2 gets 30 gallons, Project3 gets 50 gallons). Each line in the form of tables inserts a new record in the table of database of fuel with different values for the Gallons and ProjectID, but the same Site, Date, Type of fuel and tank values.

    So there are columns hidden on the tabular presentation for Site, Date, Type of fuel and tank. They need get these values from the top so that the user doesn't have to type repeatedly. This is my problem: How can these hidden columns to get the values in the top text boxes dynamically? It must be dynamic, or changed immediately if the user changes anything in the decoders (as a typo).

    Just going to each as a column and defining the 'attributes of tabular form' by default for an item and then by setting the default value in the name of the element page text box will only work if somehow, the user submits the page and does not make typing errors before you fill out the form in a table. I need to be adjusted immediately. Also, is it something special to set the date picker on the form as a table for the value of the Date on the top picker? For the moment, I am trying to use the Set button to set the values in the boxes at the top of the page with their items and refresh the page, so the default values of the column in a table can be right. Is there a better way to do it? It does not work for the date picker.

    I just started to use Apex, I only know the basics of dynamic Action HMI. If I should use a jQuery or code in the HTML header or a 'Collection' Apex, be very specific. Page elements above have names like P13_TANK and the P13_TRANSACTION_DATE of Date Picker and the shape of the table has column names like TANK and TRANSACTION_DATE. Truckers and I appreciate any help, thanks!

    apex question.png

    ~ Saphira

    I forgot a few quotes:

    $("input[name='f05']").val(this.triggeringElement.value);
    
  • Back to zero/recalculate value if the element with dynamic action

    Hi all

    What I have is a part of "total amount". When the other elements on the form are filled, these values are subtracted from the total. My problem is that when a few points to say a filled out, but then set to zero, the figure in the total does not reset. If no new figure added, are more excluded.

    For example:
    total = 10
    Value of 1 changed to 5. Total = 5.
    Value of item 2 changed to 1. Total = 4.
    Value of 1 changed to 2. Total = 2.

    I find it tricky is because the total is derived from an action of current setpoint led other points. Finally, I would like to reset or re - run the calculation for the total, without duplicating the original action of the set value. I tried to use a dynamic action "Refresh" but I don't think that work in this way. Is there another way?

    Why not save the original value to an item hidden page (or even in a global variable set before you run the JS calculation for the first time in javascript).
    During the reset, set the value of the element with the value of the hidden (or variable).

  • Set the value hidden with dynamic action

    This is probably very simple, but I don't know exactly what I'm doing wrong.  I would like to use a dynamic action to set the value of an item hidden in the value of a selection list when that select list of changes.  So what I have is:

    Event: change

    Selection type: point

    Article: P1_SELECT

    Action: Set

    Set type: PL/SQL Expression

    PL / SQL: P1_SELECT

    Items concerned:

    Selection type: point

    Point: P1_HIDDEN

    where P1_SELECT is my list selection and the P1_HIDDEN is my element hidden.

    It doesn't seem to work.  I don't know that I'm doing something very simple, bad.  This should be easy points for someone!

    Thank you!

    John

    It's actually a session typical State missunderstanding. When the selection list is changed, it does not change the value of session state, but only the value of the side (browser) client. If you set value action will set the status value for current session on the element hidden, which will probably be NULL (or any value it is on, you can see in the session tab in the developer bar).

    Instead of a type of expression plsql for your set value action, must change to a javascript expression:

    $v ("P1_SELECT")

    who will get the value of the element of page P1_SELECT currently on the page.

    PS: also, in your affected items your article is ": P1_HIDDEN"-is two points in front of deliberate? It shouldn't be there

    PS2: If you mean to send the page, then you can set the property to 'protect the value' of the hidden element to 'No', otherwise you will receive a checksum error!

  • Dynamic action: need to refresh the area when changing value radio button

    Hello

    I use Apex 4.2 worm.

    I need to apply a dynamic action with the refreshment area.

    I need to refresh the area when I change the value of the radio button.

    To do this, I created dynamic action on the changes and select the refresh option to update the region.

    But it does not.

    If you want to check, then see below for workspace:

    Workspace: APEX_ISSUE

    User name: [email protected]

    Password: kaushik1@34

    Please use Page no 5.

    Thank you

    Hi Maxence,

    CORINE wrote:

    Hi Kiran

    Thank you very much.

    It works very well.

    One more I need help, I need to scroll in the radio button because I'm showing type of booking successively from top to bottom.

    How can I set scrolling in the option box.

    Thank you

    What do you mean by scrolling in the option button?

    I applied a horizontal scrolling for the region containing radio buttons by using the suite in the attributes of the region:

    style="overflow-x:scroll;"
    

    If you apply the change just of vertical scrolling x to y.

    I hope this helps!

    Kind regards

    Kiran

  • Update column as a popup LOV with dynamic action

    I'm trying to update a column in a tabular form, based on a change in column LOV in this tabular form. It is not just id/description, I need another column.

    I can get the change event is triggered, it is the javascript code to change the value of the field, that I can't go to work. I tried a number of solutions forum, but could not get to work. The LOV field is F07, the update field based on a query if F05.

    I tried this technique but could not go beyond "closer", which did not work.

    var line, priceelement, testelement, getpriceajax, price;

    TestElement = apex.jquery('#'+this.triggeringElement.id);

    line = testelement.closest ('tr');

    priceelement = row.find ('[name = 'PRICE']');

    getpriceajax = new htmldb_Get (null, $v ('pFlowId'), 'APPLICATION_PROCESS is get_price', $v ('pFlowStepId'));

    getpriceajax.addParam ('x 01', $V (this.triggeringElement.id));

    price = getpriceajax.get ();

    priceelement. Text (Price);

    I tried this kind of reference that did not work:

    $("td [headers = 'SAL'] input: visible: eq (2)")

    var line

    bliId

    bliNbr

    getBliNbr;

    bliId = apex.jQuery (this.triggeringElement);

    Console.log (bliId);

    line = bliId.closest ('tr');

    Console.log (Row);

    bliNbr = row.find ('input [name = f05]');

    getBliNbr = new htmldb_Get (null, $v ('pFlowId'), 'APPLICATION_PROCESS is GET_BLI_NBR', $v ('pFlowStepId'));

    getBliNbr.addParam ('x 01', $v (this.triggeringElement.id));

    var ajaxResult = getBliNbr.get ();

    Alert (ajaxResult);

    bliNbr.val (ajaxResult);

    1 / testelement = apex.jquery('#'+this.triggeringElement.id);

    There is no need that you already have a reference to this point with this.triggeringElement. Effectively, you take the ID of it and re - get.

    2 / bliNbr = row.find('input[name=f05]');

    In your code example, the element is f05 and not 6

    3 / var ajaxResult = getBliNbr.get ();

    do it once only, the get() method. If you call it several times, then the call also will be several times. Because the get() method is synchronous means also that it locks the browser to the top, and so several calls cause longer periods of absence of response.

    I also did an example of apex.server.process, who is currently in your demo application. You can find documentation about it here: The JavaScript API

    var line

    bliId

    bliNbr

    getBliNbr;

    bliId = apex.jQuery (this.triggeringElement);

    Console.log (bliId);

    line = bliId.closest ('tr');

    Console.log (Row);

    bliNbr = row.find ('input [name = f05]');

    /*

    getBliNbr = new htmldb_Get (null, $v ('pFlowId'), 'APPLICATION_PROCESS is GET_BLI_NBR', $v ('pFlowStepId'));

    getBliNbr.addParam ('x 01', $v (this.triggeringElement.id));

    var ajaxResult = getBliNbr.get ();

    Alert (ajaxResult);

    bliNbr.val (ajaxResult);

    */

    Apex. Server.Process ("GET_BLI_NBR",

    {' x 01 ": $v (this.triggeringElement.id) '},

    {the data type: 'text', success: {function (pData)}}

    Alert ("complete:" + pData);

    bliNbr.val (pData);

    }});

  • Is it possible to change the definition of LOV uses dynamic action?

    Hello

    I have a multiple selection LOV page article, P27_MULTI_CLASS_CODE, defined as below.  The loading of the page, this list contains only values based on what was passed to P27_OLO_CODE or P27_OLO_CODE_SW.

    SELECT DISTINCT c.class_code d, c.class_code r

    O ORGANIZATION,

    POSITION p,

    CLASS c

    WHERE o.org_wk = p.org_wk

    AND p.class_wk = c.class_wk

    AND o.org_active_flag = 'Y '.

    AND p.pos_active_flag = 'Y '.

    AND c.class_active_flag = 'Y '.

    AND (o.olo_code =: P27_OLO_CODE)

    GOLD o.olo_code =: P27_OLO_CODE_SW)

    ORDER BY c.class_code ASC

    Before submitting the page, I want the definition of LOV's P27_MULTI_CLASS_CODE to change the following (similar application without reference to the P27_OLO_CODE or P27_OLO_CODE_SW) based on the question if the user selects a checkbox, P27_ALLOW_SW.   In doing so, P27_MULTI_CLASS_CODE would contain a wide range of values, rather than the limited values.

    SELECT DISTINCT c.class_code d, c.class_code r

    O ORGANIZATION,

    POSITION p,

    CLASS c

    WHERE o.org_wk = p.org_wk

    AND p.class_wk = c.class_wk

    AND o.org_active_flag = 'Y '.

    AND p.pos_active_flag = 'Y '.

    AND c.class_active_flag = 'Y '.

    ORDER BY c.class_code ASC

    I wanted to avoid writing Javascript.  Is this possible using dynamic measurements... or at least somehow update P27_MULTI_CLASS_CODE so that it ignores the P27_OLO_CODE and the P27_OLO_CODE_SW?

    Tried to create dynamic action to clear the value of P27_OLO_CODE or P27_OLO_CODE_SW, in the hope this would trigger P27_MULTI_CLASS_CODE to display all the values, but it has failed.  Any ideas?

    APEX 4.2

    You can do this by editing the query lov a little:

    SELECT DISTINCT c.class_code d, c.class_code r
      FROM ORGANIZATION o,
           POSITION p,
           CLASS c
    WHERE o.org_wk = p.org_wk
       AND p.class_wk = c.class_wk
       AND o.org_active_flag = 'Y'
       AND p.pos_active_flag = 'Y'
       AND c.class_active_flag = 'Y'
       AND ((:P27_ALLOW_SW = 'Y' AND (o.olo_code = :P27_OLO_CODE OR o.olo_code = :P27_OLO_CODE_SW))
            OR :P27_ALLOW_SW = 'N')
    ORDER BY c.class_code ASC
    

    (of course, use the correct value for P27_ALLOW_SW)

    The "cascade LOV Parent article (s)" value P27_ALLOW_SW and also add "Page elements to submit" element (Note: this item appears only when you have entered a value in the element of parent lov cascading items)

    Now, after changing P27_ALLOW_SW the lov will update to P27_MULTI_CLASS_CODE.

  • Help with dynamic Action with pl/sql and Javascript

    Hi all
    I'm a little hard with the following and I was wondering if someone can help me.
    My test app is here:
    http://apex.oracle.com/pls/apex/f?p=32581
    
    workspace: Leppard
    Login: guest
    pw: app_1000
    
    Tab: DB Link (page 19)
    I have a list of unique selection on the page that queries a table in my diagram.

    This is the flow that works, but not the user experience I want:
    User clicks on the button Create Page 19 > the next page, page 20, appears as a popup window > user enters the name of the link = "MyLink" (or other) and one unit number, i.e. 1234 (or other) > user clicks 'Create using process' button > success message > user closed the window to return to the page 19 > user clicks LOV refresh to refresh the list of selection so that the new value is displayed.

    That's what I'm aiming for: user clicks on the button Create Page 19 > the next page, page 20, appears as a popup window > user enters the name of the link = "MyLink" (or other) and one unit number, i.e. 1234 (or other) > user clicks button "create using the DA ' > dynamic action is called running pl/sql closes the popup window and refreshes the list of selection on page 19.

    I know that I have some problems with my dynamic action. First of all, the pl/sql is not yet recognize the values that I enter the fields in item on page 20. I created a first pl/sql "null;" to force these items in session state, but it does not work for me and the pl/sql just inserts a null value into my table. Secondly, I can't get javascript to fire code to refresh the list of selection on page 19. The code I use in the DA is the same thing as what is behind the button refresh LOV, so I am confident that the code works, I just can't get this fire click the button "create using the DA" on page 20.

    Sorry if this is confusing - I can clarify if necessary, let me know. Thanks in advance. Of course I'm still learning...

    John

    Published by: John K. on May 30, 2013 19:28

    I modified your DA as follows.

    In real Action of DA,.

    1 Seq 10, I added the element page 20 Page points to submit and return Pagenames. You forgot to add items here
    2 Seq 20, I changed your simple code to insert. Simple code just insert
    3 Seq 30, I added the new code to close the window and reload the window open.

    Thank you
    Lacombe

Maybe you are looking for