Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flex screen refresh

Status
Not open for further replies.

vbajock

Programmer
Jun 8, 2001
1,921
US
I am looking for the macform equivalent of the vb repaint/refresh methods. Basically I am changing the underlying data of the Item Master screen in flex using ADO in a user form, and the screen doesn't reflect the new data when the user form is closed and the user returns to the Item master screen, so I need a method that forces the screen to recheck and reload it's underlying data. Thanks
 
If you get an answer that is workable for this one I will be very impressed with somebody.

I have tried for years to get something like this to work. I understand your pain. Let me guess

1. Can not set the value of fields without focus.
2. Can't guarantee that someone is going to finish tabbing through the screen to get the updates to work.
3. Generally pissing feeling that this could be better.


I will tell you this though. Macola ES is different. You can programatically set the value of "any" field on the form without focus. i.e. descr.text = "This is the way it should be"

I saw that at Directions last year and about fell out of my chair. The trade off though is that any of the accounting or customer master screens will not have the vba editor unless something changes.

Andy

Andy Baldwin
 
This is stuff that should work. Flex is like being forced to buy a tire that goes flat all the time.
 
Hi All,
As far as I know, and this is from talking to Flex instructors that have since left Macola, there is no way to refresh a macForm. This property is not available to this object. I needed this feature many time in the past and the only thing that I was able to get out of Marion was to have the user close the data and reenter the data, just like you are having to do now.

Rob

Cytec Corporation
rbrown@cyteccorp.com
 
What if i write a value to the underlying data in response to some event, and the user clicks the Save button. Does the value displayed on the screen overwrite the data I wrote to the table?
 
Without testing I would say that it would. The way I get around that is to try to have the value that I want in the field at Save time. This way, I know that the value will be recorded in the database. Even the last event in Flex, the Save event, is executed before the Macola code writes to file.

Rob

Cytec Corporation
rbrown@cyteccorp.com
 
Yes, If you write to the underlying table the value in a field on the form will overwrite it. One possible solution is to change the value of the underlying field AFTER the form is saved by macola.

On the Save event or post save event you can do this on SOME of the forms. On some forms this event, although technically available, will not fire.
Andy

Andy Baldwin
 
It's the will not fire stuff that drives me nuts.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top