Skip to Main Content
Created by Guest
Created on Mar 23, 2023

Test SmartObjects from the K2 Designer.

We need to be able to test SmartObjects from directly within the K2 designer as it is much more efficient than having to switch to the management UI for this purpose.

This can be done now by creating a book mark on the favourites bar and then clicking on the bookmark when the properties page of the SmartObject is visible in the designer.


JavaScript required in the bookmark.

javascript:(function(){ let urlParams = new URLSearchParams(window.location.hash);$(".lyt-explorer-maincontent").after('<div><a onclick="$(this).parent().remove()">close</a><br/><iframe src="' + window.location.origin + '/Management/Runtime/Form.aspx?_ID=2ae83f85-6336-49f1-a9e5-fe78b220f6c4&smartobjectguid=%27 + urlParams.get("guid") + %27" height="400px" width="100%"></iframe></div>%27 );})();

  • Attach files