Page 1 of 1

Accessing a roster from an other application

Posted: January 21st, 2021, 8:19 am
by blumski
Hello dear users
I have two applications linked by "add files". The first one has a roster listing people of household members.
The second application has a field asking to choose a name of a child (aged 4 years or less). This name must come from the roster.

I would like some ideas about the code to use

Re: Accessing a roster from an other application

Posted: January 21st, 2021, 9:14 am
by josh
The idea is in the second application you use loadcase on the external dictionary (the dictionary from the first application) to load the case that contains the roster data you want. Then you can you loop through the roster using a do loop from 1 to the number of rows of the roster i.e. count(ROSTERNAMEHERE) and then add each name to the value set. So declare a variable of type valueset and then in your loop call valuesetname.add() to add an entry. You probably also need an if statement inside the loop to only consider the children under 4.

Re: Accessing a roster from an other application

Posted: January 23rd, 2021, 6:47 pm
by blumski
Thanks alot. i'm trying that