mdsol / rwslib

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

Fetching Dynamic Search List #130

Closed vagarwal77 closed 2 years ago

vagarwal77 commented 2 years ago

On a eCRF, we have a DSL (Dynamic Search List) field. How, we can get list items dynamically ?

  <ItemDef OID="AE_SAE_XX01.M_AEPID" Name="M_AEPID" DataType="text" mdsol:VariableOID="M_AEPID" Length="180" mdsol:Active="Yes" mdsol:ControlType="Dynamic SearchList" mdsol:IndentLevel="2" mdsol:SourceDocument="Yes" mdsol:SASLabel="Related AE Record" mdsol:Visible="Yes">
isparks commented 2 years ago

You want to get the items so that you can make a submission of a valid item? i.e. you want to get the list for the field so that you can then make a new ODM post to update the field?

As far as I know, there is no endpoint for that. You can't get it with a Rave Web Services request.

vagarwal77 commented 2 years ago

Thanks @isparks Actually, as per ALS, it is executing a custom function. Is there a way, if we know custom function name in C#, to execute particular customer function via API?

isparks commented 2 years ago

Yes, in Rave you can run any custom function with the CustomFunction.PerformCustomFunction API. But there is no RWS method to call this directly.

vagarwal77 commented 2 years ago

Thats a great news @isparks Unfortunately, i can not access to - image

Do you have API payload details for me to try CustomFunction.PerformCustomFunction on the same lines as below? https://celgsandxxx.mdsol.com/ravewebservices/datasets/VersionFoldersWithForms.odm?studyoid=XXXXXX-001Test&metadataversionoid=XXX

isparks commented 2 years ago

Sorry @vagarwal77, you misunderstand me. Within CustomFunction in Rave you can use CustomFunction.PerformCustomFunction to run any custom function, including Dynamic Search List CF.

But a Custom Function can only be initiated by an Edit Check and edit checks only trigger on data entry in Rave.

There is no https://xxx.mdsol.com/ravewebservices/run_my_custom_function endpoint

glow-mdsol commented 2 years ago

What he said! If you need access to the documentation you can visit https://learn.mdsol.com and setup an iMedidata account by following the steps there. I'm going to close this.