dictionary with an item group

Other discussions about CSPro
Forum rules
New release: CSPro 8.0
Post Reply
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

dictionary with an item group

Post by AriSilva »

I have a dictionary with several record types.
One of them is for the persons, and I created an item_group for all variables in the record.
Even if I do not use this item-group, when working with this dictionary in a capi program, it writes only the first person.
No matter how many persons I insert in the file.
Best
Ari
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: dictionary with an item group

Post by josh »

What do you mean by an item-group? A roster on the form?
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

Re: dictionary with an item group

Post by AriSilva »

No, an item alpha with subitems, where the item takes all the fields in the record type.
If you need I can send you a small example.
Best
Ari
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: dictionary with an item group

Post by josh »

Sure an example would be great.
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

Re: dictionary with an item group

Post by AriSilva »

Here it goes.
It is just a snipet from the whole data entry program.
Execute the program \20_Programas\99_Testes\TestePessoas.ent.
Use the third case. 3304557050904590032
Originally it has 4 persons.
After executing the program it will have just the first one.
I´m sending 2 copies of the input file, just in case you want to try it again.
If you delete the field B00_GRUPO from the dictionary and keep the subitems it will work perfectly.
Am I doing something wrong?
Best
Ari
Attachments
Josh_93.rar
(30.25 KiB) Downloaded 281 times
Best
Ari
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: dictionary with an item group

Post by josh »

Thanks for supplying a simple test application. I am able to reproduce the issue easily. It definitely seems like a bug in CSPro.We will look into it although it may take a bit longer than usual as most of my colleagues are out of this office this week.
savy
Posts: 159
Joined: December 27th, 2012, 1:36 pm

Re: dictionary with an item group

Post by savy »

Ari,

This is a bug in CSPro and happens if the only item on a record is an item containing subitems. If you had additional items on the record that are not subitems and have them included in the roster this problem will not occur.
We will fix this bug in the next CSPro release. Currently, your only work around is to either not have the only item on the record to be the item with subitems Or include other non subitems in the record and have them placed on the form.

Thanks

Savy
Post Reply