dcbrowse autorestore

This forum is for eXpress++ general support.
Post Reply
Message
Author
bwolfsohn
Posts: 649
Joined: Thu Jan 28, 2010 7:07 am
Location: Alachua, Florida USA
Contact:

dcbrowse autorestore

#1 Post 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..
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: dcbrowse autorestore

#2 Post by rdonnay »

Try this:

Code: Select all

@ .. DCBROWSE .. PREEVAL {|o|o:configMessageBlock := {||nil}}
The eXpress train is coming - and it has more cars.

bwolfsohn
Posts: 649
Joined: Thu Jan 28, 2010 7:07 am
Location: Alachua, Florida USA
Contact:

Re: dcbrowse autorestore

#3 Post by bwolfsohn »

rdonnay wrote:Try this:

Code: Select all

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

Anyway to do that globally ?

Brian
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: dcbrowse autorestore

#4 Post 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})
Attachments
_dcxbrow.zip
(28.5 KiB) Downloaded 557 times
The eXpress train is coming - and it has more cars.

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: dcbrowse autorestore

#5 Post by rdonnay »

Oops. Left a WTF in the code.
Here's an update.
Attachments
_dcxbrow.zip
(28.5 KiB) Downloaded 559 times
The eXpress train is coming - and it has more cars.

bwolfsohn
Posts: 649
Joined: Thu Jan 28, 2010 7:07 am
Location: Alachua, Florida USA
Contact:

Re: dcbrowse autorestore

#6 Post by bwolfsohn »

Looks like it's working w/ no problems..

thanks..
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises

Post Reply