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)
Type for dialog "ErrorList" property
Andrew_Sellors
Hi, I'm creating a component using C#.NET 2.0 and want to get back the error list returned from the New Profile dialog in WorkSite 8.0 when it is called by the iManExt.ImportCmd in silent mode ("IManExt.NewProfile.ProfileNoUI"=true).
I have attached to the OnInitDialog event of the ImportCmd and it seems I need to supply something to the ErrorList property of the dialog object to hold any errors that may occur in processing of the profile (e.g. required fields not met). This property is declared as an object (in .NET) and only as a "set" accessor. I've tried various different types but when ever I do:
oNewProfileDialog.ErrorList = sErrorList;
it throws up an error:
System.ArgumentException: Value does not fall within the expected range.
at iManExt.INewProfileDlg.set_ErrorList(Object )
My question therefore is, what do I need to supply to ErrorList?
thanks in advance.
Find more posts tagged with
Comments
jny
This is a write-only property that is used exclusively for internal communication within the IManExt source code.
You should be able to use your own error traps to trap any errors.
Andrew_Sellors
Thanks, I though that might be the case.
The reason I asked was that no errors are raised, nor do any of the dialog readable properties or Cmd Context items change after the Execute() finishes so I can't tell from them whether the profile was OK or not.
I had been trying to use the ImportCmd to validate a prospective document profile (as the Enhanced Save AS dialog does). I guess I will have to do it the hard way.
12MonthRollingSum.rptdesign
jny
Would you explain in more detail of what you're trying to do? Which version of WorkSite?
The EAI SaveAs dialog is not loaded by the ImportCmd.
Andrew_Sellors
Sorry for the delay but I've been on leave.
The context is a bespoke application integration for WorkSite 8.0. A form captures minimal profile information which is used to infer the choice of a workspace and folder for the saving of a document. The document gets created and filed into the folder inheriting the profile and security defaults. I wanted the behaviour of this integration to mimic closely what would happen in the standard WorkSite product if the process had been done manually in the Office integration for example. The Save As Dialog appears to use the ImportCmd to validate the profile to know whether a profile dialog should be thrown up to allow manual correction of invalid profile fields before actually trying to save the new document. I tried to do the same, but as it now appears, this is not possible from the external API. Instead I have now coded it such that the validation stage is done at the same time as the document creation and if anything is wrong with the profile, the user is given the chance of correcting any problems before retrying the operation.
computedColumn.rptdesign
jny
It sounds like what you need to use is the IManFileSaveCmd as this is the command that is invoked when saving a new document in Office Integration EAI Mode.
There is a technical article on the usage of this command here in DevNet. Search under Tech Library by article id 53218.
Please let me know whether or not that works for you.