startProcess automatically changes Visual Perspective

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
nhofkes
Posts: 94
Joined: Mon Sep 07, 2020 6:03 am
Location: Netherlands

startProcess automatically changes Visual Perspective

Post by nhofkes »

I noticed that when I start a process from an HTML link with "AwareApp.startProcess('ChangeBO', 'popup')", it automatically changes the Visual Perspective to the default VP for the user (in this case me, the Administrator). Is this a known side-effect of AwareApp.startProcess and is there a way to avoid it?

Note that the HTML link is placed in a form that itself is placed in the Banner of the VP, so it is not on a 'normal' form. I am not sure whether this makes any difference.
Niels
(V9.0 build 3241 - MariaDB - Windows)
aware_support
Posts: 7525
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: startProcess automatically changes Visual Perspective

Post by aware_support »

What is the complete HTML you are using there?
Aware IM Support Team
nhofkes
Posts: 94
Joined: Mon Sep 07, 2020 6:03 am
Location: Netherlands

Re: startProcess automatically changes Visual Perspective

Post by nhofkes »

The full HTML is:

Code: Select all

<<IF Session.Issuer_IsSelected='Yes' THEN SHOW SECTION_START>>
<a href='#' onclick="AwareApp.startProcess('ChangeIssuer', 'popup')"><<Session.Current_Issuer.Name>></a>
<<SECTION_END>>
'Session' is the non-persistent session object.
The idea is to convert the name into a clickable link, which triggers a process. That works, but has the side-effect that the VP is automatically changed to the default VP.
Niels
(V9.0 build 3241 - MariaDB - Windows)
aware_support
Posts: 7525
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: startProcess automatically changes Visual Perspective

Post by aware_support »

Please remove href='#' and it will be fine.
Aware IM Support Team
Post Reply