Saturday, September 30, 2017

Drilldown on Hyperlink / Detail tabs in Siebel OpenUI

Siebel OpenUI Product behaviour:

In Open UI ,whenever a User drills down in a list applet or clicks on detail tabs, destination view is automatically scrolled down to the middle of the page which is as per the expected behaviour of the product. 
If User drills down on more info,the application will focus on more Info Applet.


Business Concern

When a User tries to drill down on customer entity or clicks on detail tabs, it always navigates to the bottom page or lower applet in siebel openUI. Business has raised the concern that they have to scroll up to see who is the customer and against which customer they are creating activity or service request. It is adding extra clicks also it is time consuming and frustrating . Many people has raised this concern in oracle community.



HI Activex application behaviour

In previous HI application ,drill down always resulted in user being navigated to the upper side of the page. Business/user is used to with this functionality and wanted it to be present in the New Application also .

One of the solution to achieve the expected focus on applet can be achieved with view user property.
View User Property: DefaultAppletFocus
Value:Your Applet Name

but setting this view user property for each and every view is tedious and impossible job .

Javascript solution to scroll the page UP



We may use scroll for view set to top to always set top applet visibility. Extending postload event to set the scroll , we can achieve the focus on upper applet.

Below piece of code has actually made it possible in our project to scroll the page up with default focus on upper applet always without any manual intervention. in Siebel OpenUI.


$('_swecontent > div').removeAttr('style');
$('_sweview').animate({scrolltop: 0}, 'fast');
$('_swecontent > div').css('height', '100%);

Hope this will help business and save lot of time in your projects as well :)



2 comments:

  1. HI

    Can you please help, which file this code needs to be added ?

    ReplyDelete
  2. drilldown not visible in open ui,it behaves intermittent,some time visible sometime not,Please help

    ReplyDelete