Ho to make a read only / disabled input text mandatory?

Hi All,
I'm using ADF to display data for a human task. Part of my requirement is to display a payload attribute as an output text/ read only input text. If this is null, the form should compel the user to choose from a list of values.
How do I make an output text mandatory? Is there another way around this?
I tried creating an input text and making it read only and mandatory, this doesn't work. Apparently, you cant make a disabled/read only input text mandatory?
JDev : 11.1.1.4
Thanks
PP

Hello! What does mandatory field mean for you? If there should be validation while saving, it will be: faces message will be shown with text, as it is defined in business rules in entity object. If you just wish to see blue “*” in front of label, just use “panelLabelAndMessage” component with “showRequired” property = “true”. If you wish to see some red frame around disabled field or button, if it has null value, I don’t know how to help you, but wish to know how to do that too.

Similar Messages

  • How to enable extension button of select-options but make it read only

    Hi all,
    I have select-options with extension on my selection screen. It has to be read only. But when I give screen-input = 0, even the extension button is disabled. So the user cannot see multiple default values of that field. How should I enable the extension button and still make it read-only.
    Thanks in advance.
    Vasu

    Hi, try below sample code:
    data: gv_bukrs type bukrs.
    SELECT-OPTIONS s_one for gv_bukrs.
    at SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        if screen-name = 'S_ONE-LOW' or screen-name = 'S_ONE-HIGH' .
           screen-input = 0.
           MODIFY SCREEN.
        endif.
      ENDLOOP.

  • OA Framework,how to make field Read-Only which is used inside Switch case

    Hi all,
    Using Personalization in OA Framework, when I am trying to make field read only, which is inside Swich statement ,then that field get automatically hidden.but my purpose is to make that field read-only not hide.
    My field name is Proposed Annual Increase Amount .
    The Personalization swtich case lookslike this :-
    Field Name Shown
    Switcher: Proposed Annual Increase Amount Yes
    case_name_HrPRateAnnTotInputSs
    Message Text Input: New Annual Amount Yes
    case_name_HrPRateAnnInputSs
    Message Text Input: Annual Pay Rate Yes
    case_name_HrPRateCurrAnnSalSs
    Message Styled Text: Pay Rate
    Regards,
    Mxj2930

    Can you be a bit clear on your requirement. If you have a switcher to display a field based on some condition, the other fields will not get displayed. I did not get as to what you mean by "my purpose is to make that field read-only not hide.".
    Are you talking about the case, when the "New Annual Amount" (or) "Annual Pay Rate" fields are displayed conditionally, you want them to be read-only and not editable. If this is the case, set the read-only property of these fields to true.

  • SRM 7 Header Delivery Tab-- how to make fields read only

    Hi Experts,
    We are upgrading from SRM 4 to SRM 7.
    In SRM 7
    Create Shopping Cart--> In General Data Click the link Set_Values --> Go To Delivery Address/Performance Location tab
    All the fields here are input ready, how can we make these read only?
    Thanks a ton
    Anubhav

    Please I need help too on this :
    When I try to create a SC I get the default address as below which was the og unit address :
    It is picking the address from the Org unit :
    Now If I check the user attributes That I have now added address number data should have been populated .   The attributes address are also seen correctly below in the attributes section below :
    The attributes address are also seen correctly below in the attributes section below :
    However when I create a SC 1001000515 created in test it has Delivery address as blank stored :
    Please can soe  one guide me is this a bug ?

  • Managing External Content Types - make it read only?

    I have a simple SharePoint list with an External Data column. When I edit item where the corresponding data was removed from the External Content Type I get this error:
    No exact match was found. Click the item(s) that did not resolve for more options. You can also use Select button to
    choose External Data.
    I assume this is by design and I cannot delete underlying data and keep the value in the list - is this correct?
    So my question now - is it possible to keep that info in the external list but disable in a picker so new records cannot be created with that particular value? How do I do it?
    Thanks,

    I don't understand the question exactly, could you restate it.  Sorry mate, I might just be braindead.
    But, as far as the issue, it is by design.  the column is a lookup columns which essentially ties to the external data.  if that data is removed, the column on your simple list becomes invalid and any edits of the simple list item will require
    it to be changed.
    are you wanting to make the ECT read only?  that's simple enough.  you can pop open SPD and edit the ECT, then remove the C/E/D operations (create/update/delete).  That will not, however make it read-only in any other systems that access that
    external data, as I assume its not just SP or else it wouldn't be external
    Christopher Webb | MCM: SharePoint 2010 | MCSM: SharePoint Charter | MCT | http://christophermichaelwebb.com

  • Getting Nullpointer exception if i try to get value from messageChoicebean in read only/disabled mode

    Hi,
    I have standard notification page and there are three messagechoice components in that page. my requirement is to set default values for those three components and make read only/disable the components.
    I could be able to achieve this through controller extension, but in standard code some where it is trying to get the values from these three components as a result getting null pointer exception. how to make component values should be available in readonly/disabled mode to standard code.
    Regards,
    Satya.

    Hi Sandeep
    Thanks for the update.
    Page: /oracle/apps/fnd/wf/worklist/webui/NotifDetailsPG
    Following is the code used to set the messageChoice to set default value and make it disabled. when i submit the page using approve button, it is trying to get the value from disabled dropdown.
    It is returning null value. If we remove disable property then it is returning value. my requirement is to set the default value and disable the dropdown. pls let me know any alternative to do this.
    OAMessageChoiceBean oabuttonbean=(OAMessageChoiceBean)webBean.findChildRecursive("NRR0");
    oabuttonbean.setSelectionValue(pageContext,"PRORATE");
    oabuttonbean.setDisabled(true);
    Thanks,
    Satya.

  • Make field read only untill value within pciklist is choosen

    Hello,
    I am trying to establish if it is possible to make a field read-only until a value within a pick list is chosen. Basically we have a pick list called structure and if the field value called "Aligned" is selected then I want the text field called Aligned Name to be available for import all other times this field should not be available.
    Has anyone done anything similar? I'm guessing that this could only be achieved through WF but I haven't been able to find any code to make fields read only.

    For those of you unable to download the document from MetaLink3 here it is:
    As an example to illustrate this requirement, let’s say that once there is a checkbox field called "My_Check_Box". When this field is checked, the "Account Type" field need to become a required for entry by the user. To do this follow these steps:
    1. In the Admin> Application Customization, select the appropriate Object and go into the Object Field Setup.
    2. Edit the field called "My_Check_Box" and enter a Field Validation expression so it uses the following expression:
    =[<bMy_Check_Box_ITAG>] AND NOT([<AccountType>] IS NULL AND [<bMy_Check_Box_ITAG >]='Y')
    3. Enter an explicit error message.
    This expression means that when the checkbox field is checked, the Account Type becomes required. Your custom error message will be raised when checking the checkbox, leaving the account type unpopulated and trying to save the account record.
    4. Edit the Account Type field and enter the following expression as Field Validation:
    =[<AccountType>] AND NOT([<AccountType>] IS NULL AND [<bMy_Check_Box_ITAG >]='Y')
    5. Enter an explicit error message.
    That validation handles the user case where a user changes the Account Type value from a NOT NULL value to a NULL value. Your custom error message will be raised when emptying out the account type from a populated value to nothing while the checkbox is checked and trying to save the account record.
    Note that the expression in both fields validations begins with the field variable on which the statement is being written.**

  • Any way to make Contacts Read Only in Server 10.8/9

    I have turned on OS X Server Services Contacts (in either 10.8 or 10.9), set up a user account, added that account as a CardDav to a computer(s) made a group(s) of contacts and imported some vcards so everybody can see them in their Contacts on their computers in 10.8 or 10.9. Everything fine.
    What I can't figure out is if there is any way to make them Read Only, allowing only a selected group to have Read/Write privileges. When you have hundreds of employees many of them will end up editing something in the "public contacts" that they shouldn't have done or delete them completely.
    If they were read only that would be great.
    Any ideas? Other then an exchange server there isn't much out there for Macs.
    Thanks,
    Todd

    Update -
    I found a way to make this work. And it is free!
    Forget Apple OS X Server Service Contacts.
    Use Sogo instead. Works perfectly and is extremely fast in handling our 5000+ public cardev records and 1000+ cardev private records!

  • How to make files read only

    I want to make files read only.  Any workaround is welcomed.

    t quinn wrote:
    ElMagoElGato,
    I am glad to give some help but I am still confused because we are having different experiences. I have been able to lock Tables on my mac and have that lock respected in iOS for a long while now. Easy to unlock, impossible to relock.  With the most recent upgrade I can lock tables after tapping the upper left dot to select the whole table and going to "arrange" in the paintbrush.
    When you say worksheet are you meaning the entire file? When you say file lock are you meaning password protection? You can see I am confused.
    quinn
    Based on what ElMagoElGato has described, password protecting would be of no value to him. Once the file is accessed, it is in edit mode. Unless I'm really missing something.
    Files I have imported from Mac iworks apps with elements locked stay locked for me in iOS. Not sure what the problem is.

  • How to make JTextArea read only

    I want to make JTextArea read only so that you can only append text at design time and not at run time and so the user can not delete text in the text area.

    You can use the setEditable(boolean) method. I think that it's the best way.
    Sebastien

  • How to make fields Read only on all tabs in one go with the help of feeder classes in SAP EHS?

    I have a requirement where once we press SAVE button i have to make all the fields read only in tabs highlighted below.Which is the best method to do it.?
    There are number of fields in all these tabs and we want to make them read only on particular Action event.How to do it?
    Thanks,
    Vimal

    Hi Vimal,
    As I understood you reformulate this question at this page. I will try to help you there.
    Kind regards, Aliaksandr.

  • Validation on Disabled input text

    it seems <af:validateRegExp cannot work inside a <af:inputText disabled='true'>, is there any easy way to have this client side validation on a disabled input text in ADF?

    I am wondering if you could create a transient attribute in the EO that displays the data from the attribute. The "real" attribute would not be disabled, and would then validate.
    You then display the transient attribute on the form, and it would be non-update-able since it is transient.
    You could then place entity level validation on the entity (instead of on the attribute) since it is based on a second value in your form. Haven't tested it, but it would seem to be a solution.
    Stuart

  • Interactive Form - How to make fields read-only through the code?

    Simple question but i can't seem to figure out how to do it. I have an interactive form that have editable fields. How do I toggle fields to make some of them read-only through the code. Please provide cold sample. thanks a lot.

    <b>Nagarajan Kumarappan:</b>
    I know how to do that but that's setting the value at design time. Mine has to be done at runtime(when the page loads) because there are a lot of condidtions determining which fields should be and should not be readonly. therefore I have to do in the code. Any by saying code I mean Java not java script or formcal.
    <b>kushagra mittal:</b>
    are you talking about regular webdynpro input fields? I am asking for that. I am talking about input fields inside my adobe interactive form embedded on the webdynpro page.
    I think what needs to be done is to disable context attributes like Nagarajan Kumarappan suggested but do that through Java which I don't see any tutorials show that.
    still looking for help.

  • How to make Inputfield read-only dynamically?

    Hello Experts,
    I used an input-field which the user can enter values through F4 help. After user selection, I want the input field to be read-only.
    And again if user wishes to change the value by F4 help, the input-field should be editable. Can we achieve this.
    Actually by using dropdown I can achieve this. But is it possible in WD4A as I stated above?
    Regards,
    Yugesh A.

    Hi,
    Is this SH a custom one. Or you getting values from the DOMAIN.In this case, MODIFYVIEW gets triggerd. Also can make use of context change log.
    Or
    It can be possible when you have a OVS or custom SH so that an event has attached to it whcih gets triggered.
    Regards,
    Lekha.

  • How to make form read only

    hello
    is it possible, and if so how, to set a form to read only. i will have 2 oracle responsibilitys. 1 group will enter the data and save it . the other will only be able to view the form as read only.
    any ideas is helpful
    thanks
    james

    This can done using SPEL , Make a VO with transient attribute with boolean Type.
    For one responsibilty set this attribute value to true where you want readOnly behaviour.
    code should be like that
    OAViewObjectImpl pVO = YourPVO();
    OAViewRowImpl pVORow = (OAViewRowImpl)pVO.first();
    If(Check for responsibilty)
    pVORow.setAttribute("IsEditMode", Boolean.TRUE);
    On page level set spel for disable/Readonly property for item for them you need show as readonly
    like
    ${oa.YourPVO.IsEditMode}
    Hope it will help you.
    Thanks

Maybe you are looking for

  • Problems Creating Slideshow DVD using PSE 8.0

    I have created a slideshow DVD in the past without problems. I have recently created a new slideshow of photos along with audio. It previews just fine in both PSE and Windows Movie Maker, but after I burned the DVD, only one song plays back when the

  • How to provide host string

    hi i am using oracle client, my server is at some other location user: pass: host string: i have server database username,password,ip address, port number and database name how can i connect to my oracle database. Regards Naren

  • ECS total suddently missing in J1iin

    dear all in our QA machine, the ECS total and NCCD total was coming prefectly for our direct sale. today we find that the ECS total and NCCD total columns are grayed out. but the ECS value against the item is visbile on top. it is apperaring in the i

  • Native extension on Mac OS X (Air 3)

    Hi I have a blocking issue for native extensions when targetting the MacOS-x86 platform. (in my case Snow Leopard) I succeded in packaging the ANE file, but I have this error when using it in my test app: [SWF] tekhnia.simpleAirNativeExtension - 2 87

  • How to connect Symphony f15 to a windows pc?

    i can not connect my symphony f15 gofox to my pc to share data from pc to device memory card.