integrating Ux.locale.Manager extension into MVC application using Castle MonoRail - extjs

I am trying to integrate the Ux.locale.Manager (https://github.com/mitchellsimoens/Ux.locale.Manager) extension into our MVC application which uses Castle MonoRail.
I am experiencing difficulties in trying to get the extension to work.
Is this because Ext JS/Sencha MVC is incompatible with MonoRail MVC? I need to know this for if that is the case then I will need to find another method to localize/internationalize our application (which uses Ext JS for forms, grids, etc.).
Thanks in advance for an answer.

I was finally able to integrate the extension succesfully into my (Castle Monorail) MVC application. One needs to make the tpl value in ajaxConfig refer to a method in a controller that returns the json locale values instead of making it refer to the json locale files. I did not have to alter any code in the Manager.js file.

Related

Related to umbraco forms

how to create plugin same as umbracoforms with same functionality?
-If we add custom Fields from database in to umbraco backend custom section and it will reflect in to frontend same as umbraco forms can anybody guide me related to this ?
if you want to replicate something like that, I'll suggest you to start based on a already made code base.
Take a look at this project for AngularJS: forms generator AngularJS

UFT is not recognizing web objects for web based application developed using sharepoint 2013

When I tried using object spy but for links,webList etc for all the objects it is recognizing all of them as webElement. I have tried by adding .dot addin, I think I am missing something other than this.
This application is developed using Sharepoint 2013 and UI part is totally developed using angular js.
Please help me regarding this.
If they are recognized as WebElement, you can handle them as webelements. You can write a function to dynamically recognize your element, and use appropriate method (Set, Select...etc).
Screenshots or object details might help here.

I need to implement Asp.net Web API 2 and consume it by Sencha Ext JS

I want to implement a web-based API (using ASP.NET Web API 2) and consume it by the client Side library (Sencha Ext JS).
My application should include
A simple user registration form.
A login page for admin.
CRUD operations for users' submissions.
Notes:
I do not want to include any backend code (i.e C#) in the we application, I want to implement it using the HTML/Javascript only, that is Ext JS.
I want the Web API to be RESTful.
I want to protect admin pages.
I want to use the SQL Server to store users' submissions.
All of that requirements should be implemented using the ASP.net Web API 2 and Ext JS only.
So far, I did initial search and I got a lot of learning for either the ASP.net API 2 or the Ext JS. But I couldn't have a guide that help me to fulfill the above requirements or help me to have both technologies work together.
Pleas help me on either way.
Or generally, can you help me get started work in combining both: Asp.net Web API 2 and any client side that consumes it, such as Sencha Ext JS or any other client side. It is not necessarily to be Ext JS.
Thank you so much.
Thanks to StackOverflow.com
If it were me, I'd use the DirectAPI for asp.net https://github.com/elishnevsky/ext-direct-mvc
You create webapi controllers, just like you normally would. The only difference is the the controllers that need to be used by EXT should inherit from DirectController.
If you follow the directions on that page, you'll end up with a globally available proxy object that matches the name of the controller and the public methods hanging off of the controller become methods of that object.
That is, server side controller MyAwesomeController with method DoSomething() becomes MyAwesome.DoSomething.
If you attribute the method as [NamedArguements] you can create methods such as
DoSomething(int id, int foo)
and pass from javascript as DoSomething({id: 20, foo: 30});
Since it is still just a controller, you can attribute permissions and return json as you would in any other situation.
If you get stuck, use the debugger and spend the time to figure out what's really going on. This all works in 4.x and I've tried it in 5.x and it still works there as well. But I wouldn't jump into 5.x just yet as there are still several bugs that need to be worked out by the sencha team before it is ready for prime time.
ExtJs has a REST proxy for the data. So what you try to do should be possible. The proxy can be configured and be finetuned.
I used the JSON proxy. ExtJs has very powerful filter and sort capabilities, both server and client side. In my experience difficulties arose when filtering and sorting server side. There is only sparse documentation on how the parameters are passed and which configurations have what effects.
Since you also develop the REST api, you can adapt to those details. You just have to do some research.
Here is not the place to ask about guides. For Asp I cannot help you, I never touched it. If you use ExtJs, you are free to choose you backend. For ExtJs, the start is pretty straight forward :
get Sencha cmd and generate a skeleton app.
follow the tutorial
create one file per class definition.
the API docs are great. If you still lack something SO is great too.
what you have to find out by yourself is the exact way parameters are passed to the backend and how to format the response.

How to integrate AngularJS with Lithium?

I need to add new features to an already existing application. The application is built using Lithium and jQuery. The features that needs to be included have a complex view which allow users to analyze data and perform CRUD functionality. I won't go into details about the features here, but after working on a few simple Angular tutorials and side projects, I know that using AngularJS to create this view will make my life a lot more easier than creating the view using jQuery.
Over the course of the next few months we may convert the entire app to AngularJS.
I am uncertain about where I should place the Angular files and how to setup routing. How can I integrate AngularJS to Lithium so that part of the Lithium routing works and part of it is handled by AngularJS.
I also found this answer on stackoverflow but it doesn't mention folder structures or how to integrate Angular with Lithium. I think this link mentioned in the answers is supposed to have what I am looking for but it doesn't seem to exist anymore.
The link is down, but you can clone the source repository and run it yourself here: https://github.com/nateabele/li3-angular-presentation
Regarding organization, the simplest way would be to place the directory structure for your Angular components inside of /webroot. The more advanced (and in my opinion better) way would be to make them two separate applications: an AngularJS UI app, and a backend API in Li3 that it talks to.

Can I create a UI using codiqa/jetstrap and then add angular keywords?

I am a backend engineer but need to come up with a front end. Can I use Jetstrap/Codiqa and create a pretty UI using drag and drop. Can I then export the html and add the angular keywords? Is this the best practise for a non front-end person creates a UI?
I've used codiqa to design an phone app using phonegap. Codiqa generates code based on jQuery. it's possible to add angular after you export the code. Not very common to mix angular and jquery, from what I've seen though. Another online prototyping tool I recently found that generates AngularJS code (as well as Phonegap based Steroid.js) is AppGyver's composer. Comes with some built in color themes (similar to jQuery) and you're able to create a mobile app quickly based on Steriods.js/Phonegap.

Resources