Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought

Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Author Topic: Check if proxy has data?  (Read 8360 times)
Posts: 5

View Profile Email
« on: September 03, 2009, 03:47:41 »

i have a command that makes pages and this registers mediators when called - it allso calls dataget in the proxy as i dont want to load the data for each page at the begining rather than when the page is made.

when the next page loades it removes the mediator.

if i make the page again i dont want to load the data again (dataget) - how can i check if the proxy allready has the data so i can skip the dataget part of creating a new page?

Thanks for any help offered...
Global Moderator
Hero Member
Posts: 2871

View Profile WWW Email
« Reply #1 on: September 03, 2009, 06:04:51 »

Retrieve the proxy and check its data property. Or if you will have a collection there and are trying to see if a specific item is in the collection, expose a method on the proxy to check for the item by ID.
Pages: [1]