Showing posts with label jQuery in siebel Open UI. Show all posts
Showing posts with label jQuery in siebel Open UI. Show all posts

Wednesday, 11 March 2015

Log In Undefined issue in Siebel Open UI

In some of our environment, we noticed that Login button is showing as Login Undefined.


Solution to this problem.
From support web

1. On "CC Login Page (Login Only)', locate the "LoginButton".
2. Remove the Caption String Override.
3. Open UI script need to have nothing but HTML code in the caption. Otherwise, it will returns "Undefined" condition.

This did not worked for me due to some reason. The alternate way I used is by editing LoginSWT.

<script language="javascript" src="23030/scripts/3rdParty/jquery.js?_scb="></script>

<script>
$(document).ready(function(){
            $(".loginButton a").text("Login");
     });

</script>​

started working perfectly ;-)

Sunday, 21 October 2012

What is Ajax and why it is in Siebel Open UI

In old days siebel needs to communicate with server asynchronously. That means when you step out from a record it should save with out any page refresh. At that time there were no browsers supports this feature. But Internet explorer have such a feature which is implemented with the help of ActiveX. xmlHttpRequest can sent with the help of ActiveX. Later JSON (Javascript Object Notation)&Ajax  (Asynchronous JavaScript and XML)are replaced this technology and it is world widely accepted. Ajax can communicate with server asynchronously that means with out page load or refresh the data can be sent to or retrieve from server. 

But there is another problem every browsers have there own implementation on this ajax. If you are making any web application with ajax you need to take care all these browsers separately. First you need to identify the client browsers and then invoke their technology to send data to our server.

jQuery comes with cross browser solutions. If you add jQuery library in your code, all these things will take care by jQuery. you need to call jQuery Ajax and pass values to jQuery. Three or four lines of code replaces all these things.

$.ajax({
  url: "test.html",
data: "uname="+uname
  context: document.body
}).done(function() {
  $(this).addClass("done");
 .error(function(){
});
.success(function(){
});
});

The above code and there are more optional parameters can effective handle Ajax request & response.