Conditionally display and hide the input text

JDev 11.1.1.5.0

I have two texts of the PROFILE and the SCORE entry.

SCORE is displayed only if my PROFILE is E or F.

And if it must be hidden once the value of the PROFILE is replaced by another value.

In addition, please note SCORE field should be mandatory if the PROFILE is E or F.

Here is the code I tried so far:

< af:inputText value = "#{bindings." Profile.inputValue}.

label = "#{resources." Profile} ".

required = "true".

columns = "#{bindings." Profile.hints.displayWidth}.

maximumLength = '1 '.

shortDesc = "#{bindings." Profile.hints.ToolTip}.

ID = "it94" autoSubmit = "true" >

< f: validator binding = "#{bindings." PsamProfile.validator} "/ >"

< / af:inputText >

< af:inputText value = "#{bindings." Score.inputValue}.

label = "#{resources.score} '"

required = "#{bindings." Profile.inputValue is 'E' or links. Profile.inputValue == 'F'} '.

columns = "#{bindings." Score.hints.displayWidth}.

maximumLength = "#{bindings." Score.hints.Precision}.

shortDesc = "#{bindings." Score.hints.ToolTip}.

ID = "it164".

visible = "#{bindings." Profile.inputValue is 'E' or links. Profile.inputValue == 'F'} '.

partialTriggers = "it94.

contentStyle = "" text-align: left; ""

autoSubmit = "true" >

< f: validator binding = "#{bindings." Score.Validator} "/ >"

< af:convertNumber groupingUsed = "false".

model = ' #{bindings. " Score.format} "/ >"

< / af:inputText >


I tried to use a component parent and using rendering attribute for the NOTE field as explained in https://blogs.oracle.com/Didier/entry/only_rendered_adf_faces_compon, but it did not always help.

Ah, OK, in that case you ave to use the showRequired instead of the required property and validate the score field once you submit the data or in the model.

You can't have both. Once the message appears you have erase as you otherwise cannot continue to work. Showrequired shows the * before the label but does not check.

Timo

Tags: Java

