Best way to convert a vision mobile app to perspective

A few links (there are other links posted in these which are also very applicable):

IMHO, the biggest hurdles to wrapping your head around perspective (in no particular order) are:

  1. Layout management (e.g. when to use which kind of container)
  2. Styles are really, really powerful use them!
  3. Embedded views are great but use them sparingly.
  4. EVERYTHING executes in the gateway. EVERY-THING!! So if it doesn't say available in gateway or perspective scope, don't even try it.
  5. The script console will pretend to be your friend. The script console executes in designer scope which is a variant of Vision Client scope, see No. 4 for why this is important.
  6. Message Handlers are your real friends. You should have at least one that is set up to function for testing. This will allow you to use your old friend the script console to test your scripts in Gateway scope, again see No. 4 for why that is important.
  7. Transforms are cool, but they're also slow* so if you can do something without them you really should.
  8. Expression Structures are a amazing, don't avoid them you'll be surprised how often they're the answer you were looking for.
  9. Test in the designer and a browser. If it doesn't work in the designer then there is a good chance it doesn't work in a browser, if it works in the designer, it might not work as expected in the browser (especially if you're not using some chromium based browser).
  10. Browser security will block your efforts. Think about everything from that point of view, things you could do rather simply in vision (communicate over a clients com port, manipulate files on the clients hard drive, etc...) are unavailable, and there isn't a whole lot that IA can do about it.

You should know the syntax for:

  • CSS
  • JSON
  • Jython (Note: not the same as Python)

Good Luck! The paradigm shift is real.

* Transforms are slow relative to pure bindings. Different types of transforms have different performance factors, you should be aware of that if speed is a concern.

9 Likes