Reference trouble with Form Wizard Pro custom handler example

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
2/2/2012 8:20:14 PM
Gravatar
Total Posts 73

Reference trouble with Form Wizard Pro custom handler example

I'm trying to create a simple custom handler for Form Wizard Pro.  I read the article on implementing such handlers and am trying to build the example code there.

I have an issue and a question.  I followed the directions as best I could and the issue is that the data types for the form submission handler are not being recognized by Visual Studio.  It thinks I have a problem with my references.

I have the four references called for by the article, but one of them isn't right.  The article says to reference sts.FormWizard.UI.dll, but there is only an sts.FormWizard.Web.UI.dll.  I referenced that, but it didn't prevent me from experiencing the data type issue.

Are the references correct, and if so, why might VS not be picking up the data types in the DLL?

Ted

2/3/2012 7:11:55 AM
Gravatar
Total Posts 18439

Re: Reference trouble with Form Wizard Pro custom handler example

Hi Ted,

You are right there is a typo in the doc, I've fixed it to say sts.FormWizard.Web.UI.

What exactly is the error? You may need other references from mojoPortal namespaces.

Hope that helps,

Joe

2/3/2012 10:51:06 AM
Gravatar
Total Posts 73

Re: Reference trouble with Form Wizard Pro custom handler example

I got it.

Along with the references described in the article and your sample code, I needed two other things: a reference to System.Configuration as well as the statement "using sts.FormWizard.Web.UI;".

After I added these two to the solution, I was able to get it to build and then put it in play on my test server.

Thanks!

2/3/2012 11:24:43 AM
Gravatar
Total Posts 73

Re: Reference trouble with Form Wizard Pro custom handler example

Actually, one more note regarding the handler.

I uncommented the code to send email from the handler so that I can reformat the sent email.

I followed the directions in the comments and added references to mojoPortal.Web.dll and mojoPortal.Net.dll (mojoPortal.Business.dll was already referenced) and added using statements for each.

However, before I could build successfully, I had to move the declarations for "attachments", "attachmentPaths" and "attachmentNames" to be previous to the if block which processes the attachments so that they would not go out of scope when the Email.send function needs them as parameters.

FYI.

Ted

You must sign in to post in the forums. This thread is closed to new posts.