Tuesday, October 03, 2006

Dialog to select a template?

I posted on Notes.net but I thought I would repeat it here... does anyone know how to get @Prompt([ChooseDatabase]) to show templates? According to the help there is a values property that can be set to "2", but that doesn't seem to have any effect. It appears to be possible because when you do a File > Database > Open in Domino Designer it shows both NSF's and NTF's, but I have no idea what mechanism they're using to display that dialog. I'm not afraid of going to the C API if I have to, I really really need this functionality.

9 comments:

  1. I don't know the answer to your question, but the person you should ask is Damien Katz. After all, the @Formula engine was re-written by him.

    Sean---

    ReplyDelete
  2. Thanks for the suggestion, I was holding off on contacting anyone directly and hoping someone would stumble across my plea for help. If it drags on too long I'll contact Damien and hope he doesn't mind.

    ReplyDelete
  3. It may not be entirely appropriate, but Ytria have produced a fairly heavily branded, but freeware database picker dialog - available here

    ReplyDelete
  4. Matt, thanks for the suggestion. That does work, but I'm not that impressed. It does show me it's definitely possible, but this implementation is slow and requires I distribute a DLL to everyone. Also, their sample code does not work, so I'm not too sure I want to rely on what's underneath it. I appreciate the suggestion, it just makes me even more determined to find a solution. :-) It's absolutely possible, now I just have to figure out how.

    ReplyDelete
  5. I ran the Ytria DLL through Dependency Walker and figured out which API calls it was using, but that didn't lead anywhere. So I then found a tool called Neuron Developer Studio that lists more detail and found the dialog box Ytria put into their file. With that being the case, it doesn't look like it's possible to do this with a single API or function call from Notes.

    Bummer. Looks like I get to take the long way around.

    ReplyDelete
  6. Yeah, I wasn't too impressed either - would've been a lot nicer without all the branding.

    Another option (if you're not adverse to adding views to system templates) might be to create a view in your catalog.nsf on the server and use a picklist or something like that to select items from it.

    ReplyDelete
  7. Matt - I'm working on my own implementation that I'll make freely available. I haven't decided yet how I'll do it. A Notes form would be easier but it wouldn't look like the standard dialog. I'll have to see what I can come up with. :)

    ReplyDelete
  8. I've always gone to catalog db whenever I've needed anything like that, easiest and good enough. Never created any new views though, just parsed out the ntf's from the chaff.

    ReplyDelete
  9. The .dll Selection box was something we made a very looooooong time ago, and we never updated it since...I thought that we stopped offering it...we'll have to remove it from the web site...

    We created it because someone asked for it in the past, but the thought of having to provide a dll to all users just to be able to select a database...it really is not an option :-)

    FYI, we use the API to get the full list of databases and templates, but the dialog box is pure MFC...

    ReplyDelete