[JSFIELD-13] Add locationChange action Created: 26/Jul/22  Updated: 06/Feb/23  Resolved: 06/Feb/23

Status: Closed
Project: Java Script UI (App and Dialog Fields)
Component/s: None
Affects Version/s: None
Fix Version/s: 1.2.2

Type: Improvement Priority: Medium
Reporter: Tobias Kerschbaum Assignee: Riste Drangovski
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

It would be very practical if it were possible to trigger a Location Change (goTo) event from the field like this for example:

parent.window.postMessage({
  action: 'goToApp',
  correlationId,
  appName: 'pages-app'
  subAppId: 'browser'
  itemUUID: '<uuid>'
}, '*'); 


 Comments   
Comment by Teresa Miyar [ 22/Dec/22 ]

tobias.kerschbaum can you add a use case for that?

Comment by Tobias Kerschbaum [ 02/Jan/23 ]

Yes. The use case we wanted to solve was as follows. If you have a selection field with values from a content app and the one you are looking for is not there, you have to switch to the corresponding app. The idea when creating the ticket was to create a way to trigger a location change with a java script dialog field to be able to open this app and directly select the correct node.

Comment by Adrien Manzoni [ 06/Feb/23 ]

Hi Tobi,

Unfortunately, in the scope of a form field, this feature breaks the separation of concern between the field and the dialog.

Generated at Mon Feb 12 02:16:15 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.