Need to make a dff field read only if it has data

Hi,
we added dffs to the manage sites page, i am extending the controller to do some validations of this DFF page. I need to make dff read only if it has some data. The following code is not working.
public void processRequest(OAPageContext pageContext,OAWebBean webBean)
super.processRequest(pageContext,webBean);
OAApplicationModule xam = paramOAPageContext.getApplicationModule(paramOAWebBean);
OAViewObjectImpl DffVO = (OAViewObjectImpl)xam.findViewObject("SitesFlexVO");
OAViewRowImpl DffRow = (OAViewRowImpl)DffVO.getCurrentRow();
if(DffRow.getAttribute("Attribute1")!= null)
OADescriptiveFlexBean dffBean = (OADescriptiveFlexBean)webBean.findChildRecursive("Attribute1");
dffBean.setReadOnly(true);
can you please suggest whats wrong and give me a correct solution.
Thanks,
Kiran M.

Thanks for the reply nani,
it didnot work, i am getting the following exception.
## Detail 0 ##
java.lang.NullPointerException
     at xxtjx.oracle.apps.pos.supplier.webui.XXTJXByrMngSiteDFFCO50.processRequest(XXTJXByrMngSiteDFFCO50.java:43)
The error line 43 in my code is
dffBean.setReadOnly(true);
so i feel there is something wrong with this command. I kept this validation in process request and i am able to fetch attribute values in process request. so i feel there is no issue fetching the attribute value. i feel its the issue with the set command.
Let me know if you have any other solution.
Thanks,
Kiran M.

