Skip to Content
avatar image
Former Member

Lumira designer 2.0 - SystemID

Is there a way to read the system id in SAP Lumira 2.0 designer scripting to determine if application is running in test, quality or productive environment? And I do not mean the CUID of the system connection.

Thank you,
Alexander Oertel

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Aug 24, 2017 at 10:31 PM

    Hi Alexander,

    There is no direct scripting method to obtain the System ID. As a workaround, you can perform the following steps via scripting:

    1) Define an empty bookmark component;

    2) On startup, check for the existence of a bookmark. If it exists, get the bookmark URL, if it doesn't exist create a bookmark and then get the bookmark URL;

    3) Parse the bookmark URL to obtain the server name, which should allow you to differentiate which environment you are in.

    Regards,

    Mustafa.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Alexander,

      You can still implement the bookmark approach in Lumira 2.0. Although the Design Studio 1.6 bookmark API has been deprecated, a better bookmarking API is available via the new Bookmark Technical Component.

      In any case, your InfoObject solution is a good one too. Thanks for sharing.

      Regards,

      Mustafa.

  • Aug 08 at 10:45 AM

    Hi,

    If you have a datasource in the application - which you typically do - you could use DS_....getInfo().system to get the system. However mind that on a BI platform system it might return a CUID and not the 3 digit system id you might expect.

    Cheers,
    Oliver

    Add comment
    10|10000 characters needed characters exceeded