How to open modal dialog from Data Set row

mmorski
Tera Contributor

Hello,
I am using Yokohama Servicenow and now I want to open modal dialog from Data Set row and provide id of this row.

mmorski_0-1740149296221.png

So the button "Options" has to open Modal dialog and provide to this dialog id of the document. How can I achieve this? This is how my data looks like

{
    "all_actions": [
	 
    ],
    "is_last_page": false,
    "items": [
		{
            "propValues": {
                "imageType": "image",
                "imageURL": "doctype-document.svg",
                "mainActions": [{
                        "buttonType": "secondary",
						"size": "small",
                        "icon": "gear-fill",
                        "label": "Options",
                        "name": "options",
                        "actionType": "uxf_client_action",
						"actionDispatch": "OPEN_OPTIONS_MODAL"
                    }
                ],
                "model": {
                    "photo": "doctype-document.svg"
                },
                "subtitle": "Description of the document",
                "titleLabel": "Title of the document"
            },
            "serverScript": "",
            "template": "now-card-evam-record"
        }
    ],
    "page_number": 0,
    "page_size": 3,
    "selected_filter": ""
}


P.S. Is there any documentation or tutorials about possible options for this JSON and possibilities?

2 REPLIES 2

Bhattsid
ServiceNow Employee
ServiceNow Employee

Hey @mmorski, were you able to achieve this? I have the same requirement.

mmorski
Tera Contributor

Hi @Bhattsid not yet. For now this case is waiting until I will have time. I will get back to this topic soon and will let You know.