Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Application Server

Set a WebViewEngine to read-only

  • Last UpdatedAug 28, 2024
  • 2 minute read

By default,ViewApps hosted on a WebViewEngine are read-write--users running a ViewApp can both see data from the objects tracked by the ViewApp and set values for or send commands to the objects. You can change this so that ViewApps hosted by the engine are read-only. To do so, you must edit a configuration file on the platform that hosts the engine.

You can perform the procedure below either before or after deploying the WebViewEngine object to the platform. If you do it after deploying the WebViewEngine object, you must redeploy the object after saving your changes.

Set a WebViewEngine to read-only

  1. On the platform that hosts the WebViewEngine object, in the folder that hosts the data access service, open the file appsettings.json in a text editor. By default, the folder path is C:\Program Files (x86)\Common Files\ArchestrA\Services\dataaccessservice.

  2. Make a copy of the file for safekeeping.

  3. In the original file, find the key IsWriteEnabled. By default, this key is set to true.

    WebViewEngine appsettings.json

  4. Set the key to false.

    Important: The key value must be either true or false, in all lower case. If there is an upper case character in the value, you will receive a message saying the JSON is incorrectly formatted.

  5. Save your change and close the file.

    Note: appsettings.json may be set to read-only. If this is the case, save a copy of the file in another location, make and save your changes in the copy, then copy or move the saved file back to the proper folder, replacing the original file.

  6. Deploy or redeploy the WebViewEngine object.

TitleResults for “How to create a CRG?”Also Available in