<?xml version="1.0" encoding="UTF-8"?>
<!--Generated by Squarespace Site Server v5.0.0 (http://www.squarespace.com/) on Tue, 06 Jan 2009 12:16:26 GMT--><feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"><title>Knowledge Base</title><subtitle>Knowledge Base</subtitle><id>http://community.workflowgen.com/kb/</id><link rel="alternate" type="application/xhtml+xml" href="http://community.workflowgen.com/kb/"/><link rel="self" type="application/atom+xml" href="http://community.workflowgen.com/kb/atom.xml"/><updated>2008-12-22T20:49:17Z</updated><generator uri="http://www.squarespace.com/" version="Squarespace Site Server v5.0.0 (http://www.squarespace.com/)">Squarespace</generator><entry><title>Implementing corrective "debug" actions within your workflow.</title><category>Process design</category><id>http://community.workflowgen.com/kb/implementing-corrective-debug-actions-within-your-workflow.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/implementing-corrective-debug-actions-within-your-workflow.html"/><author><name>WFG Team</name></author><published>2008-12-15T19:56:00Z</published><updated>2008-12-15T19:56:00Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p style="MARGIN: 0in 0in 0pt"><span style="text-decoration: underline;">Issue</span></p>
<p style="MARGIN: 0in 0in 0pt">&nbsp;</p>
<p style="MARGIN: 0in 0in 0pt">When using system actions within your workflow it is strongly recommended that you add a corrective (debug) action linked directly to that system action. Should an error occur during the execution of a system action, it is required that you trap the error in question or risk having the request close prematurely (with a status of "Closed-Cancelled").</p>
<p style="MARGIN: 0in 0in 0pt">&nbsp;</p>
<p style="MARGIN: 0in 0in 0pt"><span style="text-decoration: underline;">Solution</span></p>
<p style="MARGIN: 0in 0in 0pt">&nbsp;</p>
<p style="MARGIN: 0in 0in 0pt">The solution is to implement error handling functionality for all actions executed by the system. This will help ensure that execution errors are not only captured by WorkflowGen, but also allows for the action to be re-launched once the cause of the error has been rectified.</p>
<p style="MARGIN: 0in 0in 0pt">&nbsp;</p>
<p style="MARGIN: 0in 0in 0pt">To add a corrective &ldquo;debug&rdquo; action, perform the following:</p>
<ol style="MARGIN-TOP: 0in" type="1">
<li style="MARGIN: 0in 0in 0pt; tab-stops: list .5in; mso-list: l0 level1 lfo1">Add a manual action (or a .NET form for a more interactive user experience)</li>
<li style="MARGIN: 0in 0in 0pt; tab-stops: list .5in; mso-list: l0 level1 lfo1">Position the&nbsp;action so that it transitions from the system action</li>
<li style="MARGIN: 0in 0in 0pt; tab-stops: list .5in; mso-list: l0 level1 lfo1">Place an &ldquo;Execution Error&rdquo; exception on the transition line</li>
<li style="MARGIN: 0in 0in 0pt; tab-stops: list .5in; mso-list: l0 level1 lfo1">Add a transition line from the manual action back to the system action</li>
</ol>
<p style="MARGIN: 0in 0in 0pt">Should an error occur during the execution of a system action it will trigger the execution exception and transition to the&nbsp;&ldquo;debug&rdquo; action. This will essentially &ldquo;pause&rdquo; the request until the Participant or user assigned manually starts and stops the action. As long as the system action is in error, it will continue to trigger the manual action. Once the error has been corrected and the manual action is launched , the workflow will continue on its intended path.</p>]]></content></entry><entry><title>How to create custom menus in the WorkflowGen administration module</title><category>Tech Administration</category><category>Setup</category><category>Administration</category><id>http://community.workflowgen.com/kb/how-to-create-custom-menus-in-the-workflowgen-administration.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/how-to-create-custom-menus-in-the-workflowgen-administration.html"/><author><name>WFG Team</name></author><published>2008-12-08T18:59:00Z</published><updated>2008-12-08T18:59:00Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p><span style="text-decoration: underline;">How To</span></p>
<p>How to create custom menus in the WorkflowGen&nbsp;administration module</p>
<p><span style="text-decoration: underline;">Solution</span></p>
<p>To create custom menus in the administration module, you must create and modify an XML<br />called &ldquo;admin.xml&rdquo; file in the CustomMenu folder located in the directory<br />&ldquo;\wfgen\App_Data\customMenus\&rdquo; of the WorkflowGen&nbsp;web server. If this folder does not exist, simply create it.</p>
<p>The following is an example only of what your "admin.xml" file may contain:&nbsp;</p>
<blockquote>
<p>&nbsp;</p>
<p>&nbsp;&lt;?xml version="1.0" encoding="utf-8" ?&gt;</p>
<p align="left">&lt;menu&gt;</p>
<p align="left">&lt;menuItem title="My links..." profile="user"&gt;</p>
<p align="left">&lt;menuItem title="Advantys" url="http://www.advantys.com/"</p>
<p align="left">target="_new" description="Advantys Web Site" profile="user"</p>
<p align="left">showInHomepage="true" /&gt;</p>
<p align="left">&lt;menuItem title="WorkflowGen" url="http://www.workflowgen.com/"</p>
<p align="left">target="" description="WorkflowGen Web Site" profile="admin"</p>
<p align="left">icon="myicon.gif" showInHomepage="false" /&gt;</p>
<p align="left">&lt;/menuItem&gt;</p>
<p>&lt;/menu&gt;&nbsp;</p>
</blockquote>
<p><em>Reference</em></p>
<p><em>WorkflowGen 5.1 Administration module documentation - Chapter 21 Appendix C. </em></p>
<p><a href="http://community.workflowgen.com/downloads/documentation"><em>http://community.workflowgen.com/downloads/documentation</em></a><em> </em></p>]]></content></entry><entry><title>Activating your installation of WorkflowGen</title><category>Setup</category><id>http://community.workflowgen.com/kb/activating-your-installation-of-workflowgen.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/activating-your-installation-of-workflowgen.html"/><author><name>WFG Team</name></author><published>2008-12-01T18:24:00Z</published><updated>2008-12-01T18:24:00Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p><span style="text-decoration: underline;">Issue</span></p>
<p>I am unable to activate my installation of WorkflowGen.</p>
<p><span style="text-decoration: underline;">Solution</span></p>
<p>To activate the product you must:</p>
<ol>
<li>Copy the license file (*.lic) to the /wfgen/bin folder.</li>
<li>When trying to launch WorkflowGen, the application should prompt you for a valid license key. Enter the serial key which matches the *.lic file sent to you.</li>
</ol>
<p><span style="text-decoration: underline;">Note</span></p>
<p>If you have a mismatch with the .lic and the key, the activation will&nbsp;not work.</p>
<p>If you have multiple .lic files in the /wfgen/bin folder, the activation&nbsp;will not work&nbsp;either due to the conflict. Please remove inactive .lic files.</p>]]></content></entry><entry><title>I'm using Adobe Reader 9 in conjunction with a fileupload control and I am unable to submit my form.</title><category>.Net Web Form</category><id>http://community.workflowgen.com/kb/im-using-adobe-reader-9-in-conjunction-with-a-fileupload-con.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/im-using-adobe-reader-9-in-conjunction-with-a-fileupload-con.html"/><author><name>WFG Team</name></author><published>2008-11-24T21:14:00Z</published><updated>2008-11-24T21:14:00Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p><span style="text-decoration: underline;">Issue</span></p>
<p>We have seen repeated problems when using the file upload feature with Acrobat Reader 9. If there is a valid file path within the upload field, the 'Submit' button does not respond. On the other hand, adding a space (if a required field) or leaving the field blank will allow the 'Submit' button to fire.</p>
<p><span style="text-decoration: underline;">Solution</span></p>
<p>Adobe has confirmed that the reported issue has been resolved and a fix will be issued within an upcoming 9.x release.</p>
<p><span style="text-decoration: underline;">Note</span></p>
<p>WorkflowGen does guarantee support of Adobe Reader 8.1 or higher.</p>
<p>&nbsp;</p>]]></content></entry><entry><title>Calculation problem when using the VBScript “Now” function in conjunction with the “DateDiff” function within a condition.</title><category>Process design</category><id>http://community.workflowgen.com/kb/calculation-problem-when-using-the-vbscript-now-function-in.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/calculation-problem-when-using-the-vbscript-now-function-in.html"/><author><name>WFG Team</name></author><published>2008-11-17T21:26:00Z</published><updated>2008-11-17T21:26:00Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p style="MARGIN: 0in 0in 0pt; tab-stops: 208.5pt"><span style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><span style="text-decoration: underline;">Issue</span></span></p>
<p style="MARGIN: 0in 0in 0pt; tab-stops: 208.5pt">&nbsp;</p>
<p style="MARGIN: 0in 0in 0pt; tab-stops: 208.5pt"><span style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: 'Courier New'">The &ldquo;Now&rdquo; function will return the current local time of the Windows machine which is used to compare to a GMT </span><span style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: 'Courier New'">DateTime from the macro &lt;WF_ACTIVITY_INST_LIMIT_DATETIME&gt;.</span>&nbsp;</p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">&nbsp;</p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: 'Courier New'">The time difference could be several hours off depending on the local machine's time zone setting which may result into an incorrect or false condition evaluation. This is only true in WorkflowGen versions 5+, since the introduction of the time zone management feature. This is a DateTime calculation issue and not a software bug.</span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">&nbsp;</p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><span style="text-decoration: underline;">Solution</span></span></p>
<p style="MARGIN: 0in 0in 0pt">&nbsp;</p>
<p style="MARGIN: 0in 0in 0pt"><span style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: 'Courier New'">The solution is to use the macro &lt;WF_SYSTEM_DATETIME&gt; instead of the VBScript function &ldquo;Now&rdquo;.</span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">&nbsp;</p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: 'Courier New'"><span style="text-decoration: underline;">Example</span></span></p>
<p><span style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: 'Courier New'">
<blockquote>
<p>&nbsp;</p>
<p><span style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: 'Courier New'">DateDiff("d",&lt;WF_ACTIVITY_INST_LIMIT_DATETIME&gt;,&lt;WF_SYSTEM_DATETIME&gt;) &gt; 2</span></p>
<p>&nbsp;</p>
</blockquote>
</span></p>
<p><span style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: 'Courier New'"><span style="text-decoration: underline;">Note</span> </span></p>
<p><span style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: 'Courier New'">This KB is applicable to transition and additional notification conditions. <br /></span></p>]]></content></entry><entry><title>My .NET validator does not trigger the validation error message.</title><category>.Net Web Form</category><category>Process design</category><id>http://community.workflowgen.com/kb/my-net-validator-does-not-trigger-the-validation-error-messa.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/my-net-validator-does-not-trigger-the-validation-error-messa.html"/><author><name>WFG Team</name></author><published>2008-11-10T19:11:00Z</published><updated>2008-11-10T19:11:00Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
<p><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><span style="text-decoration: underline;">Issue</span></span></p>
<p><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">My .NET validator does not trigger the validation error message even if I have&nbsp;set the ValidationGroup to 'WFGENPage'.</span></p>
</span></p>
<p><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><span style="text-decoration: underline;">Background</span></span></p>
<p><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">WorkflowGen's&nbsp;validation group WFGENPage&nbsp;handles the validation of fields specified in the parameter 'FORM_FIELDS_REQUIRED'.</span></p>
<p><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">We can add additional .NET validation controls and associate the validation result to 'WFGENPage' so that we can consolidate all error messages when the submit button is clicked and the form is submitted to the WorkflowGen engine.</span></p>
<p>
<p><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><span style="text-decoration: underline;">Solution</span></span></p>
</p>
<p><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">You must&nbsp;have the 'FORM_FIELDS_REQUIRED' parameter in your action with a valid field&nbsp;ID or the 'FieldDataType' extended attribute&nbsp;applied to a .Net control within&nbsp;your web form. The WorkflowGen engine will generate the javascript to show the required field validation error only if it is needed. If 'FORM_FIELDS_REQUIRED' does not contain a&nbsp;valid field specified in the parameter or 'FieldDataType' is not used within your web form(s), WFGENPage will not create the javascript for the error message dialog box. Hence, your .NET validation will still validate but it will not trigger the error message window.</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;If your form does not have&nbsp;a standard&nbsp;.NET control&nbsp;that needs to be required&nbsp;or no .Net control using the 'FieldDataType' attribute, you can&nbsp;add any invisible&nbsp;or inactive .Net control to use for this purpose. This will&nbsp;ensure that&nbsp;'WFGENPage'&nbsp;triggers the error message box.</span></p>]]></content></entry><entry><title>After changing the user name of a user in Active Directory, the user is unable to log in to WorkflowGen and receives the following security error… “You are not authorized to view this page”.</title><category>Tech Administration</category><category>Setup</category><category>Performance</category><id>http://community.workflowgen.com/kb/after-changing-the-user-name-of-a-user-in-active-directory-t.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/after-changing-the-user-name-of-a-user-in-active-directory-t.html"/><author><name>WFG Team</name></author><published>2008-11-03T20:42:00Z</published><updated>2008-11-03T20:42:00Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p style="MARGIN: 0in 0in 0pt"><span style="text-decoration: underline;"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">Issue</span></span></p>
<p style="MARGIN: 0in 0in 0pt">&nbsp;</p>
<p style="MARGIN: 0in 0in 0pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">After changing the user name of a user in Active Directory <span style="font-size: 50%; vertical-align: super;">1</span>, the user is unable to log in to WorkflowGen and receives the following security error... &ldquo;You are not authorized to view this page&rdquo;.</span></p>
<p style="MARGIN: 0in 0in 0pt">&nbsp;</p>
<p style="MARGIN: 0in 0in 0pt"><span style="text-decoration: underline;"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">Details</span></span></p>
<p style="MARGIN: 0in 0in 0pt">&nbsp;</p>
<p style="MARGIN: 0in 0in 0pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">In fact, whether the username (<span class="form-table-cell-value1"><span style="mso-ansi-font-size: 10.0pt; mso-bidi-font-size: 10.0pt">SAMAccountName) is changed via your Active Directory or a </span></span>Domain Controller is irrelevant. In either case,&nbsp;the user in question will&nbsp;not be able to log into WorkflowGen. </span></p>
<p style="MARGIN: 0in 0in 0pt">&nbsp;</p>
<p style="MARGIN: 0in 0in 0pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">This is likely to occur given the following conditions...</span>&nbsp;</p>
<p style="MARGIN: 0in 0in 0pt">&nbsp;</p>
<ol style="MARGIN-TOP: 0in" type="1">
<li style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; tab-stops: list .5in"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">You are using Integrated Authentication (The user is able to login to their Windows account but not WorkflowGen) and...</span></li>
<li style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; tab-stops: list .5in"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">Local users are running Windows Vista, Windows XP, or Windows Server 2003. The Local Security Authority or LSA is a process in Microsoft Windows operating systems that is responsible for enforcing security policy on the system. It verifies users logging on to a Windows computer or server creating access tokens which contain security information for login sessions identifying the user, user&rsquo;s groups and the user&rsquo;s privileges. This information is cached by the LSA which was intended to improve performance; however inconsistencies may occur between the local cache and the domain controllers, resulting in the error in question. </span></li>
</ol>
<p style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; tab-stops: list .5in"><span style="text-decoration: underline;"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">Solution</span></span></p>
<p style="MARGIN: 0in 0in 0pt">&nbsp;</p>
<p style="MARGIN: 0in 0in 0pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">The solution is to disable the LSA from caching the user&rsquo;s information on the domain member&rsquo;s or user&rsquo;s computer. Microsoft proposes to perform the following steps...</span>&nbsp;&nbsp;</p>
<ol type="1">
<li style="MARGIN: 0in 0in 0pt; COLOR: black; LINE-HEIGHT: 18pt; mso-list: l0 level1 lfo1; tab-stops: list .5in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">Open Registry Editor.To do this in Windows XP or in Windows Server 2003, click <strong><span style="FONT-FAMILY: Tahoma">Start</span></strong>, click <strong><span style="FONT-FAMILY: Tahoma">Run</span></strong>, type <strong>regedit</strong>, and then click <strong><span style="FONT-FAMILY: Tahoma">OK</span></strong>.<br />To do this in Windows Vista, Click <strong><span style="FONT-FAMILY: Tahoma">Start</span></strong>, type <strong>regedit</strong> in the <strong><span style="FONT-FAMILY: Tahoma">Start Search</span></strong> box, and then press ENTER. </span></li>
<li style="MARGIN: 0in 0in 0pt; COLOR: black; LINE-HEIGHT: 18pt; mso-list: l0 level1 lfo1; tab-stops: list .5in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">Locate and then right-click the following registry subkey: <strong>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa</strong></span></li>
<li style="MARGIN: 0in 0in 0pt; COLOR: black; LINE-HEIGHT: 18pt; mso-list: l0 level1 lfo1; tab-stops: list .5in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">Point to <strong><span style="FONT-FAMILY: Tahoma">New</span></strong>, and then click <strong><span style="FONT-FAMILY: Tahoma">DWORD Value</span></strong>. </span></li>
<li style="MARGIN: 0in 0in 0pt; COLOR: black; LINE-HEIGHT: 18pt; mso-list: l0 level1 lfo1; tab-stops: list .5in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">Type <strong>LsaLookupCacheMaxSize</strong>, and then press ENTER. </span></li>
<li style="MARGIN: 0in 0in 0pt; COLOR: black; LINE-HEIGHT: 18pt; mso-list: l0 level1 lfo1; tab-stops: list .5in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">Right-click <strong><span style="FONT-FAMILY: Tahoma">LsaLookupCacheMaxSize</span></strong>, and then click <strong><span style="FONT-FAMILY: Tahoma">Modify</span></strong>. </span></li>
<li style="MARGIN: 0in 0in 0pt; COLOR: black; LINE-HEIGHT: 18pt; mso-list: l0 level1 lfo1; tab-stops: list .5in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">In the <strong><span style="FONT-FAMILY: Tahoma">Value data</span></strong> box, type <strong>0</strong>, and then click <strong><span style="FONT-FAMILY: Tahoma">OK</span></strong>. </span></li>
<li style="MARGIN: 0in 0in 0pt; COLOR: black; LINE-HEIGHT: 18pt; mso-list: l0 level1 lfo1; tab-stops: list .5in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">Exit Registry Editor.</span></li>
</ol>
<p style="MARGIN: 0in 0in 0pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">For a complete article on this topic, please visit the following URL: <a href="http://support.microsoft.com/kb/946358">http://support.microsoft.com/kb/946358</a></span></p>
<p style="MARGIN: 0in 0in 0pt">&nbsp;</p>
<p style="MARGIN: 0in 0in 0pt">&nbsp;</p>
<p style="MARGIN: 0in 0in 0pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma; mso-ansi-language: EN-US; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"><span style="font-size: 50%; vertical-align: super;">1 </span>You may want to perform a manual synchronization within WorkflowGen so that changes to users are reflected immediately within the application rather than waiting for a scheduled synchronization to occur.</span></p>]]></content></entry><entry><title>Can I use a .NET user control in my webform?</title><category>.Net Web Form</category><id>http://community.workflowgen.com/kb/can-i-use-a-net-user-control-in-my-webform.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/can-i-use-a-net-user-control-in-my-webform.html"/><author><name>WFG Team</name></author><published>2008-10-27T16:54:00Z</published><updated>2008-10-27T16:54:00Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p><span style="FONT-SIZE: 10.5pt; COLOR: #3f3f3f; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-ansi-language: EN">
<p><span style="text-decoration: underline;"><span style="FONT-SIZE: 10.5pt; COLOR: #3f3f3f; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-ansi-language: EN"><span style="text-decoration: underline;"><span style="FONT-SIZE: 9pt; COLOR: #3f3f3f; FONT-FAMILY: Verdana; mso-ansi-language: EN">Issue</span></span></span></span><span style="FONT-SIZE: 10.5pt; COLOR: #3f3f3f; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-ansi-language: EN"><span style="FONT-SIZE: 9pt; COLOR: #3f3f3f; FONT-FAMILY: Verdana; mso-ansi-language: EN"> </span></span></p>
<p><span style="FONT-SIZE: 10.5pt; COLOR: #3f3f3f; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-ansi-language: EN"><span style="FONT-SIZE: 9pt; COLOR: #3f3f3f; FONT-FAMILY: Verdana; mso-ansi-language: EN">Can I use a .NET user control in my webform? </span></span></p>
<p style="BACKGROUND: white; LINE-HEIGHT: 150%"><span style="text-decoration: underline;"><span style="FONT-SIZE: 10.5pt; COLOR: #3f3f3f; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-ansi-language: EN"><span style="text-decoration: underline;"><span style="FONT-SIZE: 9pt; COLOR: #3f3f3f; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-ansi-language: EN">Background </span></span></span></span></p>
<p style="BACKGROUND: white; LINE-HEIGHT: 150%"><span style="FONT-SIZE: 10.5pt; COLOR: #3f3f3f; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-ansi-language: EN"><span style="FONT-SIZE: 9pt; COLOR: #3f3f3f; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-ansi-language: EN">.NET user controls provides the flexibility of separating the content of a webform into different individual sections. Each section is contained in a user control file (.ascx). Since&nbsp;user controls files have&nbsp;their own design&nbsp;and cs page (code behind) acting like an independent module,&nbsp;a user control&nbsp;can be reused within different projects. WorkflowGen&nbsp;will recognize all the supported WorkflowGen elements within a user control with certain conditions. </span></span></p>
<p style="BACKGROUND: white; LINE-HEIGHT: 150%"><span style="text-decoration: underline;"><span style="FONT-SIZE: 10.5pt; COLOR: #3f3f3f; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-ansi-language: EN"><span style="text-decoration: underline;"><span style="FONT-SIZE: 9pt; COLOR: #3f3f3f; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-ansi-language: EN">Details </span></span></span></span></p>
<p style="BACKGROUND: white; LINE-HEIGHT: 150%"><span style="FONT-SIZE: 10.5pt; COLOR: #3f3f3f; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-ansi-language: EN"><span style="FONT-SIZE: 9pt; COLOR: #3f3f3f; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-ansi-language: EN">A user control is supported with WorkflowGen.My version 2.1.x or later. When a webform is launched at the pre-render stage, WorkflowGen.My will parse all supported .NET controls on the main aspx form page as well as controls within any user control .ascx page. It will then prepare all necessary data columns for the form data (in Simple Mode). Controls inside a user control file will have the user control ID as a prefix. For example, if a user control ID is named &ldquo;USERCTRL1&rdquo; and within that control it has a textbox with an ID named &ldquo;APPROVAL_AMT&rdquo;, then the reference of this textbox will be: &ldquo;USERCTRL1.APPROVAL_AMT&rdquo;.</span></span></p>
<p style="BACKGROUND: white; LINE-HEIGHT: 150%"><span style="FONT-SIZE: 10.5pt; COLOR: #3f3f3f; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-ansi-language: EN"><span style="FONT-SIZE: 9pt; COLOR: #3f3f3f; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-ansi-language: EN">We can also use this notation in WorkflowGen action parameters. For example, we can set/read the value for this APPROVAL_AMT field:</span></span></p>
<p style="BACKGROUND: white; LINE-HEIGHT: 150%"><span style="FONT-SIZE: 10.5pt; COLOR: #3f3f3f; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-ansi-language: EN"><strong><span style="FONT-SIZE: 9pt; COLOR: #3f3f3f; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-ansi-language: EN">USERCTRL1.APPROVAL_AMT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IN<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>100000</span></strong></span></p>
<p style="BACKGROUND: white; LINE-HEIGHT: 150%"><span style="FONT-SIZE: 10.5pt; COLOR: #3f3f3f; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-ansi-language: EN"><strong><span style="FONT-SIZE: 9pt; COLOR: #3f3f3f; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-ansi-language: EN">USERCTRL1.APPROVAL_AMT<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>OUT<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>APPROVAL_OUT (process data)</span></strong></span></p>
<p style="BACKGROUND: white; LINE-HEIGHT: 150%"><span style="FONT-SIZE: 10.5pt; COLOR: #3f3f3f; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-ansi-language: EN"><span style="FONT-SIZE: 9pt; COLOR: #3f3f3f; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-ansi-language: EN">You can also use the wildcard asterisk symbol (*)<span style="mso-spacerun: yes"> </span>in case of reference elements in the user control. For example if you need to set everything in USERCTRL1 as required, you can use the FORM_FIELD_REQUIRED parameter:</span></span></p>
<p style="BACKGROUND: white; LINE-HEIGHT: 150%"><span style="FONT-SIZE: 10.5pt; COLOR: #3f3f3f; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-ansi-language: EN"><strong><span style="FONT-SIZE: 9pt; COLOR: #3f3f3f; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-ansi-language: EN">FORM_FIELD_REQUIRED<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>IN<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>USERCTRL1.*</span></strong></span></p>
<p style="BACKGROUND: white; LINE-HEIGHT: 150%"><span style="FONT-SIZE: 10.5pt; COLOR: #3f3f3f; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-ansi-language: EN"><span style="FONT-SIZE: 9pt; COLOR: #3f3f3f; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-ansi-language: EN">However, since a user control does not inherit WorkflowGen.My class, you can not use any WorkflowGen.My methods within the user control code behind page. That includes the use of the predefined button &ldquo;SubmitButton&rdquo;. To overcome this, you will need to define your methods containing the use of WorkflowGen.My class object or methods on your main aspx.cs page. Then&nbsp;add a public event handler in your user control so that the main aspx.cs page can instantiate WorflowGen methods for the event in the user control. </span></span></p>
<p style="BACKGROUND: white; LINE-HEIGHT: 150%"><span style="FONT-SIZE: 10.5pt; COLOR: #3f3f3f; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-ansi-language: EN"><span style="FONT-SIZE: 9pt; COLOR: #3f3f3f; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-ansi-language: EN">Example for adding a WorkflowGen submit button in a user control:</span></span></p>
</span></p>
<blockquote>
<p>&nbsp;<span style="FONT-SIZE: 10.5pt; COLOR: #3d3d3d; FONT-FAMILY: Tahoma; mso-ansi-language: EN"><span style="FONT-SIZE: 10.5pt; COLOR: #3d3d3d; FONT-FAMILY: Tahoma; mso-ansi-language: EN"><span style="FONT-SIZE: 9pt; COLOR: #3d3d3d; FONT-FAMILY: Tahoma; mso-ansi-language: EN">//----- on default.aspx.cs<span style="mso-spacerun: yes"> </span>page ------<br /><br />//<span style="mso-tab-count: 1"><span style="mso-tab-count: 1"> </span></span>Prepare a method for the user control submit button event <br />//<span style="mso-tab-count: 1"><span style="mso-tab-count: 1"> </span></span>that basically triggers SubmitToWorkflow()<br /><br />void UserCtrl_btnUserCtrlSubmitHandler(string strValue)<br />{<span style="mso-spacerun: yes"> </span>SubmitToWorkflow();<span style="mso-tab-count: 1"><span style="mso-tab-count: 1"> </span></span>}<br /><br /><br /><br />//<span style="mso-tab-count: 1"><span style="mso-tab-count: 1"> </span></span>Create a new event handler that captures the button click event from user control<br />//<span style="mso-tab-count: 1"><span style="mso-tab-count: 1"> </span></span>The user control has an ID called UCTRL on default.aspx page<br />//<span style="mso-tab-count: 1"><span style="mso-tab-count: 1"> </span></span>In UserCtrl.aspx.cs there is a submit button event handler called<br />//<span style="mso-tab-count: 1"><span style="mso-tab-count: 1"> </span></span>btnUserCtrlSubmitHandler for an event called OnSubmitButtonClick<br />//<span style="mso-tab-count: 1"><span style="mso-tab-count: 1"> </span><br /></span>//<span style="mso-tab-count: 1"><span style="mso-tab-count: 1"> </span></span>Once this event is triggered, <br />//<span style="mso-tab-count: 1"><span style="mso-tab-count: 1"> </span></span>it will pass the method UserCtrl_btnUserCtrlSubmitHandler<br /><br />protected void Page_Load(object sender, EventArgs e)<br />{<br />UCTRL.btnUserCtrlSubmitHandler += new UCTRL.OnSubmitButtonClick(UserCtrl_btnUserCtrlSubmitHandler);<br />}</span></span></span></p>
<p style="BACKGROUND: white; LINE-HEIGHT: 150%">&nbsp;</p>
<p style="BACKGROUND: #efefef"><span style="FONT-SIZE: 10.5pt; COLOR: #3d3d3d; FONT-FAMILY: Tahoma; mso-ansi-language: EN"><span style="FONT-SIZE: 9pt; COLOR: #3d3d3d; FONT-FAMILY: Tahoma; mso-ansi-language: EN">//----- on UserCtrl.acsx.cs<span style="mso-spacerun: yes"> </span>page ------<br />//<br />//<span style="mso-tab-count: 1"><span style="mso-tab-count: 1"> </span></span>add event declaration for the main default.aspx page <br />//<span style="mso-tab-count: 1"><span style="mso-tab-count: 1"> </span></span>this event is triggered when a button control called Button2 is clicked<br />//<br style="mso-special-character: line-break" /><br style="mso-special-character: line-break" /><br style="mso-special-character: line-break" /></span></span></p>
<p style="BACKGROUND: #efefef"><span style="FONT-SIZE: 10.5pt; COLOR: #3d3d3d; FONT-FAMILY: Tahoma; mso-ansi-language: EN"><span style="FONT-SIZE: 9pt; COLOR: #3d3d3d; FONT-FAMILY: Tahoma; mso-ansi-language: EN">// Delegate declaration<br />public delegate void OnSubmitButtonClick(string strValue);<br /><br />// Event declaration<br />public event OnSubmitButtonClick btnUserCtrlSubmitHandler;</span></span></p>
<p style="BACKGROUND: #efefef"><span style="FONT-SIZE: 10.5pt; COLOR: #3d3d3d; FONT-FAMILY: Tahoma; mso-ansi-language: EN"><span style="FONT-SIZE: 9pt; COLOR: #3d3d3d; FONT-FAMILY: Tahoma; mso-ansi-language: EN">//<br />// in case of the button control &ldquo;Button2&rdquo; in user control is clicked, <br />// it triggers the OnSubmitButtonClick event that references to<br />// UserCtrl_btnUserCtrlSubmitHandler method on the main page</span></span></p>
<p style="BACKGROUND: #efefef"><span style="FONT-SIZE: 10.5pt; COLOR: #3d3d3d; FONT-FAMILY: Tahoma; mso-ansi-language: EN"><span style="FONT-SIZE: 9pt; COLOR: #3d3d3d; FONT-FAMILY: Tahoma; mso-ansi-language: EN">protected void Button2_Click(object sender, EventArgs e)<br />{<br />if (btnUserCtrlSubmitHandler != null)<br />{ btnUserCtrlSubmitHandler(string.Empty); }<br />}</span></span>&nbsp;</p>
</blockquote>
<p>&nbsp;</p>]]></content></entry><entry><title>When receiving emails from WorkflowGen, I notice that special characters do not display properly within the email.</title><category>Process design</category><category>Process templates</category><id>http://community.workflowgen.com/kb/when-receiving-emails-from-workflowgen-i-notice-that-special.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/when-receiving-emails-from-workflowgen-i-notice-that-special.html"/><author><name>WFG Team</name></author><published>2008-10-20T19:34:00Z</published><updated>2008-10-20T19:34:00Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p><span style="text-decoration: underline;">Issue</span></p>
<p>When&nbsp;receiving emails from WorkflowGen, I notice that&nbsp;special characters such as the French character '&eacute;' or the Russian character 'й' do not display properly within the email. They are being replaced by&nbsp;symbols such as a square box ''.</p>
<p><span style="text-decoration: underline;">Solution</span></p>
<p>This issue is likely only occurring with your custom templates. The solution is to...</p>
<p>1. In the &lt;HEAD&gt; section of your HTML document, add the following html code to the html template header (html email templates only).&nbsp;This will&nbsp;override browsers with other character sets as their default settings. To do this, include the following Meta tag:&nbsp;</p>
<blockquote>
<p>... <br />&lt;head&gt; <br />&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt; <br />&lt;/head&gt; <br />....</p>
</blockquote>
<p>2. Save the template file usingUTF-8 encoding. For example, in notepad, perform a'Save As' and select 'UTF-8' from the Encoding drop-down.</p>
<p>3. Re-upload the email template to your WorkflowGen process 'data'.</p>]]></content></entry><entry><title>When installing the WorkflowFileUpload control, I get a 'Failure to install...' error.</title><category>.Net Web Form</category><category>Setup</category><id>http://community.workflowgen.com/kb/when-installing-the-workflowfileupload-control-i-get-a-failu.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/when-installing-the-workflowfileupload-control-i-get-a-failu.html"/><author><name>WFG Team</name></author><published>2008-10-13T17:58:00Z</published><updated>2008-10-13T17:58:00Z</updated><content type="html" xml:lang="en-US"><![CDATA[<P><span style="TEXT-DECORATION: underline">Issue </span></P>
<P>When installing the WorkflowFileUpload component, I get the following error... </P>
<P><em>“Failure to install Toolbox controls via ContentInstaller or Tools.InstallCommunityControls”</em> </P>
<P><span style="TEXT-DECORATION: underline">Background </span></P>
<P>If you are experiencing this issue, it is likely because&nbsp;you have either SQL Server Management Studio Express CTP or SQL Server 2005 installed. These&nbsp;applications&nbsp;have at one point overwritten&nbsp;some of the registry key values used by Visual Studio&nbsp;resulting in the complications you are now experiencing. </P>
<P><span style="TEXT-DECORATION: underline">Solution </span></P>
<P>To install the WorkflowFileUpload control (as a workaround), please follow the following steps... </P>
<P>1. Under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\{36839529-3AF3-47fa-8194-F4A3FA9F0ED7}, change the CodeBase value to use the Visual Studio 8.0 location, for e.g. file:///D:\Program Files\Microsoft Visual Studio 8\Common7\IDE\Microsoft.VisualStudio.ToolBoxControlInstaller.dll </P>
<P>2. Under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\{36839529-3AF3-47fa-8194- F4A3FA9F0ED7}\SatelliteDll, change the Path value to point to the Common7\IDE folder for e.g. D:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ </P>
<P>3. Open the Visual Studio Command Prompt and run devenv /setup <strong>(Do not forget this step)</strong></P>
<P>4. Re-install the WorkflowFileUpload control</P>
<P><span style="TEXT-DECORATION: underline">Note:</span></P>
<P>If you continue to have problems installing this control or any other, you may be required to re-install Visual Studio.<br></P>]]></content></entry><entry><title>How can I add a file to a process data without using a FileUpload control within an eFormASPX form?</title><category>.Net Web Form</category><id>http://community.workflowgen.com/kb/how-can-i-add-a-file-to-a-process-data-without-using-a-fileu.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/how-can-i-add-a-file-to-a-process-data-without-using-a-fileu.html"/><author><name>WFG Team</name></author><published>2008-10-06T18:17:00Z</published><updated>2008-10-06T18:17:00Z</updated><content type="html" xml:lang="en-US"><![CDATA[<P><span style="TEXT-DECORATION: underline">Issue</span> </P>
<P>How can I add a file to a process data without using any FileUpload control within an eFormASPX form? </P>
<P><span style="TEXT-DECORATION: underline">Background </span></P>
<P>WorkflowGen.My will look for a file uploaded by the FileUpload control at submission. In a situation where we want&nbsp; to dynamically add a file to a WorkflowGen&nbsp;process data without prompting the user to&nbsp;upload a file, we need to make sure&nbsp; that WorkflowGen.My is still prepared to receive a file as an OUT parameter even if there is no FileUpload control on the form. </P>
<P><span style="TEXT-DECORATION: underline">Solution </span></P>
<P>A standard file upload in WorkflowGen requires 2 pieces of information: </P>
<P>- 1. A physical file to be&nbsp;uploaded to the action's temporary storage path.<br>- 2. A parameter name registered as a valid data field in the&nbsp;form data file. </P>
<P>To achieve this without the help of a FileUpload control, we need to do the following: </P>
<P>- 1.&nbsp;Prepare the source&nbsp;file by copying it to the WorkflowGen action temporary storage path </P>
<P>- 2. Create an invisible .NET Label control on the form as a file placeholder&nbsp;for WorkflowGen's form data </P>
<P>- 3. Set the label's text be the file path of the uploaded file</P>
<P>Example: </P><br>
<blockquote>
<P>//----- a label control with ID = “UPLOAD1” is added on aspx page<br></P>
<P>String SourceFolder = "C:\\Inetpub\\wwwroot\\wfgen\\WfApps\\MyProject";<br>String TargetFolder = “upload\\” + UPLOAD1.ID;<br>String FileName = "test.txt"; </P>
<P>// --- prepare folder for temporary storage of the upload file<br>// --- StoragePath is a predefined string variable inherited from WorkflowGen<br>// --- containing the storage path for files of the current form action <br></P>
<P>DirectoryInfo di = new DirectoryInfo(StoragePath + “\\” + TargetFolder);<br>if (!di.Exists)<br>{ di.Create(); }</P>
<P><br>FileInfo fi = new FileInfo(SourceFolder + “\\” + FileName);<br>fi.CopyTo(StoragePath + “\\” + TargetFolder + “\\” + FileName); </P>
<P>UPLOAD1.Text = TargetFolder + “\\” + FileName; </P></blockquote>]]></content></entry><entry><title>I am using the WorkflowFileUpload Control and my file does not display for subsequent actions.</title><category>Process design</category><id>http://community.workflowgen.com/kb/i-am-using-the-workflowfileupload-control-and-my-file-does-n.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/i-am-using-the-workflowfileupload-control-and-my-file-does-n.html"/><author><name>WFG Team</name></author><published>2008-09-22T17:28:00Z</published><updated>2008-09-22T17:28:00Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p><span style="TEXT-DECORATION: underline">Issue</span></p>
<p>I am using the WorkflowFileUpload control on my web form . When I upload a file and submit the&nbsp;form, I can see in the Follow Up form's 'Associated Data' that the file was successfully uploaded to a process data. However when the next action is launched the file does not display on the form.</p>
<p><span style="TEXT-DECORATION: underline">Background</span></p>
<p>On every submit, WorkflowGen automatically generates an XML file that is stored in a process data via the EFORMASPX required parameter 'FORM_DATA'. This XML file contains the data of the web form. WorkflowGen can use this XML file to populate your form fields with data from one action to another. However, the XML file cannot store files within itself as it can with textual data, so your WorkflowFileUpload control will be empty when the form loads.<br /><span style="TEXT-DECORATION: underline"><br /></span></p>
<p><span style="TEXT-DECORATION: underline">Solution</span></p>
<p>The solution is to create an 'IN' parameter&nbsp;for every action you want to display the uploaded file. Remember, the&nbsp;'IN' parameter's name must equal the&nbsp;value of&nbsp;the WorkflowFileUpload control's&nbsp;'ID' property.&nbsp;Make sure to specify the process data that contain the uploaded file as the 'IN' value. On subsequent actions of uploading a file, a link to the file will display on the web in lieu of the 'Browse' button. There may also be links to 'Modify' and 'Delete' the file depending on the whether the 'ReadOnly' property is set to 'true' or 'false'.</p>
<p>&nbsp;</p>
<p><br /><br /><br /><br /></p>
<p>&nbsp;&nbsp;</p>]]></content></entry><entry><title>Why am I getting a parser error "Could not load type" in Visual Studio 2008</title><category>.Net Web Form</category><id>http://community.workflowgen.com/kb/why-am-i-getting-a-parser-error-could-not-load-type-in-visua.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/why-am-i-getting-a-parser-error-could-not-load-type-in-visua.html"/><author><name>WFG Team</name></author><published>2008-09-15T13:18:00Z</published><updated>2008-09-15T13:18:00Z</updated><content type="html" xml:lang="en-US"><![CDATA[<P><span style="TEXT-DECORATION: underline">Issue</span></P>
<P>When creating a new web form with Visual Studio 2008 you are getting a parser error that states "Could not load type..." with the type name of your code-behind page.</P>
<P><span style="TEXT-DECORATION: underline"><br>Reason</span></P>
<P>This can be caused by the fact that Visual Studio 2008 does not, by default, copy references into the web form applications "References" folder (hereas in Visual Studio 2005 it does) when building your project.&nbsp; Therefore, the compiler can not load the type WorkflowGen.My.Web.UI.WebForms.WorkflowPage since it is not part of the local project on the WorkflowGen server.</P>
<P><strong><em><span style="TEXT-DECORATION: underline">N.B.:</span>&nbsp; This only applies to Web Applications and not Web Sites created in Visual Studio 2005 and Visual Studio 2008</em></strong></P>
<P><span style="TEXT-DECORATION: underline"><br>Solution</span></P>
<P>To fix this, you must set the property "Copy Local" to true in Visual Studio 2008 <br></P><br>
<blockquote>
<ol>
<li>In your Web Application, right-click on the "References" folder of a project and choose "Properties" 
<li>In the Properties pane that opens, find the "Copy Local" property and set it to "True". </li>
</ol></blockquote><br>]]></content></entry><entry><title>Why am I not getting consistent results when using the System.Date macro?</title><category>.Net Web Form</category><id>http://community.workflowgen.com/kb/why-am-i-not-getting-consistent-results-when-using-the-syste.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/why-am-i-not-getting-consistent-results-when-using-the-syste.html"/><author><name>WFG Team</name></author><published>2008-09-08T12:59:00Z</published><updated>2008-09-08T12:59:00Z</updated><content type="html" xml:lang="en-US"><![CDATA[<P><span style="TEXT-DECORATION: underline">Issue</span> </P>
<P>When using the System.Date macro to pass the system’s date to a .Net control on your web form, you may notice that you do not consistently receive the correct date. </P>
<P><span style="TEXT-DECORATION: underline">Background </span></P>
<P>System.Date is an action macro that dates back to version 4 of WorkflowGen. Since version 4 did not support&nbsp;time zone management, it was never an issue. However, with the introduction of time zone management to versions 5+, WorkflowGen requires the time of day to accurately&nbsp;display dates since it is now taking into consideration the&nbsp;user's&nbsp;time zone. </P>
<P><span style="TEXT-DECORATION: underline">Solution </span></P>
<P>It is best practice to use&nbsp;the "System.DateTime" when passing the system date as an IN parameter to a .Net control such as a textbox or label. On your web form, you can then specify the WorkflowGen.My extended attribute “FieldDataType” to “DateTime” (to correspond with the System.DateTime context you are passing in). It is with the “FieldFormat” attribute that you specify the desired format of the date for display purposes. </P>
<P>Example: </P>
<blockquote>
<P>&lt; asp : TextBox <strong>FieldDataType </strong><strong>="DateTime" </strong><strong>FieldFormat </strong><strong>="{0:d}" </strong>ID ="TEXT_BOX_DATE_TIME" runat ="server"&gt;&lt;/ asp : TextBox &gt; </P></blockquote>
<P><em>Reference</em> </P>
<P><em>WorkflowGen 5 Web Form Developer Guide - Chapter 4.5.3 Fields data type. </em></P>
<P><A href="http://community.workflowgen.com/downloads/documentation"><em>http://community.workflowgen.com/downloads/documentation</em></A><em> </em></P>]]></content></entry><entry><title>I’m getting a security error when trying to view statistics displayed as a chart.</title><category>Setup</category><category>Performance</category><id>http://community.workflowgen.com/kb/im-getting-a-security-error-when-trying-to-view-statistics-d.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/im-getting-a-security-error-when-trying-to-view-statistics-d.html"/><author><name>WFG Team</name></author><published>2008-09-01T13:57:00Z</published><updated>2008-09-01T13:57:00Z</updated><content type="html" xml:lang="en-US"><![CDATA[<P><span style="TEXT-DECORATION: underline">Issue:</span> </P>
<P>When using Internet Explorer 6 or 7, I get a Javascript security error (Access is denied) when trying to view statistics displayed as a chart.<br><br><span style="TEXT-DECORATION: underline">Solution:</span> </P>
<P>You can resolve this issue from within the configuration panel of WorkflowGen’s Administration module. More specifically, within the ‘General’ tab make sure the proper DNS or server name has been entered into the ‘Web application URL’ setting. </P>
<P><span style="TEXT-DECORATION: underline">Note:</span></P>
<P>Depending on your browser’s Internet Security settings you may either be prompted with the above mentioned security error or simply not have the charts display and appear as if your page is ‘hanging’. </P><br>]]></content></entry></feed>