11-01-2019 12:30 AM
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.
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.
11-01-2019 12:40 AM
My Action looks like this in GMSC administrator.
and I have a button which will open the URL below (with extra parameters)