- Posts: 2
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Api not catching extra attribues while adding Participants
- navt3k
- Topic Author
- Offline
- New Member
Less
More
6 years 11 months ago #154949
by navt3k
Api not catching extra attribues while adding Participants was created by navt3k
Hi,
I am working for a client and they have installed your system. They hired me for api development.
My problem is while adding participants the user want to add extra attributes too but when I am sending that data to api it's not catching it.
Here is my code (i ve tried ea_1 also attribute_1 but none workes)
$Participants=array(array("email" => "$_REQUEST
I am working for a client and they have installed your system. They hired me for api development.
My problem is while adding participants the user want to add extra attributes too but when I am sending that data to api it's not catching it.
Here is my code (i ve tried ea_1 also attribute_1 but none workes)
$Participants=array(array("email" => "$_REQUEST
Attachments:
The topic has been locked.
- LouisGac
- Visitor
6 years 11 months ago #154959
by LouisGac
Replied by LouisGac on topic Api not catching extra attribues while adding Participants
Here the code for cpd_importParticipants():
github.com/LimeSurvey/LimeSurvey/blob/ma...ndle.php#L2663-L2783
github.com/LimeSurvey/LimeSurvey/blob/ma...ndle.php#L2663-L2783
The topic has been locked.
- navt3k
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
6 years 11 months ago #154964
by navt3k
Replied by navt3k on topic Api not catching extra attribues while adding Participants
Thanks for your reply.. but sadly the code says...
$aData = array(
'firstname' => $aParticipantData,
'lastname' => $aParticipantData,
'email' => $aParticipantData,
'owner_uid' => Yii::app()->session, // ToDo is this working?
);
so they aren't processing any extra attribute in the method moreover these extra attributes are not the part of the participant table, these are stored in another table (participant_attribute) with a reference set to the (participants) with `participant_id`
what are your thoughts around that ?
$aData = array(
'firstname' => $aParticipantData,
'lastname' => $aParticipantData,
'email' => $aParticipantData,
'owner_uid' => Yii::app()->session, // ToDo is this working?
);
so they aren't processing any extra attribute in the method moreover these extra attributes are not the part of the participant table, these are stored in another table (participant_attribute) with a reference set to the (participants) with `participant_id`
what are your thoughts around that ?
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
6 years 10 months ago #155664
by DenisChenu
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.
Replied by DenisChenu on topic Api not catching extra attribues while adding Participants
We are happy to see good merge request for improving LimeSurvey .
Your client hiring you, not us.
But here : you don't have good eyes : system seems to be here : github.com/LimeSurvey/LimeSurvey/blob/96...rol_handle.php#L2901
Your client hiring you, not us.
But here : you don't have good eyes : system seems to be here : github.com/LimeSurvey/LimeSurvey/blob/96...rol_handle.php#L2901
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: LouisGac
The topic has been locked.