mdsol / rwslib

Provide a (programmer) friendly client library to Rave Web Services (RWS).
MIT License
30 stars 13 forks source link

How to obtain query list on itemdata #135

Open religou opened 1 year ago

religou commented 1 year ago

Hello: I am now requesting queries on itemdata. Reading the all docs, can not find the method to request queries, just see the queries in item data as the additional attribute. If can, please tell me how to obtain them. Thanks a lot ~~

isparks commented 1 year ago

It's been a while since I looked at this. It's possible that there is some Configurable dataset for this but I'm not aware of one.

You can get queries (but it's quite a lot of work) by using the Audit Service. See this very old article.

https://techblog.mdsol.com/2014/12/23/reading-audit-events.html

You would be looking for the Datapoint query related events (see https://learn.mdsol.com/api/rws/included-audit-subcategories-in-rws-95587410.html)

Audit Category | Subcategory | Description 
Query | MigQueryStringChanged | A query string that has changed as a result of a CRF Migration.
Query | QueryAnswer | A query that has been answered.
Query | QueryAnswerByChange | A query that has been answered by data change.
Query | QueryCancel | A query that has been cancelled.
Query | QueryClose | A query that has been closed.
Query | QueryForward | A query that has been forwarded to another Marking Group.
Query | QueryOpen | A query that has been opened.
glow-mdsol commented 1 year ago

OK to close @religou ?