How to hide the field element of text based on true or false cases in the oracle apex

Hello

I have a set of text field in the oracle apex:

  1. Order number
  2. Revision number

When we open the report, the review must be hidden.

Only when the user enters the unique order number (order not duplicate numbers), revision number should be visible.

If he enters the number of duplicate order, the revision number should be hidden.

Help, please.

Hi 2932464,

2932464 wrote:

Hello

I have a set of text field in the oracle apex:

  1. Order number
  2. Revision number

When we open the report, the review must be hidden.

Only when the user enters the unique order number (order not duplicate numbers), revision number should be visible.

If he enters the number of duplicate order, the revision number should be hidden.

Help, please.

Give you an example of how to do to get there.

Step 1. Create three elements of the Page

(1) P1_ORDER_NO - text field

(2) P1_REVISION_NO - text field

(3) P1_ENABLE_DISABLE_REVNO - hidden, protected value - no.

2 create dynamic Actions 3

(1) disable the revision on the loading of the page number

Event - loading of the Page

Action - disable

Fires when the result of the event is - real

Selection type - point

Point - P1_REVISION_NO

(2) check the number of duplicate order

Event - change

Selection type - item (s)

Article (s) - P1_ORDER_NO

Condition - is not null

Action - to execute the PL/SQL Code

Generate in front of false action - not checked

Fires when the result of the event is - real

Fire on page load - disabled

Stop execution on error - checked

Wait for the result - verified

PL/SQL - code

declare
l_count number;
begin
  select count(*) into l_count
    from emp
   where empno = :P1_ORDER_NO;

if l_count > 0 then
  :P1_ENABLE_DISABLE_REVNO := 1;
else
  :P1_ENABLE_DISABLE_REVNO := 0;
end if;
end;

To present the page = P1_ORDER_NO

Page referred to return = P1_ENABLE_DISABLE_REVNO

(3) enable and disable the revision number

Event - change

Selection type - item (s)

Article (s) - P1_ENABLE_DISABLE_REVNO

condition - greater than or equal to

value - 1

Action - disable

Fire on Page Laod - disabled

Generate the opposite action of false - verified

Selection type = item (s)

Article (s) - P1_REVISION_NO

Hope this helps you,

Kind regards

Jitendra

DER_NO

Tags: Database

