UpdateDISE

From DISE KnowledgeBase

Jump to: navigation, search

Overview

With UpdateDISE you can setup a user interface to be used for creating text files with custom content. The application is meant to be a more controlled application instead of notepad or similar text editors. The text file(s) created by the application can then be used with Data connections in DISE.

UpdateDISE.png

Usage

When UpdateDISE is configured the actual usage is very easy. Select the Page you want to use on the left hand side, fill in all the fields on the right hand side and then click on "Write file" to save the data to the output file. If you uncheck the "Show this page" option then a empty file will be written. You can change the language of the user interface from the Language menu.

Configuration

Configuration of UpdateDISE is a bit more complicated. If you have any problems getting started, then please contact us and we will help you out. The UpdateDISE data is separated in two files:

  • UpdateDISE.settings
Contains all pages and items.
  • UpdateDISE.data
Contains the text and selections of all pages and items.

If you delete the data file then all text will be reset to the default. And if you do any changes to the settings the data file will be updated automatically.

To change the interface in UpdateDISE you edit the settings file. The settings file contains one Pages chunk, that in turn contain several Page chunks. Each page then contains a Items chunk that contains several Item.

  • Pages
    • Page
      • Items
        • Item
        • Item
        • Item
    • Page
      • Items
        • Item
        • Item
        • Item

Each page will be displayed to the left in the UpdateDISE user interface. And when you select a page the items in that page will be shown to the right.

Page

FileName="Message1.txt"
UseThis=1
Caption="Message 1"
Items
{
    Item
    {
        ....
    }
}

FileName

Filename that will be used as output for all items on this page
If it is a file name without path, the file will then be written in the UpdateDISE directory.

UseThis

Corresponds to the "Show this page" setting

Caption

The name of this page, that will be shown in the page list.

Item

Item
{
    X=10
    Y=10
    W=400
    H=21
    Type=Edit
    Caption="Title"
    Preset=""
    FontSize=8
    RowBreak=1
    FileName=""
}

X, Y

Position of this item top left corner on the page, in pixels
X=0 corresponds to the left on the page, Y=0 to the top of the form.

W, H

Width and Height of the item, in pixels.

Type

There are several different types of items that you can have on a page.
Edit
Single text line
Memo
Multiline text field
ComboBox
Multiple choices, drop down
ListBox
Multiple choices, list
Date
Select a date
Label
Just a label, not editable

Caption

The caption above of the item

Preset

For Edit and Memo this is the default data.
For ComboBox and ListBox this is a list with the different values possible (separated by ā€˜|ā€™)

FontSize

Size of the font

RowBreak

If this is 0 then all rowbreaks will be replaced by ā€˜\nā€™.

FileName

An alternative file to put text in for only this component.