NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Alberto on May 16, 2014, 04:07:48 AM

Title: Browse allways at first record, how to
Post by: Alberto on May 16, 2014, 04:07:48 AM
Hi,
I have a memory form with a browse
How to set the browse to point allways to the first record when I entre the form?
Title: Re: Browse allways at first record, how to
Post by: Robert Iliuta on May 16, 2014, 04:39:01 AM
put this on generate form

p_web.SetValue('_refresh_','first')


Robert
Title: Re: Browse allways at first record, how to
Post by: Alberto on May 16, 2014, 05:01:11 AM
Thanks

8.11

I put this on generate form/start and it does not work
Title: Re: Browse allways at first record, how to
Post by: Robert Iliuta on May 16, 2014, 05:29:59 AM
For me works.
How do you test?

Robert
Title: Re: Browse allways at first record, how to
Post by: Alberto on May 16, 2014, 05:32:08 AM
Select a redord in the middle of the browse

Go to another page and return to the browse page
Title: Re: Browse allways at first record, how to
Post by: Robert Iliuta on May 16, 2014, 05:49:35 AM
ok. This code will works if you go in browse press next button then go to another page and then come back.
But if you stay on the same page and select another record then first, then this code will not work because you are already on first page.
So this way my code will not help you.

Robert
Title: Re: Browse allways at first record, how to
Post by: Bruce on May 18, 2014, 11:12:39 PM
Robert's approach is good, but clear the SessionValue of the ID field (of the browse) as well.
That way it will go to the first page, but it won't have "remembered" which field on the first page it was on last.

cheers
Bruce