Applies To: |
|
Summary: |
The Cicode function PageSummary() cannot be
used with the xp_style Alarm template, which is stored in the
CSV_Include project. It was found that the first Cicode Object f(x)
used in the xp_style Alarm template has an AN number of 250 whereas
the first Cicode Object f(x) used in the Standard or other style
Alarm template has an AN number of 21. This Cicode Object f(x) used
in the Standard or other style Alarm template with an AN number of
21 is hard coded in the Cicode function AlarmSetInfo() that is used
when calling the PageSummary() function, hence the Cicode Object
f(x) used in the xp_style Alarm template with an AN number of 250
will not work. |
Solution: |
Create your own Cicode functions by
changing the names of the original functions so that there isn't
any conflict with the CSV_Include or Include projects, which are
included by default. Example 1: Hardcode the AN number of the Cicode object f(x) used in the xp_style Alarm template, which is 250, in the Cicode function AlarmSetInfo(...) that is used in both Cicode functions _PageSummary() and CSV_MM_PageSummary(). The Cicode functions would look something like this: FUNCTION MyPageSummary(INT nCategory = 0) STRING
sCSVMode; IF
sCSVMode
= "0"
THEN END FUNCTION INT ret=0; ret = PageDisplay(SummaryPage); SELECT
CASE
(ret) CASE
267,
277 CASE
ELSE END SELECT END FUNCTION INT iError; iError = CSV_MM_PageDisplay(msSummaryPage); IF
iError
= 0
THEN END Example2: STRING sCSVMode; sCSVMode = ParameterGet("Startup", "InitMultiMonitors", "0"); IF
sCSVMode
= "0"
THEN END FUNCTION INT ret=0; ret = PageDisplay(SummaryPage); SELECT
CASE
(ret) CASE
267,
277 CASE
ELSE END SELECT END FUNCTION INT iError; iError = CSV_MM_PageDisplay(msSummaryPage); IF
iError
= 0
THEN END |
Keywords: |
PageSummary,CSV_MM_PageSummary, AlarmSetInfo, xp_style |
Related Links
Attachments