Dynamic action - hide a button based on SQL

Hello

I have a button that I want to disable the SQL logic

something like that

dynamic action must check

If P2_CUSTOMER_NAME in (select CUST_NAME FROM TABLE_A)

If true, then hide from another BUTTON_1 does not hide BUTTON_1

Please advice how


Thanks in advance

Just click the button to launch OBE. At the most, you may need to be a member of the RTO.

André

Tags: Database

Similar Questions

  • dynamic action turns an article based on the result, and checks the database!

    I use Apex 4.1

    I do not know how to accomplish the following:
    If a pick list is changed, a function is checked and based on the results of a another field is disabled or enabled.

    I created a dynamic action (change) that executes a PL/SQL code, now I need to disable the other element.

    the problem is that I can't save the dynamic action because of the sign #.

    example:
    Start
    HTP.p ("< script type =" text/javascript"> '");
    HTP.p ('$('#P35_FT_00010_DOC_NO').attr ("readonly", "true")');
    HTP.p ("< /script >");
    end;

    I tried document.getElementById, but an error occurs also when I try to save.

    I think the wrong way?... Help, please

    1. create a step forward (not the simple/standard one) dynamic action.
    2. create initially unconditionally (the wizard will not let you take the PL/SQL expression as a condition but we will go back and change it later)
    3 assume that TRUE from your PL/SQL will lead to disable the item, then choose 'Disable' and the item you want to disable.
    4. Once created, go back in the DA and change the status of PL/SQL expression and put your PL/SQL in there (suppose you have a function returns boolean called MY_FUNC and TRUE to him means disable).
    5 copy the DA in its entirety to a new DA will be FALSE to activate the element.
    6. Once copied, go into the new DA and change the status of PL/SQL to NOT (my_func).
    7 change the REAL action of the DA to activate the element.

    So now you should have two similar DAs... one for when MY_FUNC is true and disables the element, a when "NOT (my_func)" is true and allows the element.

    If you do not disable, you can run javascript instead to set readonly. It seems that this is kind of what you tried to do, but you seem to use a jQuery selector, I suppose that (I did not recognize your syntax to off the bat)?

    Try to use the javascript API instead Apex:

    if ($v('P35_EN_DIS_DOC') == 1 )
      $x('P35_FT_00010_DOC_NO').readOnly='true';
    else
      $x('P35_FT_00010_DOC_NO').readOnly='';
    
  • How to create a dynamic action with a button?

    Hello, I created a dynamic action with a button, which should show a region of the page When you click.

    What I have to enter in the State et value of the condition?

    Thank you

    Hello

    1. in doSubmit ("ACCEPT");

    ACCEPT is nothing than the name of the button, but I hope that you have created the name of the button as "BELOVED".

    $2 s ('P57_ACCETTA', 1);

    $s('P57_ACCETTA',1)---> all by setting the value you give space. Make the changes and check.

    And you enter this script in the HTML header.

    If possible you can send your page with the credentials so that will look.

    -SreeNithi.

  • Dynamic action with multiple values of PL/SQL Expression as a condition

    Hel

    I am currently using Apex 4.0 for a schoolproject.

    I have two selectlists (P8_BUSINESSRULETYPE - which has al businessruletypes) and (P8_OPERATOR) that has a select statement based on the businessruletype.

    I want to hide the selectlist operator when P8_BUSINESSRULETYPE = 7,8,9 and 10 or P8_OPERATOR = 9

    When: change

    SelectionType article (s)

    Elements P8_BUSINESSRULETYPE

    condition: equal to 10

    Real actions: hide items p8_operator

    False actions: show p8_operator items

    ConditionType PL/SQL EXPRESSION

    : P8_BUSINESSRULETYPE = 10 OR: P8_BUSINESSRULETYPE = 8 OR: P8_BUSINESSRULETYPE = 7 OR: P8_BUSINESSRULETYPE = 9

    What is the problem with my dynamic action? Because he does not hide the operatorfield when businessruletype 10 or 9 are selected in the selectlist. Sessions has also said operator = 9 and Businessruletype = 10

    I hope you guys can help out me.

    Thank you very much.

    2843640 wrote:

    Please update your forum profile with a real handle instead of '2843640 '.

    I am currently using Apex 4.0 for a schoolproject.

    I have two selectlists (P8_BUSINESSRULETYPE - which has al businessruletypes) and (P8_OPERATOR) that has a select statement based on the businessruletype.

    I want to hide the selectlist operator when P8_BUSINESSRULETYPE = 7,8,9 and 10 or P8_OPERATOR = 9

    When: change

    SelectionType article (s)

    Elements P8_BUSINESSRULETYPE

    condition: equal to 10

    Real actions: hide items p8_operator

    False actions: show p8_operator items

    ConditionType PL/SQL EXPRESSION

    : P8_BUSINESSRULETYPE = 10 OR: P8_BUSINESSRULETYPE = 8 OR: P8_BUSINESSRULETYPE = 7 OR: P8_BUSINESSRULETYPE = 9

    What is the problem with my dynamic action? Because he does not hide the operatorfield when businessruletype 10 or 9 are selected in the selectlist. Sessions has also said operator = 9 and Businessruletype = 10

    The first thing is that a Condition that is applied to a control of dynamic action if the dynamic action is made the see page. She has therefore no impact on the question of whether the actions of true or false are performed. Control conditions which are those defined in the when the properties of the dynamic action. As they are evaluated in the browser, they must be specified as JavaScript.

    Secondly, this expression is not valid because it is a space between the colon and the identifiers. Link the names of rating, the colon and the variable element must be contiguous:

    :P8_BUSINESSRULETYPE = 10 OR :P8_BUSINESSRULETYPE = 8  OR :P8_BUSINESSRULETYPE = 7 OR :P8_BUSINESSRULETYPE = 9
    

    However the latter is only of academic interest, in this case you need to remove the condition of dynamic action.

    In the dynamic of change when action section, P8_BUSINESSRULETYPE, P8_OPERATOR, Condition of JavaScript Expressionand value to the value of the item (s)

       ($v('P8_BUSINESSRULETYPE') == '7')
    || ($v('P8_BUSINESSRULETYPE') == '8')
    || ($v('P8_BUSINESSRULETYPE') == '9')
    || ($v('P8_BUSINESSRULETYPE') == '10')
    || ($v('P8_OPERATOR') == '9')
    

    If you are using a browser that supported, this can be simplified to

       (['7', '8', '9', '10'].indexOf($v('P8_BUSINESSRULETYPE')) >= 0)
    || ($v('P8_OPERATOR') == '9')
    
  • dynamic action - hide values if the element in the array?  syntax error (I think).

    Hello world

    I have an application page that contains a lov (gears).  If a particular device is selected, I want to hide other fields.   The value of the machine could be one of many.  I created a dynamic action using javascript... but I'm really not familiar with javascript and can't seem to make it work.   Note, there is a line below commented that compared to gear to the value of "500".  This line works and mask fields... but I need to make it work for all possible values.  Any help would be really appreciated!

    Thank you, Karen

    var no_size is ["000", "300", "320", "400", '500', '501', '550', "620", "630", "650", '662', '700', '750', '760', "803", "811"];.

    $(". {Gear") .each (Function (index)}

    If ($v (this) == '500')
    If ($.inArray ($v (this), $no_size)) >-1
    {
    var rowTR is $x_UpTill (Thi, 'TR');.
    $(rowTR).find(".) G_SIZE"). Hide();
    $(rowTR).find(".) Stretch"). Hide();
    $(rowTR).find(".) Mesh"). Hide();
    }

    });

    This seems to do the trick.

    var no_size is ["000", "300", "320", "400", '500', '501', '550', "620", "630", "650", '662', '700', '750', '760', "803", "811"];.

    $(". {Gear") .each (Function (index)}

    If (no_size.indexOf ($v (this)) > - 1).
    {
    var rowTR is $x_UpTill (Thi, 'TR');.
    $(rowTR).find(".) G_SIZE"). Hide();
    $(rowTR).find(".) Stretch"). Hide();
    $(rowTR).find(".) Mesh"). Hide();
    }
    on the other
    {
    var rowTR is $x_UpTill (Thi, 'TR');.
    $(rowTR).find(".) G_SIZE"). Show();
    $(rowTR).find(".) Stretch"). Show();
    $(rowTR).find(".) Mesh"). Show();
    }
    });

  • dynamic actions - hide / show items

    Hello

    I'm looking on the application, say, 3 elements (Item_1, Item_2, Item_3), led by a group of radio buttons (with 2 entries option_A, Option_B)...

    If a radio option_A group is selected, I want to show 2 items (Item_1, Item_2) and when option_B is selected, and then I just want to show a single point (Item_3)...

    Please advice how to accomplish the above... a tutorial or a reference to the working example would be better...

    Thank you

    Hello

    Suppose that the radio button is P5_RADIO and 3 elements are
    P5_1, P5_2, and P5_5

    (1) create a dynamic Action. (Advanced)
    (2) enter the name of dynamic Action, and then click Next
    (3) event - select change
    Selection type - selection item (s)
    Product (s) - enter P5_RADIO
    Condition: no strings attached
    Click next
    (4) action - select Execute javascript code
    Uncheck the "fire on Page load.
    (5) in the Code, enter

    if ($v('P5_RADIO') == 'A'){
       $x_Show('P5_1');
       $x_Show('P5_2');
       $x_Hide('P5_3');
    }else {
    
       $x_Hide('P5_1');
       $x_Hide('P5_2');
       $x_Show('P5_3');
    
    }
    

    Click next

    Example: http://apex.oracle.com/pls/apex/f?p=27576:5

    Kind regards
    Shijesh

  • Dynamic action - Hide and show interactive report

    Hello

    in the apex community tip http://www.oracle.com/global/de/community/tipps/apex40-dynamicactions/index.html (only in German), there is an example to hide and show a report interactive by dynamic actions.

    The approach described in the article should be case for normal or interactive reports.
    But in my case it works for normal relations. I am not able to update or hide the interacitve dynamic equity report.

    Has anyone had similar experience?

    Greetings
    Michael

    Hello
    You are welcome.

    * It is considered good etiquette to the responses of reward with points (as "useful" - 5 pts - or 'correct' - 10pts). :)
    Thank you
    Logaa

  • How to hide a button based on zero a count of an independent subform?

    I'm a newbie to this. Try different ways without success. I found the info in an old discussion group. There is no info to indicate that it worked.

    It's not exactly what I need. I tried to adapt it without success.


    "in the click event of the button remove should have something like this."

    If (this.parent.instanceManager.count > 1) {}

    this.parent.instanceManager.removeInstance (this.parent.index);

    } else {}

    xfa.resolveNode("Subform1[0].cmdRemove").presence = 'hidden ';

    this.parent.instanceManager.removeInstance (this.parent.index);

    }

    And you should have an initialize event of the subform

    If (this.instanceManager.count > 1) {}

    xfa.resolveNode ("Subform1 [0]. ") cmdRemove') .its presence = 'visible ';

    } else {}

    xfa.resolveNode ("Subform1 [0]. ") cmdRemove') .its presence = 'hidden ';

    }

    Basically, I want to hide a button if the account of a subform get to zero. The subform has start from zero count. If somoene decides to remove all the subform said, I need the button target to be "hidden". Any help would be appreciated.

    It works as you described. Thank you

  • Dynamic action - hide the Date icon

    Salvation;
    I have a date field that I turn on and off via the readonly HTML based on the value of another article, now the problem is the Date Picker icon is not performed, how to hide the icon based on a condition?
    I use APEX 4.0.2
    Thank you.

    Check {message identifier: = 9394199}

  • Dynamic action on the button to assign the report IR data

    I have an IR report with 3 buttons, when I click on a button that it will affect to data IR report! Way I selected rows.i search on OTN, but I couldn't reach the goal, please give a reference to the ID of the thread for this case!

    my workspace: ram_r & d

    user / password: aramani / apex

    App:http://apex.oracle.com/pls/otn/f?p=29288:1:12169819179603:

    Thank you

    RAM

    Create a hidden page element, IE P1_VALUE.

    Create 3 calculations or process page, by setting the value of P1_VALUE and assign each of your buttons.

    Change the where clause to include P1_VALUE in the State

    So, when you click a button, then the value of P1_VALUE is and it is then queried in your report.

    Gus

  • Dynamic action on upper and lower region button

    I have a dynamic action where when I click on my first button (add a LINE) I want a 2nd button to be disabled (DELETE).  My second button as the button position "Up and down the region", so that the button is displayed above and below my report.

    After you create the dynamic action, when I click on my first button (add a line), the top of the page button DELETE is disabled, but it does not neutralize my button at the bottom.  When I set up my action dynamic and he say what button to assign, it only shows a button in the list of the button (MULTI-RANG-DEL).  In other words when I set up the button like "Up and down the region" it does not show 2 as the selection in dynamic action buttons, one button.

    So how can access this button down in my dynamic action?

    Using APEX 4.2.4

    Thanks in advance!

    John

    jfosteroracle wrote:

    I have a dynamic action where when I click on my first button (add a LINE) I want a 2nd button to be disabled (DELETE).  My second button as the button position "Up and down the region", so that the button is displayed above and below my report.

    After you create the dynamic action, when I click on my first button (add a line), the top of the page button DELETE is disabled, but it does not neutralize my button at the bottom.  When I set up my action dynamic and he say what button to assign, it only shows a button in the list of the button (MULTI-RANG-DEL).  In other words when I set up the button as "The top and bottom of the region", it shows 2 buttons as choices in dynamic action, a single button.

    So how can access this button down in my dynamic action?

    Use the property Class CSS button button to add a class name (for example delete ) for the button. Change the DA Sélection Type selector to jQueryand jQuery Selector to something like button.delete (the exact required selector will depend on the template theme and used button).

  • APEX dynamic Action issue with custom button template

    A new day and a new problem. -.-

    I wanted to create a dynamic action, if a button is clicked and got the error "the selected button uses a 'button model' which does not contain the #BUTTON_ID substitution string #. So I googled a bit und found issue with action Dynamics apex. I thought that this would solve my problem and I looked in the model button to find this:

    <table class="t15Button" cellspacing="0" cellpadding="0" border="0"  summary=""><tr>
    <td class="t15L"><img src="#IMAGE_PREFIX#themes/theme_15/button-l.gif" alt="" /></td>
    <td class="t15C"><a href="#LINK#">#LABEL#</a></td>
    <td class="t15R"><img src="#IMAGE_PREFIX#themes/theme_15/button-r.gif" alt="" /></td>
    </tr></table>
    

    A former colleague created the model itself and I do not know where to insert the #BUTTON_ID #. Does anyone have any suggestions?

    Concerning

    Chris

    Miss you atrribute button ID,

    is the correct code

    #LABEL#

    I hope this works.

    Go

  • Apex 5 after execution of a dynamic action, want to display message and redirect the page

    Hello Experts,

    I use 5 Apex on XE 11 g.

    One of my page, I have 1 button that performs a dynamic action.

    Right now, I've added two real actions on the key. First of all is PL/SQL code, and the second is on the alert, which shows the success message.

    I want to show the message (box Apex message and not the simple alert message JavaScript box) on successfully executing this dynamic action and post that redirect to another page.


    Can someone help me please in the present.


    Thank you

    Thierry

    Thierry says:

    I use 5 Apex on XE 11 g.

    One of my page, I have 1 button that performs a dynamic action.

    Right now, I've added two real actions on the key. First of all is PL/SQL code, and the second is on the alert, which shows the success message.

    I want to show the message (box Apex message and not the simple alert message JavaScript box) on successfully executing this dynamic action and post that redirect to another page.

    Use the simple way to do this:

    • A button that submits the page rather than perform a dynamic action
    • A process of PL/SQL after presented with the necessary success message page
    • A branch to the landing page with the option include the success process message verified

    General management and the process should be contingent on the button that is clicked.

  • Redirecting to a page after the dynamic action

    I stated a dynamic action of a button (its dynamic action of pl/sql). After its been pressed it fills a line in a table.

    I want to redirect it to another page, once completed the dynamic action. How can I do?

    PL/SQL D.A. have an indicator expected result, make sure that is selected.

    Then, action of true of JavaScript:

    Window.Location.href = ' & APP_ID.: 1: & APP_SESSION. :::'

    or simply add a real action of page submit and manage the re - run by a branch of the page?

  • Dynamic action with refreshment area interactive report

    Hello!

    I use APEX 4.02

    I have a page with 2 regions.
    Region1 is a form (of entry)
    Region.2 is an interactive report on the same table as region 1

    When you enter values in the form I'm trying dynmically similar research records in the table with the interactive report.

    I made a dynamic action on the change of form fields that must refresh the interactive report region. I can see this one fires if I add an alert to debug if it fires.
    The dynamic report is based on a query with bind variable pointing to the fields in the form, for example
    where
    Field1 =: P2_FIELD1


    It works fine on the page loading, so no action is triggered, but I see the lines in the region of report are the ones I'm looking for.
    The updating of the report area does not work, but it is never nice and/or showing the correct data after a change of form fields, if it looks like the dynamic action "refresh the region" does not work on the interactive report.

    Any ideas why it can go wrong?
    I want to solve this problem using standard dynamic actions and preferably not via PL/SQL or JS, should be possible if I believe documentation... ;)

    See you soon
    Bottom

    Published by: bklerk on 26-apr-2011 03:07

    Hello

    Check this example application
    http://Apex.Oracle.com/pls/OTN/f?p=39830:38

    You can download and check the source

    Kind regards
    Jari

