Hi I'm trying to make to control several boolean fields with a multi-enum, to do that I made a process that on a change on any boolean, it'll make the whole multi-enum array from scratch, it being the most efficient way of doing it is not the point, the issue I have is that I get successfully an array with the size desirable and with each position containing the correct value, but I can't make it show as a multi-enum. Can anyone help me with this?
Thanks, I'm leaving here my code.
$array = list();
ifThen(tcStudent == true, $array = array\push($array, 'Student'));
ifThen(tcAlumni == true, $array = array\push($array, 'Alumni'));
ifThen(tcParticipant == true, $array = array\push($array, 'Participant'));
ifThen(tcApplicant == true, $array = array\push($array, 'Applicant'));
ifThen(tcResearcher == true, $array = array\push($array, 'Researcher'));
ifThen(tcProfessor == true, $array = array\push($array, 'Professor'));
ifThen(tcPress == true, $array = array\push($array, 'Press'));
ifThen(tcAffiliatedProfessor == true, $array = array\push($array, 'Affiliated Professor'));
ifThen(tcScientificCouncil == true, $array = array\push($array, 'Scientific Council'));
ifThen(tcBoardOfTrustees == true, $array = array\push($array, 'Board of Trustees'));
ifThen(tcInstitutional == true, $array = array\push($array, 'Institutional'));
ifThen(tcMarketing == true, $array = array\push($array, 'Marketing'));
ifThen(tcSalesProspect == true, $array = array\push($array, 'Sales'));
ifThen(tcRecruiter == true, $array = array\push($array, 'Recruiter'));
ifThen(summerForumOrganizer == true, $array = array\push($array, 'Summer Forum Organizer'));
ifThen(tcStaff == true, $array = array\push($array, 'Staff'));
//record\update('Contact', id, 'tcSummary',$array ); // tried both methods none work as desired.
tcSummary = $array;
description = array\length(tcSummary); //for control purposes
Thanks everyone!
Thanks, I'm leaving here my code.
$array = list();
ifThen(tcStudent == true, $array = array\push($array, 'Student'));
ifThen(tcAlumni == true, $array = array\push($array, 'Alumni'));
ifThen(tcParticipant == true, $array = array\push($array, 'Participant'));
ifThen(tcApplicant == true, $array = array\push($array, 'Applicant'));
ifThen(tcResearcher == true, $array = array\push($array, 'Researcher'));
ifThen(tcProfessor == true, $array = array\push($array, 'Professor'));
ifThen(tcPress == true, $array = array\push($array, 'Press'));
ifThen(tcAffiliatedProfessor == true, $array = array\push($array, 'Affiliated Professor'));
ifThen(tcScientificCouncil == true, $array = array\push($array, 'Scientific Council'));
ifThen(tcBoardOfTrustees == true, $array = array\push($array, 'Board of Trustees'));
ifThen(tcInstitutional == true, $array = array\push($array, 'Institutional'));
ifThen(tcMarketing == true, $array = array\push($array, 'Marketing'));
ifThen(tcSalesProspect == true, $array = array\push($array, 'Sales'));
ifThen(tcRecruiter == true, $array = array\push($array, 'Recruiter'));
ifThen(summerForumOrganizer == true, $array = array\push($array, 'Summer Forum Organizer'));
ifThen(tcStaff == true, $array = array\push($array, 'Staff'));
//record\update('Contact', id, 'tcSummary',$array ); // tried both methods none work as desired.
tcSummary = $array;
description = array\length(tcSummary); //for control purposes
Thanks everyone!
Comment