Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Simple Question: How to use dynamic action (button, checkbox or LOV) to show and hide items in a DML

MaLauJul 6 2016 — edited Jul 11 2016

Hi,

from my point of view this is a quite simple exercise for most of you.

We have a little APEX (v 5.0.2.00.07) application for the DBAs in our company to request storage. They simply have to type in mount point sizes they need for a new databases.

Storage colleagues can than create a script execution command to create the requested storage (the provided values for the mount point sizues will be used as input variables for the storage creation script).

So far so simple.

Now the mount point design has changed and so some fields in the DML Form (which is based on a db table where all values are stored) are not necessary anymore so I would like to hide them in the DML Form as well as a report on another report page.

Hidding itself is very simple. Just go to the "Page Designer", select the field(s) you want to hide under "Page Items" and select "Hidden" for Type of this item(s).

It could happen that a DBA has to request a db with the old mount point design so I would like to provide the possibility to show the hidden fields again.

For me personally it doesn't matter if this it triggered by a button, a checkbox or an LOV (e.g. values OLD and NEW).

As already mentioned for me it feels like a very simple use case for a Dynamic Action.

What I already did:

------------------------------------------------------------------------------------------

1.

in page designer right click on the created button, checkbox or LOV --> "Create Dynamic Action"

2.

"True" - Action will be "Show"

Seletion Type "Item(s)"

Under Item(s) I have to add the related fields I would like the display again

Fire On Page Load "No"

"False" - Action will be "Hide"

Selection Type and Items are equal to True Action

Fire On Page Load "Yes" (don't know if this is really necessary)

------------------------------------------------------------------------------------------

Actually I'm not able to setup something which works.

For a LOV / Select List I defined static values

----------------------------------------------------

STATIC:OLD;Return1,NEW;Return2

----------------------------------------------------

The Dynamic Action config will then be:

---------------------------------------------

Event: Change

Selection Type: Item(s)

Item(s): <My Select List Item>

Condition: equal to

Value: OLD

---------------------------------------------

In case of a button or a checkbox I'm a bit confused about the value I have to use in condition of the Dynamic Action.

For checkboxes I read about

-----------------------------

Condition: in list

Value: others

-----------------------------

For buttons I don't have any idea.

I would prefer a solution with a button but as explained currently non of my attemps seems to work.

Thanks in advance for any assistance.

This post has been answered by MaLau on Jul 11 2016
Jump to Answer

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 8 2016
Added on Jul 6 2016
3 comments
1,514 views