Search found 86 matches: ochild

Searched query: ochild

by Otto
Fri Jul 19, 2024 7:20 am
Forum: FiveWin for Harbour/xHarbour
Topic: Need Help guide for my program.
Replies: 38
Views: 6641

Re: Need Help giide for my program

... parts. Here’s an updated version of the `Deposits()` function to show the `INVNUM` field:

```xbase
static function Deposits()
local oBrw, oChild, cClrBack, cCol
local oBar, oMsgBar, oMsgDeleted

if oWndClients == nil
Clients()
endif

if oWndItems == nil
Items()
endif

if oWndDeposits ...
by Otto
Fri Jul 19, 2024 7:16 am
Forum: FiveWin for Harbour/xHarbour
Topic: Need Help guide for my program.
Replies: 38
Views: 6641

Re: Need Help giide for my program

... deposits.

Below is the adapted Deposits function based on the Invoices function:

xbase
Code kopieren
static function Deposits()

local oBrw, oChild, cClrBack, cCol
local oBar, oMsgBar, oMsgDeleted

if oWndClients == nil
Clients()
endif

if oWndItems == nil
Items()
endif

if oWndDeposits ...
by goosfancito
Mon Nov 15, 2021 11:16 am
Forum: FiveWin para Harbour/xHarbour
Topic: Como puedo hacer esto con oChild...
Replies: 0
Views: 372

Como puedo hacer esto con oChild...

Hola.
esto ya me esta funcionando, nada mas que no se como hago para acceder al ese campo para poder hacer esto:
WITH OBJECT :aCols[ 3 ] :cHeader := "Forma de pago" :bStrData := { || aCobros[ ::oQry:oChild:FieldGet("c4") ] } END WITH

gracias.
by jose_murugosa
Wed Oct 20, 2021 7:14 pm
Forum: FiveWin para Harbour/xHarbour
Topic: sincronizacion de tablas con FWHMariadb SOLUCIONADO
Replies: 1
Views: 427

Re: sincronizacion de tablas con FWHMariadb SOLUCIONADO

El problema pasaba el uso de la tabla hija, utilizando oMant:oChild:campo, funcionó perfecto.
by CARLOS ATUNCAR
Thu Apr 01, 2021 3:34 am
Forum: FiveWin para Harbour/xHarbour
Topic: AYUDA PARA LEER XML DE FACTURA ELECTRONICA ( SOLUCIONADO )
Replies: 6
Views: 1817

Re: AYUDA PARA LEER XML DE FACTURA ELECTRONICA ( SOLUCIONADO )

... IF oXmlDoc:nStatus != HBXML_STATUS_OK
RETURN cRet
ENDIF

oNode := oXmlDoc:findfirst(cNodo)

If oNode != Nil
If lNodo
xmlNode := oXmlDoc:oRoot:oChild

WHILE xmlNode != NIL
cPath := xmlNode:Path()
If xmlNode:nType=5
cRet :=xmlNode:cData
Exit
EndIf
xmlNode := xmlNode:NextInTree()
ENDDO ...
by Enrico Maria Giordano
Mon Aug 31, 2020 8:48 am
Forum: FiveWin for Harbour/xHarbour
Topic: Life time of a MDI CHILD
Replies: 4
Views: 745

Re: Life time of a MDI CHILD

Because oChild is a LOCAL variable. It is destroyed after the end of the function where it is defined.

EMG
by mauri.menabue
Sun Aug 30, 2020 2:41 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Life time of a MDI CHILD
Replies: 4
Views: 745

Re: Life time of a MDI CHILD

Hello Karinha,
no mistake, I wonder why the 'oChild' variable is still defined after it's closed
thank
by mauri.menabue
Sun Aug 30, 2020 8:25 am
Forum: FiveWin for Harbour/xHarbour
Topic: Life time of a MDI CHILD
Replies: 4
Views: 745

Life time of a MDI CHILD

Hi all,
try this minimal example, why after end of MDICHILD oChild the window is already
active ?

#include "fivewin.ch"function Main()   local oWnd, oFont   local aData := { 1, 2, 3, 'Something' }   local nVar := 99, cVar := 'Hello'   local ...
by fraxzi
Mon Oct 29, 2018 2:27 am
Forum: FiveWin for Harbour/xHarbour
Topic: MariaDB RS updating oChild after append
Replies: 2
Views: 578

Re: MariaDB RS updating oChild after append

... 41;, { "idfund = oRs:id" } )oRs:AddChild( oConnection:RowSet('pettycash'), { "idfund = oRs:id AND idempl = oRs:oChild:idempl" } )... 

to update:
...oRs:oChild:ReQuery({ "idfund = "+cValToChar(aValue[1]) + " AND idempl ...
by nageswaragunupudi
Thu Oct 25, 2018 12:12 pm
Forum: FiveWin for Harbour/xHarbour
Topic: MariaDB RS updating oChild after append
Replies: 2
Views: 578

Re: MariaDB RS updating oChild after append

I understood your point.
Let me check. I will get back to you.
by fraxzi
Thu Oct 25, 2018 12:34 am
Forum: FiveWin for Harbour/xHarbour
Topic: MariaDB RS updating oChild after append
Replies: 2
Views: 578

MariaDB RS updating oChild after append

Hi Masters,

I have oRs:oChild and oRs:oChild:oChild ..

but oRecA := oRs:oChild:Record(,.F.) and oRacB := oRs:oChild:oChild:Record(,.T.) was saved by oRecA:save() and oRecB:save(), the database confirms the update/appended but even with
oRs:SyncChild() or oRs:oChild:SyncChild(), or oRs:oChild:ReSync ...
by nageswaragunupudi
Tue Oct 16, 2018 10:25 am
Forum: FiveWin for Harbour/xHarbour
Topic: FWH: Parent Child RowSets (MySql/MariaDB)
Replies: 12
Views: 5533

Re: FWH: Parent Child RowSets (MySql/MariaDB)

fraxzi wrote:Hi Mr. Rao,

if I do oParent:Save() ... will it save oParent:oChild and oParent:oChild:oChild as well??

:?:

No.
by fraxzi
Tue Oct 16, 2018 6:17 am
Forum: FiveWin for Harbour/xHarbour
Topic: FWH: Parent Child RowSets (MySql/MariaDB)
Replies: 12
Views: 5533

Re: FWH: Parent Child RowSets (MySql/MariaDB)

Hi Mr. Rao,

if I do oParent:Save() ... will it save oParent:oChild and oParent:oChild:oChild as well??

:?:
by fraxzi
Mon Aug 13, 2018 12:04 am
Forum: FiveWin for Harbour/xHarbour
Topic: MariaDB RS Tree
Replies: 5
Views: 1434

Re: MariaDB RS Tree

Mr. Rao,

This is great approach.. I did it with JOINS too.. I thought of On-The-Fly oChild when parent root expanded.. But maybe not a good idea?

I always referenced your sample relative to xBrowse.. Absolutely very helpful. :wink:


:idea:
by fraxzi
Sat Jun 09, 2018 1:36 am
Forum: FiveWin for Harbour/xHarbour
Topic: MariaDB BlankRow() returns with additional ... (SOLVED)
Replies: 13
Views: 2237

Re: MariaDB BlankRow() returns with additional element/field

Hi Rao,

Strangely, I put the oRs := oCn:RowSet( cSql, {'param'} ) on my init variable function (as once-only declaration) and put oRs:Append() | oRs:SyncChild() | oBrw:Refresh()...
This way it SOLVED my issues refreshing oRs:oChild datasource of xBrowse ...

Moving forward to another task...

:P