"array $aFields = null" structure

More
6 months 1 week ago #155555 by jppazmin
jppazmin created the topic: "array $aFields = null" structure
Hi.

I need to use the export_responses_by_token function that is part of the remotecontrol_handle. the export_responses_by_token receives an array $aFields = null (this is optional). I want to know how should I define the structure of this array in order to specify what to export. I dont need everything from the DB, I just need some specific fields.

thanks in advance for your help.

Please Log in to join the conversation.

More
6 months 1 week ago #155641 by DenisChenu
DenisChenu replied the topic: "array $aFields = null" structure
if field is null : export whole fields.

If it's an array : $aFields = array('token','submitdate') for example

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: jppazmin

Please Log in to join the conversation.

More
6 months 1 week ago #155644 by jppazmin
jppazmin replied the topic: "array $aFields = null" structure
Thank you DenisChenu,

Thank you but I miss specificying something... if I want execute from java code how can do this?

Please Log in to join the conversation.

More
6 months 1 week ago #155647 by jppazmin
jppazmin replied the topic: "array $aFields = null" structure

DenisChenu wrote: if field is null : export whole fields.

If it's an array : $aFields = array('token','submitdate') for example



Thank you DenisChenu,

Thank you but I miss specificying something... if I want execute from java code how can do this?

Please Log in to join the conversation.

More
6 months 1 week ago #155661 by DenisChenu
DenisChenu replied the topic: "array $aFields = null" structure
I didn't know java, but java have arry no ?

[token','submitdate'] for example

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!