Conditional display of the region

Hello

I'm under APEX 5.0 on an Oracle 12 c server.  I created an application that will be used by several different people in an office.  Each person needs to see another part of Contacts when they connect.  I also gives users the option to display or not to display various parts on the home page according to their preference.  The issue I'm having is trying to control the display of a region where the APP_USER must match a user name AND an element (P7_CONTACTS) is not equal to 'C '.  If it's only one condition, I have no problem with displaying or hiding in the region, but with multiple conditions, I can't find a solution.  I thought to use the condition EXISTS, but can't get that to work, most likely because I write the incorrect query.  I think I'm missing something obvious, but frustration is clouding my ability to think clearly at this point.  Any suggestions would be greatly appreciated.

Bob

wisers wrote:

The session state Viewer shows that: p7_contacts is 'C' when the box is checked and null when it is turned off.

Second, the State must be:

    :app_user = 'WISERS'
and :p7_contacts is null

A null value is not equal to, or does not correspond to anything...

Tags: Database

Similar Questions

  • Interactive report, conditional display of the column binding

    Hello

    We have obligation to disable editing in case this field is 1 (1 = closed).

    Is it possible to disable it on interactive report.

    -case when status = 1 link in the column should be disabled (not visible) in order to prevent future changes on the payroll.

    SELECT payroll_no, status

    OF hr_payroll

    ORDER BY payroll_no DESC;

    I tried the link below, but it does not work in my case.

    http://nerd.NET.au/24-Apex-application-express/report-layout/92-conditionally-show-report-link-column-based-on-value-of-...

    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production

    Request Express 4.2.2.00.11


    Thank you in advance,

    Best regards, FM

    Status of the INCIDENT WHEN 'ACTIVE' = then


    '
    OTHER END null deactivate_employee.

    Of

    EMPLOYEES

    What exactly is the error you get? What HTML is displayed in the HTML source code?

    Just by looking at it, I would say that you need to remove the "/" before the f? p

    Don't forget not this way could cause problems if you start using the checksum, then you might want to look at the use of APEX_UTIL. PREPARE_URL to create your URL.

  • Conditional display in the text box based on the calculated value

    Hello

    I have radio buttons that each have a numerical value. For example = 1 A = 2 C = 0. In the example below, the total is equal to 5.
    examplescreen01.gif

    The sum is displayed at the bottom of the document and is passed to another text box:

    examplescreen02.gif

    Instead of '5' displayed in the text box on the right, it should display a "Control" Word like this:
    examplescreen03.gif

    The displayed word is based on the totals through this range:

    1-2 = 'absorbing '.

    3-4 = 'practitioner '.

    5 to 6 = "control".

    The script I used to pass the value from the left to the right text box in the chart above is:

    name of the field to text box;

    var cTextBox = 'Cabinet Talent strategy knowledge - total';

    get the value of the field with the name in cTextBox;

    var sTextBox = this.getField ("cTextBox") .value;

    Set the value of this field;

    Event.Value = sTextBox;

    That I need to add to this script to show one of the words, such as "control" above?

    I am a complete novice to scripting. I found the above script online and somehow got it to work.

    I thank very much for any help or pointers, you can provide.

    Best regards

    Chris

    Sorry, there were some errors in the code that I provided above. Try this:

    If (sTextBox > = 1 & sTextBox)<= 2)="">

    Event.Value = "absorbing";

    } ElseIf (sTextBox > = 3 & sTextBox)<= 4)="">

    Event.Value = "practitioner";

    } ElseIf (sTextBox > = 5 & sTextBox)<= 6)="">

    Event.Value = "master";

    } else {}

    Event.Value = "";

    }

    If it still does not respond, you can send me the file at [email protected] and I'll check...

  • Conditional display of the DataGrids

    Hello

    I use Cairngorm architecture in my application. My application analyzes an XML file and generates the datagrids based on tags in the XML file (No. tags in XML may vary). The application has views different (mxml files) that contain different datagrids corresponding to different tags.

    I have binded "visible property" of those datagrids to the logical XML for analysis document that is if the tag is found in the XML file and then set the visible property of the datagrid true, otherwise set it as false.

    The logic above works fine except that it leaves empty displayed between the two datagrids (for the invisible datagrids that correspond to the missing tags in the XML file).

    Can someone suggest me a better way to handle this scenario?

    Thank you
    sentiboy

    In addition to the visible set to false, do not forget also affect includeInLayout false, so invisible DataGrid is not considered in the layout.

  • No options display in the regions and languages of Windows 7 Home Premium.

    Hello

    I need a support from you,

    I bought a setrday tour here in Germany with Windows 7 Home Premium. But it came with Deutsch as a base language that I have no idea how work with the menu of the screen of welcome and all in German and I'm on pain. I am an Indian and working with the English and not able to find an option called 'Display language' keyboard and languages to change the display language tab. How if I could do that. Help, please.

    The ability to change the language is one of the features that distinguishes the pinnacle of the cheaper versions - product differentiation. Like any company Microsoft have the right to charge what they want for their products. Their websites explain this, for example:

    http://Windows.Microsoft.com/en-us/Windows7/products/compare?T1=tab15

    I fear that it is a case of caveat emptor.

    You might try sweet-talking to the company you bought the laptop from giving you an English version, purchase an English version or Ultimate.

    Good luck.   :)

    All the answers and suggestions are provided by an enthusiastic amateur and are therefore no explicit or implicit guarantee. Basically, you use my suggestions at your own risk.

  • Conditional display for the links in the column?

    Hi all

    For a report, if you configure a column under the 'attributes of column' binding so that the report has a link to turn an edit form, is it possible to set a condition on this somewhere so that only certain LINES has an icon link (or text)?

    NT

    You can use a case statement?

    select case
              when column1 = 'x' then '' || column2 || ''
              else column2
           end
    from table
    

    Minh

  • JavaScript to hide the region

    I want to hide an entire region based on JavaScript. I can't use the conditional display of a region because it is at the request and cannot submit the page to check the value. I can't hide specific values, but the labels remain and the border of the region remains. Here's what I have so far.


    OnChange = "Show_On_Selectlist_Value('P15_SIRT_DCSN_ID','6'); »


    < script >
    function Show_On_Selectlist_Value (CWnd, pValue)
    {
    var rv is $x (CWnd) .value;.

    If (rv is pValue)
    {
    html_ShowElement ('P15_RR_COMMENTS');
    html_ShowElement ('P15_RR_USER');
    html_ShowElement ('P15_RR_DATE');
    }
    on the other
    {
    html_HideElement ('P15_RR_COMMENTS');
    html_HideElement ('P15_RR_USER');
    html_HideElement ('P15_RR_DATE');
    }
    }
    < /script >

    For the region that you want to hide, provide a value for the static attribute "ID". You can then use the javascript functions integrated '$x_Hide (NDP) and $x_Show (NDP)' to show or hide this region.
    example of

    $x_Hide('REGION_STATIC_ID') 
    

    http://download.Oracle.com/docs/CD/E14373_01/apirefs.32/e13369/javascript_api.htm#CHDDAGFE

    CITY

  • Conditional display for interactive report columns

    The APEX 4, one of the options in the conditional displays for the columns was 'PL/SQL function body returning Boolean ". I had a function that returns a Boolean value, and I stuck my function call in the text like this:


    return DISPLAY_FIELD (: APP_USER( )

    "I don't see" ""PL/SQL function body returning Boolean " option 5 APEX. What should I use to call the same function to hide and show the column in the report?

    bobmagan wrote:

    Thank you. Using PL/SQL Expression will give best performance? Some of my reports have 80 + items, which must undergo this check.

    Probably not what you have seen. Have less well.

    And if I use PL/SQl Expression, what is the syntax I need?

    this:

    DISPLAY_FIELD(:APP_USER) = TRUE

    For functions that return a Boolean value, just use the function call:

    display_field(:app_user)

  • Conditional display with several conditions of PL/SQL

    Hi guys,.

    I want my chart to conditionally display 2 points, 1. a selection list is not null (TO_CHAR(:P7_DB_LIST)! = TO_CHAR (666)) and 2. the maximum value in a query is above a certain amount such as 2000. The idea is that I currently have a graphical display in MB. 40 000 MB is not something big to see so after a certain point, I want to display a graph in GB instead. So I want 2 graph both depends on the LOV is not null, but who need the value of the query less than 2000 and the upper.

    I don't know if its possible to have two parolees working together in one conditional display of the APEX (PL/SQL Expression)?

    Mike

    Damaged by: ATD on August 11, 2009 06:20

    Mike,

    Laughing out loud! Welcome to PL/SQL ;)

    Packages are not very difficult to get, but perhaps we should start over with a stored function a package... Here's the gist:

    CREATE OR REPLACE
    FUNCTION size_is_valid (
       p_svc_app      IN VARCHAR2,
       p_svc_app_name IN VARCHAR2
    ) 
    
       RETURN BOOLEAN 
    
    AS
    
       CURSOR max_size_cur
       IS
          SELECT max(size_mb) AS size_mb
          FROM [email protected]
          WHERE svc_app_name = size_is_valid.p_svc_app_name
             AND svc_name = size_is_valid.p_svc_app;
    
       l_max_size_rec MAX_SIZE_CUR%ROWTYPE;
       l_retval       BOOLEAN;
    
    BEGIN 
    
       OPEN max_size_cur;
       FETCH max_size_cur INTO l_max_size_rec;
       CLOSE max_size_cur;  
    
       l_retval := l_max_size_rec.size_mb > 500;
    
       RETURN l_retval;
    
    END size_is_valid;
    

    Then your new validation of test should be:

    BEGIN
    
       RETURN size_is_valid(:P7_DB_LIST, :P7_PROJ_LIST);
    
    END;
    

    Kind regards
    Dan

    http://danielmcghan.us
    http://sourceforge.NET/projects/tapigen

    You can reward this answer by marking as being useful or correct ;-)

  • How to view point over the region of report?

    I have a page with several regions and a report region must be to display "Page Template body (2. (Les éléments ci-dessous le contenu de la région) ". but this point of the screen does not allow me to place a selection over this area report list. There is another point of view "Page Template Body (3. Items above content area)"that allows elements to display above region, but this point of display for the region of report changes the layout of the entire page. is it possible to set a different point of view as the "body of Page Template (2.» Items above content area)"which allows the elements to display above the region without changing the position of the region report?. any ideas are appreciated.

    Here is the test page...
    http://Apex.Oracle.com/pls/OTN/f?p=54577:12

    workspace: stone
    username:[email protected]
    password: apex_demo

    Thanks for your help,
    Surya

    Dene/Surya

    I must have missed something here... the page on the link specified
    http://Apex.Oracle.com/pls/OTN/f?p=54577:12
    has only one region.
    If there is only one region, is it important?

    But, Yes, if there is more of a region, and other areas have been set to display in the post "body model 2' only this particular region has been configured to display on the page 'page 3 model body', then Yes, this region would be displayed below the rest. (in descending order)

    Surya,

    Unless you want to have other areas to display items 'below', the fastest and easiest is to change all your other regions to set to display to the "model of the body 3' page and then check the position that you want by using the display sequence."

    In case you really need to have other areas to see the items below (depending on what you have on the page), you could possibly get away with the following:
    have all regions you want dispalyed before you particular region with the point on the top set to display to the position 'body 2' model '.
    have the area you want to display with the above items exposed to the "body 3' model '.
    have the rest of the regions you want dispalyed below this region to 'position of model of region 4' page

    I hope this helps.

    Alex.

  • Textarea conditional display based on the value of the checkbox.

    Hi all

    I have a question regarding the conditional display of an article based on the value of the checkbox.

    I have a checkbox in a region, which is a STATIC LOV:; Y and the text box in the same region. Now I want to show this textarea only if the check box is selected. ??

    Please suggest how to achieve this.

    Thank you

    DC

    Hello

    I guess that you are 4.2 Apex as you haven't shared the same.

    • Create a dynamic Action on change of box which should present the value of the checkbox and update the TextArea element.
    • Then continue as conditional Textarea with checkbox value.

    BR,

    Patrick

  • How to trigger a conditional display based on a dynamic Action without submitting the Page

    Hello

    Using Oracle APEX v4.2 on 11g, I have the following scenario and wanted to take other people on how to accomplish what I'm trying to do, i.e.:

    In region 1, I have a select item list page called P1_SELECTION, which contains selections from drop down to the user to choose from the following three: A1, B2 and C3

    In region 2, I have two checkbox elements:

    P1_CBOX1 I gave a conditional display of ' point value / Expression 1 column! = 2 expression, where Expression 1 = P1_SELECTION and Expression 2 = B2, so P1_SELECTION! = B2

    P1_CBOX2 I gave a conditional display of ' value of the point / column Expression 1 = Expression 2 where Expression 1 = P1_SELECTION and Expression 2 = B2, then P1_SELECTION = B2 .

    Use of dynamic Action on the evolution of the P1_SELECTION in region 1, how can I trigger the correct display of the checkbox in region 2, with the default view of the region 2 checkbox being P1_CBOX1, without submitting the entire page, just refreshing each of the elements checkbox to trigger the conditional display correct?

    For example, on the changes of P1_SELECTION = B2 then entire submission without page, only P1_CBOX2 is presented to the user in other P1_CBOX1 is displayed.

    Is this possible?

    Thank you.

    Tony.

    Hi Tony,.

    condition your dynamic action on P1_SELECTION with the following condition of javascript: this.triggeringElement.value = "B2".

    Add real actions that will show P1_CBOX2 and hide P1_CBOX1

    Add false actions and going hide P1_CBOX2 show P1_CBOX1

    Set the dynamic actions to fire on Page load

    Kind regards

    Erik-jan

  • When I open my pictures folder and display their (in any view-film, thumbnails etc.) photos have a 'white' on the region, and I don't see the whole picture.

    I recently had a new hard drive installed; now when I open my pictures folder and display their (in any view-film, thumbnails etc.) photos have a 'white' on the region, and I don't see the whole picture.

    Hi AnnEdelstein,
     
    To resolve this problem, install the latest version of the video card driver.
    Contact your video hardware manufacturer to find out how to obtain and install the latest version of the video driver for your video device.
     
    To see if applicable driver updates are available, visit the Microsoft Windows Update Web site at the following address:

     

    More information on:

    How to manage devices in Windows XP

    Keep me updated on the status of the issue.

  • When typing password, cursor does not move & nothing is displayed also cannot get to any other control panel or in the region

    Original title: password

    I have Win7

    I know that my password

    My computer starts up & goes to the screen where I put in password.

    I type password but the cursor does not move and nothing is displayed.

    I can't go to any other control panel or in the region

    Help, please

    try taking your laptop battery, if it is a desktop computer, unplug it, for some reason, it worked for me

  • How to get the #APP_VERSION # to display in a region

    Request Express 3.2.1.00.11

    Using a page template (home page > Application Builder > ApplicationNUM > shared components > models > modify the Page template) I can get the version of the Application to display on a page, using the following substitution #APP_VERSION string # in the foot.

    But how do I get the version of the application to display (#APP_VERSION #) in a region.

    If I place the #APP_VERSION text # in a model of the region, it displays the text #APP_VERSION.

    I tried to use the Panel of dispatches Home > Application Builder > Application 221 > shared components > change the definition of request but the same thing happens.

    Ben

    Benton says:

    I tried to use substitutions Panel to access the Version of the Application in the same way that I could do this;

    Replacement replacement value string

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

    MY_ALIAS & APP_ALIAS.

    Replacement replacement value string

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

    MY_APP_VERSION what is happening here - I want to access the value which is next to the * Version text in the panel titled 'Name' under Home > Application Builder > Application 221 > shared components > change the definition of request

    I can to the Version of the Application other than its use #APP_VERSION # in a page template. I don't want to use static text.

    The only way to access the application Version attribute using the #APP_VERSION model # substitution string in a template header or footer, or interviewing in the APEX_APPLICATIONS view SQL. Create an application APPLICATION_VERSION element and set it in a calculation of application of SQL query executed about calculation on the new Session:

    select
        version
    from
        apex_applications
    where
      application_id = :app_id
    

    The question of the application can now be referenced in the HTML source code like & APPLICATION_VERSION. or in SQL and PL/SQL like: APPLICATION_VERSION

Maybe you are looking for