Xbrowse and oBrw:RestoreState()

Post Reply
User avatar
vilian
Posts: 985
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

Xbrowse and oBrw:RestoreState()

Post by vilian »

Hi Guys,

I have a xbrowse where I'm adding columns at runtime, throught the command bellow:

ADD COLUMN TO XBROWSE oBrw DATA {|| oLbxBrw:oDbf:Fields(cCampo):value } HEADER cCampo size 150.

IF I use cStat := oBrw:SaveState() and after execute oBrw:RestoreState(cStat) the columns I have added at runtime are not being restored. Do you know why?

Other thing - Is there any way to know that the user made a change in the xbrowse layout ?
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

Re: Xbrowse and oBrw:RestoreState()

Post by nageswaragunupudi »

We will check.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

Re: Xbrowse and oBrw:RestoreState()

Post by nageswaragunupudi »

Before answering the main question I am a bit curious about this command:

Code: Select all | Expand

ADD COLUMN TO XBROWSE oBrw DATA {|| oLbxBrw:oDbf:Fields(cCampo):value } HEADER cCampo size 150.
Why are we including the data from a totally different browse oLbxBrw in a different browse oBrw?
Regards

G. N. Rao.
Hyderabad, India
User avatar
vilian
Posts: 985
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

Re: Xbrowse and oBrw:RestoreState()

Post by vilian »

Sorry,
I just copy the command wrong. The right is:

ADD COLUMN TO XBROWSE oLbxBrw DATA {|| oLbxBrw:oDbf:Fields(cCampo):value } HEADER Rtrim(oVfa5:titulo) SIZE aFields[oBrw:nAt,3]*10
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Post Reply