Page 1 of 1

dcbrowse autorestore

Posted: Wed Jan 23, 2013 10:09 am
by bwolfsohn
1200. Fixed a long-time problem with DCBROWSE objects that employ the
DC_BrowseAutoRestore() feature. If a new column is added to the browse
in the code, the user will now receive a message that the user's browse
configuration could not be restored, rather than showing a corrupted
display. A new DC_XbpBrowse() :configMessageBlock iVar can be used to
display a custom message.

Roger,

The way we implement browses, this is causing a problem for our clients. is there a way to bypass the dcmsgbox that pops up saying: "Your Saved Browse configuration cannot be restored"

I'd like to skip the msg altogether..

Re: dcbrowse autorestore

Posted: Wed Jan 23, 2013 8:48 pm
by rdonnay
Try this:

Code: Select all

@ .. DCBROWSE .. PREEVAL {|o|o:configMessageBlock := {||nil}}

Re: dcbrowse autorestore

Posted: Thu Jan 24, 2013 7:23 am
by bwolfsohn
rdonnay wrote:Try this:

Code: Select all

@ .. DCBROWSE .. PREEVAL {|o|o:configMessageBlock := {||nil}}
Roger,

Anyway to do that globally ?

Brian

Re: dcbrowse autorestore

Posted: Thu Jan 24, 2013 7:43 am
by rdonnay
Anyway to do that globally ?
A global solution would require a Get-Set function.

Attached is an updated _DCXBROW.PRG.
Copy it to \exp19\source\dclipx and run BUILD19_SL1.BAT to rebuild DCLIPX.DLL.

Add the following to the start of your application:

Code: Select all

DC_BrowseConfigMessageBlock({||nil})

Re: dcbrowse autorestore

Posted: Thu Jan 24, 2013 7:50 am
by rdonnay
Oops. Left a WTF in the code.
Here's an update.

Re: dcbrowse autorestore

Posted: Fri Jan 25, 2013 6:46 am
by bwolfsohn
Looks like it's working w/ no problems..

thanks..