NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Koen Tjoa on December 05, 2011, 01:20:01 AM

Title: Detect empty browse
Post by: Koen Tjoa on December 05, 2011, 01:20:01 AM
I have a BrowseControl and a few buttons in a NetWebForm. Sometimes this browse is empty, which is shown with the message string. The navigation buttons of the browse are hidden. But I also would like to hide or disable some of my own buttons in this situation.

Is there some property or SessionValue set when there are no records to be displayed what I can use in the NetWebForm to detect the browse is empty? I looked for it, but maybe I am missing it.

Cheers,
Koen
Title: Re: Detect empty browse
Post by: charl99 on December 05, 2011, 02:12:12 AM
Hi Koen,

Go to the Embedded Source of the Browse procedure and look for "BeforeEmptyMessage".

Cheers
Charl
Title: Re: Detect empty browse
Post by: Koen Tjoa on December 05, 2011, 04:18:59 PM

Hi Charl,

Thanks. I solved it with setting a ValueParameter there and reading it out again in my NetWebForm on return.

Cheers
Koen