Subordinate browsers

Post Reply
Natter
Posts: 1226
Joined: Mon May 14, 2007 9:49 am

Subordinate browsers

Post by Natter »

Hi,

As I work, I need to subordinate one xbrowser to another. Is it possible to do this ?
User avatar
nageswaragunupudi
Posts: 10691
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Subordinate browsers

Post by nageswaragunupudi »

Please clarify.
You mean linked browses?
Regards

G. N. Rao.
Hyderabad, India
paquitohm
Posts: 284
Joined: Fri Jan 14, 2022 8:37 am

Re: Subordinate browsers

Post by paquitohm »

Perhaps subordinate browses is a style of linked browse where browse number one shows parents and browse number two shows childs each parent
Natter
Posts: 1226
Joined: Mon May 14, 2007 9:49 am

Re: Subordinate browsers

Post by Natter »

There are 2 xBrowse - oBrw1 and oBrw2. I need to nest oBrw2 into oBrw1.

Code: Select all | Expand

SetParent(oBrw2:hWnd, oBrw1:hWnd)
I.e. I wanted to make a tree of nested xBrowse controls
However, nothing is working out :(
User avatar
nageswaragunupudi
Posts: 10691
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Subordinate browsers

Post by nageswaragunupudi »

Something like this?
If so it can be customized for your exact needs.

Image

code:

Code: Select all | Expand

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
Natter
Posts: 1226
Joined: Mon May 14, 2007 9:49 am

Re: Subordinate browsers

Post by Natter »

Yeah, it looks like it.
Post Reply