1130 views

Description

[Dublin] action.setRedirectURL doesn't work in Mobile UI Actions

Steps to Reproduce

 

1. Login to OOB Dublin instance
2. Update the UI actions Mobile → Save (Global)
As below:
current.update();
action.setRedirectURL('./navpage.do');
3. Now login to the same instance via a smart phone or use Safari browser and Use agent( via Menu → Develop → User agent → Safari iPhone)
4. Navigate to Approvals → [filter out for All approval if you are login as maint]
5. Click on Save on one of the record. (You will not get redirected.)

 

While tailing the logs you will see the below error:
==============
11/22/13 16:43:13 (568) 68B37D086F1111008BA142DBEA3EE4D3 Parameters -------------------------
action_id=1701d400d71301008d7dc23c5e610385
operation=update
sysparm_type=ui_action
sys_id=069093716f4111008ba142dbea3ee4e0
method=execute
table=sysapproval_approver
type=list

11/22/13 16:43:13 (576) 68B37D086F1111008BA142DBEA3EE4D3 Evaluator: org.mozilla.javascript.EcmaError: "action" is not defined.
Caused by error in <refname> at line 2

1: current.update();
==> 2: action.setRedirectURL('./navpage.do');

11/22/13 16:43:13 (584) 68B37D086F1111008BA142DBEA3EE4D3 /angular.do -- transaction time: 0:00:00.026, waited: 0:00:00.000, source: 199.91.137.248

11/22/13 16:43:13 (627) 68B37D086F1111008BA142DBEA3EE4D3 Parameters -------------------------
sysparm_type=list_data
sys_id=069093716f4111008ba142dbea3ee4e0
table=sysapproval_approver

11/22/13 16:43:13 (672) 68B37D086F1111008BA142DBEA3EE4D3 /angular.do -- transaction time: 0:00:00.054, waited: 0:00:00.000, source: 199.91.137.248 195.99.201.196
================

Workaround

action.setRedirectURL has been confirmed as working for Mobile UI Actions as of the Eureka Release.


Related Problem: PRB592323

Seen In

Dublin EA 2
Dublin EA 8
Dublin Patch 1
Dublin Patch 1 Hot Fix 1
Dublin Patch 3

Fixed In

Eureka

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2016-07-25 12:51:14
Published:2013-12-11