FW Lookup function (where to find)

Post Reply
User avatar
Marc Venken
Posts: 727
Joined: Tue Jun 14, 2016 7:51 am

FW Lookup function (where to find)

Post by Marc Venken »

There is a FW lookup function introduced, but can't find it anymore ? Seen it ?

Now I try this (works for returning 1 field : Code )

XBROWSER "acties" TITLE "Selecteer de campagne" SETUP ( oBrw:cHeaders := { "Code", "Lijst","Titel" } ) SELECT cData := oBrw:code:Value

But I want more field as data to return (Code, Lijst, Titel)

XBROWSER "acties" TITLE "Selecteer de campagne" SETUP ( oBrw:cHeaders := { "Code", "Lijst","Titel" } ) SELECT aResult := oBrw

This is giving me all data, but inside is a lot of data from Xbrowse and have to figer out where the data is.
Marc Venken
Using: FWH 20.08 with Harbour
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: FW Lookup function (where to find)

Post by Silvio.Falconi »

perhaps on yunus.prg
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
Marc Venken
Posts: 727
Joined: Tue Jun 14, 2016 7:51 am

Re: FW Lookup function (where to find)

Post by Marc Venken »

It is

FW_DBFLOOKUP()
Marc Venken
Using: FWH 20.08 with Harbour
User avatar
Marc Venken
Posts: 727
Joined: Tue Jun 14, 2016 7:51 am

Re: FW Lookup function (where to find)

Post by Marc Venken »

With this code, not working because multi dim. arrays are not easy for me, I want to find all values of the selected record

Result shoud be the values of the folowing fields...

aData[1,1] = Code .or. aData[1] = code
aData[1,2] = Naam
..... rest of all the fieldnames = Value

Code: Select all

function Testobj()
   local cText,oXmlDoc,oXmlIter,oTagActual
   local nDepth, nDone:=0, cData:=""
   local cVeld:="", aData:={}, aResult:={}


   use acties

  XBROWSER "acties" TITLE "Selecteer de campagne" SETUP ( oBrw:cHeaders := { "Code", "Lijst","Titel" } ) SELECT aResult := oBrw
  xbrowse(aResult)

  aNew := ArrTranspose( aResult )


  //aData := aNew[ 4 ]   Acols is on pos 4 in the object that I see (AResult)

// trying to look for the data
  for i = 1 to len(aNew)
     xbrowse(aNew[1,I])
  next

  close all
return

 
Marc Venken
Using: FWH 20.08 with Harbour
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: FW Lookup function (where to find)

Post by nageswaragunupudi »

SELECT aResult := { oBrw:Code:Value, oBrw:Lijst:Value, oBrw:Titel:Value }
Regards

G. N. Rao.
Hyderabad, India
User avatar
Marc Venken
Posts: 727
Joined: Tue Jun 14, 2016 7:51 am

Re: FW Lookup function (where to find)

Post by Marc Venken »

It can be so simple .... Thanks
Marc Venken
Using: FWH 20.08 with Harbour
Post Reply