123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <!DOCTYPE html>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: bi-utils
- (C) Copyright IBM Corp. 2017, 2018
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <html>
- <head>
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- </head>
- <body>
- <h3>Advanced configuration values can now be set in the main UI at Manage -> Configuration -> System -> Advanced Settings</h3>
- </body>
- </html>
- <!--
- <html>
- <head>
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <script src="../lib/jquery/3.3.1/jquery.min.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- // click on button submit
- $("#submit").on('click', function(){
- document.getElementById("updating").innerText = " updating...";
- $.ajax({
- headers: {'X-XSRF-Token': getCookie('XSRF-TOKEN')},
- url: '../v1/configuration/keys/global',
- type : 'PUT',
- contentType: 'application/json',
- data : '{"' + $("#form :input[name='name']").val() + '":"' + $("#form :input[name='value']").val() + '"}',
- error: function(xhr, resp, text) {
- console.log(xhr, resp, text);
- document.getElementById("updating").innerText = "";
- alert(text);
- },
- success: function() {
- document.getElementById("updating").innerText = "";
- alert("Configuration updated.");
- }
- })
- });
- });
- </script>
- <script>
- function getCookie(c_name) {
- if (document.cookie.length > 0) {
- c_start = document.cookie.indexOf(c_name + "=");
- if (c_start != -1) {
- c_start = c_start + c_name.length + 1;
- c_end = document.cookie.indexOf(";", c_start);
- if (c_end == -1) {
- c_end = document.cookie.length;
- }
- return unescape(document.cookie.substring(c_start, c_end));
- }
- }
- return "";
- }
- function getval() {
- var name = $("#form :input[name='name']").val();
- $.ajax({
- headers: {'X-XSRF-Token': getCookie('XSRF-TOKEN')},
- url: '../v1/configuration/keys/' + name,
- type : 'GET',
- dataType: 'json',
- success : function(data) {
- $("#form :input[name='value']").val(data[name]);
- },
- error: function(xhr, resp, text) {
- console.log(xhr, resp, text);
- }
- })
- }
- </script>
- </head>
- <body>
- <h1>Set Configuration Values</h1>
- <h3>First log into Cognos Analytics as a System Administrator</h3>
- <p>Changes may take up to 10sec to apply. No server restart required.</p>
- <form id="form" action="" method="post">
- Name: <input type="text" name="name" size="50" onblur="getval()" autofocus/><span id='description'></span><br>
- Value: <input type="text" name="value" size="50">
- <br>
- <input id="submit" type="button" name="submit" value="submit"><span id="updating"/>
- </form>
- </body>
- </html>
- -->
|