NetTalk Central

Author Topic: How do you refresh a form field on return from another procedure?  (Read 3384 times)

Mike McLoughlin

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • Clarion Templates
    • Email
I have a form with a button called "modules" which calls a browse/form where I can edit this child modules file.  When the user clicks OK I have a little bit code  which cyles through the modules for that parent record adding up the percent achieved for each module.  This is then saved to the "total percent achieved" field in the parent record.

problem is - when I return from the child browse to the main form the total per cent field has not been refreshed.

Anybody know a way to refresh just one field?

thanks

Mike
Mike McLoughlin

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: How do you refresh a form field on return from another procedure?
« Reply #1 on: June 11, 2011, 03:00:43 AM »
assuming you're using a very recent build (5.27)
and the child button calls a popup window (ie the child-modules-form is a popup)
then you can add the field to refresh to the "reset list" of the button.

If you have some other configuration, then let me know what it is...

cheers
Bruce

Mike McLoughlin

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • Clarion Templates
    • Email
Re: How do you refresh a form field on return from another procedure?
« Reply #2 on: June 11, 2011, 03:48:17 AM »
No I'm still on 4.4 - I put it in the reset list for the button that calls the browse/form but there is no screen refresh.

I need to exit the parent form and go back in again to see the new value.

Mike
Mike McLoughlin

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: How do you refresh a form field on return from another procedure?
« Reply #3 on: June 11, 2011, 04:35:34 AM »
Hi Mike,
hmm - I don't think it's gonna be that easy in 4.4.

but in 4.4 - there's no popup mode - so I think you'll need to example what's happening in the form - what stages are called and so on. Perhaps you can embed in one of those.

It's been over 2 years since I last did anything in NT4, so I don't recall all the possibilities there.

cheers
Bruce

Mike McLoughlin

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • Clarion Templates
    • Email
Re: How do you refresh a form field on return from another procedure?
« Reply #4 on: June 11, 2011, 05:48:34 AM »
I found a solution - just use p_web.SSV('Fil:field',Fil:field) in the child form.

The simplest answers are often the best!

Mike
Mike McLoughlin