NetTalk Central

Author Topic: NT8 drop problem  (Read 2493 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
NT8 drop problem
« 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]
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NT8 drop problem
« Reply #1 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

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: NT8 drop problem
« Reply #2 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
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NT8 drop problem
« Reply #3 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