Similar Messages

  • How to make few DFF fields read only in Forms

    Hello.....
    I am having an Issue in forms customization through custom.pll
    I need to make few DFF fields read only in HRMS enter and maintain form through custom.pll
    I tried with fnd_descr_flex.update_definition but in vain
    So please help me how to rectify this issue.
    Edited by: user.nazeer25 on Jul 9, 2010 5:27 AM

    Hello,
    Wrong forum.
    Ask this kind of question in the E-Business Suite forum ;-)
    Francois

  • I created a Custom list New Form and need to make the text fields read only

    When I use SharePoint Designer and add the read only attribute  to the  SharePoint form field, then it throws  a web part error.
    but here is the thing, I have current user Filters populating the Form Fields. So the form fields  populate First name , last name etc. and I need these fields read-only....
    the Client doesn t want the end user to Change those fields.  Is there any way to "LOCK" the form fields?
    As I have only 7 text fields that need to be locked down. and one field is a signature line that is a true input field.. where the  user has to inter their initials.
    Any ideas? as I have tried most of the items available thru searches nothing works, or it throws that web part error message.
    Steve Athey

    Daniel: ( I'm now at work, a different ID is logged on for me)
    I used SharePoint Designer.
    Steps:
     created a web part page
    then on the SharePoint Designer ribbon I then went to insert:
    new item form
    Then I selected my data source (list)
    then I placed the 8 columns on the page
    a page viewer web part to pull the manual that people have to read.
    and 7 current user filter webparts. (1 for each form field) Yes it is over kill, but I'm trying to keep this straight out of box as much as possible...
    then for the form fields
    I added a parameter and the read only tag see below in bold:
    <asp:TextBox runat="server" text="{$ParamEmployID}" id="ff17{$Pos}" __designer:bind="{ddwrt:DataBind('i',concat('ff17',$Pos),'Text','TextChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Employee_x0020_ID')}" 
    ReadOnly="True" />
    I also  added the parameters in the ribbon area
    the error message doesn't tell me much, it just send me to web part maintenance page... 
    if I removed the  ReadOnly = True then the error  goes away.....   So I was trying to find a  quick simple  JQuery and or javascript   code item that would  make  the 7 text fields readonly and leave the
    8th  text field alone  to allow people to place their initials on the page to say that they read the manual.
    I have  created hundreds of these types of pages .. this is the first time I have run into this issue, but it also the first time I have tried to use the ReadOnly = True item.
    Any Ideas  and or thought on how to make the  items read only? and not throw the error.
    Steve

  • How to make a DFF as Read only field

    How to make a DFF as Read only field

    Hi,
    You can add the read only token ($RO$) to any of the segments in the list. For example:
    segmentlist = "Context1|Segment1($RO$)|Segment2..."
    Thanks,
    Kumar

  • How to make a DFF in read only mode

    Hi All
    There is a requirement to male an descriptive flexfield (in Puchasing PO Headers) i read only mode for all the users.
    So that user must not select any values, Is any way to do this. Any workaround is possible ?
    Regards

    Hi;
    Please follow below and see its helpful:
    [Solved] How to make a DFF segment 'Read-Only' using Form Personalization?
    Also check:
    http://download-west.oracle.com/docs/cd/A60725_05/html/comnls/us/fnd/ogenff03.htm
    Regard
    Helios

  • I would make the signature field read only until something is entered in the mandatory fields.

    I would make the signature field read only until something is entered in the mandatory fields.

    Mina,
    You can use LiveCycle Designer's Action Builder to easily achieve this.
    Please go through online documentation for the specific version of LiveCycle Designer that you are using.
    It is intuitive and very easy to use Action Builder (You will find this option under Tools Menu item of Designer).
    --Santosh

  • How to Conditionally make some standard fields read only in OSC Simplified UI?

    Hello everyone, We have a requirement to make certain group of fields read only based on the value in another field. For example if the status changes to "Closed" then make the Name and Address fields read only. All these fields are standard fields. Is this possible in Oracle Sales Cloud?

    Post your problem in the forum for LiveCycle Designer.

  • How to make a User Field Read Only?

    Hi,
    How can i make a title userfield in a Document Form read only?
    I can't set enabled to false i just want to make it read only.
    I had tried to capture de key_down event on the user field, nothing happens!
    I had tried to capture de form_key_down event on the user field... SAP throws the event without the item id reference.
    Is there a work-around for this?
    thanks,
    Ricardo Momm

    Hi,
    1. capture et_click and click to another item, also save the original value to a variable
    and/or
    2. use et_validate with before_action = true to be sure the item hasnt changed and set bubbleevent
    to false when the value is different from the variable
    regards
    David

  • Make all text fields read only after signing form

    Hello,
    I have a live cycle form which needs to have all of the text fields set as read only after signing.
    The java script has been placed in the post sign event of a digital signature field.
    for(var i=0;i<this.numFields;i++) {
    var cNm = this.getNthFieldName(i);
    if (cNm.type = "text") this.getField(cNm).readonly = true;
    After signing the form the following console error is shown:
    this.getNthFieldName is not a function
    Can anyone please advise how to revise the script so that when the form is signed all of the text fields become ready only?
    Any assistance will be most appreciated.
    Thank you.

    You don't need any JavaScript to do this.
    In Designer you can setup the signature field in that way, that all fields will be locked after signing.
    Look here:
    http://forums.adobe.com/message/3121870?tstart=2

  • How Make the Report Fields Read only

    Hi I have drop down selection in a Report field.After selecting a particular value and submiting it the field should become readonly.

    Hi SanjayBala!
    Create a conditional branch that will be executed if your select list submits (the branch must be conditional. The conditiontype is request = e1 and e1 is the name of your select list). This Branch ought to have a request (lets say select_list_ro). Create a read only condition for your select list (request = e1) that comes to use if the current request is select_list_ro.
    Hope that helps!
    yours sincerely
    Edited by: Florian W. on 03.02.2009 14:04

  • Need help making digital signature field read only if required fields are null

    Using Adobe LiveCycle Designer, I have a digital signature field.  I want to prevent users from being able to digitally sign the pdf if any required fields in the pdf are null or blank.  I'm a newbie to scripting so any detailed help would be greatly appreciated.  The required fields in the pdf include radio buttons, check boxes, text field, etc.  I appreciate any help anyone can provide.
    Thanks

    Exactly how you check a field for being empty depends on what type of field it is. For text fields, you should get the field's value as a string and compare it to an empty string, something like:
    var val = getField("Text1").valueAsString;
    if (val) {
        app.alert("Field is not empty");
    If there is a default value that needs to be changed, you would compare to the default value:
    var f = getField("Text1");
    var val = f.valueAsString;
    if (val !== f.defaultValue) {
        app.alert("Field value is OK");
    For check boxes and radio buttons, you'd compare to the string "Off", which means none in the group is selected.
    For dropdowns (combo boxes) and list boxes, there is normally one value selected, so you would have to get the value and check against the default value (or something else) to see if the field is properly filled in.
    You could place the script there, but I usually use a separate button that I encourage the user to click in order to check the field. The problem with using the Will Save event is you can't prevent the save from happening.
    The script can loop through all of the fields (and test all required ones), or you could set up an array of field names to check.

  • Creating a button that will make fill in fields read only.

    I am having problems trying to research this issue that I am having, so thank you in advance to all who reads this and assists.
    What the overall goal is for me to create a form that I can send to a client and whenever they type the variable information in, they would check a box that would a) hide itself and b) lock certain fields but leave at least one open so they can send it off to their clients without worry of information thy have entered changing.  My client has acrobat reader and I am looking for the easiest solution without having to suggest them to upgrade. Also, I am not that familliar with java scripting (yet) so some of the forums I have read seem rather confusing to me even when I try to use the scripts provided.

    Just insert a link that uses mailto in the Add Filter or links dropdown just like you would with any other hyperlink.
    Example:
    mailto:[email protected]
    Here is a detailed info on how to create mailto links
    Mailto Link Syntax: The Complete Guide - Yoast
    Hope this helps 

  • How to make form field read only for users with certain permissions

    We need to make two form fields read only for users with certain permissions. Kindly guide me on how to do this in Infopath. I searched and there is an option to disable to the column, but no option to select user permissions. 
    Please give your suggestion on this. 
    thanks.

    Hi,
    See the link below:
    http://info.akgroup.com/blog-0/bid/69277/InfoPath-Restrict-visibility-to-users-in-a-SharePoint-Group
    Here you can add the fomatting action on the field to disable the field if those users belong to certain Sharepoint group (does not matter the permission levels though). Hope it helps.
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • Best way to make all the items read-only in many pages for a resposibility?

    Hi,
    We have the following requirement:
    We need to make all the fields read-only in 5 standard self-service pages for a particular responsibility. One way is to personalize these pages at responsibility level. Is there any other quick/better way to do it?
    Highly appreciate your suggestions on this.
    thanks,
    Hem

    Hem,
    Personalisation is easiest and fastest way of doing this. The same requirement can be acheieved by extensions of CO by setting the bean properties rr by SPEL binding by extending VO.
    But when I can get something done without coding at all that approach is best, I am sure u agree :)!
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • 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.

Maybe you are looking for