29 Jun 2012 7:14 AM #1
Variables inside Proxy URLs - Another issue with escaped values within Architect
Hey, got an API with multiple languages to translate the content coming through on the server side (smaller locale files and different set of data etc).
So my URL would be something like:
The thing is..... you can't put variables inside a Proxy URL because values are escaped as String.
What I would like to do is something along the lines of:
api.mobile.com/' + Ux.locale.manager.getLanguage() + '/events
api.mobile.com/\' + Ux.locale.manager.getLanguage() + \'/events
I think I've had these errors opening Architect for about a month now:
TypeError: 'undefined' is not an object Source Class: undefined Line 0
My project looks crazy since about a month ago when having to use my own Resources (CSS/JS)
Alot of the times my Views are just blank screens.
At the moment it's not possible for someone to create an entire application using Architect. At some point towards the end of my project I'm going to have to abandon it so I can get around what's not possible.
2 Aug 2012 8:20 PM #2
Cannot agree more
Lacking of flexibility is the most pain when you are trying to develop the whole app using Architect. I think it should give people more freedom and creativity not too much constraints and limitations.
3 Aug 2012 3:36 AM #3
3 Aug 2012 4:40 AM #4
3 Aug 2012 6:24 AM #5
3 Aug 2012 8:31 AM #6
- Join Date
- May 2010
- Guatemala, Central America
- Vote Rating
Use REST proxy and send the lang parameter via extraParams. As matter of fact IMHO that that's the correct "precedence" events > event > event content in some lang.
When you use tools like SA there are some scenarios in which with you must do small changes to overcome tool's limitations.
Regards.UI: Sencha Architect 3.x / ExtJS 4 & 5
Server side: JEE / EJB 3.x / CDI / JPA 2.x/ JAX-RS / JasperReports
Application Server: Glassfish / WildFly
Databases: Oracle / DB2 / MySQL / Firebird
If you like my answer please vote!