Similar Questions

  • How to hide the LOGO Apex region

    We use the apex of interactive reports that we want to integrate with a front-end web exist (window based). I want to hide the 'LOGO' region, as the end before the Wicket already takes care of the LOGO. How delete/hide the LOGO area.

    I suggest you open another thread for the other issue. You can close this thread if your question is answered.

  • How to change the oracle APEX application after the Oracel APEX 3.2 to 4 upgrade

    I have already installed Oracle APEX 3.2 and Oracle database 11.2 in the linux machine. I want to improve Oracle APEX of 3.2 to 4.1. I just want to know that the application developed in Oracle APEX 3.2 will be automatically upgraded or I have to do this manually after the upgrade to Oracle APEX 4.1.

    Published by: 908266 on January 16, 2012 01:49

    you mean the usefulness of "Request for upgrade"?
    http://docs.Oracle.com/CD/E23903_01/doc/doc.41/e21674/bldr_app_rpt.htm#CHDJJJAA

  • How to hide the credit card fields when PayPal is selected in the layout of catalyst fund business

    Who need to learn how to hide the fields of PayPal credit card is selected in the layout of the entry of catalyst business. Some old messages from Adobe (2012) on this subject has not provided clear solutions. Layout options page BC number of registration or the tutorials of customization that I could find. Can you please point me in the direction or there may be a few simple html, css, javascript that would do the trick. Thank you

    The script of BC for this form does by default. If it does not that this code may have removed or you have a form of script errorr there.

  • How to hide the names of the recipients when I send an email to many people?

    I'll send a message to a lot of people I know, and I think that some of them would rather not showing e-mail addresses. How to hide the?

    You use the BCC (blind carbon copy) field instead of the CC field to prevent one of the most complete list.

    Probably there is a button on the edit page to reveal this field.

  • How to hide the menu item 'bookmarks '?

    Firefox 5.0.1
    At the menu bar: 'File', 'Edit', 'View', 'History', "Bookmarks", etc.
    How to hide the element of "bookmarks"?
    I have the add-on PLAINOLDFAVORITES installed and
    I forgot how with v3.6.18.

    Thank you very much

    Click the Firefox button and click on Add-ons -> Add-ons Manager, tab opens-> go to Control Panel Extensions-> select your add-on "Favorite PlainOld" , click Options

    Check and tell if its working.

  • How to hide the images used in imovie 10.1.2?

    I am a new user of iMovie and use the latest version. How to hide the photos that I already added to the film? Moreover, that mean the purple and orange lines on the photos? Thank you!

    You can not hide, but the orange lines at the bottom of the clips in the media pane show what parts of clips have been used in the scenario, if you can easily avoid reuse them if that's what you want to do.  The purple lines at the top of some parts of some clips show moved excessive (which cannot be stabilized).

    Geoff.

  • How to hide the sidebar with other files of Notes?

    OS X El Capitan (10.11.3)

    I am trying to read a PDF Acrobat Pro and take notes with Notes in my mac, side by side.

    I would like to know how to hide the sidebar on the left of Notes, where are the names of the other file.

    I don't want the files, I already went to 'View' and you click "hide files".

    I can just see the writing of the Notes area while sharing the screen with the document I read in Acrobat Pro.

    Looks like a basic feature which Apple or Adobe Acrobat Pro should have, but I can't seem to find it.

    Looked for other solutions to the App Store, but what I've found is a bit expensive.

    I appreciate any assistance.

    I asked that your thread moved to the El Capitan forum.

  • How to hide the photos in my iPhone 6 more?

    Hello Apple!

    I searched for tutorials on how to hide the photos in my "Photos" application They say that, I will select a photo, then press on hold... then action will pop up with the options "Copy" and "hide".

    To do this, do not show the "copy" and "Hide" options.

    Why? Is there a function I need to activate?

    Thank you.

    Hello Apple!

    It is a user at tech support forum, not Apple.  Nobody is here saying 'why' Apple does or doesn't do anything.

  • How to hide the button only break on the toolbar at run time

    Hello

    I had to hide all the buttons as run, run streaming, vi and other abandoned by accessing the properties VI and by unchecking the corresponding options.

    When I run the vi, everything becomes hide except the pause button and I found no option to hide manually as well as programmatically.

    can someone tell me how to hide the pause button. I have an urgent need for same.

    Thank you best regards &,.

    Samriddh Sarbalhi

    Hello

    You need...

    Properties of VI--> execution

    Turn off "enable debugging".

    Rod.

  • How to hide the submenu in FoxPro9?

    How to hide the submenu in FoxPro9?

    Try the FoxPro Forum

    http://social.msdn.Microsoft.com/forums/en-us/home?Forum=visualfoxprogeneral

    Don

  • How to hide the sim 1 & 2 Xperia Z3 double icons

    I have Xperia Z3 D6633 double lollipop 5.0.2.
    How to hide the sim 1 & 2 status bar icons and save more space for other APA as a player, WiFi, alarm, calendar...?
    I turned off the State of the battery with the endurance and the percentage of the cause of the battery of the overcrowded state bar!

  • How to hide the WLAN icon, which is untouchable?

    * Original title: Ghost WLAN icon

    Hello

    I have a question. I use bluetooth and other wireless connections.

    How to hide the WLAN icon, which is untouchable?

    Hello

    Thanks for posting your query in Microsoft Community.

    Let me ask you;

    • Remember to make any particular changes in the computer before you see this icon?

    Now, I ask you to refer to the information provided in the link below thread by JCarp responded on 29 June 2011 and follow the suggestions.

    Desktop icon question - great, WLAN icon on the desktop

    Hope this information is useful. Please feel free to answer in the case where you are facing in the future other problems with Windows.

  • How to hide the application programmatically?

    Hello

    How to hide the application by programtically?

    Thank you.

    Just to clarify this point, here's what you need to do to use the lines that I gave you:

    In the fieldChanged for the button method, you must run the lines that I showed you.

    This will put your UiApplication in the background.  The user will be able to bring to the forefront again by pressing the icon or choosing the form of application for the selector of the task.

    The user can in fact do roughly the same thing by pressing menu and selecting ' Application Switch, if it appears in the menu.  And that's roughly the same by pressing the menu key and then selecting another application in the selector of the task.

    If this isn't what you want, then please describe what you want again and why it's different from this.

  • How to hide the keyboard by programming?

    How to hide the software keyboard by programming in my code?

    In your form class:

    getVirtualKeyboard () .setVisibility (VirtualKeyboard.HIDE);

Maybe you are looking for