NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Alberto on April 05, 2014, 11:55:31 AM

Title: NT8 drop problem
Post by: Alberto on April 05, 2014, 11:55:31 AM
Hi,
When you use a Drop and add some ViewField they are not refreshed ever.
I modify the Web 67 example adding a Nut File, same as the Software File, and add a drop to the Product Form.
I add a Drop on the Nut File, setting a view field as commment and as a disply field and none of them works.
Attached goes the example...
Regards


[attachment deleted by admin]
Title: Re: NT8 drop problem
Post by: Bruce on April 07, 2014, 12:10:39 AM
I think maybe you're misunderstanding what a "view field" is.
It's a field which is added to the View which is used when the drop-list is populated.

It isn't a field which is primed from the same record as the selected value. In other words it's not reading the whole record from the Nut file when the form is opened. That's not the purpose of a view field.

If you want to load related records, there is a LoadRelatedRecords routine you can use.

cheers
Bruce
Title: Re: NT8 drop problem
Post by: Alberto on April 07, 2014, 03:02:36 AM
Ok, I can reget the record in the drop Server Code too
But I still do not understand what is View Fields for if I can use this fields...
Thanks
Title: Re: NT8 drop problem
Post by: Bruce on April 07, 2014, 05:02:27 AM
View fields are fields from the table which are added to the Generated View.
They are typically used if you are using the fields in a calculation as the view is read.

cheers
Bruce