FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Subordinate browsers
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Subordinate browsers
Posted: Mon Oct 21, 2024 01:09 PM

Hi,

As I work, I need to subordinate one xbrowser to another. Is it possible to do this ?

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Subordinate browsers
Posted: Mon Oct 21, 2024 02:45 PM

Please clarify.

You mean linked browses?

Regards



G. N. Rao.

Hyderabad, India
Posts: 318
Joined: Fri Jan 14, 2022 08:37 AM
Re: Subordinate browsers
Posted: Mon Oct 21, 2024 05:43 PM

Perhaps subordinate browses is a style of linked browse where browse number one shows parents and browse number two shows childs each parent

Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Subordinate browsers
Posted: Mon Oct 21, 2024 06:07 PM
There are 2 xBrowse - oBrw1 and oBrw2. I need to nest oBrw2 into oBrw1.
Code (fw): Select all Collapse
SetParent(oBrw2:hWnd, oBrw1:hWnd)
I.e. I wanted to make a tree of nested xBrowse controls
However, nothing is working out :(
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Subordinate browsers
Posted: Mon Oct 21, 2024 08:05 PM
Something like this?
If so it can be customized for your exact needs.



code:
Code (fw): Select all Collapse
function ParentChildBrw

   field CODE
   local oDlg, oChild

   USE CUSTOMER NEW SHARED VIA "DBFCDX"
   SET ORDER TO TAG STATE
   USE STATES NEW SHARED VIA "DBFCDX"
   SET RELATION TO CODE INTO CUSTOMER SCOPED
   GO TOP

   oChild  := XBROWSER "CUSTOMER" COLUMNS "STATE","CITY","SALARY" NOMODAL
   XBROWSER "STATES" SETUP ( oBrw:bChange := { || oChild:Refresh() } )

return nil
Regards



G. N. Rao.

Hyderabad, India
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Subordinate browsers
Posted: Mon Oct 21, 2024 09:11 PM

Yeah, it looks like it.

Continue the discussion