Load script
Time to complete: 2 minutes

Existing data model

To ensure that the storing of data works smooth it is good practice to wrap your existing data model load into the following if statement.
1
If not IsPartialReload() then
Copied!
<Existing data model load script>
1
end if
Copied!
Just insert it at the very beginning of your data load and in the end. You can have as many script sections included between the then and end if statements as you like.
Example:
1
If not IsPartialReload() then
2
FEATURES:
3
LOAD
4
CASEID,
5
COUNTRY
6
FROM [lib://Komment/Call_Center.xlsx]
7
(ooxml, embedded labels, table is Sheet1);
8
9
End if
Copied!
If you use the autoCalender script you need to have this sit outside the "if not ispartialreload() section". e.g. starting after the "End if" in line 9 in the example above.

Adding Komment fields

Before you start configuring Komment in the User Interface you need to define if any new fields are to be used as an editable field.
Still in the load script:
  1. 1.
    Find an existing data table for which you want your Komment fields to be related to.
  2. 2.
    Add new lines for each of these fields using the following notation null() as Comment
  3. 3.
    Reload the application after you've added the needed fields.
1
CASES:
2
LOAD
3
CASEID,
4
Country,
5
Severity,
6
//Newly defined input fields
7
Null() as Status,
8
Null() as Action,
9
Null() as Date
10
FROM [lib://Komment/Call_Center.xlsx]
11
(ooxml, embedded labels, table is Sheet1);
Copied!
If you have all the fields you need in your current data e.g. if you want to be able to edit the Severity field and this is already in your data - just load it as you'd normally would.
You can also set a default value instead of Null(). E.g. for a status field you could insert 'Pending' as Status