Add instance on Read only field issue

I have a subform with two fields , one a date field to capture current system date and time and another is a Text field for some comments.
Then there are two buttons ,one for Adding the instance for these two fields and another is a Save button which makes these two fields
The requirement is that once both the fields are filled with data and i click on save button, the fields should become read only ,however when i click on the add instance button the instance is added successfully but the save button click is not making the new instance read only.
The Code for Add Instance Button is :
"New1.FileNote.instanceManager.addInstance(true);
xfa.form.recalculate(true);"
The code for Save button to make the fields read only is :
New1.FileNote.DateTimeField101.access = "readOnly";
New1.FileNote.TextField37.access = "readOnly";
Please guide me as I am totally blank on how to code the same..Have a rough logic of using a for loop with index of the Add Instance but not getting the way out for the code.
Thanks a lot for any help and guidance.

Hi Steve,
Thanks for your reply..I made it happen using the for loop with Index and resolve node. However there is another issue which occured after that..I have a date/time field in that repeating subform instance.
The run time property is set to Current Date/Time. Now the issue is whenever i click on save, form.recalculate instance changes the existing time value in the previous subbform instance as well
Is there a way to retain the existing value in the field of the previous instance ??
Regards
Kapil

Similar Messages

  • Can no longer select text in email template or read only field with mouse using IE or Firefox?

    Hi Guys,
    I can no longer select text in email template or read only field using my mouse in IE or Firefox anymore. We are using CRM 2011 rollup 18 applied with IE 11 and the latest version of Firefox. We only applied roll up 18 in Feb when this issue began.
    Thanks
    Dave
    David Kelly

    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    (You also can clear Firefox's cache completely using:
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now")
    (2) Remove the site's cookies (save any pending work first) using either of these. While viewing a page on the site:
    * right-click and choose View Page Info > Security > "View Cookies"
    * Alt+t (open the classic Tools menu) > Page Info > Security > "View Cookies"
    Then try reloading the page. Does that help?
    These features rely on JavaScript, and it sounds as though you have scripting enabled if you get (the wrong) color changes. Some add-ons might alter the way scripts operate, so a standard diagnostic to bypass interference by extensions (and some custom settings) is to try Firefox's Safe Mode.
    First, I recommend backing up your Firefox settings in case something goes wrong. See [[Backing up your information]]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    Next, restart Firefox in Firefox's Safe Mode ([[Safe Mode]]) using
    Help > Restart with Add-ons Disabled
    In the dialog, click "Start in Safe Mode."
    If those features work correctly, this points to one of your extensions or custom settings as the problem.
    To also disable plugins, you can use this page:
    orange Firefox button ''or'' classic Tools menu > Add-ons > Plugins category
    Any change?

  • Updating Read-Only Field

    All,
    We have some read-only fields (configured @ the page layout settings) in OnDemand edit form
    As per the business rule, the values for these fields has to be set externally using a weblink in the same form
    We are able set back the externally selected values in the OnDemand page to the read-only fields
    But when the user tries to save, the information it is not "Saved" in OnDemand database but it works fine if fields are "Editable"
    Is there a "Server Side" restriction in OnDemand which doesnt allow to update the moidfications on the client side to read-only field on "Save"?
    Are there any workarounds to solve this issue?
    Appreciate your inputs
    Regards,
    Venkatesan
    CRMIT

    Venky,
    If I understand you correctly, you're setting the field values on the client, pushing the values into the edit form. The layout read-only setting has to prevent that - that's what it's for. What you should be able to do is set the values on the back end, using a web service call.
    Regards,
    AO.

  • This operation is not available for read only field 'Type MVF'

    Hi All,
    We are using OrderToCash PIP and we are on Siebel 8.1X.
    While Synching the customer from Ebiz to Siebel facing the following issues:
    Method 'WriteRecord' of business component 'Account' (integration component 'Account') for record with search specification '[Row Id] = "2d3434313239353"' returned the following error:"This operation is not available for read only field 'Type MVF'.(SBL-DAT-00402)"(SBL-EAI-04451)
    Please suggest us what steps to be done in Siebel.
    Thanks
    Maanasa

    First check the process why this is calling Account BC WriteRecord(). The field "Type MVF" might be read only and this sync process is trying to update this field which is read only. This is the reason for the error. Check the OM log / EAI Obj Manager Comp log (set log level to 5) and check.
    Joseph Arul Dass

  • Field Validation on Read Only Field

    I'm trying to create a pop up error box if a field contains null values. The problem is that the field I'm trying to do the validation on is a read-only field. It's the Account field on the Contact Object or Module. It won't allow me to include validation. The goal here is to have a POP UP ERROR box come up if someone does not select a value for that field. Making it required doesn't generate a popup box, it only has a small "required" text next to the field which can be easily missed by a user. Any ideas?

    Hi !
    I found the way to do what you wan't, but it sounds a bit strange for me...
    You have to put a field validation on the Account Id field. I made some tests to know what is in the AccountId field when it's blank and i see that the value is "No Match Row Id" !!
    So your validation rule must be simply
    *<> "No Match Row Id"*
    It worked for me, the error message appears... But I think this is something we have to report to Oracle...
    Hope this will help, feel free to ask more !
    Max

  • SPD Workflow - Update a hidden/read only field

    Hi there,
    I have a list with a hidden/read only field (ie Status).  So the user cannot update this field using the form or datasheet ...etc.
    I have an SPD workflow that I was hoping would modify the value of the Status field.  But it appears as though the option to modify it is not available as long as it is hidden and/or read-only.  Aka, the field doesn't show up in the list of fields
    to modify for the "Set field on current item" action.
    I was hoping to avoid importing this into a visual studio project and adding in code, which I believe would do the trick; so are there any solutions that I can do within SPD itself?
    Thanks in advance.

    Hi Eirc,
                       as i understand you question  you want to update hidden filed from workflow ? 
     solution 1 when workflow started it change field read only to false and after completing workflow
    change it again true.  by code.
    Solution 2 Use javascript to make the field read only on presentation.
    http://sputility.codeplex.com/ check this lib that might help you to manage readonly field on runtime
    Solution 3 : you achieve by setting column level permission 

  • Any difference in signature lock function, read-only field property, & signed tab "Mark as read-only

    Is there any real difference between
    1) simply setting a field to read-only in a custom script on the Signed tab of a signature field by:
    this.getField("field name").readonly = true;
    2) including the field in the "Mark as read-only: " list of fields on the Signed tab of a signature field
    and, 3) including the field in a call to the setLock() method of a signature field?
    As far as I can tell there isn't, but am I missing something? And if they are all the same, then since setLock() must execute in a priviledged context, it seems the harder way to get a read-only field.

    Hi Ron,
    It certainly sounds like you are on the right track.What version of Acrobat are you using, is it Pro or Standard, Mac or Win? I see where you mentioned the file was created in Acrobat X, but I'm not sure that the app that create the PDF file is the same version as the one you are using for editing.
    Steve

  • How to make read only field in Task list?

    Hi All,
    How to make read only field in Task list?

    This can be done one of two ways:
    1. Customize the form in Infopath, right click your field and disable the control.
    2. Use JavaScript/jQuery on the page to disable the element.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • Read only fields clear with for actions

    Read only fields that are populated via lov mappings clear when any button is pressed on the page. This only happens when the field is read only or disabled. Is this intended and if it is what is the workaround???

    The button must be a submit button.
    Readonly fields or messageStyledTexts are not formElements, that they can post the value back to the ViewObject. Hence they just pass empty value to the underlying VO, when pressed formSubmit. The empty value refreshes the UI when the page refreshes after submit.
    Workaround for this is to have formValuebean that has the same VO attribute and the same LOV mapping as the readOnly field or MessageStyledText. It will act as mirror to submit the values.

  • Read Only Fields

    When a read only field is in a user role and the field is removed, the read only flag disappears.
    How can controls be implemented so that a role can not be added back in and the read only doesn't follow.
    It is important to have some fields read only and some edittable and they may change periodically.

    There is two ways to make a field "Read Only". (1) in step 2 of a Layout (2) Edit the field in the Field Setup.

  • Upload a value in read-only field using Webservices or Workflow

    Can you please let me know if is feasible to upload a value into a read-only field using webservices or workflow
    If so, can you please provide an example?
    Thanks

    Using WS, you cant update the field value, if it is set as "Read-Only" @ the object - Field definition level, but you can update that using WS if it is set as "Read-Only" @ the layout level. Same applicable to Workflows too
    -- Venky CRMIT

  • Urgent:Regarding Reports for read only field.

    Hi All,
    Does it happen that the fields which are read only or system defined does not get reflected in report subject area or so ? I have created one report where one field 'Triage' which is Look up window and Picklist read only field is not showing up values in report subject area.Is this due to the field which is a Picklist read only field.
    Quick response will be highly appreciated!!
    Thanks and Regards,
    Manish.

    user12880720 wrote:
    Hi All,
    Does it happen that the fields which are read only or system defined does not get reflected in report subject area or so ? I have created one report where one field 'Triage' which is Look up window and Picklist read only field is not showing up values in report subject area.Is this due to the field which is a Picklist read only field.
    Quick response will be highly appreciated!!
    Thanks and Regards,
    Manish.Hi Manish,
    You do not specific if this is a multiselect picklist you are refering to or what type of reporting you are trying real-time or analytics?
    Anyway please see the below from the help file:
    Multiselect Picklists
    Multiselect picklist (MSPs) values are not supported in real-time reporting subject areas. They are supported in the historical subject areas for the following subject areas:
    Account
    Activity
    Contact
    Dealer
    Lead
    Opportunity
    Service Request

  • Read only field

    Hi friends,
    I have to make one field in the selection screen(report) as a read only field.  Can you suggest how to do it.
    regards,
    John

    Hi,
    You can refer to the following code:
    AT SELECTION-SCREEN OUTPUT.
    loop at screen.
      if screen-name eq 'PNPS$MSL'.
        screen-active = 0.
      endif.
      modify screen.
    endloop.
    Hope this helps.
    Reward if helpful.
    Regards,
    Sipra

  • Search help overwrite a read-only field

    Hi, I have some problems with search help and hope someone can help me.
    My search helps (either standards or customs) work perfectly,  but a strange behaviour
    occur on Read-Only fields. If I open the Search Help popup and select a value, it overwrite the
    READ-ONLY value !!!!!
    Hope you can help.

    Depending on the support pack level you are on - search helps - freely programmed or otherwise don't seem to trigger off read only fields (I noticed this when we moved to NW7.01)
    I've got around this by making the field a link to action - providing the read only link I want as the text, and then calling the following code:
    call method cl_wdr_value_help_handler=>handle_application_def_vh
        exporting
          context_element      = context_element
          component_usage_name = 'JOB_SELECTION'
          context_attribute    = 'JOB'.
    Where component 'JOB_SELECTION' is my freely programmed value help - implementing WD interface IWD_VALUE_HELP.
    This was helpful as I wanted the search help to trigger and the user to be able to update the field but only by using the search help - I didn't want the user to be able to write anything in the field.
    it was a particular use case I had - it may or may not fit your needs.
    Cheers, Chris

  • How Do I:  Fill a read-only field based on selections from 2 DDlists?

    Follow-up from issue:  
    http://forums.adobe.com/message/2417876#2417876
    I have 2 drop-down lists...  "Department" and "SubDepartment"
    The selection in DDlist "Department" spawns a unique list in DDlist "SubDepartment"
    I select the proper items from both DDlists.
    When I do this, I want read-only text field "NameOnIDBadge" to be populated with a pre-defined entry.
    Example:
    In "Department" DDlist, select item "Finance & Administration"
    In "SubDepartment" DDlist, select item "Food Service" from the list that appears
    THEN:
    In read-only text field "NameOnIDBadge" the following predefined read-only text appears:  "Contract Food Serv."
    (Thanks to Paul, I already know how to make the selection in DDlist "Department"  affect the selection list in DDlist "SubDepartment"
    but I don't know how to make the selection of both DDlists create a new pre-defined entry in a text field.)
    I have attached a mockup of the file I am working with...

    I tried that but a few things went wrong.
    1. After I select "Food Service" in the second "SubDepartment" DDlist, a Javascript error message pops up (see attached), and I have to click it to make it go away.  Then the text "Contract Food Serv" appears in the text box.
    2. If I select a different value in the Department DDlist, the rawtext still remains in place... it should clear out.
    3. The raw text seems to be based on the selection of the SubDepartment DDlist only.  However, I need specific raw text to be generated based on the combination of BOTH DDlists.   (It could happen that a totally different Department DDlist could have the same item in its corresponding SubDepartment DDlist.  In that case, the rawtext would be completely different.)
    Correct example:
    Department DDlist = Finance & Administration
    SubDepartment DDlist = Food Service
    NameOnIDBadge = Contract Food Serv  <-- CORRECT
    Incorrect example:
    Department DDlist = Clinical Services
    SubDepartment DDlist = Food Service
    NameOnIDBadge = Contract Food Serv   <--  INCORRECT   (it might be something else)

Maybe you are looking for

  • ORA-22160 - element at index does not exist

    A script that I am running to load data into a table using bulk binding (using nested table variables and FORALL) produces an error "ORA-22160: element at index [77] does not exist". Just prior to the forall...insert... I report the size of each nest

  • Broken link to iPod Touch Manual

    The following link does not work: http://manuals.info.apple.com/enUS/iPod_touch_iOS4_UserGuide.pdf Please advise on the best way to obtain a manual for my new iPod Touch.

  • Load balancing http server

    Hi There, I want to implement a load balancer (linux virtual server) into our htmldb configuration. We currently run the http server on the same machine running oracle/htmldb. I want to split this out and use 2 seperate machines running http server b

  • KXML or Socket+Serializable

    Hi, I don't Know if to use kxml or socket+serializable's object for the comunication between client and server. which is the better choice? (I do not speak English very well) Thanks

  • ICloud Control Panel Problems

    Hi all, I run a Windows 7 Home Premium laptop and two days ago my iCloud email disappeared from Outlook 2011. I opened the iCloud Contol Panel and this is what was shown: Whereas this should be, by all accounts, the Panel that should be viewed: As yo