Javascriptlets- Execute a SmartObject in Designer.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
javascript: ( function(){
/*What you want to do goes here */
alert(window.location);
})();
For SmartObject execution:
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='
+ urlParams.get("guid") + '" height="400px" width="100%"></iframe></div>' );
})();
source & further reading
gist.github.com — original article
Building an LLM Wiki for Your Project — a step-by-step guide (agent-maintained knowledge base: schema, ingest/query/lint workflows, qmd search, lint script)
claude cost optimization instructions
Self-hosted AI assistant on a $9 VPS — Ollama + Open WebUI + Caddy