AnsweredAssumed Answered

How to Open an Object with hypen with the Application Interface

Question asked by TorstenErdmann602761 on Apr 20, 2018
Latest reply on Aug 29, 2018 by Michael_Lowry

I want to open an Object with the Application Interface with hypen's in Object Name

UC4ObjectName objectName = new UC4ObjectName("NAME-INT-DATABASE");
OpenObject open = new OpenObject(objectName);

     

The UC4ObjectName doesn't allow hypen's - in Object Names

 

Exception:

com.uc4.api.InvalidUC4NameException: Invalid UC4 Object/Alias name: 'NAME-INT-DATABASE'
    at com.uc4.api.UC4ObjectName.<init>(UC4ObjectName.java:42)

 

 

My Question:

How can i Access the defined Object ('NAME-INT-DATABASE'), with the Application Interface.

 

Thanks a lot.

 

Torsten

Outcomes