Design Studio – System Information methods
As we all know, design studio uses the BIAL language, which is similar to Java Script.
So in this document, lets discuss the methods available in BO Design studio 1.1 to display the system Information.
Note: Below are the System information methods I have found till now, more methods may be available in further releases.
Those will be updated later
Methods and their Functions:
1. To populate the current user …. <Datasource>.getInfo().user
2. To populate today’s date …. <application>.getInfo().dateNow
3. To populate Name of the application …. <application>.getInfo().name
4. To populate system details …. <Datasource>.getInfo().system
5. To populate last refreshed date of backend (BW or HANA ) ….. <Datasource>.getInfo().lastDataUpdate
6. To populate last data update date of backend (BW or HANA) ….. <Datasource>.getInfo().lastRefreshedAt
Example:
Further available methods (if any) will be updated in next part.
Please note that these methods are only available from 1.1 version.
Good. But <Datasource>.getInfo().user never works for me. always display "UNKNOWN". Is there something I should do first? Thanks
I can confirm this - <Datasource>.getInfo().user still returns "UNKNOWN" as the user name...
Hi,
in local mode it returns unknown as there is no logged user in the "local" environment.
This method should work correctly on the platform deployments.
Karol
Thanks Karol, you are absolutely right.
Hi,
Any idea for displaying system time in the dashboard?
Regards,
Sathyan
one way would be by using the Real Date component from the free CSN SDK extensions.
Design Studio SDK: Real Date Component
var time = REALDATE_1.getCurrentTime();
output:
Karol
Hello,
I also used <DS>.getInfo().system but it always returns "CUID" of the application but i want to know the current backend BW system to set URL according to development/quality/production dynamically....
is it possible with Design studio with BW system on BI platform?
Many thanks in advance for your help,
Regards,
Nikunj
Hello,
I also used <DS>.getInfo().system but it always returns "CUID" of the application but i want to know the current backend BW system to set URL according to development/quality/production dynamically....
is it possible with Design studio with BW system on BI platform?
Many thanks in advance for your help,
Regards,
Nikunj
Hi Nikunj,
Please have a look at the following post API to get current BO server name?. I believe if you are running only one BO server or the CUID are all the same for the different BO servers you will need to use a SDK component.
Check out our free open-source SCN Client Information Component Design Studio SDK: Client Information Component for some reference.
Kind regards
Martin
Dear Martin / all,
I know I am late to the party.
Is for Lumira Designer this "Client Information Component" available? I expected to find this in https://github.com/org-scn-design-studio-community/lumiradesignercommunityext but this not given.
Any ideas?
Regards
Roberto