-
18 Apr 2012 10:13 AM #1
Direct not working in Architect, but IS working in browser...
Direct not working in Architect, but IS working in browser...
I have been using the Direct class system throughout the Architect 2 beta releases. At this point, I am unable to right click a store and "load data" (depending on the time of day, it is either grayed out or returns nothing). But, the stores are still working correctly when I look at the app in a browser, with no console errors.
Any ideas as to why a store would not work inside of Architect, but does work in a browser?
-
18 Apr 2012 10:32 AM #2
I am assuming you have direct API set correctly in project preferences and you get the message "Successfully updated Ext Direct API".
If that is true, then the directFn needs to be selected via the list of api available in the directFn config menu.Bharat Nagwani
Sencha Designer Development Team
-
18 Apr 2012 10:41 AM #3
Sorry about the lack of details.
Your assumptions are correct. The API loads correctly and I get a list of directFn in the proxy drop down. After selecting the correct function and adding the correct extraparams, as well as fields in the store and the root in the reader, the store's "load data" still doesn't work within Architect. But, the grid loads just fine in a browser (outside of Architect).
-
18 Apr 2012 10:59 AM #4
Do you have url prefix defined? this is so api url can be resolved
Say if you have api.php which has relative url - 'url'=>'php/router.php'Bharat Nagwani
Sencha Designer Development Team
-
18 Apr 2012 11:10 AM #5
Attaching a simple Direct project with Grid using DirectFn to read data
Bharat Nagwani
Sencha Designer Development Team
-
18 Apr 2012 11:52 AM #6
I am sad to report that I am experiencing the exact same result with your file. Please see my screenshots below. As you can see, the browser receives the data correctly, the settings are correct in the Architect file, but the "load data" option is still grayed out...
ScreenHunter_02 Apr. 18 12.49.jpgScreenHunter_04 Apr. 18 12.49.jpgScreenHunter_05 Apr. 18 12.50.jpg
-
18 Apr 2012 12:04 PM #7
That tells me your directFn in direct proxy is not getting eval'ed to a function
Bharat Nagwani
Sencha Designer Development Team
-
18 Apr 2012 12:20 PM #8
-
18 Apr 2012 12:32 PM #9
Whats your environment like - mac, windows.. and version? And your backend server that you use? It could be due to that. I can try to replicate here.
ThanksBharat Nagwani
Sencha Designer Development Team
-
18 Apr 2012 12:59 PM #10
Win7. I have attempted this on both IIS, and a Virtual Machine running Turnkey LAMP. I get the same result.
I have tried deleting the Sencha folder from the [user]/AppData/local/Sencha, Inc/ directory and that does not seem to help.
I just had a co-worker replicate this issue by creating a new architect file and pointing it to the direct api file. Before saving the file, the 'load data' option is available and works. Upon saving the file, it reverts to the issue I've described. And this is using your files that you've provided on two different systems and server types.


Reply With Quote