CE Connection Forms Script Error
    • 19 Mar 2024
    • 1 Minute to read
    • Contributors
    • PDF

    CE Connection Forms Script Error

    • PDF

    Article summary

    Due to a change in the way that Microsoft ® manages the forms in CE, there will be some errors in the setup forms for the CE Connector.

    When opening the following form,

    • Lasernet flyout/group

    • Lasernet group/HTTP Method

    • Lasernet group/OData Dialog

    • Lasernet group/OData Direct Submit

    • Lasernet group/Open URL

    you may see the following error message:

    This is due to the way the form is managing the default value for ‘order’. There is a way to fix this error, which is to deploy a solution that updates the logic.

    Note

    Before undertaking the solution to this error, users must create, modify and deploy a new CE solution. If this is not something that you are comfortable with, refer the task to your CE system admin.

    Create a Solution Containing the Modifications

    1. Navigate to Settings and select Advanced Settings from the dropdown menu.

    1. On the Settings page, under Customization, select Solutions.

    1. On the All Solutions page, click New to create a new solution.

    1. Add values to the following fields:

    • Display Name and Name: Give the solution a sensible name and display name - these can be the same.

    • Publisher: Select the appropriate publisher (we have used the default publisher for the organization).

    • Version: Set version as ‘1’.

    The Configuration Page field can be left blank.

    1. Click Save.

    Add the Entities

    1. Within the newly created solution, navigate to Components > Entities and then click Add Existing.

    1. Add the following entities from the list:

    • Lasernet flyout/group

    • Lasernet group/HTTP Method

    • Lasernet group/OData Dialog

    • Lasernet group/OData Direct Submit

    • Lasernet group/Open URL

    You can multi-select entities in the list; the entries in the screenshot above are examples only.

    1. Once the entries from step 2 have been added, click OK.

    2. Clear the Include entity metadata checkbox and select Main from the Form Type column for each selected entity.

    1. Click Next and then Finish once the last entity has been configured.

    2. Select No, do not include required components. Your solution will now look like this:

    Change the Value on the Form

    1. Open the Main form for the entity.

    1. Click Form Properties in the ribbon.

    1. Within Event Handlers, click Edit for the Formpipe.Lasernet.DefaultValues.setDefaultValues function.

    1. Change "lac_order", “1” to "lac_order", 1.

    1. Click OK > OK and then Save and Close.

    Publish

    1. Click Save and then select Publish in the ribbon.

    1. Repeat for each form mentioned in this article:

    • Lasernet flyout/group

    • Lasernet group/HTTP Method

    • Lasernet group/OData Dialog

    • Lasernet group/OData Direct Submit

    • Lasernet group/Open URL


    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.