Read-only attribute - how to make it changeable?

Hi,
I'm new to CRM 7.0 and I have a problem with an attribute.
I have table view which is displaing one model node. I've added new attribute to this model node, which is value attribute.
Now I would like to change value of this attribute from get_ method but it's not possible. I checked IS_PROPERTY_READONLY and it's 'X'. How can I change property of this attribute to changeable?
I've found some answers on SDN but it was not complete or not working.
Thanks for any help,
Szymon

Thanks for reply.
But it's not exactly what I meant. I'd like to change the attribute value not from typing in web ui, but setting it in get_attribute method.
Now I have code like this:
DATA: lr_row TYPE REF TO cl_crm_bol_entity,
        is_ro TYPE abap_bool.
  lr_row ?= me->collection_wrapper->get_current( ).
  is_ro = lr_row->IS_PROPERTY_READONLY( IV_ATTR_NAME = 'NO_COPY' ).
  lr_row->set_property_as_string( IV_ATTR_NAME = 'NO_COPY' IV_VALUE = 'X' ).
When checking IS_PROPERTY_READONLY - it's true. So setting property for attr 'NO_COPY' is not working (but if attribute was initial it's working - IS_PROPERTY_READONLY results false and value for attribute is set).
I've found on the SDN earlier:
Check the method SET_ATTR_PROPERTIES( ) in the class CL_CRM_GENIL_SAMPLE_ABSTR where you can perform the changes for that fields that you don't want to be readonly. Or else you can modify the properties in this method IF_GENIL_APPL_MODEL~GET_OBJECT_PROPS.You can return the properties which you want to.
But I don't know how to use this class/interface...
Regards,
Szymon
Edited by: Szymon on Mar 2, 2012 8:17 AM

