{"id":13068,"date":"2018-06-15T08:05:51","date_gmt":"2018-06-15T13:05:51","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagex3\/?p=13068"},"modified":"2023-01-17T07:26:46","modified_gmt":"2023-01-17T07:26:46","slug":"checking-whether-class-instance-can-be-modified-in-sage-enterprise-management","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2018\/06\/15\/checking-whether-class-instance-can-be-modified-in-sage-enterprise-management\/","title":{"rendered":"Checking whether class instance can be modified in Sage Enterprise Management"},"content":{"rendered":"<p style=\"text-align: justify;\">In Sage Enterprise Management, we have a built-in &#8220;Isreadonly&#8221; property to check\u00a0whether the class instance can be modified.\u00a0This built-in property returns whether the properties of an instance can be modified or not. It can be tested but not modified.<\/p>\n<p><span style=\"color: #c71d22; font-size: 13pt;\"><strong>Syntax<\/strong><\/span><\/p>\n<ul>\n<li>If\u00a0MY_INSTANCE.isReadonly\u00a0is 1, properties cannot be modified. Any modification attempt will raise an error with error code 143.<\/li>\n<li>If\u00a0MY_INSTANCE.isReadonly\u00a0is 0, properties can be modified and accessors will be triggered. This is the default value when a class is instantiated.<\/li>\n<\/ul>\n<p><span style=\"color: #c71d22; font-size: 13pt;\"><strong>Parameter Details<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\"><strong>MY_INSTANCE<\/strong>: name of the name of the class instance which is to be tested. If the value is 0 then the Instance can be modified.<\/p>\n<p>Kindly refer to the below snippet of code for better understanding.<\/p>\n<p><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2018\/06\/class-instance-can-be-modified.png\"><img decoding=\"async\" class=\"size-full wp-image-13069 aligncenter\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2018\/06\/class-instance-can-be-modified.png\" alt=\"class instance can be modified\" width=\"495\" height=\"73\" \/><\/a><\/p>\n<p>Hope this Helps!<\/p>\n<p><span style=\"font-size: Medium;\"><strong>About Us<\/strong><\/span><br \/>\nGreytrix is a one-stop solution provider for Sage ERP and Sage CRM needs. We provide complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development and implementation expertise.<\/p>\n<p><a href=\"http:\/\/www.greytrix.com\/\">Greytrix<\/a>\u00a0has some unique solutions of\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/sage-crm\/gumu-sage-x3-integration\">Sage X3 integration with Sage CRM<\/a>,\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/sage-x3\/gumu-x3-salesforce-integration\">Salesforce.com<\/a>, and\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/magento-sage-integrations\/sage-x3-magento\">Magento eCommerce<\/a>\u00a0along with Sage X3 migration from Sage 50 US, Sage Pro, and QuickBooks. \u00a0We also offer best-in-class\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/erp-development\/sage-x3\">Sage X3 customization and development services<\/a>\u00a0to Sage business partners, end users, and Sage PSG worldwide.<\/p>\n<p>For more information on Sage X3 Integration and Services, please contact us at\u00a0<a href=\"mailto:x3@greytrix.com\">x3@greytrix.com<\/a>. We will be glad to assist you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Sage Enterprise Management, we have a built-in &#8220;Isreadonly&#8221; property to check\u00a0whether the class instance can be modified.\u00a0This built-in property returns whether the properties of an instance can be modified or not. It can be tested but not modified. Syntax If\u00a0MY_INSTANCE.isReadonly\u00a0is 1, properties cannot be modified. Any modification attempt will raise an error with error\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2018\/06\/15\/checking-whether-class-instance-can-be-modified-in-sage-enterprise-management\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[325,326,1115,1293],"class_list":["post-13068","post","type-post","status-publish","format-standard","hentry","category-features","tag-class-instance-check","tag-class-instance-modification","tag-isreadonly-property","tag-modify-class-instance"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/13068","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/comments?post=13068"}],"version-history":[{"count":1,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/13068\/revisions"}],"predecessor-version":[{"id":26020,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/13068\/revisions\/26020"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=13068"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=13068"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=13068"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}