NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: osquiabro on August 31, 2018, 06:20:05 AM

Title: Browse return to selected record problem
Post by: osquiabro on August 31, 2018, 06:20:05 AM
When save or close the form, returning to the browse it does not go to the selected record that was in use, but to the beginning of the browse, with page mode and popup mode same issue

 i'm create a new browse from scratch with NT wizard and same problem..
Title: Re: Browse return to selected record problem
Post by: Bruce on September 01, 2018, 04:46:31 AM
please post an example.
Title: Re: Browse return to selected record problem
Post by: osquiabro on September 01, 2018, 04:52:50 AM
i saw that the problems occurs when a browse is in div mode.
Title: Re: Browse return to selected record problem
Post by: DonRidley on September 06, 2018, 02:02:43 AM
I think I have seen this and I may have a solution.

Check the last field in the browse(s) in question.  It could be a string field, a button, doesn't matter.

Now check if that field is set as "Last in Cell" and/or "Last on Line."

I seem to recall seeing this behavior before and correcting it by making sure the last field in a row is set to "Last in Cell" and or "Last on Line."

The behavior kind of makes sense.  When the form "closes", the browse thinks, "Hmmm, now which row was I on?  Heck, I don't know because I don't know where one row starts and another row begins." 

Anyway, I haven't ran into this in quite a while. 

See Ya,

Don
Title: Re: Browse return to selected record problem
Post by: osquiabro on September 06, 2018, 03:36:53 AM
Hi Don, your technique don't work in version 10.33.

Bruce see the attachments with example 81, any example with browse in DIV mode produce the problem.
Title: Re: Browse return to selected record problem
Post by: DonRidley on September 06, 2018, 03:44:40 AM
It was a shot in the dark.  :-)

However, I have duplicated the effect.  Upon form close, browse returns to first record/row in a page loaded browse.  Have not looked at a file loaded browse.

This is NT Build 10.33.

Don
Title: Re: Browse return to selected record problem
Post by: Bruce on September 06, 2018, 10:11:56 PM
I think you're both mis-reading what's happening.
It returns to the browse, and the browse is populated from the record you edited (as the first row).
ie the edited record _is_ the highlighted record, but it's repopulated from that record downwards.

This is, as I recall, by design.

cheers
Bruce
Title: Re: Browse return to selected record problem
Post by: osquiabro on September 07, 2018, 04:02:44 AM
in my case always return to first row in a list no matter what, but in tablet mode return to selected or edited record
Title: Re: Browse return to selected record problem
Post by: osquiabro on September 08, 2018, 04:05:56 PM
i have another issue with this when filter with locator then call a form a return, thi return to the first record of filter, if  going to the last record with locator filter always return to the first record when close a form.
Title: Re: Browse return to selected record problem
Post by: Bruce on September 10, 2018, 09:49:13 PM
if you have another issue, start a new thread.
Title: Re: Browse return to selected record problem
Post by: DonRidley on September 11, 2018, 03:19:42 AM
I think you're both mis-reading what's happening.
It returns to the browse, and the browse is populated from the record you edited (as the first row).
ie the edited record _is_ the highlighted record, but it's repopulated from that record downwards.

This is, as I recall, by design.

cheers
Bruce

Yes sir.  I'm aware of that feature.  I initially assumed the OP's issue was a misunderstanding of that feature until I looked at it.  Seems to depend on the developer's use of "last on line" / "last in cell" and the combination thereof.  It's not a showstopper in any way.  I'll try to modify a shipped example app and get it to you.

Don
Title: Re: Browse return to selected record problem
Post by: DonRidley on September 11, 2018, 03:43:52 AM
Bruce,

Tested with example app Basic with Menu.

Went step by step changing default settings one by one.

Keys to duplicate the issue:

Modded example app attached.

Don

Title: Re: Browse return to selected record problem
Post by: osquiabro on September 11, 2018, 02:14:02 PM
i'm not alone  ;D ;D
Title: Re: Browse return to selected record problem
Post by: osquiabro on September 14, 2018, 06:26:27 AM
hi bruce, any idea or tips for this? I have a client that is driving me crazy with this..

thanks..
Title: Re: Browse return to selected record problem
Post by: Bruce on September 17, 2018, 09:32:25 PM
I've duplicated in Don's example where the browses is opened as a popup from the menu.
Is that the same as your situation Osa?

cheers
Bruce
Title: Re: Browse return to selected record problem
Post by: osquiabro on September 18, 2018, 04:52:50 AM
yes Bruce, same situation but not popup from menu..
Title: Re: Browse return to selected record problem
Post by: Bruce on September 18, 2018, 10:40:15 PM
well, I've fixed the issue in Don's example, for the 10.35 release.
It remains to be seen if that fixes your issue though since the example you posted did not have a problem.

cheers
Bruce
Title: Re: Browse return to selected record problem
Post by: osquiabro on September 20, 2018, 09:06:31 AM
Bruce, work perfectly

Thanks.