Similar Questions

  • How to display the ToolTip when the input text is disable

    How to display the ToolTip when the input text is disable?

    Just checked in FF and IE11, works fine for me (jdev 12.1.3)

    
          
    
    

    Dario

  • Help with conditional display and Validation

    Version 4.1.1.00.23

    Hello

    I'm having a difficult time with a conditional display and validation, I hope someone can help with.

    Requirements:

    When (Datepicker) Start Date or the end Date (Datepicker) change can display the reason for change (select list) and change Description (Textbox)
    If the page is saved without entering a reason change display an error message of validation that the reason for the change cannot be empty (NULL)

    What I tried

    Create a dynamic Action on the Start Date

    Event: Change

    Selection type: Article (s)

    Items (s): P51_START_DATE

    Condition: no

    Real Action Section:

    Action: Show

    Fire on Page load: Checked

    Display all the elements of the page on the same line: NO.

    Section of the elements concerned:

    Selection type: Article (s)

    Product (s): P51_CHANGE_REASON, P51_CHANGE_DESC

    I also created a dynamic Action with similar settings for the P51_END_DATE.

    I created a Validation for the P51_CHANGE_REASON as a function return error text:

    DECLARE
        v_start_date    work_items.start_date%TYPE;
        v_end_date      work_items.end_date%TYPE;
    BEGIN
        SELECT start_date
              ,end_date
        INTO   v_start_date
              ,v_end_date
        FROM   work_items
        WHERE  work_items_id = :P51_WORK_ITEMS_ID;
        IF ( (v_start_date != TO_DATE(:P51_START_DATE,'DD-MON-YYYY') OR v_end_date != TO_DATE(:P51_END_DATE,'DD-MON-YYYY') ) AND
              :P51_CHANGE_REASON IS NULL ) THEN
            RETURN 'Change Reason must have a value';
        END IF;
    END;
    
    
    

    The question

    I tried to create another dynamic Action to hide the P51_CHANGE_REASON and P51_CHANGE_DESC fields during the loading of the page, but when the date fields are changed and the validation is fired the P51_CHANGE_REASON and the P51_CHANGE_DESC are hidden again.

    There are two buttons to send the page: 'SAVE' will submit the page and stay on the page and 'SAVE_CHANGES' will present the page and creates a branch to the previous page (which is a relationship with the EDIT buttons to change recording).

    I can not loading the dynamic Action page for fires DO NOT when validation is triggered.

    I hope it is clear and if not what information can I provide?

    Thank you

    Joe

    Which the condition is failing and what browser? I tested it in Firefox and it works as it should. Can you confirm that?

  • Conditional display based on the value of line

    I have a report table with several lines on it.  I need to post a link to another page of user action if a value in the line corresponds to an attribute of the user's role, so they can act on the item.  Other display or update the document would not be able to run the link.

    The logic of nickname would go something like this:

    If user_role = role_this_line_item then

    display approval_link

    on the other

    Hide approval_link

    end if

    I know how to write pl/sql to return to the display of the correct state of true/false, but I can't find out how to reference the value on the display line.  I tried: role_this_line_item, role_this_line_item, #role_this_line_item # and none of them return one value other than false.  How to refer to an attribute on the current line of the decision to hide/show correct?

    Al

    Al Wondra says:

    I use V4.2.6 Apex in local installation of Oracle 11 g XE.  I tried with IE, Firefox and Chrome.  None has the conditional display.

    The report is a standard report created using the Apex report wizard.  I'm one of the columns (the ID of the line) changing to conditionally a link to a page to data entry.  I only need one line at a time to be the active link.  No line should have a link, if the user is not the role is required to perform this action.

    You have described my question exactly, it seems, that the conditional rendering is applied to the entire column.  I need that it is applied to specific lines.  Some lines (1) will be the active link.  All other lines does not display the link.  Is this possible?

    If you want the value of the ID to display for each row returned by the report, but only rendered as a link, if the condition is true? The values used in the State come "role_this_line_item" seems to be a value of a column in the report. "User_role" is also a column value?

    The simplest option is to modify the column attribute display as for the Standard report columnID column and conditionally generate the link in the report query:

    select
        ...
      , case
          when user_role = role_this_line_item
          then
            'where DATA_ENTRY is the 'data entry page' target number or alias of the page.

  • S EPQuicker displays and closes the program when I run epson easy photo print with sx230

    S EPQuicker displays and closes the program when I want to open an easy photo with print my sx 230

    Hello

    You asked your question in the text of the Microsoft Community. Please could you click on the globe icon to the world (change region) at the bottom left of the screen and then choose your preferred language. Now ask you question once again.

    Thank you.

  • Help to display and hide subforms

    I saw the other discussions on this issue and I even downloaded a few examples, but I can't seem to make my form to work with the display and hide subforms. It seems I'm missing something very basic, but I don't know what it is. I worked on it for a few days and now it's time to see if someone can help me with this problem.

    I have a form that contains a subform in it called SendAmt900. I want the subform to hide when the form is called. If someone clicks the check box send amount more than $900, it should show the SendAmt900 subform. I enclose my form and I hope someone can help me with this.

    Hello

    "" "You're almost there. '" The only step is to save the form as XML dynamic. Once you have that does this will work OK.

    You can change the backup script changes preferably in the file / form properties / defaults auto manual.

    Good luck

    Niall

  • Show and hide the scroll bar

    Hello!

    How could I show and hide the scroll bar attached to a dynamic text field depending on the size of the text?
    I tried different solutions based on bottomScroll and maxcroll, but nothing works...

    Thank you very much in advance for your help.

    Best regards
    Gerry

    If you use a text field, you can do a simple test:

    If (textInstance.textHeight > textInstance._height) {}
    show the ScrollBar
    }

    --
    Dave-
    Developer leader
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.Adobe.com/communities/experts/

  • My iMac cursor is stuck in the upper left corner of the login screen and I can't move it and now I can't use my iMac. What can I do? My iMac is a 27-inch 2014 release (one thin without retina display) and uses the keyboard and wireless mouse.

    My iMac cursor is stuck in the upper left corner of the login screen and I can't move it and now I can't use my iMac. What can I do? My iMac is a 27-inch 2014 release (one thin without retina display) and uses the keyboard and wireless mouse. It runs OSX Mountain Lion (not sure which version) and is a model 27 inches.

    have you tried to change the batteries in the mouse?

  • When I try to "save under" I get a message "Initalising the root folders to display" and then the screen freezes

    When I try to "save under" I get a message "Initalising the root folders to display" and then the screen freezes. Sometimes when I click several times on the target folder it opens other times it does not. Any thoughts?

    Hello

    You try to save files using Microsoft office?

    If so, this article should help you

    The program stops responding when you try to open or to save a file in an Office 2002 program, in an Office 2003 program, in a 2007 Office program or in a program Office 2010

    http://support.Microsoft.com/kb/313937

    If its with a different program and then check if the problem exists in Safe Mode, if the computer works as expected in mode without failure, then we can solve the problem in the clean boot state.

    Step a. refer to the article below for the procedure safe mode in Windows XP

    A description of the options to start in Windows XP Mode

    http://support.Microsoft.com/kb/315222

    Step b. You need to perform a clean boot to find the program that is causing and then disable or remove.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353/en-us

    Note: When you are finished troubleshooting, follow the steps as explained in the article to reset the computer to start as usual.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Display and removing the history of the internet on the router)

    Hello

    This is my first post on this Web site.

    I would like information on how to view and delete the history of the internet on a router. I have a linksys router (default SSID is AFAQ wireless) and I'd like to see the history of the internet. Above all, what are the internet sites have been opened on my router. I'm able to get on the Web http://192.168.1.1/ page but can't see all the options for display and delete the sites/pages visited.

    You can provide any help would be appreciated.

    Thanking you in advance.

    What is the model number of your router? To view the history, you must turn on the feature to save on your router. Once you connect to the router configuration page you must click on the "Administration" tab and below you have to click on the "Log" sub-tab and enable logging feautre on your router... " This will allow you to view the history of the Internet.

  • Activate the user audit logs and hide the other audit logs account system on computers in a domain by using Group Policy

    Hello

    Please could someone advise me on how to activate the user audit logs and hide the other audit logs account system on computers in a domain by using Group Policy. Your help would be much appreciated.

    Kind regards

    RocknRollTim

    Hello

    Please contact Microsoft Community.

    We have a specific forum for the computers in the domain and they are experts in this field of investigation and would be in a better position to address the concerns. So refer to the link below and post your query on the TechNet Forums.

    https://social.technet.Microsoft.com/forums/en-us/home

    I hope this helps. If you have any questions on Windows, please answer. We will be happy to help you.

  • Select and hide the query

    In Photoshop CC when I use select and hide the 'onion skin' filter does only rarely. Any suggestions as to why this could be?

    Works perfectly! I'm wondering now if I had the - ticked instead of +. Seems as if could be the answer and if it does not work in the future I'll check everything here first. Thanks for your time and your help.

  • Paint with white in selection and hide the workspace

    Hello

    I'm in selection and hide the workspace > discovers black & white. When you use the Paintbrush tool, how to switch between painting with white and black?

    With the Brush tool selected paint just in the black and white view and this is equivalent to paint with white. Now the alt key or option is equivalent to paint with black.

  • How to set the width of the input text

    Hello


    I form, which have little input text.the layout of the form is not correct.some input text is so long, it's hard to do in any seizure of text the same length. Some inputtext have varchar2 (1000). How do I?

    Hello

    first of all to mention the jdev version that you are working

    In the input text is property called columns. You can give a value such as 200 or 300 according to your need.

    Try this.

  • work in Hebrew and all the flip text

    work in Hebrew and all the flip text

    Hi i0544782932,

    Welcome to the Adobe Forum,

    You can try: http://helpx.adobe.com/illustrator/using/arabic-hebrew.html

    Kind regards

    Baudier

