How can I call AwareApp.startProcess2 from a CUSTOM LAYOUT?

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
Jaymer
Posts: 2518
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

How can I call AwareApp.startProcess2 from a CUSTOM LAYOUT?

Post by Jaymer »

A Custom layout (in my case from a KanBan query) is kinda like the movie Interstellar - everything's not quite what you think.

Many of us call AwareApp.startProcess2 (or a variation) from many places:
•) simple HTML link
•) Execute_Javascript from a screen button
•) EXEC_JS from a procedure
•) Render script, sets up an on-click on a Grid cell
etc etc

But I can't figure out the syntax to embed this inside a <b>Custom Layout</b>.

@Himanshu
The Manufacturing app of your client that we saw in Tampa... that uses icons for functions on the KanBan card... Thats where I want to do it.
Right now I'm using a Row Operation to call a form - so I have the DEFAULT Row Action as an Edit Object.
But I want to add an ICON to go somewhere else.

Hopefully someone can contribute a working example of code to call this.

Thx
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
hpl123
Posts: 2627
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: How can I call AwareApp.startProcess2 from a CUSTOM LAYOUT?

Post by hpl123 »

Not sure I understand the question, are you saying you cannot use a simple HTML link with the AwareApp function in a simple HTML link in a custom layout? If so, why doesn't it work?

I use a bunch of custom layouts and often use the AwareApp functions in the layout e.g executed via a icon the user can click and works but again, I am maybe not understanding the question.
Henrik (V8 Developer Ed. - Windows)
Jaymer
Posts: 2518
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: How can I call AwareApp.startProcess2 from a CUSTOM LAYOUT?

Post by Jaymer »

bah
was having a brain fart.
didn't need the href="#"
found some code from 2 years ago where I'd done this - just forgot for a sec.
thx anyway
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
Post Reply