Solved

repopulate datagrid using web service

Posted on 2007-12-03
6
719 Views
Last Modified: 2008-02-01
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)?
0
Comment
Question by:COwebmaster
  • 3
  • 2
6 Comments
 
LVL 19

Accepted Solution

by:
Gary Benade earned 500 total points
ID: 20401170
have you tried calling yourdbgrid.validateNow() after the button click?
0
 

Author Comment

by:COwebmaster
ID: 20403785
what does that do?
0
 

Author Comment

by:COwebmaster
ID: 20403881
that didn't work.
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 19

Expert Comment

by:Gary Benade
ID: 20409582
It forces the component to repaint itself. Paste the relevent code and I'll have you up and going in no time
0
 
LVL 14

Expert Comment

by:chinu1310
ID: 20415158
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
 

Author Comment

by:COwebmaster
ID: 20436022
i got it to work.  thanks!
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Using local to global in flex for buttons 22 571
Flex Builder 4.5 3 407
Flex dropdownlist displays [object][object] 2 1,390
Adobe URL is default to local hosts in my Mac Air 13 539
First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question