Tina,
So you are involved it a chain of 3 forms if I get the situation correctly.
You need to pass the form object reference to the called form and then store
this in the init() of the called form so that it can be accessed by say the
click() method of a button on that form. In a simplistic way do the
following:

Salesorders form:
On a button Click():
Do form ClientForm with Thisform


Client Form:
Form Init():
Parameters toParent 
This.AddProperty("oParent", toParent)
...
On a button click():
Do form SearchForm with Thisform
...
In the form Refresh():
Dodefault()
...refresh any specific controls...
Thisform.oParent.Refresh()


Search Form:
Form Init():
Parameters toParent 
This.AddProperty("oParent", toParent)
...
After finding the correct client
Thisform.oParent.Refresh


The search form then refreshes itself and in turn calls the refresh method
of the calling form (Client) which refreshes itself then in turn calls the
refresh method if its own parent and in this way all the forms are refreshed
from a single call in the search form (Chain of responsibility).

Hope this helps.

Dave C

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Tina Currie
Sent: 26 February 2010 01:28
To: 'ProFox Email List'
Subject: Refresh Issue

This should be a no-brainer, but today I've got no brain...

 

I have a form called CLIENTS.  This has a search button that when pushed,
invokes another form called SEARCHCLIENTS.  

 

>From this second form, user enters a string, and pushes an OK button.  That
goes and searches the DBF and finds the client and then part of that click
method for the OK button is to issue CLIENTS.REFRESH() - to update the
clients form and reflect all of that clients info.  That all works fine.

 

Now enter another form into the scenario.  This one is called SALESORDERS.
>From this form, I've put a button on there today so user can add or search
for clients on the run while entering sales orders.  The button invokes the
CLIENTS form and all works alright until I try the search button.  

 

Error is "Object CLIENTS is not found" on that CLIENTS.REFRESH() line.

 

The CLIENTS form is still open, but in a debug environment, I can't see it
as an object, only SALESORDERS is an object.

 

What am I missing?

 

TIA,

 

Tina

 

 

 



--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to