Change field from read only and override calculation based on radio button

Hi,
I have a form in which one of the fields has a simple sum calculation and is set to read only so the user can't change it as it sets a print amount as well.
But if one of the radio buttons is ticked there is a chance that the print amount needs changing but it can be different based on a few other options so I have managed to set the field so the user can edit it depending on an option but the calculation that sets the value overrides what the user enters. I would like to know if it is possible to change this?
I use
this.getField("Quantity_Boxes").readonly = false;
So the user can edit the field when they select the radio button 'yes' under Mesh_b
and
this.getField("Quantity_Boxes").readonly = true;
So the field goes back to read only when the user selects the 'no' under Mesh_b
and in the Quantity_Boxes field I use:
Quantity_Curtains / csn
Just as a simplified division sum with the decimal places set to 0 so a whole number appears.
csn is just a hidden field that has an amount set depending on the size of curtain.
Thanks,
Bruce

I have found a solution but caused another problem (well more of an irritation than a problem)
I have made it so the can field throws a dialogue box asking how many of the item fit into a box, the only problem is that the dialogue box will appear more then once.
For example I have made a new size know as bespoke and when I select that size and hit return the dialogue box pops up which is fine but when the amount of the product is changed it throws the dialogue box again. I guess this is because the calculation has to be run again but is there anyway of stopping this?
Here is the code I use in the can field which defines how many curtains are in the box and is used to calculate how many labels need printing out.
if(this.getField("SizeDrop").value=='LG'){
event.value = "5"
} else if (this.getField("SizeDrop").value=='ST'){
event.value = "8"
} else if (this.getField("SizeDrop").value=='ME'){
event.value = "10"
} else if (this.getField("SizeDrop").value=='SM'){
event.value = "15"
} else if (this.getField("SizeDrop").value=='BE'){
var resp = +app.response("Enter the amount of curtains in a box","","1");
event.value = resp
} else {
event.value = " "
Thanks,
Bruce
EDIT:
I have found that the dialogue box will appear every time something is changed on the form (even while in the editor as well)

Similar Messages

  • REG changing field to Read only

    Hi All
       In CO12 screen and goods movement page,I want to change the batch Number field of O/P item with 101 mvt type to Read only.How can i Do that.Please help.
    Regards,
    PradeepM.
    Moderator message: please do some research before asking.
    Edited by: Thomas Zloch on Feb 24, 2011 2:10 PM

    Hello Asad,
    The exporting parameter et_field_attribute contains the information about the attributes of the fields (read-only, hidden, ...) linked to the object key on your sales order.
    Field property can be :
    A     Not Changeable
    B     Not Relevant
    C     Mandatory Field
    D     No Value Help (F4)
    Regards,
    frederic

  • How do I change permissions from read only on my external hard drive?

    I'm a new convert from PC to MAC and I'm kicking myself because it's been **** ever since.
    My music and business documents are all kept on an external hard drive and that hard drive is NTSF.
    My MacBook is reading the whole drive as read only. I'm trying to add my huge library to the cloud but it's not reading it all.
    How can I convert the drive to FAT without losing everything. I have 91 gigs of music that as a dance teacher, cannot afford to lose.
    Please help!

    chombitafeya wrote:
    If I'm only using Mac now, do I still follow #2 from above?
    If you are going to use the external drive only with Macs now, you can consider the option to format the external drive with "Mac OS Extended (Journaled)". In this case, only Macs will read the external drive, but compatibility will be better.
    chombitafeya wrote:
    If I go out and buy an external hard drive that's Mac compatible, will I still be able to transfer the files from my NTSF drive to the new Mac compatible drive or do I have to use a pc to solve this problem?
    First of all, note that all external drives are compatible with Macs. If you find external drives which come as "for Macs", that's because they come formatted in "Mac OS Extended (Journaled)".
    In that case, you will be able to transfer the files from the NTFS drive. Note that you can read NTFS drives and you can copy files from the NTFS drive to your Mac or other disks. The only thing you can't do is copy files to the NTFS drive

  • Can not change files from "Read Only" In Windows 8.1

    I am the only Administrator on my computer, there are no other accounts. Some how all my files now have the read only attribute and I can not change it. It gives me the option to change it and I do and it looks like it got rid of it; but as soon as I close
    out of the properties window and go back into the read only attribute is still there.
    The read only attribute doesn't even act like itself because I can still edit the files that are in the selected read only folder. But it doesn't let me change the folder group options.
    None but one of these folders are customized so it is not a problem that can be resolved by the other threads I have read.
    Even new files I create have the read only attribute, please help, this is really annoying.

    Hi,
    For this problem, please refer to the KB below to repair the problem for test firstly, If no use, please feel free let us know.
    You cannot view or change the Read-only or the System attributes of folders in Windows Server 2003, in Windows XP, in Windows Vista or in Windows 7:
    http://support.microsoft.com/?kbid=326549
    Note: This article also applys to Windows 8.
    Roger Lu
    TechNet Community Support

  • When I converted a file from PDF to WORD.DOC it opened as Read Only and I'm unable to alter any of the text.  How can I solve this problem?

    When I tried to convert a file from PDF to WORD.DOC it opened as Read Only and I'm unable to alter any of the text.  How do I solve this problem?  I don't know how to change it from Read Only.

    Dear Sara
    Thank you very much for sending the converted file.  Yes, I am able to edit it - that will be very useful to me and I appreciate your help.
    Referring to your previous message when you said you'd converted via Acrobat and not Acrobat.com, I'm converting via Acrobat.com because that's the only option that is shown (how do I convert via Acrobat? - perhaps that would be more successful).  I'm using the Export PDF website, and the OCR is enabled to "Recognize text in English UK".  However, I've just tried converting a different LPA pdf form, this time for Health & Welfare https://www.gov.uk/government/uploads/system/uploads/attachment_data/file/245571/LPA114_He alth_welfare_LPA.pdf and again I have the same problem as before.  I've altered it from "Read only" and thought I'd then be able to enter text, but "Drawing Tools" is shown in the pane and I'm unable to enter anything onto the form - everything appears to be in images.  Also, the lettering on the heading of' page 1 has become jumbled, with the word "Public" overlaying the word "Guardian."  Any suggestions as to what it is I'm doing wrong would be welcome - I don't like to be beaten!
    Regards,
    Judith.

  • When trying to save a file under Excel 2008, ver 12.3.3, with extension .xlsx or .xlx, I am told it can't be saved because it is "read only." How do I change the file from read only?

    When I try to save a file using Excel 2008, ver 12.3.3, with extension either .xlsx or .xls, I get a message saying it cannot be saved because it is "read only." How do I change it from read only? (And how did it ever get to be read only?)

    Save the file as a new name. Close and Open the new file.
    Most likely when a file transfer happens, Office makes the file 'Read Only'.
    If you have two opened files with the same name, the last opened file will be 'Read Only'.

  • Making a field as read-only using Forms Personalization.

    Hi All,
    I have one requirement.I developed one form which is used to display Customer related Information.Some fields are created under one block and "reason-for-write off amount" field is created under another block.I have created Master-Detail relation for these 2 blocks.If there is any "reason-for-write off amount" is present for queried customers then it shows the "reason-for-write off amount" data.check boxes also created beside customer number field in Master block.If there is no "reason-for-write off amount" for any customer I need to write it and when I click on "submit" button in my form it goes to database.
    Now my requirement is :
    I need to make "reason-for-write off amount" field as read-only and I need to CHECK corresponding Customer "check_box" and make "SUBMIT" button as disable using personalization.
    I wrote code in Personalization as
    Trigger-Event:WHEN-NEW-FORM-INSTANCE
    Condition: :DUMCUST.REASON_FOR_WRITEOFF IS NOT NULL
    Processing mode:BOTH
    Actions:
    object type: ITEM
    Target Object: :DUMCUST.REASON_FOR_WRITEOFF
    Property Name: Enterable
    Value:false
    object type: ITEM
    Target Object:      :XXMCS_CUSTOMER_DETAILS.CUSTOMER_NUMBER_CBX
    Property Name: Value
    Value:1
    object type: ITEM
    Target Object:      :XXMCS_CUSTOMER_DETAILS.SUBMIT
    Property Name: Enabled
    Value:False
    But it is not working..the applied changes are not affected in my form.I tried the above actions with WHEN_NEW_BLOCK_INSTANCE trigger also.I didn't write any validation triggers for these items in my FMB also.
    Could anyone please help me..
    Thanks in Advance.

    in your iterator declare the inputfield with disabled = true .
    p_replacement_bee = cl_htmlb_inputfield=>factory(
                                id        = p_cell_id
                                disabled  = 'true'
                                value     = comments ).
    this will generate the html like below
    <input type="Text"
    class="urEdf2TxtEnbl urEdf2TxtRo urV" autocomplete="off" id="TAB1_1_4" ct="InputField" name="TAB1_1_4" st="r" tp="STRING"
    readonly value="some value" onblur="sapUrMapi_InputField_Blur('TAB1_1_4',event)"
    onkeydown="sapUrMapi_InputField_keydown('TAB1_1_4',event)"
    onkeyup="sapUrMapi_InputField_KeyUp('TAB1_1_4',event)" onfocus="sapUrMapi_InputField_focus('TAB1_1_4',event)">
    now you can use js getElementById as this now has a id attached (TAB1_1_4)

  • How do I change permissions on my seagate expansion drive from read only to read and write?  Thank you!

    I don't seem to be able to change the permissions on my Seagate 1TB Expansion Drive from read only to read and write.
    Are there expansion drives compatible with both Windows and Mac as I have a Windows computer at work and use my Mac at home?
    Thanks

    It is a question of formats.  That drive probably is formatted for Windows.  You will have to reformat it to ExFAT on the PC, then it will work both on the Mac and the PC. 
    REFORMATTING ERASES ALL DATA ON A DISK!
    There is a software option which will allow you to write to the HDD with reformatting:
    http://www.paragon-software.com/home/ntfs-mac/
    Ciao.

  • How do i get my external hard drive permissions changed from read only to read and write?

    Does anyone know how to get an external drive to unlock the permissions from read only to read and write? Without reformatting or buying an app?

    Hey P,
    If you single click on your external drive icon on the desktop and then goto
    'File > Get Info' a window will display the information for that drive. At the
    bottom of the window their should be a check box that either allows you
    to recognise users of not. You probably want to uncheck this box.
    Or... You can keep the user option and just change the permissions
    using the same Get Info window.
    A.

  • Hi just bought an external hard drive and can't change the sharing and permissions from read only status. How do i change it?

    Hi new to macs and dont know how to change the sharig and permissions to my external hard driive from read only mode. please help

    Get Info on your drive from the Finder - you'll see a dialog box like this:
    If the Privilege is set to Read Only for the user, simply click on the "Read Only" and change it to "Read & Write".
    Is that what you're looking for?
    Clinton

  • Fields in read-only mode for BP transaction in upgrade from 4.72 to ECC6.0

    Hello,
    This is regarding the query for BP transaction in upgrade from 4.72 to ECC 6.0.
    While creating BP / Changing BP system is disabling the fields in compnay code & sales area option. There is a SAP not provided 907860; and specified that the proplem is because of the delta customizing.
    All the customization settings are as per the note. And the Synchronization Control is also activated. But still the fields are disabled only.
    I have checked the field settings also in Cross-Application-Components & Logistic-Genral.
    But these are not working for compnay code & sales area data.
    please let me know if anyone has faced this type of problem / found any solution on this.
    Best Regards,
    Shubhada

    SAP IMG  -> Cross Application Components -> Master Data Synchronization &#61664; Synchronization Control -> Synchronization Control -> Activate Synchronization options
    This setting allows you to activate synchronization of BP with R/3. Not maintaining the values may result in certain fields being read-only in BP.
    Suggested Values:
    Source Object: BP | Target Object: CUSTOMER | Active Indicator : X
    Source Object: BP | Target Object: VENDOR | Active Indicator : X
    Source Object: CUSTOMER | Target Object: BP | Active Indicator : X
    Source Object: VENDOR | Target Object: BP | Active Indicator : X
    Have you set all of the above settings??
    BHARATH

  • Change a drop down list from read only/invisable on a radiobutton value

    Hi All i am new to all this and need a few pointers?
    I have a form which was made using Livecycle Designer 8.
    On this form are a set of radio buttons (yes/no/NA).
    Is there a way to change the state of a drop down list from read only or invisible and display a message after 'no' has been selected on a set of radio buttons?
    Thanks in advance.

    No being in a table shoudl not affect it.....but you will more than likely have to include the path to the object. Without seeing your form it is impossible to tell you what it should be. You can place your cursor in the script editor where you want the reference to the DDList. Then hold down the Ctrl key and move your mouse to point to the field you want to reference. When the cursor hits the canvas it will change to a V. When you get to the field you want click the mouse button and the expression that you need will be placed in the script editor. This is path relative to where the context in which the script will be run. Now you can simply add the "." and whatever method/property that you want to reference.
    Hope that helps
    Paul

  • How to change report region fields in read only mode?

    How to change report region fields in read only mode?
    skud.

    add the following javascript fuction to page header(or Javascript function and variables section)
    function disableItems(pRegionStaticId,pDisableFlag) {
      $('#'+pRegionStaticId).find('[name^=f]').each( function(){ /* matches fxx */
        if( $(this).attr('name').match(/f[0-9][0-9]/) ){
          return $(this);
      }).attr('disabled',pDisableFlag);
    pRegionStaticId is the region's static Id+
    Note that this code specifically disables only application arrays. Disabled items are not available after submission (and hence are different from readonly) . But any page javascript can modify disabled or readonly items(client side), so you must check at the server side to validate the data.
    You can disable items using
    disableItems('MY_REGION_ID' ,true);and enable them by passing false
    disableItems('MY_REGION_ID' ,false);

  • Changing not possible; field is read-only

    Hello,
    I need update Expected Value in Opportunity.
    Expected Value is bound Opportunity.SalesForecast.ExpectedRevenueAmount.content.
    When I try to update in adsl, "Changing not possible; field is read-only" error appears in frontend to the user.
    Thanks!

    Hi Rodrigo Mathias,Not an answer to your post just to share my problem
    Seems Opportunity has a lot of problems. As in my case i am trying to code in BeforeSave method that when ever the opportunity gets create by code i have to poppulate my CUSTOM Invonved Party ( i have created custom party role ).
    And i have passed partykey.partyId.content and RoleCode but when i click on save it gives me the error about Role Category!
    now when debugged that all Parties ( i debugged and checked whole collection) had the Role category every party from that collection had the Role category associated!
    So i tried to add r
    ole category by code! but that is also public write access set as FALSE!
    So finally i again opened the book for clod , and a line is specificaly written that PartyID node will not be used after 1402 there will be separate node PartyNAme where u can pass partyid , name or email!
    but unfortunately that is also not available in the opportunity BO!
    So i am also kind of stuck!
    Btw one thing i would like to mention is when u try to maintain your custom role in opportunity manually it works and data gets saved!
    Regards,
    Dhruvin

  • I go to File get info sharing and it says I have custom info, me read and write, staff read only and everyone read only and I don't know how to change the setti

    I am attempting to download an update for Firefox - when attempting to open it tells me to go to File/getinfo and when I look at sharing and Permissions there are three entries, me, staff and everyone - me is Read/write, the others are read only and there is a note that says I have suxtom access but still cannot drag to applications -
    how do I unlock this process

    Hello mbennjr, if you have problem with update or permissions firefox the better way is to '''download and install the new version'''.
    1. Download a copy of the latest firefox from http://www.mozilla.org/en-US/firefox/all.html
    2. '''Trash''' the current Firefox application to do a clean install.
    3. Install the version that you have downloaded.
    Do not select to remove your personal data, your profile data is stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox#Mac Firefox Profile Folder], so you won't lose your bookmarks or other personal data.
    see also: [https://support.mozilla.org/en-US/kb/install-firefox-mac?redirectlocale=en-US&redirectslug=Installing+Firefox+on+Mac#os=mac&browser=fx24 Installing Firefox on Mac]
    thank you

Maybe you are looking for

  • Allocation Function in Integrated Planning

    Dear all, When reading the documentation on Integrated Planning ("New BI Capabilities..") I noticed the Allocate function is not mentioned. These functions are mentioned: Revaluation Reposting Formulas Currency translation Unit conversion Copy Distri

  • Why doesn't  list component identify grid component

    Hi, I have couple of doubts. 1. I put <grid> component inside of <List> component . Surprise! The <List> component is not identifying the <Grid> component. Is this bug of Flex Or it's property of Flex <List> component. What I have to do to make <Grid

  • After downloading the latest IOS, I can't access iTunes on my iMac

    Ever since I downloaded the latest IOS, as it was just released, I couldn't access iTunes anymore. It would quit unexpectedly using the iTunes plug-in. What should I do?

  • Insert custom JavaScript on Oracle CRM detail page

    As part of some customizations to modify the details pages, we need to insert some custom JavaScipt on Oracle CRM pages. What we understand is that this is possible using a Custom Web Applet and adding the applet to the sections layout. But with this

  • What is the best Tablet to buy for the full range of Adobe CC Mobile Applications?

    I am going to buy a tablet for using the Adobe CC Mobile Apps and would like some advice. I am thinking of using an IPad Air or Mini with Retina Display. I noticed that some Mobile Apps have different devices/OS against them on this link Mobile Apps