Similar Messages

  • How to remove "Read Only" attribute on folders

    Hi
    I am logged in with my User account which has full control over my folders.<o:p></o:p>
    I have a folder that I tried to add modifications to, however i could not do so because the folder was classified as read only. I have full permissions to this folder. Previously the app that
    uses this folder could write to it quite happily, but today it fails. <o:p></o:p>
    The 'attributes' for the folder shows a solid square in the read-only box. If I 'un-box' the read-only and apply > ok, when I look at the attributes again the box is still checked.<o:p></o:p>
    So my question is, if it's not (which it shouldn't be) some sort of protected Windows folder, and I have full permissions on the folder (supposedly), why does Windows not respect my wishes,
    get out of the way, and let me set it to what I want it to be?<o:p></o:p>
    I have tried the following methods to fix this issue, but none of them work:<o:p></o:p>
    -Adjusting permissions and control, and changing security options<o:p></o:p>
    -Using a third party application such as "clear read only" to remove the check on the box<o:p></o:p>
    -Using the "attrib" function on the CMD prompt<o:p></o:p>
    -Boot Scan for virus/malware that is affecting folder attributes<o:p></o:p>
    -Running applications and CMD as administrator<o:p></o:p>
    I have heard that if using a NTFS harddrive, then all folders will be automatically “Read Only” and that it is impossible to change that attribute. I find this hard to believe, as all folders
    should have some way of being modified, regardless of what HDD I’m using. I obviously cannot change to FAT32, so how else can I get my folders to get rid of this ridiculous error!
    <o:p>I have also noticed that this problem is very common amongst Windows users. If this problem has been around for a while, how is it possible that no solution has presented itself.
    Regardless, we need a solution to it, because i can't do the things i need to while the Read Only attribute remains a constant on my folders. I thought it may be a virus, but my avast anti-virus did not pick up any infected areas when the scan was done. I
    have searched the internet, and no "fix" has solved this issue. The only fix i have not found is a reg edit that could completely remove this read only attribute from all folders. Though i feel this is not neccesary, as i only need the attribute
    to be removed from certain folders. Please kindly assist me with this issue, hopefully it will help many others too...</o:p>
    Many thanks.

    Have you taken ownership of the folder? Please first take ownership of the folder, then change the security options
    Take Ownership of a File or Folder
    http://technet.microsoft.com/en-us/library/cc753659.aspx
    If you have already did this, then run a scan with this tool,
    Malicious Software Removal Tool
    http://www.microsoft.com/en-in/download/malicious-software-removal-tool-details.aspx
    or copy this folder to another location, test again.
    Regards
    Yolanda
    TechNet Community Support

  • Lifecycle issue with table binding + read-only attributes: ADF BUG

    Hello all,
    I have found what I believe to be an easily reproducible bug in ADF that reproduces in 10.1.3.x, but not in 11g (at least not in drop 6). The best way to describe the bug would be to walk through a simple set of steps to reproduce the bug:
    1). Create a new application (ADF BC + ADF Faces).
    2). In the model project, create a new Entity Object from the Employee table in the default HR schema. Allow JDev to create an updatable view object and an AM as well.
    3). Put a validation rule on the first name attribute of the EO (can be anything, really - I made mine so that the first name cannot be "foo").
    4). Test everything using the BC tester if you like.
    5). In the UI project, create a new JSPX page.
    6). Drag the updatable VO on to your page as an updatable af:table.
    7). Put an af:commandButton on the page. Bind its Action or ActionListener to a method in a new backing bean. Put some simple code (I used System.out.println) in the backing bean method.
    8). Run the jspx page.
    9). Put some invalid data in (e.g. "foo" in the first name field) and click the af:commandButton. Verify that you get an error message and that the Action/ActionListener method DOES NOT fire. So far, so good.
    10). Now, to demonstrate the problem. First, look at the page definition for the jspx file. Identify the first attribute that is mentioned (in my case, it was the employee id).
    11). Go to the updatable view object and make the attribute from #10 read-only or updatable when new only.
    12. Now, repeat step 9 - you should see the error message AND also see that the Action/ActionListener method was executed. You will also see in the messages window that ADF attempted to set the value of the read-only attribute, and thus got a ReadOnlyAttrException.
    This issue only happens if the first attribute mentioned in the table binding is read-only. A workaround would simply be to re-order the attributes in the table binding of the pagedef so that the first attribute isn't read-only.
    Don't ask how I figured this out ;)
    Best,
    John

    Hi Frank,
    Yes, I simply scripted it out this way to contrast the behaviour if the first attribute was read-only vs not read-only. I found the issue on a page in our app that was simply drag-and-drop the VO from the data control on the page.
    It's quite annoying, because our particular use case that hit this error is a "save" button on the page. If the commit operation doesn't return any errors (and it doesn't in this use case!), we add a JSF message saying "save successful" - then the attribute errors are further added later in the page lifecycle, so we get 3 messages: "Save successful" and "Fix this error" and "Tried to set read-only attribute" - quite confusing to the end-user when the only message they should see is "fix this error."
    At any rate, the fix is to simply re-order the attributes in the page definition - that doesn't affect the UI at all, other than to fix this issue.
    John

  • I mounted my external hard drive to a pc and now I don't have edit or write permissions on my Mac (read only). How do I get them back without erasing the drive?

    Hello all, I am a photographer and have my portfolio, edited and raw images backed up on a Seagate Free Agent External Hardrive. I mounted my external hard drive to a pc recently and now I don't have edit or write permissions to it on my Mac (read only). How do I get them back without erasing the drive and loosing my valuable work?

    If you re-format it you will lose all the data on it!!!!! So make sure you have backed up the drive or moved all the data on it to another external HD or the internal HD on your iMac.
    Below is an Apple Advice letter that explains how to format an external HD, it's written for Aperture but you can use the instructions to formate any external HD.
    http://support.apple.com/kb/HT3509

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

  • Read only attributes turned on by Windows 10

    Two days after installing Windows 10, all of my data files are suddenly read only. I cannot save any files. I went to setting, turned the read only attribute box off, and the system seemed to be turning them all of. At least it ran through the entire data directory file by file. When I went to open a file in my word processor, it came up as read only, and of course I could no longer save the file junder anyu name. A check of the attribute box in settings showed that read only had been turned on. This makes the entire system useless and puts me out of business. Fortunately I still have my old XP netbook so I can continue working, albeit at a much slower pace.

    By default, OU1 is mapped to directory attribute "ou". It's not modifiable via calendar. You could use the other OUs attribute (OU2-OU4) for this purpose.
    -rtan

  • Help.  After updating my software my external disc is "read" only.  How do I change this back to read and write?, help.  After updating my software my external disc is "read" only.  How do I change this back to read and write?

    Help.  After updating my software my external disc is "read" only.  How do I change it back to Read and Write?
    Thanks

    Have you formatted it for Mac using Disk Utility?
    If not, open Disk Utility (Applications>Utilities folder) and select the drive to the left. Make sure that you select "Mac OS Extended (Journaled)" and then the erase button.
    If you have already formatted the drive, call back...
    Clinton

  • I am connecting an external USB HDD and I can see it on my Apple Macbook Air. BUT this drive is READ only. How can I write to it?

    I am connecting an external USB HDD and I can see it on my Apple Macbook Air. BUT this drive is READ only. How can I write to 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 Partition 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.
    Steps 4-6 are optional but should be used on a drive that has never been formatted before, if the format type is not Mac OS Extended, if the partition scheme has been changed, or if a different operating system (not OS X) has been installed on the drive.

  • Updating read only attributes of class/method

    Hi,
    I have this standard class CL_QNAO_OBJECT, with MS_DATA as read only attribute.I have written my own class in an enhancement within this class and now trying to edit this MS_DATA within my own class. but I get an error sayng "write access to the READ only attribute is not allowed", is there any way I can change it?
    The attribute MT_STACK is changing attribute/parameter to my class, which in turn has this ms_data structure.
    Note - I did search sdn before I put it here, I got couple of threads which I dont find suitable for me.
    Thanks in advance,

    Since MT_STACK is also type ref to CL_QNAO_OBJECT, my earlier guidance still hold true.
    Step 1 - When you enhance the class, you would see empty table lines in the class editor. Create a new method in that.
    Public Instance Method name Z_SET_MS_DATA
    Importing parameter IS_DATA TYPE QNAOD_AOBJECT
    Method implementation:
      ME->MS_DATA = IS_DATA
    Step 2 - In you enhancement in the class, call the method to set the data
      Data: ls_Data type QNAOD_AOBJECT
      Ls_data-field1 = ‘xyz’.
      core_object->mt_stack->z_set_ms_data( ls_Data ).
    Regards,
    Naimesh Patel

  • Updating Media Content - stuck at Reset Read Only Attributes.

    I'm currently using - MDT 2010 on Windows 7 on a Virutal Machine. I deploy my images using a USB stick. (Advanced Configuration / Media). The process of creating a selection profile, Creating Media, and updating my media works perfectly.
    I wanted to move to MDT 2012 SP1 on Server 2008 R2 platform. So I installed AIK, MDT 2012 SP1, etc on a Server 2008 R2 Virtual Machine. I setup the MDT same way as my current working model and it was looking good. Next I created my Selection Profile
    and Media. Then when I ran "Update Media" it seems to work until it gets stuck at the last process "Reset Read Only Attributes"
    Looking for any advice on why it might keep getting stuck here. The only way I can exit the process it to "Stop Execution"
    Reminder - on my Win 7 / MDT 2010 box, it works fine and this process completes.
    Thanks for any feedback.

    What is happening here is that MDT Litetouch console is calling OSCDIMG.exe, and that program has stopped.
    Sadly, MDT does not capture the OSCDIMG.exe output for analysis, so we are stuck here.
    I have personally encountered problems with OSCDIMG.exe running on my Windows 8 box, where images created with source files from the C: pass, however when the source files are placed on a "Storage Spaces" volume, the program hangs. No response from MSFT.
    If you need help diagnosing the problem, you can run OSCDIMG from a console window, just to see what the output is
    OSCDIMG.exe -u2 -udfver102 -m -o -h -w4 "<MediaSrc>" %temp%\Dest.iso
    Longer:
    OSCDIMG.exe -u2 -udfver102 -m -o -h -w4 -yo"<Path_to_Bootorder.txt>" -bootdata:2#p0,e,b"<Path_TO_ETFSBoot.com>" #pEF,e,b"<Path_TO_EFIsys.bin>" "<MediaSrc>" %temp%\Dest.iso
    -k
    Keith Garner - Principal Consultant [owner] -
    http://DeploymentLive.com

  • Public Read-Only Attributes

    I'm trying to pick up ABAP on my own by reading through various resources I've collected and writing my own programs.  Unfortunately I don't have an experienced ABAP guru to ask questions of.  I'm hoping someone can help me with the following:
    Based on my other programming experience I know that it is very common for object attributes to be defined as private and then accessor/mutator (getter/setter) methods to be defined to provide access to the attribute.
    In my study I noted that ABAP allows attributes to be made public but declared to be read-only.  This would seem to permit a structure where accessor/getter methods are not needed (the attribute can be read externally) and one would only have to define a mutator/setter method.
    My question:  what is typically done in 'real-world' programs?  Is there any reason why using read-only would be more or less preferred?
    Thanks for any help that can be provided.

    Hello Tony
    Below I have listed a few examples from standard ABAP classes. I cannot say whether you find more public read-only attributes than GETTER methods - you will find examples for both of them.
    I could imagine that before it was possible to use the functional method call in ABAP that public read-only attributes were an alternative to the "verbose" method cal (see below)l.
    " RE-FX: Contract
    CL_RECN_CONTRACT-IF_RECN_CONTRACT~MS_DETAIL   " public read-only attribute
    " MM: Material
    CL_IBASE_R3_MATERIAL->GET_MARA  " GETTER method
    "FI/CO: Company Code
    CL_REEXC_COMPANY_CODE=>GET_DETAIL  " GETTER method
    " HR: Employee
    CL_PT_EMPLOYEE->IF_PT_EMPLOYEE~PERNR   " public read-only attribute
    " Assumption: CL_IBASE_R3_MATERIAL would have
    " a public read-only attribute MS_DETAIL (of TYPE mara)
    " Normal method call (verbose):
    CALL METHOD go_material->GET_MARA
      RECEIVING
        R_MARA = ls_mara.
    " Functional method call:
      ls_mara = go_material->get_mara( ).
    " Accessing public attribute
      ls_mara = go_material->ms_detail.
    Regards
       Uwe

  • TS1550 Back up to time machine failed.  Error, "Files can't be copied onto the backup disk because it appears to be read-only". Back up has been working.  drive is not read only.  How do I fix this?

    Back up to time machine failed.  Error, "Files can’t be copied onto the backup disk because it appears to be read-only". Back up has been working.  drive is not read only.  How do I fix this?

    Hello,
    http://pondini.org/TM/C6.html

  • HT201250 My time machine back has been working perfectly well until yesterday when it failed. The error message I get is Files can't be copied onto the backup disk because it appears to be read-only. How do I fix it?

    My time machine back has been working perfectly well until yesterday when it failed. The error message I get is Files can’t be copied onto the backup disk because it appears to be read-only. How do I fix it?

    Hello,
    http://pondini.org/TM/C6.html

  • Creating row in a recursive view having read-only attribute

    Hi All,
    I am using Oracle JDeveloper 11g Release 2.
    I have a view AppMenusVO with the participation of following entities:
    1. AppMenusEO *(Updateable)* with columns like MenuId, MenuName, MenuIcon, MenuParentId, MenuTaskflowId
    2. AppTaskflowsEO *(Reference)* with columns as TaskflowId, TaskflowName, and TaskflowURL
    3. AppMenusEO as ParentMenus *(Reference)* with columns as ParentMenuId, ParentMenuName
    Next I created a One..Many view link where source and destination entity is the AppMenusVO based on relation (MenuId=MenuParentId). The name of the view accessor is MenuChildren.
    This view is used to create af:treeTable component on the adf page. In order to create new row I am following the blog entry at http://jobinesh.blogspot.com/2010/05/crud-operations-on-tree-table.html.
    I created a business method in the application module with the following specification:
        public void createMenuChildren(RowIterator ri, Key selectedNodeKey) {
            if (ri != null && selectedNodeKey != null) {
                Row[] found = ri.findByKey(selectedNodeKey, 1);
                if (found != null && found.length == 1) {
                    System.out.println("Node found for : " + selectedNodeKey + " Parent Id : " +
                                       found[0].getAttribute("MenuParentId"));
                    Row foundRow = found[0];
                    RowSet childRows = (RowSet)foundRow.getAttribute("MenuChildren");
                    while (childRows.hasNext()) {
                        Row r = childRows.next();
                        System.out.println(r.getAttribute("MenuName"));
                    Row childrow = childRows.createRow();
                    childrow.setAttribute("MenuParentId", foundRow.getAttribute("MenuParentId"));
                    childRows.insertRow(childrow);
                } else {
                    System.out.println("Node not Found for " + selectedNodeKey);
        }When I invoke this method from the adf page it is giving the exception An attemp is made to validate an already invalid region site.
    The Jdeveloper console is also throwing the exception oracle.jbo.ReadOnlyAttrException: JBO-27008: Attribute ParentMenuName in view object AppMenusVO_MenuChildren_ParentMenusVL_AppMenusVO cannot be set.
    I searched Google and OTN but unable to resolve the error.
    The solution I have tried are:
    The default activity on the BTF is marked and is pointing to a valid view.
    Set the activation property of region to immediate ... etc.
    BUT the issue persists.
    Any help to create row programmatically in recursive view where some of the attributes are read-only?
    Thanks in advance
    Best Regards
    Bilal

    Hi Frank,
    Thanks for the response.
    The updateable property of ParentMenuName attribute is Never and is being disabled so I am unable to change its value. Moreover, never in my code I am changing value of this field. What I am doing is trying to create a new row and then insert it into rowset. I don't know how to proceed further.
    One more thing is that I have an LOV on another column MenuParentId which returns value in this field as well. It might be the reason? ...
    Any help will be highly appreciated.
    Thanks
    Regards
    Bilal

  • Permit user to administrate Model AND have read-only attributes

    This issue concerns SQL Server Master Data Services 2012
    I have a scenario where the same user is handling data and doing version management. Now I want to make one attribute in one specific entity read-only as I want to make sure the attribute is never changed.
    The problem is, as soon as I set the read-only privilege on the attribute, the user
    loses all administrative rights on the entire model. This, of course, includes version management.
    I've tried working around the issue by making sure the user has explicit update permissions on both the model and the entity (and all attributes except the one I need read-only). But the result is the same. 
    Does anyone know a workaround?

    Hi,
    I think if you explicitly grant the update permissions, it should work. According to the MSDN doc. Could you please check if the user belongs to other hierarchy?
    When a member belongs to multiple hierarchies
    Two or more hierarchies can contain the same member.
    •If one hierarchy node is assigned Update permission and another is assigned Read-only, then the members in the node are Read-only.
    •If one hierarchy node is assigned Update or Read-only permission and another node is assigned Deny, then the members in the node are not displayed.
    Hierarchy Member Permissions (Master Data Services)
    https://technet.microsoft.com/en-us/library/ee633750(v=sql.110).aspx
    Model Object Permissions (Master Data Services)
    https://technet.microsoft.com/en-us/library/ee633764(v=sql.110).aspx
    Regards,
    Doris Ji

Maybe you are looking for

  • Scheduled job in oracle database 10g release 2

    I have scheduled a batch job job to run once a day at 8.30 in the morning but the program runs twice a day, onca at acheduled time and once in the evening 18.30. I am unable to find any reference to the batch program in the job any where. Database ve

  • SOX report in SAP

    Hi all, We recently started implementing SAP and we started now with meetings to talk about SOX. I was wondering if there are any standard SAP reports to check users and authorizations on SOX compliant? We do have a customized report on an old landsc

  • Invoice for 100 qty

    Hi all, My cleint is purchasing bottles, for which they are maintaining 2% transportation loss. 1.I am creating purchase order for 100qty. 2.By the time of GR i came to know that 2 bottles have been broked.(2% breakage allowed) 3.I will do GR for 98

  • Global Properties versus file under WEB

    I have a situation where I am using a central MII server to use virtual xacute queries to retrieve data from a number of remote plants.  For some reason, the client does not want to use Global properties to set Remote site specific properties.  In or

  • My mbp 2009 boots with chime then black screen

    Good New Year folks Today, I turned on my mbp and the problem is, it chimes, boots up then the screen goes black. The caps lock key lights up, the volume control makes the usual noise going up and down. I have no keyboard illumination. Pressing vario