Making a field read only (and bound) or editable depending on some criteria

Hi,
I am using Netweaver 2004s SP15 and Adobe Lifecycle Designer 7.1 with Web Dynpro for Java.
I am generating a PDF that contains a number of fields that are bound context values attribues.
Now I know according to certain criteria if any given field will have a value....
Now if such a given field has a value then it must populate the Adobe form and make that field read-only - so it can not be changed.
However, if that field has no value.. instead I need to make it editable.
I am re-implementing the application this will be used within; and the previous version had 8 different interactive forms to cater for the 8 different possible combinations of fields that would not have values.
I would really really prefer to have one interactive form to maintain with logic in it that determines dynamically if a field should be read-only or editable. (For example I could have a boolean context node that could be used)
Am I doomed to have to create 8 different forms? Or is there a way of doing this smarter?
Thanks to anyone who can point me to the light,
Ilan

hmmm....
I did a search through the forum using the phrase "javascript" and it turned out a lot posts that indicate that this should indeed be possible.
I am boggled, the original application was developed by an Indian outsourcing company that is well respected. The developer who took over maintenance of it told me that it was impossible to change the read only nature of the fields once set at design-time.
My search through the forum has turned up much to indicate that this design was idiotic and the "facts" I was given completely wrong.
grrrrrrrrrrrrrrrrr... I am marking this as answered now. I will have to learn some javascript.
Are there any caveats for using it within WDJ?
I am assuming I can do something simple in pseudo-code.. (I will need to work out the Javascript version).
if (hasOption1) {
  field.readonly = true;
  field.style = sunken;
else if (hasOption2) {
else if (hasOption3) {
etc
(There are only actually 3 options that can change.. but that results in 8 different possible forms)

Similar Messages

  • USB FAT32 is read only and will not format

    My usb is formated as FAT32. however it is read only, and will not format. here are some screen shots:
    http://gyazo.com/369a6b843d86ba0bcbd360ed89ea258c
    http://gyazo.com/f07905c5b27519cbefbab29719c88702
    http://gyazo.com/40d291c83b85e88c68ccc47a45b19f35
    http://gyazo.com/490462fb7b280be7483048b2e485b2b8
    not really sure what is wrong with it, any one have any suggestions?
    i mean it cant be trash now, there has to be some program that will fix it.

    Drive Partition and Format
    1. Open Disk Utility in your Utilities folder.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Apply button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Security button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.

  • How to make users to select the date from calendar control my making the date field read only in date time control in external list in sharepoint 2010

    How to make users to select the date from calendar control only, by my making the date text field read only (don't want to let users type the date) in date time control in external list in sharepoint 2010. I am looking for a solution which can
    be done through sharepoint desginer / out of the box.
    thanks.

    Congratulate you got the solution by yourself. I am new to a
    WinForms calendar component, I feel so helpless on many problems even I'd read many tutorials. This question on the
    calendar date selection did me a great favor. Cheers.

  • 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

  • Make "File name" and "Files of type" fields read-only in JFileChooser

    I try to make the "File name" and "Files of type" fields read-only in JFileChooser dialog. Anybody
    knows how to do? Thanks.

    You mean so the user can't choose the name of the file to open or save? Not much point in even using a JFileChooser, then, is there? Or did I misunderstand the question?

  • How to make a field read only at run time by entering the value in another field.

    Hi Team,
                  Recently i got a requirement , i Have 2 dff's at header level and line level related to down payment ,and the DFF having two fields such as amount and if i enter amount that should be converted into % then populate the total amount field, at the same time % field should be gray out . if i give %(percentage) then amount field should be grayed out(read only) and then it should populates towards the total amount at header level.
    Can any one help me on this issue.
    Thanks,
    raghava

    I would to elaborate this issue...
    I have DFF's enabled at Header level and line in Purchasing Module -->Buyer WorkBeanch --> Order page here they did, as "Details". Details contains two Filed's
    1. Amount
    2.Percentage (%)
    Requirement :
    i.if i enter "down payment amount" then "down payment %" going to become read only. vise verse.
    ii. If I enter "down payment amount " or "down payment %" at header level then not allowing to enter at line level .
    thanks,
    raghava

  • Ipad form ....help needed please.  Clear form after email as read only and sequential numbering

    Hi
    i am a complete novice at this however this is what I want to achieve.
    i Have a paper duplicate report sheet that I want to get electronically, I want to be able to add sequential numbers to each report and be able to email the report to the client from a email field in the form
    so far I have so I have created the pdf form, I have a button that runs a JavaScript that will hide the submit button and then send to the clients email and to bcc myself so I have a copy of the report also. This has been tested and works
    i Am struggling with sequential numbering and once the form has been emailed it's un-ditable as the JavaScript has converted it to read only for emailing which is good as it can't be edited. But Is there a way on my submit button to email the report as read only and then clear all form fields in the report ready for filling with the next sequential number?
    I Have had a good look sound for a resolution to this but am struggling
    many thanks in advance for any feedback
    paul

    Hi Paul,
    I presume that you are using the desktop version of Acrobat Pro to author the form.
    I will move this discussion to the PDF Forms forum so that the experts in the forum can answer your question.
    Please note that the Reader/Acrobat DC mobile apps (for iOS, Android, Windows Phone, etc.) have limited JavaScript support.
    JavaScript for Reader Mobile API Reference (iOS)
    You may be able to make the form work as you want in the desktop version of Adobe Reader/Acrobat Reader DC.  However, some functionality (e.g adding a sequence number to each PDF) will not work in the mobile apps due to the limited JavaScript support.  Sorry for the inconvenience.

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

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

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

  • [SOLVED] How to make file read only and stay?

    I'm using gnome 3 and want to make the recently used.xbel file (in .local/share) read-only/locked. I've tried making it read only and it just reverts to normal when something tries to write to it. How do I do this?
    Last edited by sudokill (2011-04-29 19:41:51)

    Worked great, thanks. No more recent documents at all

  • How to make fields read-only

    While I may allow a customer to see their billing address, I don't want them to change it.  How can I make certain fields read-only?

    Hi Thomas,
    If you are using 2007, find the ~/common/controls/accountaddressblock.ascx and make the templatefields that hold the delete button and the edit button invisible.
    <asp:TemplateField Visible="false">
    You will probably also want to make the add button invisible.
    If you are on 5.9, this may not work.  I think the address block is also used in the admin area.

  • 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

  • How do i deactivate an ipod touch from my iTunes

    I know this should seem simple, but some how I am missing something.  I have tried searching and can't find anything on deactivating a device. I just need to deactivate an old iPod touch from my iTunes account that I am selling on Craigslist. Help?

  • Error Installing 10g on Windows XP

    hello all.. Iam installing ORacle10g on WinXP. After selecting the Installation type as " Personal Edition" option, i get an error message " Thrown when the ip address of the host cannnot be determined" and it gives me 4 options.. Retry, cancel, help

  • JMSQueueAppender: posting logged message several times

    package com.citco.banking.nxg.logger; * Copyright 1999-2005 The Apache Software Foundation. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy o

  • System wide mini malfunctions

    I have a mac mini i5 (2.3 GHz mid 2012) OS X 10.8.3 I have multiple log in accounts (main, kids etc) I upgraded to Mountain Lion a few months ago and just now realized there are system wide malfunctions going on. Prior to upgrade, I backed up, wiped

  • Comments on query issue

    Hi experts, We have an opption in the Portal like when we have a BI query displayed in portal as iview we will get one tab called comment  where we can enter the comments for the query, how can we set an indicator when some comments exist for the que