Page 1 of 1

dictionary with an item group

Posted: August 13th, 2018, 3:23 pm
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.

Re: dictionary with an item group

Posted: August 13th, 2018, 3:44 pm
by josh
What do you mean by an item-group? A roster on the form?

Re: dictionary with an item group

Posted: August 13th, 2018, 6:15 pm
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.

Re: dictionary with an item group

Posted: August 14th, 2018, 6:19 am
by josh
Sure an example would be great.

Re: dictionary with an item group

Posted: August 14th, 2018, 6:07 pm
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

Re: dictionary with an item group

Posted: August 14th, 2018, 7:08 pm
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.

Re: dictionary with an item group

Posted: August 27th, 2018, 5:34 pm
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