Checking whether class instance can be modified in Sage Enterprise Management

By | June 15, 2018

In Sage Enterprise Management, we have a built-in “Isreadonly” property to check whether the class instance can be modified. This built-in property returns whether the properties of an instance can be modified or not. It can be tested but not modified.

Syntax

  • If MY_INSTANCE.isReadonly is 1, properties cannot be modified. Any modification attempt will raise an error with error code 143.
  • If MY_INSTANCE.isReadonly is 0, properties can be modified and accessors will be triggered. This is the default value when a class is instantiated.

Parameter Details

MY_INSTANCE: name of the name of the class instance which is to be tested. If the value is 0 then the Instance can be modified.

Kindly refer to the below snippet of code for better understanding.

class instance can be modified

Hope this Helps!

About Us
Greytrix 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.

Greytrix has some unique solutions of Sage X3 integration with Sage CRMSalesforce.com, and Magento eCommerce along with Sage X3 migration from Sage 50 US, Sage Pro, and QuickBooks.  We also offer best-in-class Sage X3 customization and development services to Sage business partners, end users, and Sage PSG worldwide.

For more information on Sage X3 Integration and Services, please contact us at x3@greytrix.com. We will be glad to assist you.