Maybe you are looking for

  • Could not import the computer address book in Thunderbird

    Recently, I backed up my computer formatted and reinstalled Windows 7. When I redownloaded Thunderbird, I tried to import my address book from my USB, but when I first came to this screen where it says "import from:" there is no option I could choose

  • Drivers updated on Satellite A660 - 11 m

    Hello guys My first buy Toshiba and it looks nice, but I found problems that I don't know how to deal with them Toshiba Bulletin Board asking me to install the new drivers many times who I am 1 by 1 at the end when I download the drivers after their

  • HP 15 laptop: hp 15 need of replacement parts for the screen cover and hinges

    Not sure if this is the right forum. Dropped my laptop HP 15 t-r160 and the need to replace the LCD (blue) plastic hood and side rails metal/hinges. I found the LCD and ordered him, but I can't seem to find the exact parts, I need to replace all of t

  • By adding a sequential number to analyze the file name

    On my HP OJ 4500 G510g-m, when scaning using the HP solutions Center - it always adds a number to 4 digits at the end of the name of the basis file that I can change. That I don't seem to be able to do is to get until STOPPED by adding the number 4-d

  • Cannot find Microsoft Word task Prog. in my computer

    Hello I restored my computer back to factory settings and tried to install it from the disc I have rec would be installed all except I'm unable to install my mircorsoft Word Task Launcher program.    Help, linda