xBrowse in cell of other xbrowse

xBrowse in cell of other xbrowse

Postby FranciscoA » Mon Sep 22, 2014 8: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
User avatar
FranciscoA
 
Posts: 2134
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.

Re: xBrowse in cell of other xbrowse

Postby Rick Lipkin » Tue Sep 23, 2014 1: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: Select all  Expand view

// 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) }
 
User avatar
Rick Lipkin
 
Posts: 2642
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: xBrowse in cell of other xbrowse

Postby FranciscoA » Tue Sep 23, 2014 2: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
User avatar
FranciscoA
 
Posts: 2134
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.

Re: xBrowse in cell of other xbrowse

Postby FranciscoA » Tue Sep 23, 2014 7:57 pm

Something like this, I want to do.
Anybody?

Image
Regards
Francisco J. Alegría P.
Chinandega, Nicaragua.

Fwxh-MySql-TMySql
User avatar
FranciscoA
 
Posts: 2134
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.

Re: xBrowse in cell of other xbrowse

Postby nageswaragunupudi » Thu Oct 09, 2014 3: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
User avatar
nageswaragunupudi
 
Posts: 10347
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: dtoledo and 42 guests