Question:
Hi, I'm trying to get the QUERY property of a DataProvider Object, but can't seem to get it. Can anyone tell me if this code is ok?
Thanks!
var currentQuery = SAPBWGetItemProp("DP1");
var queryName;
if (currentQuery != null)
{ for(i=1; i<currentQuery.length; i++)
{ if (currentQuery[i][0] == "QUERY")
queryName = (currentQuery[i][1]);
}
}
_________________
What does not kill you makes you stronger...
(Unless you are bleeding profusely)
Answer:
Hi
Im am bit rusty on my java syntax but it seems Your variable currentQuery is not defined as an array []. And it looks like You try to get an array value from it in Your statement currentQuery[i][1]