Hello,
the same question was noticed by one of your colleagues in the Siemens support database.
I had a look at it right now.
The problem is that a limit for historical alert requests is reached and therefore you do not get a result.
Here is the answer to your questions, the same information got your colleague:
I copied the project and started the function at the panel.
Before calling the script I modified it to call the function getLastError() after the dpGetPeriod() to see if an error occured.
dyn_errClass deC_err;
int res = alertGetPeriod(
t1,
t2,
alertTimes,
counts,
":_alert_hdl.._text", dpnames, alarmTexts,
":_alert_hdl.._ack_state", ackState1, ackState2,
":_alert_hdl.._ack_time", ackTime1, ackTime2,
":_alert_hdl.._alert_color", alertColor1, alertColor2);
deC_err = getLastError();
if(dynlen(deC_err) > 0)
throwError(deC_err);
else
DebugTN("dynlen result",dynlen(alertTimes));
With this modification you get the following error:
WCCOAui (1), 2014.06.02 15:11:08.257, IMPL, SEVERE, 54, Unexpected state, DataManRequestHandler, constructAnswerMsg, request returns an error (too many values?)
An explanation for this log-message can be found in the ETM Portal --> FAQ --> Log-Messages:
https://portal.etm.at/index.php?view=it ... &Itemid=54
Best Regards
Leopold Knipp
Senior Support Specialist