Dynamic action - show/hide area based on LOV that returns the ID

Hi people,

This should be simple, so someone who works with dynamic actions.

I have a LOV based on query below:
select OBJECT_ID, KOD 
  from x_data x;

retuns:
   ID          KOD
----------------------------
    492961 BMW
    492964 VOLVO
    492960 MERCEDES
    492963 VOLKSWAGEN
    492959 SKODA
Agenda: P200_KOD is based on LOV that displays KOD and returns the ID.

On my page, I have also 1 region called TEST_REGION.

I want to put in place a testament of shich dynamic action SHOW/HIDE a TEST_REGION based on the value selected in the order of the day: P200_KOD (LOV). Region should be shown if displayed (KOD) selected ID value begins with '% V '.
By other words, if following query returns any folder, then the SHOW, HIDE it on the other:
   select *
    from x_data x
  where x.kod like 'V%'
     and x.object_id = :P200_KOD;
How can I define a condition of dynamic action fires, for article: P200_KOD?

Thank you
Tomas

Hello

One way:

Create an advanced dynamic action.
Name: Region to hide
Event: change
Selection type: item (s)
Items (s): P200_KOD
Condition: Expression of JavaScript
Value:

$(this.triggeringElement).children("option:selected").html().substring(0,1) !== "V"

Action: hide
Fire on the Page loading: true
Hide all items on the page on the same line: No.
Action of false: show
Fire on the Page loading: true
Display all items in the page on the same line: No.
Selection type: region
Region: TEST_REGION

Kind regards
Jari

http://dbswh.webhop.NET/dbswh/f?p=blog:Home:0

Tags: Database

