How can I use created Custom Model of Form Recognizer in Logic App? I am getting an error 'Specified model not found or not ready, Model Id: XXXXXXX' while using Analyze Custom Form of Logic App. What is the correct way of using Custom Model in Logic App?
Are you using that along with form recognizer studio?
The current form recognizer task only supports the previous version of the API.
Note here it says "This tutorial and the Logic App Form Recognizer connector targets Form Recognizer REST API v2.1 and must be used in conjunction with the FOTT sample labelling tool"
Form Recognizer Studio is available with the v3.0 API. (here)
Some time ago I posted an alternative way using the logic App Http task (here).
You can try using that or use the concept to do something like a custom adapter until they release a task that works with 3.0
Related
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
I have a form in ReactJS, after submit, form data is posted to Django backend.
My requirement is, I need to run data analysis and visualization on submitted form data, with data already exists from previous submitted data.
can I build data visualization in Django Rest Framework?. or can I do data analysis and visualization in Pandas library?. But not sure how to build an API so that I can show up these data visualization to ReactJS ui after form submit.
Or Google or Azure cloud provide api for building data visualization on cloud and expose it as an api?
Please let me know , if any sample or reference to github project, will be helpful.
Can you build a data visualization app with DRF in the backend and React in the frontend?
Yes. I will briefly describe the flow.
Easy mode (with data computing on the server):
Submit the form in React.
Data is handled in DRF.
You do all computations in request processing. Yes, you can use any ML/Data science libraries. BUT, all computations should be quick and shouldn't use a lot of resources.
You return the results of your analysis as a JSON.
On the React side, you get the response from the server. You can display results, for example as a chart (data visualization).
The response returned from the server in point 4 can have already prepared JSON for the charting library.
For charting, I can recommend Plotly: https://plotly.com/javascript/react/ You can use plotly in Jupyter notebook as well for creating prototypes of analysis.
The difficult mode:
Your data analysis part take a lot of time and needs computing resources. Then you should use some background processing library (for example Celery). This is a little more complicated. You should do long polling on React side.
BTW, I'm working on Django+React tutorials how to build real SaaS applications from scratch. Would love to write about similar to yours use case in the future.
If you have more questions, feel free to ask. I'm happy to help!
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 am confused about how to process my form(s) using django, django-rest-framework, angularjs, and django-angular.
Using standard Django techniques I can create a model form in my view and pass it to my template.
Using django-angular, I can ensure that the form has lots of pretty bootstrap3 styling and integrates well w/ angularjs.
Using angularjs, I can bind the form to javascript models and gets loads of cool interactive functionality.
Using django-rest-framework, I can load the initial form data via a RESTful API which returns JSON.
This all works great. I am just not sure what to do when submitting my form though...
Should I submit using an angular function that calls my RESTful API? Or should I submit using normal Django methods (ie: if form.is_valid(): form.save()?
I am refactoring this code from a pure Django app and the forms have some extremely complex custom validation methods. I am not sure that I can (or should) replicate that in angular.
Is there a "best practice" out there? Given that I can GET and POST via my RESTful API, what is the advantage to still doing it via Django?
note: I just thought that custom serialization validation should let me have the same level of complexity going through django-rest-framework as I previously had in pure Django. Whether this is a good idea or not is still a valid question.
note2: angularjs & django-rest-framework sure does seem faster.
It is common practice to submit the data through the API and let the serializer do most of the validation for you. You can then do custom validation if needed. You can take a look here for more information on custom validation if you need it. But it does a pretty good job and I rarely have to write any custom validation.
Some of the problems you may run into with trying to do it through pure django, is that it will mess up your SPA. Doing a POST request will require you to "leave the SPA" and return back to it. Other issues such as CSRF tokens are also a pain in the butt to try and figure out. Best to just use your REST API.
I have a quick question on considering AngularJS (current stable version - 1.3.9) for an upcoming application that we are building on an existing framework. The current framework has a Java EE MVC architecture and here are the current components mentioned in sequential order in which they get invoked:
View - JSPs: This layer gets as response Java Objects and we use jsp:useBean to access its properties and display on screen.
If any modifications are done on the page, it goes through a ControllerServlet i.e a Java file which has code to access the HttpRequest and HttpSession related information. The controller also does a lookup in JNDI to find the name of the bean to invoke based on the HttpRequest parameter name, e.g. PageId
Once the EJBBean lookup is returned, the controller invokes an EJB 3.1 "no-interview" view - These are Stateless Beans annotated with #Stateless
EJBBean classes then invoke BusinessObject classes, we call them "BO" which internally gets referenced by the DAO interface
A DAO implementation class is the one which is responsible for CRUD operations
Our Problems as of now:
The view is tightly coupled to Java Objects that are returned from DAOs and since the response is not converted to JSON, a lot of scriptlet code is used to display their value (I know scriplets are oldskool, but being a legacy solution there is no choice)
jQuery is used to manipulate the DOM before sending it to the controller layer
View is not the official record of whats happening on the screen, unlike AngularJS where I could easily understand
Developers write custom CSS for different browsers manually
Proposed Solution
View shall be designed for the new application using AngularJS
Take advantage of Bootstrap css classes which has readily available CSS which can be combined with AngularJS
Each request goes to ControllerServlet using $http service to ensure we use existing MVC architecture i.e routing every request through Controller
EJB Layer to be RESTFul to return data in JSON Format
Viewport specific css code for responsive web design - i.e same screen should render on multiple devices and platforms
Questions:
Is the proposed solution feasible? What are the downsides?
Is it a good practice to reference EJB Bean classes as RESTFul services?
Do we get access to all the Java EE objects / interfaces using AngularJS? For e.g. HttpRequest, HttpSession, etc.
Will it help in performing better by switching to this architecture?
Question from Management - Why not stick with jQuery! - Probably the hardest of all the questions to convince the management of Angular's benefits
Hope you guys can help throw some suggestions
i'm using spring 4.0.1 , hibernate 4.3.5 ,jackson 1.9.2 , I'm creating a RESTful webservice that returns a data in JSON format and angularjs in front-end which is loosely coupled with back-end.
concerning your questions;
the solution is feasible of course , until now there no downsides
except session management is tricky because Restful ws is stateless
.
it's provide a very elegant feature that you can access all your
functionality via any application web-client-side, desktop or
mobile.
angular app is fully isolated from back-end app you can maintain
requests and session in the server and respond with what you like in
json format to angular
same as 2
i hope it's helpful