repopulate datagrid using web service

I have a state and on that state I call a web service that inserts a db record when the user clicks on Ok in the Alert dialog box.  I then redirect the user to a flex datagrid component that pulls in data from a db call.  However, the latest record never appears.  It does appear however when I click on a button to go to another state, then go back to that state on a button click and it then appears.  How can I get the datagrid to re-populdate off of that Alert dialog box (by clicking OK)?
COwebmasterAsked:
Who is Participating?
 
Gary BenadeConnect With a Mentor Commented:
have you tried calling yourdbgrid.validateNow() after the button click?
0
 
COwebmasterAuthor Commented:
what does that do?
0
 
COwebmasterAuthor Commented:
that didn't work.
0
Evaluating UTMs? Here's what you need to know!

Evaluating a UTM appliance and vendor can prove to be an overwhelming exercise.  How can you make sure that you're getting the security that your organization needs without breaking the bank? Check out our UTM Buyer's Guide for more information on what you should be looking for!

 
Gary BenadeCommented:
It forces the component to repaint itself. Paste the relevent code and I'll have you up and going in no time
0
 
chinu1310Commented:
Looks like you need to call the web service again when users presses OK button in the alert box. Can you post some code so that I can have more idea.

Thanks
0
 
COwebmasterAuthor Commented:
i got it to work.  thanks!
0
All Courses

From novice to tech pro — start learning today.