Accessing a roster from an other application

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
blumski
Posts: 37
Joined: May 7th, 2018, 7:02 am

Accessing a roster from an other application

Post 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
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Accessing a roster from an other application

Post 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.
blumski
Posts: 37
Joined: May 7th, 2018, 7:02 am

Re: Accessing a roster from an other application

Post by blumski »

Thanks alot. i'm trying that
Post Reply