NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: terryd on December 09, 2011, 01:10:56 AM

Title: NT607/8? Wizard creation
Post by: terryd on December 09, 2011, 01:10:56 AM
Hi Bruce
I used the wizard to create an application using the attached dct and small demo tps tables.
If you access the beneficiary history menu choice and select change for any record and then just save on the form the error  message BeneficiaryID: Must be in Table Beneficiary appears.
The link must be there because when you arrive in the form the Beneficiary name appears in the entry field. I have also checked the tps files and they appear to be correct.
Title: Re: NT607/8? Wizard creation
Post by: Bruce on December 09, 2011, 01:15:49 AM
you forgot to attach the files.

cheers
Bruce
Title: Re: NT607/8? Wizard creation
Post by: terryd on December 10, 2011, 09:40:00 AM
Doh!!!

[attachment deleted by admin]
Title: Re: NT607/8? Wizard creation
Post by: terryd on December 13, 2011, 09:46:42 PM
Hi Bruce
Any feedback yet?
Title: Re: NT607/8? Wizard creation
Post by: Bruce on December 14, 2011, 12:11:50 AM
yeah.

You have BeneficaryHistory linked to the Beneficiary table.
Beneficiary has a ID field - but not a (unique) description field. And importantly no (single component) description field key.

So, the wizard has been a little too clever, and not clever enough. UpdateBeneficiaryHistory procedure, BENH:BeneficiaryID field, Lookup Settings - "use Description instead of value" is on - and it should be off. You can obviously change that in the app.

Cheers
Bruce
Title: Re: NT607/8? Wizard creation
Post by: terryd on December 14, 2011, 01:42:20 AM
Thanks
I'll go through my dictionaries and update.
I have had this issue on and off for a while in NT5 as well
So does this mean that if (for example) I have a surname and first name I need to create a composite field with surname + firstname + ID as the unique description field created from the 3 individual fields which will be my unique description field and key
Title: Re: NT607/8? Wizard creation
Post by: Bruce on December 14, 2011, 02:26:54 AM
So the "description in place of value" works if
a) there's a single-component description field
b) which is (preferably) unique
c) there's a single-component key on this field.

Of course this may be the round-about way of solving the problem - if names are not unique (and they're not) then the whole description-instead-of-value thing becomes somewhat moot.