Page 1 of 1

Set the default server in the login dialog of TM1web .

Posted: Thu May 07, 2020 6:43 am
by abcthing
When logging into tm1web, TM1 server displays the first server in the server list, which may not be the server name we expected. Use Notepad to open ibm\cognos\tm1_64\webapps\tm1web\scripts\tm1web\standalone\TM1WebApp.js, and find this._serverNameSelect.set("value",a[0].value), and change 0 to 1, and save. Open the browser and input http://172.17.210.18:9510/tm1web, TM1 server has changed.

(for IBM Planning Analytics 2.0.x)

Re: Set the default server in the login dialog of TM1web .

Posted: Thu May 13, 2021 4:12 pm
by joseluis.senas1
Does anyone know if this can be done when running on IBM cloud? How?
Many thanks.

Re: Set the default server in the login dialog of TM1web .

Posted: Fri Jul 09, 2021 10:51 pm
by Gabor
This post is a few days old, but I just saw it today.
My favorite option in such cases, where users are concerned about the server picklist, point to a specific TM1 server name in the TM1 Web url using parameter ?TM1Server=ServerName.
Example: https://paserver.my.domain.com:9510/tm1 ... ServerName

Re: Set the default server in the login dialog of TM1web .

Posted: Tue Jul 20, 2021 3:52 pm
by ascheevel
joseluis.senas1 wrote: Thu May 13, 2021 4:12 pm Does anyone know if this can be done when running on IBM cloud?
You can submit a ticket to IBM asking them to modify the TM1Web config so I imagine you can submit a ticket asking them to modify a .js file. Their willingness to do so is unknown, but doesn't hurt to ask. Definitely report back if you do submit a ticket. It's also possible that the .js file would get overwritten whenever TM1 Web (PA Spreadsheet Services) is updated and you'd then need to submit another ticket asking for a repeat of the update made previously.

Something else to keep in mind is that the 0/1 switch that abcthing dictates is a list index where the desired new default selection Planning Sample is the 2nd item in a list where the first item is item 0. If you instead wanted proven_techniques to be the default selection you'd use 2 instead of 1. If at some point you create another TM1 model on the same admin host called for example "48retail", it would fall between 24retail and Planning Sample and you'd want to update the list index in the function to still have the desired default Planning Sample selected. e.g. if you had been using 1 to select Planning Sample by default, you would need to update the list index to 2.

server_index_20210720.jpg
server_index_20210720.jpg (23.61 KiB) Viewed 28201 times