getDynAnyType() function

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
2 posts • Page 1 of 1
vy.nguyenthanh@biendongco.vn
Posts:13
Joined: Wed Sep 18, 2019 10:49 am

getDynAnyType() function

Post by vy.nguyenthanh@biendongco.vn »

I used a string to query alerts of a DP. The result is a dyndyn array with 4 columns and I'd like to convert all elements in the fourth column to a dyn array so I used getDynAnyType() to resolve but it seems not work in my case. The code is below. Can anyone help me?. Thanks in advance!

void AlertColor(string dp, dyn_dyn_anytype color)
{
string sFilterQuery = "SELECT ALERT '_alert_hdl.._alert_color','_alert_hdl.._act_state' FROM '" +$DP+"'";
dyn_dyn_anytype ddaQueryResult;
dyn_anytype daState;
dpQuery(sFilterQuery, ddaQueryResult);
daState = getDynAnyType(ddaQueryResult,4);
}

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: getDynAnyType() function

Post by leoknipp »

I have tested it with the result of a dpQuery() and getDynAnytype() works.
Did you check, e.g. with getLastError(), if the dpQuery() returned a correct result?

Best Regards
Leopold Knipp
Senior Support Specialist

2 posts • Page 1 of 1