How to make a fieldelements in a form , disabled.

We have multiple field elements within formcontainers in a form.
I want to disable all the field elements within the form to be disabled on click of a button.
I tried.
sap.ui.core().getElementById("FormID").setenabled(false);  This didnt work.
neither sap.ui.core().getElementById("FormContainerID").setenabled(false);
Kindly let me know how can we disable the elements through either form or formContainer.

You have made a typo, instead of 'core()' use 'getCore()'.
However, a better approach would be to bind a model property to the control's enabled property, and set that model property on the click of your button.
all controls that will have their enabled property bound to this model property will reflect the change, and it saves you from writing dozens of lines of xxx.setEnabled(false)

Similar Messages

  • How to make a field in adobe form noneditable

    how to make a field in adobe form noneditable. like info keys..
    when this form is sent through worflow the receiver shudnt be able make changes to the field value...(I have a form, which has fields prefilled(like pernr employee name) but these fields are in editable able..(i want only some fields to be uneditable not all)
    Edited by: kumar gaurav on Apr 11, 2008 8:04 AM

    Hi,
    You can make fields non-editable at runtime using this code:
    field.access = "readOnly"
    Hope this helps.
    Amit

  • Adobe pro 8: how to make an existing secure encrptyed form unfillable after editing

    Hello,
    as the discussion topic says.
    adobe pro 8: how to make an existing secure encrptyed form unfillable after editing?  Is it even possible to do in adobe pro 8?
    For work there's a secure and encrptyed form.  I want to write in the form and save it so it will be unfillable / uneditable.
    this form is not created by myself, and already secure and encrypted.
    I am aware that in other recent adobe pro versions on how to do this, since they have a " save as a copy" function in the file menu. (adobe 8 doesnt have)
    I've also tried printing as a PDF, but due to encryption of the form, that doesn't come out great.
    Upgrading to a recent version of adobe pro is not an option.
    I've also tried exporting as a picture files and then recombinding them to a pdf.  I dont like this method and find it time consuming.
    If possible please inform me of a way to solve this problem , step by step with adobe pro 8's features.
    or
    show me the equivalent method to how recent versions "save a copy" of a secure encrypted form on adobe pro 8.
    Thanks in advance for reading this thread and helping.

    Well after you use save a copy, and the security is disabled, you could then re enable security features and disable editing of the form.
    EDIT: I just tested , with a PDF is in secure mode, even using a "save a copy" feature wouldn't work.
    Would finding a program to desecure the pdf be a possible option?
    Or is there a way to copy the form (with all it's editable fields) and paste it as an unsecure pdf?
    You would then be able to make new security features.
    thanks for replying and viewing this problem.

  • How to make expandable field in pdf forms?

    Does anyone here know how to make expandable field in a PDF form?
    I want the field, originally appear to be a 1-liner, to expands when you put in more text and everything that is underneath the expandable field shifts or moves down.
    pls help.
    Thanks!

    No, LiveCycle Designer is not included in Creative Cloud and is available only for Windows. It was included with the Windows version of Acrobat Pro before Acrobat 11 but is now a separate program and about $300.

  • How to make picture button in oracle forms?

    can any one tell me how to make a picture button in oracle form builder?
    please help?

    Hi,
    Only a icon can be pasted on the push button. We can not user jpg,,jpeg or gif for the picture only ico file can be used.
    go to properyt pallet,
    make iconic as yes
    give the path in icon filename --- C:\Program Files\Winamp\eMusic\eMusicClient
    where eMusicClient is -- icon file name without extension, dont use " " in path
    bye

  • How to make changes in Existing SAP form

    How I can make changes in existing SAP form . I want to make changes in delivery form <b>matrix row enable or disable</b>

    Hi Sagar,
       If you want to disable a row, you can close that row using DIAPI.
    HTH
    B.Ravi Shankar
    null

  • How to make text field in tabular form as List of value (LOV)

    So the problem is next:
    I should to make field in tabular form as LOV(list of value (combobox)) to load there data form db. Could smb take me an advise how to make it.
    Thanks.

    So thanks, I did it, it works. How now to make next: I selected Id from list and in the next column appears name with ID from DB. so how to make ondemand process i know (thanks to you), but how to get value from LOV that I selected to give it to Dynamic Action.
    Thanks

  • How to make "Submit" features disappear when form is distributed?

    Hi, I am very new at this. I'd like to know how to make the purple header that appears when a form has been distributed go away. This section says "Please fill out the following form. When finished, click Submit Form to return the completed form. Our company has been having problems when people submit these automatically, so we'd like to have them save them as PDFs and submit them as an attachment on an email. We don't want there to be any confusion about this, but I know that the forms have to be distributed so they can fill them out, and this purple header appears after I distribute. What do you suggest?

    You need to be a little more specific as to what is going on with the form. What is the exact issue you are having with the form when it is sent back? If your form is  designer form that is fillable then the header will always be there. It says "Please fill out the following form. If you are a form author, choose DistributeForm in the Forms menu to send it to your recipients."
    If you would like I could take a look at the form to see what you are experiencing. I have been designing forms for a major insurance company for four years and have come across many issues. In ordder to troubleshoot these issues you have to explain exactly what is happening to get at the root cause. It may something as simple as not having the submit button on the form or a little script written that saves the form as a save as.
    Not knowing the exact issue people are not going to be able to give you a fix. It is like taking your car to the mechanic and saying it doesn't work.

  • How to make subforms editable in ADOBE forms

    Hello All,
       The 'Pagination' for few of the subforms are editable, and for few of the subforms are not editable.
    Actaully i have to set the 'overflow' for one subform, but the whole pagination is dispaly mode.
    (i can edit pagination for other subforms).
    can someone help how to make it editable.
    Thanks in advance
    Best Regards,
    Amarender Reddy B

    Hello Amar,
    Can please explain the problem you are facing with more clearer words. I am unable to make out any thing from this post.
    You might have some problem with Pages. We have two type of pages body and master. If a perticular subform is there in master page you can not edit it on the body page.
    Regards,
    Vikash

  • How to make a search in a form

    Hi
    I have a form with a lot of items(name date,age,height) that i can use to make a search . I found many problems for the search , infact i had to create many cursors, one for each case. For example i would search for age and height or just from date and so on.
    How can i make it more easy?
    Can i use a dinamically query for a cursor ?
    PLZ HELP

    if you don't use oracle default search buttons, then you may code your own search buttons, inside, you may ,
    e.g., user might want to enter height and age fields(Assume the table columns are HEIGHT and AGE),
    then use,
    IF :heightitem is not null then
    w_str := ' AND HEIGHT ='||:heightitem;
    END IF;
    IF :AGEITEM IS NOT NULL THEN
    w_str := w_str||' AND AGE='||:ageitem;
    END IF;
    then you set_block_property('..',default_where,w_str); then execute_query. In order to avoid giving user blank form fields when no records found, which oracle did this badly, then you may use SELECT COUNT(*) into cnt FROM ... WHERE ...w_str to detect the cnt, if cnt > 0 then execute_query, if not, then shoot no record data found message out.

  • How to make fields read only after form is filled in

    I am creating forms to be used within our company.  The customer srv representative (CSR) would fill in the form and send it to the customer for signature and initial.  There are a few issues I can't solve.
    1)  I need to make the rate & services fields read only after the CSR initials the form

    Will the CSR have Acrobat or just Reader, and what type of computer will the CSR be using (Windows/Mac/mobile OS)? If just Reader (Wind/Mac), this is possible by setting the fields to read-only with JavaScript. The problem is this can't be considered secure, even if using a password as discussed here: Password-protect and hide one form field
    With Acrobat you have the ability to flatten certain fields, which makes it a bit more difficult to change the "fields".

  • How to make Reader user save PDF form that it can be save again

    Hei,
    I have a problem. I have pdf form which my clients can field and then save (they use reader). When comes more detail some other user field out more this same form. But reader dont allow to save this form again. Why so? Is there any way to make it happen that different user from different computer can save pdf form again. Why this is possible to save again same computer but dosent different?
    Thank you for help!!!!!

    Yes, www.fab-equp.com<http://www.fab-equp.com> at the bottom of the home page.  “Used Equipment Report”
    Regards,
    Clayton Hughes
    614.377.5469

  • How to make mandatory field in custom form

    Hi,
    we have oracle ebs R12.1.3 and oracle DB 11.2.0.3.
    In a new developed custom form, we want to make a field mandatory. It should be displayed as yellow at the time of running the form.
    Can anyone guide me.
    regards
    Sanjay

    Problem as been resolved by setting the properties of field in the following way.
    required = yes
    visual attrubute group= data_required
    Thanks & regards
    Sanjay

  • How to make fields readonly in Interactive Form based on Roles

    Hello All,
    I want to make few fields readonly and also want to disable few fields from the Interactive form based on the role, logged in by user.
    Looking  for a code Snippet on this issue.
    Need help in this Regard.
    Thanks & regards,
    Debasish

    Is the URL you are trying to call a schema.procedure ?
    If so, you need to grant execute privilege on the procedure to the <portal-schema>_public database user.                                                                                                                                                                                                                                                                                                                               

  • How to make a simpe e-mail form..

    Hi
    I was wondering if there was an easy way to make a form in Sharepoint 2010 to let the users write in text in some few text boxes and then hit a button where the text is sent to an e-mail address?. 
    Something like this:
    Just a page in Sharepoint 2010 - where the users fill out name, owner etc, and then hit the send button :) 
    Regards for any respons. 
    K

    Hi,
    i think you can create another thing to handle what you want.
    Use this steps:
    1. Create a list with all the fields that you need.
    2. Optional: Go to List Settings -> Advanced Settings and  change this settings as you want:
    Read access:   Specify which items users are allowed to read
    Read all items 
    Read items that were created by the user
    Create and Edit access:   Specify which items users are allowed to create and edit
    Create and edit all items 
    Create items and edit items that were created by the user 
    None
    3. Create an alert in the lists that sends an email to any email that you want when an item is created/modified, etc.
    So what is this doing: when an user creates a new item in the list, sharepoint automatically will send a notification to the email that you provided in the alert. Thats it..
    And there your have what you wanted to do with a list and sharepoint alerts..
    Best regards, hope it helps.

Maybe you are looking for