Mayur
Mayur

Reputation: 114

how to use same store in different pages in Extjs

My requirement is I have search criteria page and on click on search button i am getting search criteria data and i want to use that data in store and the on click on search button page redirect to chart page. How to use first page data to second page.

i want to use that data for displaying chart using store. Thanks in advance.

Upvotes: 0

Views: 182

Answers (1)

Rency
Rency

Reputation: 404

declare a global variable variable in app.js

 var gVar = {}; 

add you store to global variable and use that

 gVar.cStore=yourStore; 

Upvotes: 1

Related Questions