Popup confirmation works in Session but not in Design mode

Hi everyone,

I have a view where, on clicking a button, a confirmation popup (Yes/No) is supposed to appear.
When I open the view in Session mode, the popup shows correctly.
But when I open it in Design mode, the popup does not appear.

Can anyone help me understand why this happens or how to fix it?

Thanks in advance!

def runAction(self, event):
	rowData = self.view.params.rowData		    
	prodid = rowData["PRODID"]["value"] 
	dataareaid =rowData["DATAAREAID"]["value"] 
	vpause=rowData["INPAUSE"]["value"]	
	
	msg = "Confirmation?"
	iconPath = "material/warning"
	
	# Open popup
	system.perspective.openPopup(
		"PopupConfirm_UPDATEORDER",
		view="templates/PopupConfirm_UPDATEORDER",
		params={
			"message": msg,
			"icon": iconPath,
			"callerID": "updateoncall_playbtn",
			"prodid": prodid,
			"dataareaid": dataareaid,
			"vpause":vpause
		},
		title="Conferma",
		modal=True,
		draggable=False,
		resizable=False,
		showCloseIcon=True
	)
	

What do you mean by Design mode?

Popups will not open in the Designer if that’s what you’re referring too.

Preview doesn't help. Perspective navigation doesn't work in the designer. At all. Test in a real session.

Thanks a lot Pturmel.