_ArrayView_Header_Run (Generic List Setup)

came across the Genric List cicode example (below) which uses the arrays functions to populate the generic lists which part of the sa_controls library. is anyone able to provide more info on where the _ArrayView functions are located? doesn't seem to appear in any of the include functions etc.

FUNCTION Test_GenericListFill(INT hAn)
   INT nRow = 0;
   INT nRows = 10;
   INT nColumn = 0;
   INT nColumns = 5;
   INT nOffset = 0;
   INT nOffset_Previous = 0;
   INT nDataColumns = 0;
   INT nDataRows = 0;
   INT hDataArray = -1;
   STRING sMapName = "";
   STRING sValue = "";

   IF (ArrayExistsByAn(hAn)) THEN
      _ArrayView_Header_Run(hAn);
      _ArrayView_VScroll_Run(hAn);
      _ArrayView_HScroll_Run(hAn);

      sMapName = ArrayGetMapNameByAn(hAn);
      hDataArray = MapValueGet(sMapName, "DataArray");
      nOffset_Previous = MapValueGet(sMapName, "Offset");
      nOffset = ArrayGetIntByAn(hAn, ARRAY_INFORMATION_COLUMN, ARRAY_INFORMATION_ROW, ARRAY_ZINDEX_ARRAY_YOFF);

      hDataArray = MapValueGet(sMapName, "DataArray");
      IF ((ArrayIsDirty(hDataArray)) OR (nOffset <> nOffset_Previous)) THEN
         nDataColumns = MapValueGet(sMapName, "DataColumns");
         nDataRows = MapValueGet(sMapName, "DataRows");

         FOR nRow = 1 TO nRows DO
            FOR nColumn = 1 TO nColumns DO
               sValue = ArrayGetString(hDataArray, nColumn - 1, (nOffset + nRow) - 1, 0);
               ArraySetStringByAn(hAn, sValue, nColumn, nRow, ARRAY_ZINDEX_CELL_VALUE);
            END
         END

         MapValueSet(sMapName, "Offset", nOffset);
         ArraySetIsDirty(hDataArray, FALSE);
      END
   END
END
Parents
  • the _AlarmList_Row_LeftClick function is the default function in the list_row_x10 genie.
    using the example code provided by Citect titled [Situational Awareness Projects > Customize a Project > Add a Generic List to a Page]. the list entry does not get highlighted when the left mouse button is invoked on the generic list entry.
    however in the default alarm page in (examplesa) leftclicking on the alarmlist highlights the entire row (its also using the same list_row_x10 genie)

    the main problem seems to be the sRecID = ArrayGetStringByAn(hArrayAn, ARRAY_INFORMATION_COLUMN,nRowOffset+nRow, ARRAY_ZINDEX_ROW_ID) is returning "" when the Generic list code example is used.

    with the alarmlist, the RecId is returned.
    seems like an issue with the initalisation of the generic array in the first place

    any advise?
Reply
  • the _AlarmList_Row_LeftClick function is the default function in the list_row_x10 genie.
    using the example code provided by Citect titled [Situational Awareness Projects > Customize a Project > Add a Generic List to a Page]. the list entry does not get highlighted when the left mouse button is invoked on the generic list entry.
    however in the default alarm page in (examplesa) leftclicking on the alarmlist highlights the entire row (its also using the same list_row_x10 genie)

    the main problem seems to be the sRecID = ArrayGetStringByAn(hArrayAn, ARRAY_INFORMATION_COLUMN,nRowOffset+nRow, ARRAY_ZINDEX_ROW_ID) is returning "" when the Generic list code example is used.

    with the alarmlist, the RecId is returned.
    seems like an issue with the initalisation of the generic array in the first place

    any advise?
Children
No Data