Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Reply
Occasional Contributor
Posts: 11
Registered: ‎01-18-2017

Navigation between Workflows - OfflineForm - With Parameters

Hi developers,


How do I navigate (redirect) to a new form in OfflineMode? ie OfflineForm.

I would like to navigate to a new form and pass a few parameters together as well.


FYI,


in Online mode i use this method.

 

navigation between workflows 


var targetUrl = IG.url('Workflow/Index').includeWorkflowContext();
targetUrl.urlParams({nodeid:vNodeid, workflow:vWorkflowName, param1: 'value1'; param2: 'value2'});
var myWindow=window.open(targetUrl.toString(),'_self');
myWindow.focus();myWindow.focus();


I tried this in offline but it does not work.

(I want to open this form in offline eg.

myservername/GMSC/Workflows/SmartClientOffline?workflow=RedlineText&form=CGIS_REDLINE_TEXT_NEW_OFFLINE)

.

.

var serverName= 'myservername';
var vWorfklow = 'RedlineText';
var vForm = 'CGIS_REDLINE_TEXT_NEW_OFFLINE';
var targetUrl = IG.url('gmsc/Workflows/SmartClientOffline').includeWorkflowContext();
targetUrl.urlParams({workflow:vWorkflow, form:vForm, param1: 'value1'; param2: 'value2'});
var myWindow=window.open(targetUrl.toString(),'_self');
myWindow.focus();myWindow.focus();

.

.

actually this piece of code works if there is a network connection.
but if you disconnected the Wifi, this code does not work and will throw "no route to host" error.

any help into the right direction (a sample code is better) is greatly appreciated.

Occasional Contributor
Posts: 11
Registered: ‎01-18-2017

Re: Navigation between Workflows - OfflineForm - With Parameters

My Action looks like this in GMSC administrator.

and I have a button which will open the URL below (with extra parameters)

 

MyGMSCAdmin.jpg