Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

The built-in WebData Editor allows to define the data struct for JSON,  XML, HTML, or Text, content. 

In the Web Data Editor, you can create, modify, or delete data entries according to your project requirements.

You can write a webdata in JSON, XML, HTML or a plain Text. The Encoding drop-down menu is read-only on the WebDataEditor. To edit it, go to Reports/WebData, and change the Encoding value for the selected WebDataWebData Editor, the definition of the data format, but be made when creating the WebData object.

On this page:

Table of Contents
maxLevel3
stylenone


Selecting the WebData object

  1. Go to Reports / WebData and select one object in the Table or Create a new one.
Acessing the WebData Editor
  1. Go to Reports / Web Data Editor.
  2. Select the WebData entry you want to edit from the list
    • From the drop-down list in the main toolbar, select the webdata  created in WebData window you want to edit. To create a new task or class, see Report WebData earlier on this page.

    • If needed, select a different text language from the code editor toolbar. 

    • You can also format your code to be more readable. To do so, click Auto Format. A prompt will appear; click OK.

    • Click Save.

    When Selecting Reports → WebData Editor,  the Code Editor environment is displayed with the contents of the last selected WebData.

    While in that environment, you can change the WebData are editing using the ComboBox at the top area.

  3. . The selected WebData content will be used by the editor.

In order to select other documents, or create new ones, the ComboBox and the Document Toolbar in top of the editor can be used. 


Editing The Content

Image Added

Add binding to Real-Time Tags

When greening the file with the Data (or sending to a WebService), you replace parts of the text by Tags, just using the same syntax or ReportForms, embracing the TagName with curly brackets. 

Eg.:   Replace "Name" :  "John Robinson" by  "Name" : "{{Tag.MyTagWithTheName}}"

The value of Tag.MyTagWithTheName will be using when greeting the file or data package.

When loading files from disk, or receiving data packages from WebSerices, the operation is reversed. if Tags are used, they will be populated with contents after parsing the contents of the received dataCheck the WebAccess REST API page for additional information.

In this section:

Page Tree
root@parent
spacesV10