back to top

Issues with Script Includes on Quick Forms in the Infor CRM 8.4.03 Web Client

On a quick form in the 8.4.03 Infor CRM web client you can add references to external javascript files to be used on the form.  This is done by adding lines with appropriate url paths to Javascript files via the Script Include property of the Form. I recently discovered an issue when you add scripts but later remove them.

In the XML markup that represents a quick form there is initially an attribute for the Client Include scripts that looks like this:


<ClientScriptIncludes />

When you add an include script that attribute change to something like this:


<ClientScriptIncludes>
<string>~/javascript/MyJavascript.js</string>
</ClientScriptIncludes>

However, if you then remove all of the lines from the Script Include property, the XML attribute now looks like this:


<ClientScriptIncludes>
<string />
</ClientScriptIncludes>

This results in an error after deploying the quick form to the portal and attempting to go to the page the smart part exists on. The error is something along these lines:

[quote]

“message”: “The string parameter ‘url’ cannot be null or empty.\r\nParameter name: url.”,
“source”: “System.Web.UI.ClientScriptManager, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”,
“type”: “System.ArgumentException”,
“stackTrace”: ” at System.Web.UI.ClientScriptManager.RegisterClientScriptInclude(Type type, String key, String url, Boolean isResource)\r\n at System.Web.UI.ScriptRegistrationManager.RegisterClientScriptInclude(Control control, Type type, String key, String url)\r\n at ASP.DefectDetails.OnFormBound()\r\n at Sage.Platform.WebPortal.SmartParts.EntityBoundSmartPart.OnPreRender(EventArgs e)\r\n at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n at…

[/quote]

The reason for this is because the empty string tag in the ClientScriptIncludes attribute results in a deployed line of code in the OnFormBound method of the resulting ASP.Net user control like this:


ScriptManager.RegisterClientScriptInclude(this, this.GetType(), "56dda568-50e5-4d7b-99d2-710c09f21696", "");

The fourth parameter in that line is supposed to be the URL path to a java script file. Since it is empty, you get an exception.

The only way to fix this is to actually go into the XML markup of the quick form and manually edit the ClientScriptIncludes attribute back to its original format of:

<ClientScriptIncludes />

Contact Customer FX for your CRM project
We let our expertise speak for itself - let us know how our all-star team can help on your CRM project
About the Author
Kris Halsrud
Kris Halsrud
Kris Halsrud is a Senior Analyst / Developer for Customer FX Corporation.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Infor CRM Sync for Exchange: Action Required by August 31, 2026

Using Infor CRM Sync for Exchange with Microsoft 365? Your Exchange administrator must update tenant settings by August 31, 2026 to prevent sync disruption.

[Webinar] What’s Coming Next for Infor CRM SLX and Why v10 Matters

See what’s coming next for Infor CRM SLX, including new marketing workflows, automation improvements, and reasons to consider upgrading to v10.

Disable Caching in Infor CRM SLX Web Client

In the rare case caching is causing issues in the Infor CRM SLX web client, it is possible to disable specific types of caching by making edits using Application Architect, and then deploying.

Exploring AI Options for Infor CRM v10

I've started taking a closer look at the AI capabilities built into Infor CRM v10. Over the next several posts, I'll share what I learn. From the built-in features and supported AI providers to implementation considerations, costs, and practical use cases.

Infor CRM SLX 10.0: Delegate Ownership Changes for “Everyone” Records

Learn how the new EveryoneOwnerAssignment secured action in Infor CRM SLX 10.0 allows designated users to change ownership of Everyone-owned records without requiring Administrator access.

Related Articles

Infor CRM Sync for Exchange: Action Required by August 31, 2026

Using Infor CRM Sync for Exchange with Microsoft 365? Your Exchange administrator must update tenant settings by August 31, 2026 to prevent sync disruption.

[Webinar] What’s Coming Next for Infor CRM SLX and Why v10 Matters

See what’s coming next for Infor CRM SLX, including new marketing workflows, automation improvements, and reasons to consider upgrading to v10.

Disable Caching in Infor CRM SLX Web Client

In the rare case caching is causing issues in the Infor CRM SLX web client, it is possible to disable specific types of caching by making edits using Application Architect, and then deploying.

Exploring AI Options for Infor CRM v10

I've started taking a closer look at the AI capabilities built into Infor CRM v10. Over the next several posts, I'll share what I learn. From the built-in features and supported AI providers to implementation considerations, costs, and practical use cases.

Related Videos