NetTalk Central

Author Topic: Child browse reading primary key from multiple tabs in NWB  (Read 937 times)

rupertvz

  • Sr. Member
  • ****
  • Posts: 314
    • View Profile
    • Email
Child browse reading primary key from multiple tabs in NWB
« on: June 21, 2023, 12:28:03 AM »
Hi Guys,

I am having a challenge with a child-browse obtaining the primary key from a selected record in a NWB, if there are multiple tabs with different filters applied to each tab.

In the first tab (record A) may be selected, in the second tab (record B) may be selected (filter applied).

When my child browse reads the primary key, it will read it from the second tab, and not from the first tab where record A was selected.

* It is a problem with the NWB just opens, and the records are auto-selected.
The child-browse will show incorrect information related to primary NWB "second tab".

Any way around this perhaps?


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11179
    • View Profile
Re: Child browse reading primary key from multiple tabs in NWB
« Reply #1 on: June 21, 2023, 11:42:23 PM »
>> if there are multiple tabs with different filters applied to each tab.

I don't think that's a good approach. Having 2 browses, on the same table, in the same form, will likely cause problems.
Use Radio's, or a drop-down, or buttons to set the filter - not tabs.

Cheers
Bruce

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: Child browse reading primary key from multiple tabs in NWB
« Reply #2 on: June 22, 2023, 02:45:33 AM »
Following Bruce?s idea..

You could use buttons and then use CSS to make them look ?like? tabs.  I would spread them across the top of the browse perhaps.
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11