Page 1 of 1

xBrowse in cell of other xbrowse

PostPosted: Mon Sep 22, 2014 8:56 pm
by FranciscoA
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.

Re: xBrowse in cell of other xbrowse

PostPosted: Tue Sep 23, 2014 1:05 pm
by Rick Lipkin
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) }
 

Re: xBrowse in cell of other xbrowse

PostPosted: Tue Sep 23, 2014 2:19 pm
by FranciscoA
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?

Re: xBrowse in cell of other xbrowse

PostPosted: Tue Sep 23, 2014 7:57 pm
by FranciscoA
Something like this, I want to do.
Anybody?

Image
Regards

Re: xBrowse in cell of other xbrowse

PostPosted: Thu Oct 09, 2014 3:28 am
by nageswaragunupudi
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.