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 ?
Xbrowse and oBrw:RestoreState()
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- Contact:
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- Contact:
Re: Xbrowse and oBrw:RestoreState()
Before answering the main question I am a bit curious about this command:
Why are we including the data from a totally different browse oLbxBrw in a different browse oBrw?
Code: Select all | Expand
ADD COLUMN TO XBROWSE oBrw DATA {|| oLbxBrw:oDbf:Fields(cCampo):value } HEADER cCampo size 150.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: Xbrowse and oBrw:RestoreState()
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
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