I was wondering if I could acheive the following. I have a custom application page living in _layouts which displays an entity based upon an external content type item.
For external lists using this content type, I would like to set this page as the default view when a user clicks an item. I already have it as an action, but then the user has to click on the dropdown to find it, I want it to be really default.
I've tried using powershell (altering DefaultDisplayFormUrl), but that seems to only accept SPForm objects. For as far as I know, I can't create an SPForm object for pages in _layouts; right?
I also tried creating a new dispform page, copying my custom page content into that one and setting it as default, but I then get errors complaining about things like the masterpage attribute, autoeventwireup not being allowed, etc. etc.
What's a good option to acheive my goal?