jamesfin
31 Jan 2012, 7:47 AM
Description:
Stores configured with extraParams do not get sent in the URL when performing a store 'Load Data' command or when setting a store in a view.
OSX Lion 10.7.2
Designer 2.0.0 Build 268
Steps to repeat...
Create a simple store with a working URL requiring a simple attribute parameter (i.e. http://foo.com/sencha/mobile/json.jsp. Configure extraParams in the store with a: 'load'.
1. Perform a right-click on the store node and click 'Load Data'.
2. Configure a simple view and set the store to the simple store configured above.
The action fails with a 'Unable to load data using the supplied configuration.' due to the missing extraParams in the test URL. Can be verified in Chrome Developer View
Expected Results...
URL should also contain the value(s) in extraParams when performing a 'Load Data' or setting the extraParams as it would do at runtime.
i.e.
http://foo.com/sencha/mobile/json.jsp?a=load
Workaround...
Add in the ?a=load to the existing store URL to quickly test. Remove before flight.
i.e.
http://foo.com/sencha/mobile/json.jsp?a=load
Stores configured with extraParams do not get sent in the URL when performing a store 'Load Data' command or when setting a store in a view.
OSX Lion 10.7.2
Designer 2.0.0 Build 268
Steps to repeat...
Create a simple store with a working URL requiring a simple attribute parameter (i.e. http://foo.com/sencha/mobile/json.jsp. Configure extraParams in the store with a: 'load'.
1. Perform a right-click on the store node and click 'Load Data'.
2. Configure a simple view and set the store to the simple store configured above.
The action fails with a 'Unable to load data using the supplied configuration.' due to the missing extraParams in the test URL. Can be verified in Chrome Developer View
Expected Results...
URL should also contain the value(s) in extraParams when performing a 'Load Data' or setting the extraParams as it would do at runtime.
i.e.
http://foo.com/sencha/mobile/json.jsp?a=load
Workaround...
Add in the ?a=load to the existing store URL to quickly test. Remove before flight.
i.e.
http://foo.com/sencha/mobile/json.jsp?a=load