On 29/01/2009, at 2:50 PM, Theodore Petrosky wrote:

I am using some of the ajax examples as a starting template for a project. I have used the DependentListsExample. My 'list' is an array from a postgresql db and it is working almost perfectly. I have not been able to figure out how to get the table to update after I insert a new row in the database.

I am examining the different examples and the answer eludes me. How can I get the displayGroup to refresh the screen after an insert?
dg.refresh would be nice but doesn't exist...

Ted

Hi Ted,

Couple of ways depending on how you are inserting the row into the database. Check the doco on each of these methods and see which one suits you best :

displayGroup.updateDisplayedObjects();
displayGroup.qualifyDataSource();
displayGroup.qualifyDisplayGroup();


Owen McKerrow
WebMaster, emlab
Ph : +61 02 4221 5517
http://emlab.uow.edu.au

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

"I like the way this project has somehow, against all common sense, got itself made."
    - Peter Jackson,  "The Lord of The Rings"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to