Hide the "No data found" msg in the region to report when you 1st click Search page

Hello

(Sorry if it's confusing but my APEX is in FRENCH and I tried to translate)

I created a search page in my application.

1. I have an HTML region, with a search box and I have the search button

2 - I have a region (PL/SQL source) report, which sometimes does not return any data, giving a message 'No Data Found.'.


When I click on the search page for the 1st time (on my navigation bar), I like to HIDE the region report so that I do not have the message "no data found".

Only once we click the search button and there is no result, I want to have the message "no data found".

How can I achieve this?

Thank you

Roseline

1. create an item hidden on your page (P1_HIDDEN_ELEMENT)

2. place your message no data found in a span tag

No Data Found

3 create a load calculation to set your P1_HIDDEN_ELEMENT to 'no_data_found' if it is NULL and put it to ' ' if it is NOT NULL - body of the type PL/SQL function

BEGIN
   IF :p1_hidden_element IS NULL
   THEN
      RETURN '';
   ELSIF :p1_hidden_element IS NOT NULL
   THEN
      RETURN ' ';
   END IF;
END;

4 put this in the footer:

&P1_HIDDEN_ELEMENT.

The alternative would be to create a display area – pure HTML and display only the first. Once the search has begun this region would remain hidden and only the report themselves.

Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
-------------------------------------------------------------------

Tags: Database

Similar Questions

  • Hide the "loading personal settings" when you use Metaprofiles

    Hi people,

    We use the function MetaProfiles in 7.6.

    I was wondering if it is possible to hide the "loading personal settings" MessageBox databases while connecting to a computer using Metaprofile?

    Because at each connection in the system is uttering a new local profile and this box Monte. and users is racing this profile may be removed and now to create a new

    Any possibility so great.

    See you soon,.
    Jeje

    Hello

    Yes, you are talking about a box of boring which is also known as the "Active Setup"

    Get Metaprofiles also capture these keys:

    Setup HKCU\Software\Microsoft\Active

    Setup HKCU\Software\Wow6432Node\Microsoft\Active

    Once you do that, you will see the box once more. Then, once you disconnect, Let's save the setting and never see him again you!

    Thank you, Andrew.

  • Hide the drop-down list when you print only when "PLEASE SELECT" is selected (unused field).

    Our form has several drop-down lists that by default the option "Choose", and not all of them are used whenever the form is used.  When we print a copy of each document, we would like the (unused) field "Choose" to disappear when printing - to make a copy of paper filter.  Is there a script for this?  I tried to use only the general framework ' Visible but does not print ", but of course, the field prints any - we need to print only when there was one another option as the default"Select"is selected.  Thanks in advance for your help.

    Coleen

    You can use a custom validation script, something like:

    Event.Target.Display = event.value = "choose"? display.noPrint: display.visible;

    To put this into effect, you will need to make a different choice and place it back to "choose." Another option would be to place as a custom Format script.

  • How can I reduce the size of the Solution Explorer window when you save a web page by using the Page save (Ctrl + S)?

    Save the Page (Ctrl + S) used to open a small window of the Explorer (Windows 7 OS). All of a sudden (after update for FireFox 37.0.1), it opens a window of browser enlarged (full screen). The passage of the mouse on the window edge, arrows a size change appear, but do not meet the drag. How make the window smaller, or reset the Page save (Ctrl + S) so that it opens a small window again?

    You can open the system menu of the window selector to file via Alt + space to check if the window is not maximized?

  • I get the Firefox crash report when you try to run

    At the instigation of Firefox 9, I downloaded it. I had a crash report. Now, I can not launch Firefox 8 even if it is still installed. I get the accident report, and no Firefox has contacted me because the message says they will be.

    Help, please!

    At the instigation of Firefox 9, I downloaded it. I had a crash report. Now, I can not launch Firefox 8 even if it is still installed. I get the accident report, and no Firefox has contacted me because the message says they will be.

    Help, please!

    Did you uninstall FireFox 9? If this isn't the case, uninstall it, and then run the installer for firefox 8. Yes, it is already installed, but you want to repair then install it over the current installation. If this does not resolve the problem, you need to remove firefox completely and reinstall. You must manually back up your bookmarks if you need to uninstall.
    http://www.computing.cc/Internet/how-to-manually-backup-Firefox-bookmarks/

  • is it possible to hide the system dialog box when app is happening in the background

    Hello

    I want to hide the system dialog box when our application is underway in the background...

    any suggestion would be appreciated

    Thank you

    Ankur

    Use onThumnailed()

    and this, write the code to hide the system dialog box.

    go through this link too:

    https://developer.BlackBerry.com/Cascades/reference/bb__application.html#function-thumbnail

  • How to show or hide the region of the shuttle during the click on the radio buttons?

    Hello

    I'm new to JDeveloper. Here is my requirement.

    1. create 2 radio buttons: Yes and no and default displays "" selected radio button.

    2. create a region of shuttle with select query in VO.

    Query is:

    Select 'No group' for_user, for_pkg double null

    Union

    Select "Company" for_user, for_pkg "SEGMENT1" double

    Union

    Select 'Rental' for_user, for_pkg 'SEGMENT2"double

    Union

    Select 'Cost center' for_user, 'SEGMENT4' double for_pkg

    Union

    Select 'Project' for_user, 'SEGMENT5' double for_pkg

    Union

    Select "Intercompany" for_user, "SEGMENT8" for_pkg of the double

    order by nulls first for_pkg

    3. initially hide the region of the shuttle during the loading of the page.

    4. click on the radio button 'yes', display area of the shuttle with values at the head of list of query VO and empty list leak.

    5. new click on the 'no' radio button, he must hide region and so screen shuttle shuttle dynamically according to the selected option button.

    But my problem is I am able to hide area shuttle when the page loads at the beginning and after that, when I'm clicking 'Yes' radio button, is just to display area shuttle empty without value in the main list and once when I'm clicking 'No' radio button, it should hide area shuttle but he's not hiding. I used the RPP to show or hide the area Shuttle under certain conditions. I use JDev 10.1.3.3.0 version as we Oracle EBS version 12.1.2 in our society.

    Please find the attached draft and suggest me proper with examples of sample approach.

    Monika,

    I tried to get this working in the lower version of Jdeveloper and looks like it works.

    Can you make the change below and see what happens.

    1. modify your query to VO as below: (I replaced null with SEGMENT0)

    select 'No Grouping' for_user, 'SEGMENT0' for_pkg from dual
    union
    select 'Company' for_user, 'SEGMENT1' for_pkg from dual
    union
    select 'Location' for_user, 'SEGMENT2' for_pkg from dual
    union
    select 'Cost Center' for_user, 'SEGMENT4' for_pkg from dual
    union
    select 'Project' for_user, 'SEGMENT5' for_pkg from dual
    union
    select 'Intercompany' for_user,'SEGMENT8' for_pkg from dual
    order by for_pkg
    

    2. place VO execution to the processFormRequest:

        public void processFormRequest(OAPageContext pageContext,
                                       OAWebBean webBean) {
            System.out.println("In process Form Request");
            super.processFormRequest(pageContext, webBean);
            OAApplicationModuleImpl appModule =
                (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
            String eventParam = pageContext.getParameter(EVENT_PARAM);
            System.out.println("eventParam: " + eventParam);
            if ("showHideShuttle".equals(eventParam)) {
                //  appModule.invokeMethod("deletetrailing");
                System.out.println("Inside If");
                OAMessageCheckBoxBean messageCheckBoxBean = (OAMessageCheckBoxBean)webBean.findChildRecursive("checkBoxBean");
                System.out.println("messageCheckBoxBean : " + messageCheckBoxBean);
                String messageCheckBoxBeanVal = (String)messageCheckBoxBean.getValue(pageContext);
                System.out.println("messageCheckBoxBeanVal: " + messageCheckBoxBeanVal);
    
                if ("Y".equals(messageCheckBoxBeanVal)) {
                    OAViewObjectImpl shuttleVO1 =
                        (OAViewObjectImpl)appModule.findViewObject("ShuttleVO1");
                    if (shuttleVO1 != null) {
                        shuttleVO1.setWhereClause(null);
                        shuttleVO1.setWhereClauseParams(null);
                        shuttleVO1.executeQuery();
                        System.out.println("Executed Query : " + shuttleVO1.getQuery());
                    }
                    OAViewObjectImpl shuttleVO2 =
                        (OAViewObjectImpl)appModule.findViewObject("ShuttleVO2");
                    if (shuttleVO2 != null) {
                        shuttleVO2.setWhereClause("1=2");
                        shuttleVO2.setWhereClauseParams(null);
                        shuttleVO2.executeQuery();
                        System.out.println("Executed Query1 : " + shuttleVO2.getQuery());
                    }
                }
                String[] name = { "RenderAttr1" };
                String[] val = { messageCheckBoxBeanVal };
    
                Serializable[] params = { name, val };
                Class[] paramTypes = { String[].class, String[].class };
                appModule.invokeMethod("setXXCustomPVOValues", params, paramTypes);
    
            }
    
        }
    

    3. move Spel link shuttle Bean for the region of header above.

    Some useful links for the shuttle Bean:

    Technology blog based in Java of Sushant: 13. Area of application OFA shuttle

    Framework OA Blog: control of the shuttle as part of OSTEOARTHRITIS

    See you soon

    AJ

  • Hide the region using Lov apex oracle 5.0

    Created a static LOV to my report page.

    Now, a selection of drop down of lov values, I need to hide the region and for another selection, I need to see the region.

    Say it like...

    If you are already a customer then it is useless to see the area of registration, if you are a new user, you must complete the registration form.

    So I have to possibility of selection

    Already a customer of 1)

    (2) new customer

    Click on the selection to an existing customer of LOV only registration form region must didn't show the region that I created for new client.

    Ditto for the new customer.

    GOT STUCK HERE.

    I created LOV, but it redirects me to one page to another does not what I wanted.

    Apex. Oracle.com

    testdump/developer/Office

    Hi Dominique,.

    You can do this by creating two dynamic action

    Create a static region which equip your Lov article

    Now you have three regions

    1 static area - container of your LOV point

    2. new customer area

    3. existing customer area

    1. create a dynamic action to show and hide the new client area

    Event: change

    Selection type: point

    : Item Lov that contains (new or existing value)

    Condition: equals

    Value: N (assuming that N is the new customer return value)

    Action: show

    Fire on loading the Page: Yes

    Generate the opposite action of false: Yes

    Selection type: region

    Region: Select the new customer area

    2. create a dynamic action to show and hide Existing customer area

    Event: change

    Selection type: point

    : Item Lov that contains (new or existing value)

    Condition: equals

    Value: E (assuming that E is the return value of existing customers)

    Action: show

    Fire on loading the Page: Yes

    Generate the opposite action of false: Yes

    Selection type: region

    Region: Select the customer existing region

    Kind regards

    Jitendra

  • How to hide the region

    Hi, I created a page region 0 in my apex application. I understand that whatever it is in page 0 apply to all pages. Anyway, my problem is that the title of region shows on any page. They is a way to hide the region?

    Hi Dave.

    You can create a new model of the region with a model code;

    Templates-> Create model-> area - from scratch-> him give a name. Custom 1 model (for example) - class create.

    Edit this new model and modify the definition of #TITLE #.
    #BODY # to the following:

    #BODY #.

    Change your region to use this model and you'll be fine.


    Edit

    I just noticed that your javascript has been in the header.  I have my case is in the source of the region as

    Kofi

  • To hide the popup Lov dialog when running

    Hello

    I use ADF 12 c. My requirement is to hide the popup dialogue Lov when I click on the magnifying glass icon in the component InputListOfValues. I wrote the following in the LaunchPopupListener of the InputListOfValues component property. Always I get the popup Lov dialog, please guide me to solve this scenario.

    public void lov1Launch (LaunchPopupEvent launchPopupEvent) {}

    {if (launchPopupEvent.isLaunchPopup ())}

    launchPopupEvent.setLaunchPopup (false);

    launchPopupEvent.queue ();

    }

    }

    Mustapha

    Well, it does work if you click on the lov icon (it probably should, but it doesn't).

    Check with the help of the values in the list of components - 11 g Release 2 (11.1.2.2.0)

    "If you want to add the AutoComplete feature when the user moves after entering a partial entry, you will need to disable the custom context menu. In your LaunchPopupListener() code, add launchPopupEvent.setLaunchPopup(false) to prevent the custom context menu when the user is moving on. By clicking on the link search will launch always research and the Select dialog box.

    Dario

  • How can I get data from each associated XMLnode in movieclips separated when you click a line in the combobox

    How can I get data from each associated XMLnode in movieclips separated when you click a line in the combobox?

    A sample of XML is like this:

    <>planter

    < Lauvtre >

    < Botanisk_navn > Acer campestre < / Botanisk_navn >

    < Norsk_navn > Naverlonn < / Norsk_navn >

    Gronn < Farge > < / fan >

    H4 < Herdighet > < / Herdighet >

    < Hoyde > 10-15 m < / Hoyde >

    < / Lauvtre >

    I have a combobox where it shows the botanical name and the Norwegian name. But the rest of the info in movieclips seem separate.

    Someone has an idea how to do this? Can I use the trace function maybe? Here is my AS3 code so far:

    var loader: URLLoader = new URLLoader();

    loader.addEventListener (Event.COMPLETE, onLoaded);

    list.addEventListener (Event.CHANGE, itemChange);

    function itemChange(e:Event):void

    {

    your. Text = list.selectedItem.data;

    TB. Text = list.selectedItem.label;

    }

    var xml;

    function onLoaded(e:Event):void

    {

    XML = new XML (e.target.data);

    var it: XMLList = xml. Planter.Lauvtre;

    for (var i: uint = 0; i < il.length (); i ++)

    {

    list.addItem ({data: it.}) Farge.Text ([i]) + "\n"+ it.» Herdighet.Text ([i]) + "\n" + it. Hoyde.text ([i]),

    label: it. Botanisk_navn. Text() [i] + "\n"+ it.» Norsk_navn. Text() [i]});

    }

    }

    Loader.Load (new URLRequest ("lauvtre.xml"));

    Thank you!

    Rheus.

    I don't know what you're trying to do.  but, if you want to fill one combobox with the botanical names and when one is chosen, the other use of logins:

    var loader: URLLoader = new URLLoader();

    loader.addEventListener (Event.COMPLETE, onLoaded);

    list.addEventListener (Event.CHANGE, itemChange);

    function itemChange(e:Event):void {}

    var selectedObj:Object = a [list.selectedIndex]

    trace (selectedObj ['fan'], selectedObj ['Botanisk'], etc);

    }

    var xml;

    var a: Array = [];

    function onLoaded(e:Event):void {}

    XML = new XML (e.target.data);

    var it: XMLList = xml. Lauvtre;

    for (var i: uint = 0; i

    list.addItem({label:il[i].child('Botanisk_navn').toString()});)

    a [i] = {'Fan': it [i].child('Farge').toString (), 'Herdighet': it [i].child('Herdighet').toString (), "Hoyde": he [i].child('Hoyde').toString (), 'Botanisk':il[i].child('Botanisk_navn').toString(),'Norsk_navn':il[i].child('Norsk_navn').toString()};}

    }

    }

    Loader.Load (new URLRequest ("test.xml"));

  • can you help to reset the iPhone 6 +? used of the year and the month. Now, when you update, it asks activation and I can't remember anything! Arouca and verification is in stock

    can you help to reset the iPhone 6 +? used of the year and the month. Now, when you update, it asks activation and I can't remember anything! Arouca and verification is in stock

    To activate you need your Apple ID and password. If you forgot their date on https://iforgot.apple.com.

  • What are the risks by removing the previous Windows installations when you perform disk cleanup?

    What are the risks by removing the previous Windows installations when you perform disk cleanup? Will be some things about windows 7 stop working or be affected?

    The Windows.old folder is your ticket to uninstall Windows 7 and roll back to Vista.

    If you are happy with the results of leveling, can access all your data files, all that you have transferred to the E-mail, the .old folder can be deleted.

    JS
    http://www.PAGESTART.com
    Never be afraid to ask. This forum has some of the best people in the world to help.

  • "Credentials - has not verified the credentials of home" when you install Oracle capture the workload

    Hello.

    Trying to implement capture them the workload for the Replay in OEM Service, I get the following error issued when you try to enter the credentials of the host:

    The host credentials -Impossible to verify the identification information.


    The password is correct, and I can of course connect to the Linux box using this username / pwd.


    However, I can do this successfully with a LIVE of OEM installation. I compared the two users and see no difference. Did I miss something on the side of things OEM?


    DB Console: 11.2.0.2.0

    DB: 11.2.0.2

    RHEL 5.5


    Thank you.

    I found the problem: some errors were carefully hidden in DBCONSOLE. Sometimes I had to run root.sh. Seems to work now

    NMO not setuid root (Unix only). Run the root.sh script and fix the problem

    snmhsutl.c:executable NMHSS should have the active suid root

  • How to choose the display by default when you use two screens on my Mac Pro?

    How to choose the display by default when you use two screens on my Mac Pro?

    The default view when you have several is made that you drag the little icon in the menu bar in this pane:

    .

Maybe you are looking for

  • Music playlists Apple IOS 9.3 lack of songs

    Is anyone else having issues after update 9.3 with Apple's music? I lost my playlists music... 40 song playlists are now down to 1-5 songs Already tried to bet icloud music power 6 IPhone / ios 9.3

  • Upgrade memory on Satellite Pro A40

    Can someone please advise what is the best place I can get a memory upgrade for my laptop Satellite Pro A40. I think my machine is a DDR PC2700. I'm looking for 512 MB or 1 GB. Thanks in advance. Christine

  • PXI-6070E, how can I configure which are two analog input pins?

    Hello I'm reading 3 analog signals using PXI or 6070E simultaneously. I'm looking for on what axes correspond to what analog inputs? It's the same thing all the time, or should I set up? For example, currently, the pines 68 and 34 are the + and - of

  • Full Screen anti-aliasing

    Well, today I have a question about disabling Full Screen anti-aliasing.  I installed Windows 7 on my Windows Vista OS in October when Windows 7 is released in stores.  I had a few games installed on my PC before upgrade me to Windows 7, but since I

  • BItdefender and WIndows Defender

    Can I run Bitdefender Total Security and defender of the window at the same time?