Maybe you are looking for

  • How can I keep Photos autostart

    whenever I insert a card containing the images, the photo program starts automatically. How can I stop that from happening?

  • Elitedesk 800 G2: Elitedesk 800 G2 - auto standby unwanted on with network boot

    Hi all I have a problem with my new Elitedesk 800 G2, which I think is related to Wake on Lan. The problem is that I can't find these settings in the BIOS settings. If I'm just blind? Description: Off my PC it remains off for a few minutes. Then, it

  • am I not enough voltage?

    Hello, here is my computer spec. : I've got the 550w power supply the system version: 6.1.7601 Service Pack 1 Build 7601 my video card: AMD Radeon HD 6670 System model: EG41MFT-USH2 System Manufactor: Gygabyte The version of the BIOS/Date: Award soft

  • WMP 12 is distotred with muted vocals on some songs

    I got this new PC desktop (Windows 8.1) for about eight months, but the WMP 12 has never worked properly, with the voice of muted on some files. I imported my music library of my old XP Pc and have added more CD to the collection. Initially, I though

  • IKE initiator unable to find the policy; Outside INTF, CBC: error

    I have a Cisco ASA 5505 having a tunnel at a remote office. I just put in place another identical to another tunnel and when I followed the VPN in ASDM I see that the VPN is active. But I can't ping through it. When I check the logs I see "IKE initia