johntalbott wroteI vote we let Vlad stay focused on bigger fish, as it's easy to make this a "global" one and done for all forms.
- In the Init Script of a VP content panel call the set up function. It doesn't matter which panel, we're just using it as a place to execute the code before forms are being rendered.
setupDefaultFocus()
- Kick your feed up, drink some vodka ... while Vlad focuses on consuming/exposing REST services.
John, you are a gentleman and a scholar and I am sure, much better looking than me. A question, do we have to put this in EVERY VP that is being called in our app, or just one to initialize this?
You are right, this is NOT high on the importance list, but I assume this is low lying fruit and perhaps would take 20 min of our most talented Vlad.
Trust me on the drinking of vodka. Pretty sure my blood is very sterile after all the alcohol being consumed Hic.. Hic.
But, being semi serious now. Lets talk about REST, and specifically consuming (calling) a REST service. It would seem to me that the biggest issue is that most REST services that return a result do that in a JSON object. So, the biggest issue is how to decode that into something that Aware can understand. Without a significant change to the way aware maps and stores data, This might not be so easy. (Many JSON result sets look like nested arrays. Optional nested arrays!) Of course, Vlad CAN do most anything!
I think it might be FUN to have a voice chat (sort of like our fun webinars) to focus and discuss options with exposing Aware functions as REST services. I have accomplishing what I need via a Node REST server and SQL scripts and stored procedures. Perhaps others have found work-a-rounds also?
Bruce