APEX 4.0: Dynamic action problem when hiding point page

Hello world

I created a dynamic Action that shows/hides a page element.
When hide it, if this page is a text box, object, which resizes texarea is still visible... as well as quickpicks (as appropriate).
If point page corresponds to a date, and quickpicks, quickpick labels are invisible, but the commas that separate them are still visible. Fortunately, date picker icon is hidden.

I hope this helps
Oscar

PS: Tested on apex.oracle.com using IE8

Hi Oscar,.

Thanks for this posting. This is a known bug (#9811411) with dynamic stock control show or hide an element of the page currently only the following:

  • The item itself (the input, textarea, etc.).

  • Any other standard compound element (datepicker, color picker icon, all the list items Manager, shuttle elements, etc.).

  • An element label, if defined in the standard way (tag with an attribute 'for' corresponding to the attribute 'id' elements).

We do control however no other currently defined attributes in the element definition (pre / post text, quick pick item controls, control center, etc.).

There is a fairly simple solution, and it is to check the box 'Yes' to the ' show / hide all elements of the page on the same line "in the"Setting"region in the actions of 'Show' and 'Hide '. This will control everything, but the limit that you should not have any other elements on page displayed on the same line, because these will be also shown / hidden by doing this.

Sorry for this current issue, I hope that the workaround can be useful until we can fix.

Kind regards
Anthony.

Tags: Database

Similar Questions

  • 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

  • Condition of dynamic action based on 2 points

    Three boxes A, B and C.

    I want has to be turned off when B or C is selected.

    Created 2 dynamic measurements for B and one for C.
    If B is true that a is disabled.
    If C is true that a is disabled.

    To activate the A I need to do the following:
    If B is not checked, and C has the value disabled, select A
    If C is not checked, and unchecked value b, select A

    The field of the status of the dynamic action does not seem to give me this option or does it?

    Create only one dynamic Action, trigger when you click box 1 or box 2

    Click on type:
    Nodes in the DOM: *,*.

    Action type' JS (_check run on onload too_)
    {code}
    If ($('#').is(':checked'): $('#').is(':checked'))))
    {
    $('#__').attr ('disabled', 'disabled');
    }

    If ($('#__').is ('not:checked') & $('#').is('not:checked'))))
    {
    $('#__').removeAttr ("disabled");
    }

    {code}

  • PROBLEM when scanning multi-page pdf

    Hello

    Since the update of the sierra, I have a problem when scanning multiple page document. If I check the checkbox "merge pdf" in the scanner window, first page works fine but when I scan page #2 or one of the more page don't merge in the file pdf which flashes briefly in the sidebar, but still with only one page...

    I tried with another scanner (diff brand and model) and the same problem, so not a driver issue...

    any idea?

    Thanks in advance

    Stephane likes

    Best I can tell with Sierra make a pdf of many a scanner using the preview page is completely broken. Time to report through www.apple.com/feedback/.

  • Obtain / use value radio in Apex plugin for dynamic action button

    Apex 4.2

    I'm working on a plugin that you run a dynamic action based on the value of a selected option button. I think its more so the syntax that is causing me problems.

    I have a point page (P127_DISPOSITION) reprsented as a group of radio buttons. There are three cases for the Group of radio buttons: CREATE, update, and THROW. The LOV source for the element on the page is:

    STATIC2: create new Inspection; CREATE, update of existing Inspection; Updated, throw; IGNORE

    I have a plugin that displays a map and a few other neat, tools and toolbars other clever tricks. When a user clicks on the radio button under the UPDATE, the card must hide some of these tools. This part is not so bad that I have the code for this. Here's what I or tried so far:

    $("#P127_DISPOSITION").change(function() {
    if ( $("#P127_DISPOSITION").val == 'UPDATE' )
    $("#draw_point").hide();
    $("label[for=\draw_point\"]").hide();
    } else if ( $("#P127_DISPOSITION").val == 'CREATE')
    $("#draw_point").show();
    $("label[for=\draw_point\"]").show();
    } else {
    $("#draw_point").show();
    $("label[for=\draw_point\"]").show();
    }
    });
    

    The statements in the IF statements are not the problem. I tested and been using these statements in my plugin for other reasons. These statements just to show or hide the toolbar. But I'm doing this action happens dynamically on a radio button is selected. So I know there must be some problems in the way I use the onChange function or the statement real himself.

    Any help on this would be greatly appreciated. Thanks in advance.

    NewApexCoder

    I don't think that your problem is with dynamic action, but how the html code that is generated when the plugin looks like.

    If the generated html code is not a type of entry right front, you need to write your own javascript code that overrights the apex.item () .getValue (default).

    To explain what I mean lets take a look at the native radiogroup and popup lov.

    A radiogroup of point P40_DISPLAY_RETURN of the page html code looks like

    Different display and return value


    As you can see the element with the id P40_DISPLAY_RETURN is the set of fields. Because the set of fields is not a value attribute neiter $x('P40_DISPLAY_RETURN').value and $('P40_DISPLAY_RETURN').val)

    the value will give you. Apex. Item ('P40_DISPLAY_RETURN'). GetValue() will return the C.

    And for the lov contextual element P40_POPUP_LOV of the HTML page looks like

    
    

    Now the P40_POPUP_LOV element is an input element, but the value is the value to display. So $x('P40_POPUP_LOV').value and $('P40_POPUP_LOV').val () will give you the display value ' OHare, Edward "Butch" While apex.item('P40_POPUP_LOV').getValue () returns the return value 4.

    Take a look at the getValue for both javascript code, you see that the functions are actually different and depend on the widget that is the element.

    getValue : function() {
      // get checked input value, in the context of the fieldset
      // note: can't use $lRadios here because this is a reference
      // to the initial state
      var lReturn, $lRadio;
      if ( pType === "checkbox" ) {
          // checkbox will return an array
          lReturn = [];
          $( ":checked", lFieldset).each( function() {
              lReturn[ lReturn.length ] = this.value;
          });
      } else {
          // radio group should return a single value
          $lRadio = $( pSelector + " :checked", apex.gPageContext$ );
          if ($lRadio.length === 0) {
          // check if the length of the jQuery object is zero (nothing checked)
          // if so return an empty string.
              lReturn = "";
          } else {
              // otherwise return the value
              lReturn = $lRadio.val();
          }
      }
      return lReturn;
    }
    
  • APEX 5. Dynamic action on the CHANGE event does not work after applying the filter on IR.

    APEX 5.

    Dynamic action for the CHANGE event does not work after applying the filter on IR.

    Event: Change, selection Type: jQuery Selector, jQuery Selector: td [header = 'abc'] entry

    Real action

    Selection type: jQuery Selector, jQuery Selector: td [header = 'abc'] entry, Action: run the Javascript Code

    Is TI WHEREAS behavior?

    I know, I can work around this problem by using the Refresh event and javascript, but I prefer DA and if possible Change event.

    Concerning

    mdyla

    mdyla wrote:

    It is, how to force them reallocate dynamic Action in the event of CHANGE of the input elements after refresh of IR region.

    Set the dynamic scope of the event action to Dynamics.

  • Dynamic action problem

    Hello

    I am creating a dynamic action that should fire when a certain value is selected in a Select list. If the value selected is equal to a value from the database, then should display a checkbox. If it is not equal to a value from the database then the box should not show.

    I have the list select (PItem) which is filled by the LOV:

    Select the tableA orderby id id;

    Then I have a checkbox (PCbox) I created.

    I created a standard dynamic action on PItem with a condition that the element must be equal to the output of a select query:

    Select the id from tableA where id =: PItem and other = "Y";

    I applied this to the PCbox.

    If the check box to display only when an id is obtained from the database via the select query. However, this does not work. When I put a value such as 8 in the box of 'value' for the condition "equal to", it works fine. If the box never displays.

    Any ideas on how to solve this problem?

    Thank you

    Hello

    You can accomplish this by creating an item of assistance PItem2.

    Fill it with dynamic action "set" using the query
    Select the id from tableA where id =: PItem and others = 'Y '.
    to change your selection PItem list event.

    Then create a Show/Hide dynamic action on the change event of the item of assistance PItem2 to a condition of 'not null' that will allow to show or hide the PCbox checkbox.

    Kind regards
    Erik-jan

  • APEX 3.2 - Dynamic Actions

    Hello

    I know that we can apply actions dynamic apex 4... can we do something similar in 3.2... Otherwise, what is the alternative...?

    Thank you

    Hello

    Dynamic actions are introduced on Apex 4 and there not something similar on Apex 3.2.

    But you can write your own JavaScripts. See for example this
    Apex 3.2 hook javascripts for IR and run the when the report is refreshed

    Kind regards
    Jari

  • Dynamic action - trigger when less Date to today's Date

    Hello

    I tried to do a search on the forum but its coming from a white.

    I think I'm trying to do is simple but for some reason, I can't understand it. What I want to do, it's a field on my form when the user enters the date display is less than today's date. I have a format mask on my date field to the standard UK of DD/MM/YYYY.

    I tried to do this using a dynamic action, but what I don't really know is how to take the date on which a field text and convert it to a date and check against sysdate using dynamic action? Is this possible with dynamic action?

    See you soon,.

    Paul.

    Hello Paul,

    You must create a dynamic of stocks that fires about to Date change. Set the DA to run following code JS (Advanced DA)

    // replace P1_DATE_ITEM with actual date item name
    // Works for Date Format DD/MM/YYYY
    var itemVal = $v("P1_DATE_ITEM");
    var year = itemVal.substr(6,4);
    var month = itemVal.substr(3,2);
    var day = itemVal.substr(0,2);
    
    // Construct JS Date Object
    var inputDate =new Date();
    inputDate.setFullYear(year,month-1,day);
    
    // Get todays date, as Date Object
    var todayDate = new Date();
    
    // replace P1_SHOW_HIDE_ITEM with YOUR item name
    // Compare input date and today date
    if (inputDate < todayDate)
      $x_ShowItemRow("P1_SHOW_HIDE_ITEM");
    else
      $x_HideItemRow("P1_SHOW_HIDE_ITEM");
    

    This should make the necessary

    Kind regards

    Hari

  • IE10: Dynamic Action failed when using Rich Text Editor (FCKeditor) article on page

    Hi all

    I use the "Rich Text Editor" in a page. This page also contains dynamic Action to disable the button so that the loading of the page. Turn off the button while loading the page worked in IE 8, 9 versions. but in the case of IE10, The dynamic Action is down because of this rich text editor this button is not disabled. I get the following error when debugging script

    SCRIPT5007: Unable to get property '1' of undefined or null reference

    As much as we use the text editor (FCKeditor), this FCKeditor_IsCompatibleBrowser() function call browser. In the case of IE10, the error above is due to the following line in this function

    var sBrowserVersion = navigator.appVersion.match(/MSIE (.\..)/)[1] ; 

    I want to use 'Rich text editor' on my page, I don't want to change like "text box." I saw some difficulty for this line in the function (the function is in the path "... / i/fck/fckeditor.js"), I can change this line in the function? Is there another way to fix this error?

    Please help me...

    Thank you
    Lacombe

    Hi all

    Rich Text Editor conflicts with DA. It has been classified as Bug. Bug number is 17065043.

    Thank you

    Lacombe

  • problem when-validate-point and when-timer-expired...

    Hello
    In the when-validate-agenda of an item, there is the piece of code:
    Start
    h: = create_timer ('mon_timer', 1, no_repeat);
    end;

    and in the when-timer-expired in the block of the form:

    Start
    ....
    set_block_property ('Blockname', default_where, 'id =' |:cust.id);
    go_block ('cxs');
    do_key ('execute_query');
    ....
    end;

    The code above in when-timer-expired is not executed... I mean the go_block and run the query {at least I do not see the query results in the cxs block}...!
    But if I change the piece of code...

    set_block_property ('Blockname', default_where, 'id =' |:cust.id);
    x: = show_alert (...);
    go_block ('cxs');
    do_key ('execute_query');

    then the piece of code in WTE is carried out as planned...

    What may be the cause...?

    I use forms 6i with patch 12 and db 10 g v.2
    Thank you
    SIM

    Hmm. Maybe try a SYNCHRONIZE after the GO_BLOCK.

  • 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 does not work with the item change event

    Hi guys,.

    I have a problem with the dynamic Action. On my page, I have three points. (P2_X-> display only, P2_Y-> P2_Z-> button, TextField) and two dynamic actions. One of them is running javascript. When I press the button (P2_Z) this dynamic action affects textfield (P2_Y) value to display only the value (P2_X). (This dynamic works). And there is another dynamic action for the option to display P2_X. This dynamic action fires to P2_X point value changes. This DA (dynamic action) runs a plsql code and inserts the value of the P2_X element in a table (test_tbl). But when I try to do it always inserts the null value.

    The plsql code is below:

    Start
    INSERT INTO TEST_TBL
    VALUES (: P2_X);
    COMMIT;
    end;


    You have an idea? If you need, I can give the user for apex.oracle.com past.

    Thank you

    Hello

    Do you have the "points Page to submit" to the process of PL/SQL, the value of the correct item? (P2_X)

    Concerning
    J :D

  • Dynamic action - two types of options of "condition"?

    I would like to create a dynamic action that runs when a SQL condition exists is met.  If this is the case, then it will run several true Actions.  If this isn't the case, it will run several wrong Actions.

    I see there is an option of Condition in the when section of her DA, however, seems to be limited to static value comparisons or Javascript.  There is also another section of Condition where you can select SQL exists or various other PL/SQL expressions.  What is the difference between these options two condition?

    Also, when I set the status section to Exists and in the SQL query include an equivalence to an element of the page it does not seem to recognize the value of the page element. For example:

    Select * from my_table

    where PARTY_NUMBER =: MY_PARTY_NUMBER

    It still fails the condition even when a valid part number is entered on the page (him DA is run when MY_PARTY_NUMBER is changed).  I should be able to enter a reference point of page here, Yes?

    Thank you

    Steve

    P.S. I use 5 APEX

    Steve. 1234555 - Oracle wrote:

    I would like to create a dynamic action that runs when a SQL condition exists is met.  If this is the case, then it will run several true Actions.  If this isn't the case, it will run several wrong Actions.

    I see there is an option of Condition in the when section of her DA, however, seems to be limited to static value comparisons or Javascript.  There is also another section of Condition where you can select SQL exists or various other PL/SQL expressions.  What is the difference between these options two condition?

    Also, when I set the status section to Exists and in the SQL query include an equivalence to an element of the page it does not seem to recognize the value of the page element. For example:

    Select * from my_table

    where PARTY_NUMBER =: MY_PARTY_NUMBER

    It still fails the condition even when a valid part number is entered on the page (him DA is run when MY_PARTY_NUMBER is changed).  I should be able to enter a reference point of page here, Yes?

    N ° you won't achieve what you're trying to do. The standard Condition section in dynamic action controls if the code of the dynamic action is rendered the see page. It has no impact on the question of whether the actions of true or false are performed during the intervention of the user. 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.

    To perform actions conditionally based on the existence of rows in a table requires DA type body of the PL/SQL function or SQL, submitting the values of the requested page, runs the necessary query and returns a value to an element of [probably hidden] page, followed by either an action to run Javascript Code containing conditional logic , or another DA triggered by a change on the hidden element event.

  • 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).

Maybe you are looking for

  • Sound problems after installing Vista on Satellite A100

    Hello I have something new, something I've never seen and I do not much [as appropriate] of you. Today, I installed Windows Vista Beta 2 on my laptop Satellite A100-192. As it is Vista compatible now [I added some memory] I think it's the right time

  • Boot from USB key

    Satellite m30x...I can't boot from a bootable USB key.I tried different memory (USB1 and 2) and the system startup files.Any clue? The Italy Ciao

  • Remove Cluster border control in order to reduce the size of the array of cluster

    Dear community I have a long pending issue. We want to build such a chart legend by the use of an array of clusters. See photo. As we have these lists more often, we would like to get rid of unnecessary borders cluster using the cluster as an array e

  • A connect signal problem

    When the application run the connection with the signal and slot in QML, it will automatically emit this signal. But should in fact not for the signal at that time, someone also met this problem and how you force does not emit the signal when connect

  • Help deleting Web site

    I created a website using dreamweaver. Now, I need to delete it, but can not access my account. When I spoke to an officer they said that my account did not exist and I can be created with a trial version of Dreamweaver. What can I do?