NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Stu on September 09, 2013, 04:10:39 AM

Title: Browse + Popup Form, Record not refreshing
Post by: Stu on September 09, 2013, 04:10:39 AM
Just want to log this while it's hot.

In the attached Accounts example:

1. Click on the Invoices link.

2. Edit the top record and change the Terms field.

3. Save. Returns to browse, and the Terms field is updated.

4. Edit the same record, change the Terms field.

5. Save. Returns to browse, the Terms field is NOT updated.

** The SORT field for the browse has been removed from ID, and I've been testing with various fields in the generic "Sort" box for the browse (because the fields I want to sort by are not in the browse).

[attachment deleted by admin]
Title: Re: Browse + Popup Form, Record not refreshing
Post by: Bruce on September 10, 2013, 12:46:20 AM
once I removed your embed code;

  if ~p_web.IfExistsSessionValue('INV:Terms') or (p_web.GSV('INV:Terms') = 0)     !* Just for the purposes of this example *
     p_web.SSV('INV:Terms',1)
  end


In the GenerateForm routine it worked fine.

It seems to me you're trying to prime a field here? Why not just use the Prime Fields tab in the template?

cheers
Bruce


Title: Re: Browse + Popup Form, Record not refreshing
Post by: Stu on September 10, 2013, 12:49:27 AM
Hmmm. That's strange. I had no idea that embed code was there. It would explain what is happening.

I'll have to go back to the actual webserver I found the problem in (not an example).

Have got some funny behaviour with Internet Explorer and browse / popup form. Anyway, will investigate further.

Thanks Bruce!
Title: Re: Browse + Popup Form, Record not refreshing
Post by: Stu on September 10, 2013, 12:59:03 AM
Also, perhaps I was doing the same thing as the Wallabies ..

IGNORING THE BASICS

or

NO HEART
Title: Re: Browse + Popup Form, Record not refreshing
Post by: Bruce on September 10, 2013, 02:33:03 AM
ha ha maybe all you need to do is use
Player{prop:Forward} = trueBlue

You best option though is probably to adopt the English approach.... snatch good south africans while they're still young...
Title: Re: Browse + Popup Form, Record not refreshing
Post by: Stu on September 10, 2013, 02:34:46 AM
I think we try to do that, but are just really bad at it!