Forum Migration Notice
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.

We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.

UserFunction issue.

Hello, 
I do not know where can i report it but I think that i found out something about UserFunction. It is imported in a way that sometimes it does not work correctly. When I have small/light files with mine functions it is working fine. For example I was using some functions in buttons onMount event. And i was receiving error that UserFunction is not existing after i added a few move functions to UserFunction. I deleted some functions from UserFunction and it started working correctly again. I think that because it is imported in async way it have problem when i wanted to use some UserFunction in onMount/onCreate event of other objects because it wanted to execute it before UserFunction was imported. As I was adding new custom functions it increased size of the files to import and it was slower than call of onMount/onCreate functions. 

Is there some way that you will be able to fix it? Like to import UserFunction at the begin in sunchronic way? And after this to load application pages?

BR/

Comments

  • yitong
    yitong
    edited January 6
    Hi,

    I think this is a question about a specific use case. If you don't know where to report bugs, you can provide feedback through https://survey2.medallia.eu/?appstudio or send eamil to global-appstudiosupport@abb.com.

    As of the latest AppStudio version (V1.2.X), directly using UserFunction to call functions in a Custom Component will result in a "ReferenceError: UserFunction is not defined" prompt once this Custom Component is imported into a Project. This issue is currently known and is by design. However, this error only occurs during the design phase in AppStudio and does not affect the functionality of the deployed webapp.

    For the other issues you mentioned, you can share your specific projects in detail through the methods outlined above.

    Thanks