Similar Questions

  • Dynamic action to hide and show a button

    Hello

    How to set the dynamic Action on an item Page (P4_DATA)

    When the value is 0, then show the button (P4_BTN)
    When the value is 1, then hide the button (P4_BTN)

    I have a dynamic action that work very well, but only for the display option, does not work for a button


    Thank you

    You must add a handful to the button so that you can access in the Action(make sure that you have #BUTTON_ATTRIBUTES# substitution string referenced in your button template) dynamics.
    in the attributes of the button, specify

    ID = "MY_BUTTON".

    MY_BUTTON is just an example

    "Now, when you choose assigned to the dynamic Action of the elements, you can choose" * selector DOM * "and specify MY_BUTTON"

  • How to hide/show any attribute based on LOV?

    I have a pages that have three attribute .This following-
    1 - one is LOV
    2 input text
    3. also enter text


    If I select a value of LOV I want to hide an input text. How to achieve


    Thank you

    Published by: ADFORCLE on July 12, 2011 09:09

    If your version of Jdeveloper is not 11.1.2 checkbox
    http://www.Oracle.com/technetwork/developer-tools/jdev/listbindingvalue-088449.html

    >
    In JDeveloper 11.1.1.x, an expression such as #{bindings. JobId.inputValue} returns the number of index internal list when JobId was a list binding. To get the real value of attribute JobId, you had to use #{bindings. JobId.attributeValue}. in JDeveloper 11.1.2 it is no longer necessary, the #{bindings. Expression JobId.inputValue} returns the value of the attribute corresponding to the index selected in the list of choices.
    >

    Published by: M.Jabr on July 11, 2011 09:05

  • 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

  • Show/hide fields based on T/F control - only showing or hiding, not both.

    Hi Forum,

    I'm looking to show/hide fields address based on a T/F control (or a single entry check box).

    My online form has a number of business address fields, a T/F control and a number of postal address fields. I want the mailing address fields to hidden when a user clicks on the box 'As Above' (and demonstrated once again if they click this box once more).

    I used the sample code (https://docs.oracle.com/cloud/latest/process_gs/CPRCW/GUID-F3BD3386-F333-45C6-AA56-C77136D169E5.htm) as a starting point for my Web form rule and it works as expected the first time that a user clicks area T/F (i.e. He's hiding the post fields) but it does not work the second time they until it clicks (where I assumed that fields would still be visible).

    The T/F box has the following options:

    true = as above

    false = No

    And my web rule looks like this:

    If (AsAbove.value = true) {}

    PostalAddress.visible = true;

    PostalState.visible = true;

    PostalPostCode.visible = true;

    } else {}

    PostalAddress.visible = false;

    PostalState.visible = false;

    PostalPostCode.visible = false;

    }


    I tried the same thing (with similar results) using a Checkbox control with a single option (according to the example code)

    If (PostalAddressCheckbox [0] .value == 'As Above') {}

    PostalAddress.visible = true;

    PostalState.visible = true;

    PostalPostCode.visible = true;

    } else {}

    PostalAddress.visible = false;

    PostalState.visible = false;

    PostalPostCode.visible = false;

    }

    As verified does not seem to be supported, is there another way to accomplish what I'm after, or I missed something somewhere simple (and y at - it documentation on the T/F control)?

    See you soon,.

    James.

    Hello

    Web Forms address these true-false as the boxes and, as such, in the form of tables.

    You can see if you try to print the TrueFalse value. You should get something like java object lang @XXXXXX

    Try to put the code as follows (in bold and underlined):

    If (AsAbove[0].value = true """""") {}

    PostalAddress.visible = true;

    PostalState.visible = true;

    PostalPostCode.visible = true;

    } else {}

    PostalAddress.visible = false;

    PostalState.visible = false;

    PostalPostCode.visible = false;

    }

    This should do the trick

    See you soon

    José

  • Show/hide menu based on the logged in user

    Hello

    12.1.3 Jdev

    I want to show/hide some menu items based on the logged in user.

    I will explain the current design:

    In my application, I created a menu as below. (It is created using 'Create or Update ADF Menu' file adfc_config).

    ibis_menu. XML

    <?xml version="1.0" encoding="windows-1252" ?>
    <menu xmlns="http://myfaces.apache.org/trinidad/menu">
      <itemNode id="itemNode_home" label="Home" action="goHome" focusViewId="/home"/>
      <itemNode id="itemNode_transaction" label="Transaction" action="goTransaction" focusViewId="/transaction"/>
      <itemNode id="itemNode_customer" label="Customer" action="goCustomer" focusViewId="/customer"/>
      <itemNode id="itemNode_upload" label="Upload" action="goUpload" focusViewId="/upload"/>
      <itemNode id="itemNode_profile" label="Profile" action="goProfile" focusViewId="/profile"/>
      <itemNode id="itemNode_serviceRequest" label="Service Request" action="goServiceRequest"
                focusViewId="/serviceRequest"/>
      <itemNode id="itemNode_report" label="Report" action="goReport" focusViewId="/report"/>
    </menu>
    

    I have a navigation pane in my Pages that use this menu as below:

    <af:navigationPane hint="bar" id="np1" value="#{ibis_menu}" var="menuInfo">
                            <f:facet name="nodeStamp">
                                <af:commandNavigationItem id="ni1" text="#{menuInfo.label}"
                                                          destination="#{menuInfo.destination}"
                                                          action="#{menuInfo.doAction}"/>
                            </f:facet>
                        </af:navigationPane>
    

    Now, I want to hide some items on the menu, depending on the Type of user loggedIn. I have the userType stored in the managed bean.

    How can I get this feature.

    An approach which I think is as below:

    Define a variable for each itemNode in a managedbean(session scope) and who associate with the property ' visible ' / ' rendering ' of the itemNode in the Menu xml.

    Please let me know is a good way to do it or is there another solution better?

    See you soon

    AJ

    So, maybe this can help:

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/48-sitemenu-protection-169190.PDF

  • Show/hide panelFormLayout based on the current selection of selectOneChoice

    Hey all,.

    I have a relatively basic question, I'm looking for a clear answer.

    I have a layout with the following structure:

    JSP:root

    AF:panelFormLayout

    AF:panelGroupLayout

    -component selectOneChoice

    AF:panelFormLayout

    AF:panelGroupLayout

    ADF - components

    AF:panelFormLayout

    AF:panelGroupLayout

    ADF - components

    AF:panelFormLayout

    AF:panelGroupLayout

    ADF - components

    I'm looking for the easiest way to show/hide the 3 children of panelFormLayout based on what is selected in the selectOneChoice component.  I've hard-coded these values and set their values like "1, 2, 3" respectively.

    I've already tried defining a ValueChangeListener on the selectOneChoice component, but when I run the page and change the value - it doesn't seem to be hitting my method when I select something.

    Any help would be appreciated.

    JDev Version is 11.1.1.7

    Please add autoSubmit true on the selectOneChoice element and try, it will hit valueChangeListener.

    Also, you can set three PFL render property conditionally in your VCL and make a real at the same time.

    Thank you

  • 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='';
    
  • Show/hide fields based on the drop-down list

    Hello

    I'm trying to show/hide subforms with a drop-down list selection. I found a lot of information on the subject and ended up with what my script:

     form1.Page1.Division::exit - (JavaScript, client)
    
    switch (Page1.Division.rawValue)
    {
       case "1":
       SubformZZI.presence = "visible";
       SubformZZR.presence = "hidden";   
          break;
     
       case "2":
       SubformZZI.presence = "hidden";
       SubformZZR.presence = "visible";       
          break;
    }
    
    

    However, it does nothing when a selection is made in the drop-down list. I have the "SubformZZI" initially defined as 'Visible' and the 'SubformZZR', originally defined as "hidden".

    Any suggestions?

    Kind regards

    ZeroZone

    Check if the form is saved in dynamic form. File-> save as and choose dynamic for the type of shape...

    Other that that, you should check if you have given the values for the selection of the drop-down list as '1' and '2' in the tab of the control's binding.

    Thank you

    Srini

  • How to show/hide point based on the value of Radiogroup

    Hello

    I'm having a Radiogroup with a yes/no value.
    I have something else to say... P1_TEXT1

    I want to show / hide point P1_TEXT1 based on the value selected in the radiogroup.
    If I select Yes - agenda should be displayed
    If I select non - element should be hidden

    I don't want to send the page.


    Thank you
    Deepak

    on your page go to edit page under the attribute of the HTML body of the Page then you need to put the following text:

    onload="MyFunction;"
    

    You must have tobe your function name Myfunction. Pass the item to your function in your code?

    Could you post your code js here and we could have a look for you?

  • show/hide fields based on the drop-down list of choices

    I have a field from the drop-down list with three choices. Based on the selection, I need a specific text form field to appear and the others to stay hidden. (Or if it makes the code cleaner, the resulting field could be a drop-down list, too, with the selected choice.) I don't know Java well enough to extrapolate the code from the examples online and it fit my forms. I can provide an example of form. Thanks in advance for your help.

    There are ways to run this.  the easiest for you would be to add this script to the event (calculation of the Properties tab) to calculate the field that must be hidden.  Take notes, all "/ /" is some tips for you to understand the code.  You will need to put this script in all the areas you want to replicate the behavior, change the value depending on what you want to accomplish.  the word 'event' means myself to make you understand.

    If (this.getField("dropdown").value == 'put value here') {//replace "drop down" with the name of the drops}

    Event.Target.Display = display.visible;

    }

    else {}

    Event.Target.Display = display.hidden;

    }

    This works if you have a small amount of fields.  If you manage to have a large number of similar fields, let me know because there are other, faster ways.

  • Looping through the names of columns that are based on a value of the variable

    I have an ArrayCollection collection with a series of columns named price1, price2... through price10

    I try through these columns based on a value of the loop variable, but may not understand the syntax:

    for (var column: int = 1; column < 11; column ++) {}
    testPrice = myGrid.selectedItem.price (column); <-this does not work
    }

    Try testPrice = myGrid.selectedItem ["price" + column];

    Don't forget to test this selectedItem is not null before you try to set the values.

    TS

  • Show/hide buttons based on templates

    Hello

    1 is in any way to hide and show a button (the button style model based) dynamically?

    2. If the button is an image (Image button style) is anyway to hide and show a button dynamically?

    Thank you!

    Hello:

    I'll assume that you want to hide/show a button using javascript.

    In General, if the button model has the sting of substitution ' #BUTTON_ATTRIBUTES # ' set, you can specify an attribute 'id' to the button in the button attributes of the button definition field. For an image based button you specify and 'id' in the attributes of the picture field. You can then display or hide these buttons using the

    $x_HideItemRow ("") and $x_ShowItemRow ("") built in javascript functions.

  • Show/hide fields based on the user's selection

    I know little of Javascript, but my first attempts to integrate it in Acrobat are bothersome. I have created a simple form where the user via a check box the number of people that he or she must register, then the form shows that several fields to complete. I tried to make it work with a single field, before I add more.

    In this example, I'm trying just to get the second hidden registered field if the user checks only 1 person to register. (I already know that I have issues when it comes to hide several fields).

    If (event.target.value == "0") {}

    this.getField("Registrant2").display = display.hide;

    }

    Given that I do not know what is the value of exports, try this:

    If (event.target.value! == 'Off') {}

    this.getField("Registrant2").display = display.hidden;

    }

    You can add an else clause so that the field is displayed when the check box is not selected:

    If (event.target.value! == 'Off') {}

    this.getField("Registrant2").display = display.hidden;

    } else {}

    this.getField("Registrant2").display = display.visible;

    }

    If this does ' t work, you don't maybe not the correct domain name. Verify that the console (Ctrl + J) to see all JavaScript errors are reported.

  • Show/Hide button, based on the user variable

    I have a variable "videoDone" which is set to 1 when the SWF on my Captivate slide is completed.

    My next button is hidden when the slide is displayed (Next hidden if the button videoDone = 0)

    How to make the next visible button without having the user to interact with something on the slide? I want to not visible when videoDone = 1?

    I can make it appear if I add a button to the screen that has a fast action (if videoDone = 1 show Next_button) but I want the next button to simply appear.

    You need an event to trigger an action, and Captivate has no time-based events. It is impossible with the timeline?

    Events / Actions (Advanced) - Captivate blog

Maybe you are looking for

  • just installed Firefox V8; It is supposed to be a bookmarks button, but I did not!

    I have the front/back arrows, area URL, a search box Google, the Adblock plus button and the home button. And nothing more... Where is the favorite button announced? Or how can I create it myself?

  • Need help with the installation of Vista on a Qosmio G30-161

    Hello I want to install vista on the G30-161 but don't have a clue about complex applications. I download drivers vista first on the toshiba site? Would I be able to upgrade to vista xp or do I have to install the full version of vista? Thank you

  • Battery Lenovo G555

    Yo, y ' All! New register here. I bought a Lenovo G555 a few days ago, and I'm considering buying a battery backup for it. But I have some difficulties to find a store or a site that sells here in Sweden. Or rather, I can hardly find anyone who sells

  • Drag view - how?

    I have Windows 7 OS.  I connected my laptop to a 32 '' HD TV flat screen. The problem I have is that the display is too far to the right. I have about a 1/2 inch space black on the left side of the TV screen. How can I drag it to get centered display

  • Canon RAW image files JPEG photo file conversion

    I need to convert my Canon RAW image JPEG files. Ive followed the guidelines recommended by microsoft help but it does not work. I opened with paint and tried to convert, but it used. I want to be abe to use these images and the mail and download on