Anyway, I decided to write one of mine: a bookmarklet that enables you to open an entity using it's guid. Unfortunately, right now, I ask that you also give me the entity name, but other than that, it's pretty useful while debugging applications that make extensive use of the SDK.
So, without any more delays: get it here.
If you are curious, you can check the bookmarklet code below.
javascript:var entity = window.prompt("Enter the name of the entity to open the default form for:", "");var guid = window.prompt("Enter the guid of the entity to open thedefault form for:", "");var o = new Object(); o.uri = "main.aspx?etn=" + entity + "&pagetype=entityrecord&id=%7B" + guid + "%7D";window.top.document.getElementById("navBar").control.raiseNavigateRequest(o);
Here's the same code block in a more readable way:
javascript: var entity = window.prompt("Enter the name of the entity to open the default form for:", ""); var guid = window.prompt("Enter the guid of the entity to open thedefault form for:", ""); var o = new Object(); o.uri = "main.aspx?etn=" + entity + "&pagetype=entityrecord&id=%7B" + guid + "%7D"; window.top.document.getElementById("navBar").control.raiseNavigateRequest(o);
No comments :
Post a Comment