Opened 11 years ago

Last modified 11 years ago

#9694 closed enhancement

Public API to change ItemFileReadStore url — at Initial Version

Reported by: Josh Trutwin Owned by: Jared Jurkiewicz
Priority: high Milestone: 1.4
Component: Data Version: 1.3.2
Keywords: dojo.data.ItemFileReadStore clearOnClose Cc:
Blocked By: Blocking:

Description

Per #6073 there is a clearOnClose param since 1.2 that allows a data store to change URL's without having to create a new store. But for this to work you have to set a psuedo-private member of the class:

<div id="store" dojoType="dojo.data.ItemFileReadStore?" clearOnClose="true" url="/foo.php">

then:

dijit.byId("store")._jsonFileUrl = "/bar.php"; dijit.byId("store").close(); dijit.byId("store").fetch();

Would it be possible to replace the first line with something like:

dijit.byId("store").setUrl("/bar.php");

Or even:

dijit.byId("store").attr('url', '/bar.php');

Thanks,

Josh

Change History (0)

Note: See TracTickets for help on using tickets.