Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

"array $aFields = null" structure

More
8 years 3 months ago #155555 by jppazmin
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.
The topic has been locked.
More
8 years 3 months ago #155641 by DenisChenu
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 support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: jppazmin
The topic has been locked.
More
8 years 3 months ago #155644 by jppazmin
Thank you DenisChenu,

Thank you but I miss specificying something... if I want execute from java code how can do this?
The topic has been locked.
More
8 years 3 months ago #155647 by jppazmin

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?
The topic has been locked.
More
8 years 3 months ago #155661 by DenisChenu
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 support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose