Developer Portal Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    Problem with Addon export within the CPS 5.9 and lower (MES@AE AeMesFu_X-Addon)

    Problem with Addon export within the CPS 5.9 and lower (MES@AE AeMesFu_X-Addon)

    PKlein
    Long-established Member

    Hallo,

    i have a problem with the export code of an self dev Addon:

    The Addon has a codeTemplate for export:

    PKlein_0-1723023182953.png

    The template looks like this:

    PKlein_1-1723023252956.png

    If i have just this addon on the ModeHandler-Level, the code looks like this:

    PKlein_2-1723023365270.png

    So the extends Code is missing!

     

    If I add another Addon (e.g. NxDataSetManagerAddon) with an export, that the Extend code is there!

    PKlein_3-1723023444781.png

     

    After Removing the other Addon (NxDataSetManagerAddon), the export code is still working!

    So what could be the problem? Could somebody help me?

    3 REPLIES 3

    PKlein
    Long-established Member

    If a add a SequenceEnum to the OOD than it will work at every use case!

    PKlein_0-1723026663950.png

     

    Is this needed at every time? What is the connection here?

    SteffenR-
    Community Moderator
    Community Moderator

    Due to holiday season in Germany it will take some time until this can be checked by a developer.

    nexidator
    Community Moderator
    Community Moderator

    The reason for this behavior is that the name of the base FB "AeMesFu_xAddon" is identical to the default name of the derived FB created in your project. When the type definition in the project is created, it looks for its base type by name and finds itself. As circular base type references are impossible, the property for the base type remains empty. After renaming the instance to AeMesFu_1Addon, the names are not ambiguous anymore. When the object is reloaded now, the base type will be correctly set. (This can be triggered either by reloading all object definitions or by changing an object parameter of the addon, e.g. FuNo.)

    That means it's not the export that is not working correctly, but the base type is really not set in the project data when instantiating the addon the first time. 

    A possible solution for this problem: Change the name of the addon to AeMesFu_x (whithout the Addon suffix). This is used as default instance name, so the name is not the same as the base class anymore and everything should work. Most other addons don't have that suffix in the name, anyway.

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist