Hi,
The following docbasic script works fine:
query_str2 = "select r_last_performer from dm_workflow where r_object_id='" & WorkflowId &"'" & " ENABLE (ROW_BASED)"
query_id$=dmAPIGet("query,c," & query_str2) If ( (query_id <> "") And (dmAPIExec("next,c," & query_id ) > 0) ) Then
ECRLastPerf=dmAPIGet("get,c," & query_id & ",r_last_performer")
End If
I get a value in to "ECRLastPerf" from 'if' statement. dmAPIGet.... is extracting the attribute 'r_last_performer'.
I have a similar DQL as follows:
query_str3 = "select group_name from dm_group where any i_all_users_names='" & ECRLastPerf &"'" & " and group_name like 'fotl_"'
query_id$=dmAPIGet("query,c," & query_str3) If ( (query_id <> "") And (dmAPIExec("next,c," & query_id ) > 0) ) Then
ECRLastPerfGroup=dmAPIExec("next,c," & query_id )
End If
The 'if' block is not returning a value.
Any body can please help me what is wrong in there? The mistake must be either in query_str3 or in 'if' block.
Please share your knowledge and experiences for figuring this out.
Thanks.
ta