Welcome to the LimeSurvey Community Forum

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

"array $aFields = null" structure

  • jppazmin
  • jppazmin's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 10 months ago #155555 by jppazmin
"array $aFields = null" structure was created 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.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 10 months ago #155641 by DenisChenu
Replied by DenisChenu on 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 , plugin development .
I don't answer to private message.
The following user(s) said Thank You: jppazmin
The topic has been locked.
  • jppazmin
  • jppazmin's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 10 months ago #155644 by jppazmin
Replied by jppazmin on 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?
The topic has been locked.
  • jppazmin
  • jppazmin's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 10 months ago #155647 by jppazmin
Replied by jppazmin on 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?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 10 months ago #155661 by DenisChenu
Replied by DenisChenu on 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 , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose