InquisitWeb : Batch with sessions parameters from url ?


Author
Message
siceta
siceta
Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)
Group: Forum Members
Posts: 4, Visits: 12
Dave - 12/7/2022
siceta - 12/7/2022
Good morning

I am currently working on a research project bridging RedCap and Inquisit.

The experiment includes 3 online Inquisit sessions randomly assigned to participants. This assignment is done in RedCap.

My current batch file is :
<batch>
/ sessions = (1 of 3)
/ file="categoryswitchtask_fr_en.iqx"
</batch>

<batch>
/ sessions = (2 of 3)
/ file="stopsignaltask2019_fr_en.iqx"
/ file="towertest_d_kefs.iqx"
/ file="minutediscountingtask_fr_en.iqx"
</batch>

<batch>
/ sessions = (3 of 3)
/ file="emotionalgonogo_french.iqx"
/ file="attentionalcueing_fr_en.iqx"
</batch>

Is there any way to assign the session order using a parameter in the URL from redcap to inquisit like I can for the participant id?

Thanks for your help!




Yes. Sending sessionid=1 as URL parameter will launch the 1st session, sending sessionid=2 will launch the 2nd, and sessionid=3 will launch the 3rd.

An example you can try is here:
https://mili2nd.co/hnac?subjectid=exampleparticipant01&sessionid=3 (will execute a script called "c.iqx")
https://mili2nd.co/hnac?subjectid=exampleparticipant01&sessionid=1 (will execute a script called "a.iqx")
https://mili2nd.co/hnac?subjectid=exampleparticipant01&sessionid=2 (will execute a script called "b.iqx")

The setup of the underlying batch script is analogous to yours.



It's so easy! Thank you! This is very helpful!
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 105K
siceta - 12/7/2022
Good morning

I am currently working on a research project bridging RedCap and Inquisit.

The experiment includes 3 online Inquisit sessions randomly assigned to participants. This assignment is done in RedCap.

My current batch file is :
<batch>
/ sessions = (1 of 3)
/ file="categoryswitchtask_fr_en.iqx"
</batch>

<batch>
/ sessions = (2 of 3)
/ file="stopsignaltask2019_fr_en.iqx"
/ file="towertest_d_kefs.iqx"
/ file="minutediscountingtask_fr_en.iqx"
</batch>

<batch>
/ sessions = (3 of 3)
/ file="emotionalgonogo_french.iqx"
/ file="attentionalcueing_fr_en.iqx"
</batch>

Is there any way to assign the session order using a parameter in the URL from redcap to inquisit like I can for the participant id?

Thanks for your help!




Yes. Sending sessionid=1 as URL parameter will launch the 1st session, sending sessionid=2 will launch the 2nd, and sessionid=3 will launch the 3rd.

An example you can try is here:
https://mili2nd.co/hnac?subjectid=exampleparticipant01&sessionid=3 (will execute a script called "c.iqx")
https://mili2nd.co/hnac?subjectid=exampleparticipant01&sessionid=1 (will execute a script called "a.iqx")
https://mili2nd.co/hnac?subjectid=exampleparticipant01&sessionid=2 (will execute a script called "b.iqx")

The setup of the underlying batch script is analogous to yours.



Edited 3 Years Ago by Dave
siceta
siceta
Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)
Group: Forum Members
Posts: 4, Visits: 12
Good morning

I am currently working on a research project bridging RedCap and Inquisit.

The experiment includes 3 online Inquisit sessions randomly assigned to participants. This assignment is done in RedCap.

My current batch file is :
<batch>
/ sessions = (1 of 3)
/ file="categoryswitchtask_fr_en.iqx"
</batch>

<batch>
/ sessions = (2 of 3)
/ file="stopsignaltask2019_fr_en.iqx"
/ file="towertest_d_kefs.iqx"
/ file="minutediscountingtask_fr_en.iqx"
</batch>

<batch>
/ sessions = (3 of 3)
/ file="emotionalgonogo_french.iqx"
/ file="attentionalcueing_fr_en.iqx"
</batch>

Is there any way to assign the session order using a parameter in the URL from redcap to inquisit like I can for the participant id?

Thanks for your help!




GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search