Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
WorkSite 8 Connector questions
mtolman
I'm working on a connector for WorkSite Web 8. In my connector, I would like to re-use some of standard HTML dialogs that are used in WorkSite. In particular, I would like to use the document profile and document search dialogs. It appears that these dialogs are exposed through the API, but I haven't been able to get one to show up in my connector.
It seems like the code I need to call should be similar to the following:
// code snippet from Process() method.
iManage.WorkSite.Web.Profiling.DocumentSearchForm form = new iManage.WorkSite.Web.Profiling.DocumentSearchForm(???, iManage.WorkSite.Web.SessionContext.Current);
string sForm = form.ToHtmlString();
The problem is that the first parameter in the DocumentSearchForm constructor needs to be a System.Xml.XmlElement object. I'm not sure which XmlElement I should pass in and where I should get it from.
Does anyone have any experience doing something similar?
Thanks,
Mike
Find more posts tagged with
Comments
Migrateduser
Well there is no publish API for it but if you use Lutz Roeder's .NET Reflector tool - you can see their object Model - There are two part of it - One is what Interwoven calls a dialog framework - The dialog classes are one which renders the UI with OK/CANCEL or PREV/NEXT/FINISH/CANCEL UI - this code can be inheriting - "imanage.worksite.web.ui.Dialog" - class - This class has two abstract method - ProcessPost() (When user submits the form) and ProcessGet() -When you want to show the UI to the user..
The Other part is profiling - This is in iMange.Worksite.Web.dll - You can use following Object to create the profile and then render it in HTML
DocumentSearchProfile profile = new DocumentSearchProfile(Resources.GetItem(SessionContext.Current.WebRole.WebSearchProfileID), String.Empty);
and then calling
profile.ToHtmlString() - to get the HTML part of it -
Of course you may want to process/popuilate with some value - for that you can use other method of this profile such as Commit() or Process()
If you have Interwoven SDK liecenses you can contact their DevSupport for more information
Thanks