FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse in cell of other xbrowse
Posts: 2170
Joined: Fri Jul 18, 2008 01:24 AM
xBrowse in cell of other xbrowse
Posted: Mon Sep 22, 2014 08:56 PM

Hello friends.
I need to insert a xBrowse into a cell of another xBrowse.
Is this possible?
Any examples of how to do ?, if possible.
Greetings.

Francisco J. Alegría P.

Chinandega, Nicaragua.



Fwxh-MySql-TMySql
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: xBrowse in cell of other xbrowse
Posted: Tue Sep 23, 2014 01:05 PM
Francisco

You can use EDIT_GET on the cell you wish to activate and use the Pre and Post code blocks to fire off a user defined function to do anything you want.

In this example snipit from an invoicing browse .. I am editing the Stock Number cell and calling out a function InvtLook() to verify the part number against inventory... where v is the passed value of the user typed stock number.

Rick Lipkin

Code (fw): Select all Collapse
// part number
oLbxB:aCols[3]:bEditWhen   := { || If(oRsDetail:fields("LockedDown"):Value = .f., .t.,.f.) }
oLbxB:aCols[3]:bOnPreEdit  := { || If(oRsDetail:Fields("Inventory Id"):Value = "  ", , __Keyboard( Chr( VK_HOME )) }
oLbxB:aCols[3]:bOnPostEdit := {|o,v| _InvtLook( v, oRsDetail, oRsRepair, "3", oLbxB, @lTaxable, oTaxable, cLoc,;
 oLabor,oParts,oMisc,oTax,oTotal,nTaxNumber,nAssignedTo) }
Posts: 2170
Joined: Fri Jul 18, 2008 01:24 AM
Re: xBrowse in cell of other xbrowse
Posted: Tue Sep 23, 2014 02:19 PM

Rick, thanks for your reply.

Maybe I don't explained correctly ( my bad english).
What I want to do is to use cells of xbrowse1 and insert other xBrowses into xBrowse1's each cells..

Is't possible?

Francisco J. Alegría P.

Chinandega, Nicaragua.



Fwxh-MySql-TMySql
Posts: 2170
Joined: Fri Jul 18, 2008 01:24 AM
Re: xBrowse in cell of other xbrowse
Posted: Tue Sep 23, 2014 07:57 PM
Something like this, I want to do.
Anybody?


Regards
Francisco J. Alegría P.

Chinandega, Nicaragua.



Fwxh-MySql-TMySql
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse in cell of other xbrowse
Posted: Thu Oct 09, 2014 03:28 AM
FranciscoA wrote:Rick, thanks for your reply.

Maybe I don't explained correctly ( my bad english).
What I want to do is to use cells of xbrowse1 and insert other xBrowses into xBrowse1's each cells..

Is't possible?

Not impossible, but requires lot of work.
Instead, it is easier to create two browses like master-child.
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion