I am trying to read the where clause to do some calculations in the post processing of getlist in a baq. I see the where clause in the paramDataSet in the trace file, but can’t figure out how to access that information.
I am currently trying to save the information using the log BAQ routine that @jawt posted and then read it out in the baq.
I got this to work. I put UD02 checkboxes on the tracker view and then passed them in the DynamicBAQ.ExecuteParamatized to the CallContextBPMData and then I can use that in get list to populate the baq results.
I can now calculate any field I want in getlist of any baq. Thanks Rob and to @kentreardon for the beginning of this process.
Greg
for each ttQueryTable no-lock.
If Index(ttQueryTable.WhereClause,"UD02.CheckBox01 >= True") > 0 Then
ttCallContextBpmData.Checkbox01 = True.
If Index(ttQueryTable.WhereClause,"UD02.CheckBox02 >= True") > 0 Then
ttCallContextBpmData.Checkbox02 = True.
If Index(ttQueryTable.WhereClause,"UD02.CheckBox03 >= True") > 0 Then
ttCallContextBpmData.Checkbox03 = True.
If Index(ttQueryTable.WhereClause,"UD02.CheckBox04 >= True") > 0 Then
ttCallContextBpmData.Checkbox04 = True.
If Index(ttQueryTable.WhereClause,"UD02.CheckBox05 >= True") > 0 Then
ttCallContextBpmData.Checkbox05 = True.
message " where clause " + string(sWhere) + " check boxes " + string(ttCallContextBpmData.Checkbox01) + string(ttCallContextBpmData.Checkbox02) + string(ttCallContextBpmData.Checkbox03) + string(ttCallContextBpmData.Checkbox04) + string(ttCallContextBpmData.Checkbox05).