NetTalk Central

Author Topic: Browse + Popup Form, Record not refreshing  (Read 3733 times)

Stu

  • Hero Member
  • *****
  • Posts: 510
    • View Profile
    • Email
Browse + Popup Form, Record not refreshing
« 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]
Cheers,

Stu Andrews

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Browse + Popup Form, Record not refreshing
« Reply #1 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



Stu

  • Hero Member
  • *****
  • Posts: 510
    • View Profile
    • Email
Re: Browse + Popup Form, Record not refreshing
« Reply #2 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!
Cheers,

Stu Andrews

Stu

  • Hero Member
  • *****
  • Posts: 510
    • View Profile
    • Email
Re: Browse + Popup Form, Record not refreshing
« Reply #3 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
Cheers,

Stu Andrews

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Browse + Popup Form, Record not refreshing
« Reply #4 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...

Stu

  • Hero Member
  • *****
  • Posts: 510
    • View Profile
    • Email
Re: Browse + Popup Form, Record not refreshing
« Reply #5 on: September 10, 2013, 02:34:46 AM »
I think we try to do that, but are just really bad at it!
Cheers,

Stu Andrews