Thursday, 12 December 2013

Custom File Upload Applet Based On Class CSSSWEFRImpExp / CSSSWEFRImpExp Fails

We have an Import Button in an Applet, on clicking that button, a small popup applets comes and we can upload CSV which is to be imported in to parent applet. This functionality works well in HI mode. But this functionality fails in OpenUI.
Oracle support says this issues addressed in 8.1.1.11, but still I am getting error.

We can Implement this feature with some tricks.

lets create a button on applet and give method name as "FilePopup". And make sure that CanInvoke is true for this method.



function WebApplet_PreCanInvokeMethod (MethodName, &CanInvoke)
{
    if(MethodName == "FilePopup")
    {
            CanInvoke="TRUE";
            return (CancelOperation);
    }
    return (ContinueOperation);
} 

Now open Applet Browser script. 


function Applet_PreInvokeMethod (name, inputPropSet)
{
    switch(name)
    {
        case "FilePopup":
        var ShowModalOptions= "dialogHeight:150px;dialogLeft:100px;dialogWidth:350px;scrollbars:no";
        var intRet = theApplication().ShowModalDialog ("FileImport.htm", "", ShowModalOptions);
       
        var Bc = this.BusComp();
        var csvval=intRet.split("|");
       
        for(var j=0;j<csvval.length-1;j++){
            this.InvokeMethod("NewRecord");
            var csvvalue=csvval[j].split(",");
            Bc.SetFieldValue("First Name",csvvalue[0]);
            Bc.SetFieldValue("Last Name",csvvalue[1]);
            Bc.SetFieldValue("Age",csvvalue[2]);
            Bc.SetFieldValue("Sex",csvvalue[3]);
        }

        return ("CancelOperation");
        break;

        default:
        return ("ContinueOperation");
        break;
    }
    return ("ContinueOperation");
}


Next step is creating an HTML file. Copy the below code and save it as  "FileImport.htm"
in Webserver as well as siebel server. ( \Client\PUBLIC\ and \siebsrvr\WEBMASTER\ )

<html>
</head>
<script language="javascript" src="23030/scripts/3rdParty/jquery.js"></script>
<script>
$(document).ready(function(){

$("#filename").change(function(e) {
var ext = $("#filename").val().split(".").pop().toLowerCase();

if($.inArray(ext, ["csv"]) == -1) {
alert('Upload CSV');
return false;
}

if (e.target.files != undefined) {
var reader = new FileReader();
reader.onload = function(e) {
var csvval=e.target.result.split("\n");
var inputrad="";
for(var j=1;j<csvval.length-1;j++){
    var csvvalue=csvval[j].split(",");
    for(var i=0;i<csvvalue.length;i++)
    {
    var temp=csvvalue[i];
    if(inputrad==""){
         inputrad=temp+"";
    }else if(i!==0){
         inputrad=inputrad+","+temp+"";
    }else{
        inputrad=inputrad+""+temp;
    }
   
   
    }
    inputrad =inputrad+"|";
}

window.returnValue = inputrad;
return inputrad;
};
reader.readAsText(e.target.files.item(0));

}


});
$("#import").click(function(){
    self.close();
});
})
</script>
</head>
<body>
<input type="file" name="filename" id="filename">
    <div id="csvimporthint_1">
        <table border="1" id="csvimporthint">
        </table>
    </div>
<input type="button" id="import" value="import">

</body>
</html>

compile applet and run GenB script.
Click on Import button and test this functionality.

How to add custom JavaScript files in Siebel OpenUI 8.1.1.11

Siebel OpenUI 8.1.1.11 comes more more systematic way to manifest the custom JavaScript.
In the Administration level, we have options to add files as well as map those files with applets/views/Applications.

First we need to add our custom files in Manifest files

Now we can map those files with our Application /Applet


Thursday, 28 November 2013

Siebel Open UI : Migrating a renderer from 8.1.1.10 to 8.1.1.11

Siebel Open UI : Migrating a renderer from 8.1.1.10 to 8.1.1.11

This tutorial is all about how to migrate code from 8.1.1.10 to 8.1.1.11


thanks to  Duncan Ford

Tuesday, 19 November 2013

Internet Explorer 7 (IE7) no longer certified with My Oracle Support and Cloud Support Portal after April 4, 2014

 Oracle stops supporting IE7

"On April 4, 2014, Oracle Support will remove Internet Explorer 7 (IE7) from the My Oracle Support and Cloud Support portal certified browser list. It is important that you make the transition to a more current version of Internet Explorer prior to April 4, 2014.

We recommend that you review the “Supported Browsers” link for a list of My Oracle Support and Cloud Support portal certified browsers. When upgrading your browser, it is important to note that Internet Explorer 11 (IE11) is not yet certified with My Oracle Support and Cloud Support Portal. Newer versions of supported browsers are usually certified within six months from their release date.

If you have any questions or feedback, please log into My Oracle Support and use the "Contact Us" link located in the upper right hand corner."

Tuesday, 5 November 2013

White screen issue after patching openUI (8.1.1.11)

Some of developers getting white screen after patching open UI, and error console says.
 
Message: Object doesn't support this action
Line: 38
Char: 799
Code: 0
URI:
http://192.168.1.104/callcenter_enu/23030/scripts/siebel/navctrlmngr.js?_scb=

Oracle support web came with a solution for this problem.

Cause
FP 8.1.1.11, aka Innovation Pack 2013, contains many changes for the Siebel Open UI. When the pre-8.1.1.11 SRF is used for Siebel Open UI, it cannot perform the operation correctly and the above error is shown

Solution

Please download the new SRF to replace the pre-8.1.1.11 SRF as below.

1) Login to Oracle Software Delivery Cloud, aka edelivery (https://edelivery.oracle.com/)

2) Search Siebel CRM product with the following criteria then click "Go" button.
Select a Product Pack: Siebel CRM
Platform: (corresponding platform)

3) Find the description below then select it.
Description: Siebel Industry Applications Innovation Pack 2013 Release 8.1.1.11 Media Pack for "corresponding Platform"

4) Find Siebel Repository Files (SRF) as below and click "Download" button.
Name: Siebel Industry Applications Version 8.1.1.11 Siebel Repository Files
Part Number: V39883-01

5) Downloaded file contains SRF for many languages. Choose the correct one for the system and unzip it to siebsrvr\objects\LANGUGAE folder.
** LANGUAGE should be replaced by the appropriate three letter language code.

Please use
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=2ygn9xguq_9&_afrLoop=59616672061561

Wednesday, 9 October 2013

Siebel OpenUI 8.1.1.11 Fix Pack - Features

The next release on 8.1.x is 8.1.1.11. This innovation pack is releasing with lot of features, that is available in non-open UI versions and missed in older open UI versions(8.1.1.9/10)
  • Siebel Mobile Disconnected
  • Customer Facing Sales Applications
  • Partner Facing self Registration
  • Marketing - HTML/Rich Text Editor, Allocation, Calender, Flow Universal Inbox
  • C/OM - Sum totals on list: Contact hierarchy view
  • Sales - Funnel Chart
  • Right-to-left language support
  • List views - Column lock, column resizing, save state
  • Online Help- Searchable, Context sensitive help
  • Personalization, Applet Location/Hide
  • Expression/Rule Designer
  • Outbound email f9/Email Response
  • Calendar Drag/Drop Validation
  • Applet right click menu
  • Bar code toolbar
  • Chat
  • CTI toolbar - Hotelling
  • GANTT Chart
  • Chart program Designer
  • SmartScript -Designer/Player

Thursday, 20 June 2013

Benchmark of a Siebel OpenUI Theme from OpenUIThemes.com

In my previous post, I told you about the contact I had with the OpenUIThemes’ staff and said that a test was scheduled.

Well, yesterday, I could get my hands on their themes. My review below, I had access to their Gmail Theme and  every major topic I tested is listed here:

  Design
o   Being a daily user of Gmail as well as a global Google fan, I could feel the impression to work on my desktop using their test machine.

o   The UI is easy to navigate and the visuals are ok.

o   Some menus have changed position (like sitemap and so on) but as a user you don’t want to use this menu every day. In fact thinking again about it, I think that it adds something to user navigation as UI is focused on what will be immediately useful for the Siebel user.

 Performance
o   Performance was fine on this theme, the theme did not contain heavy images but I was on a low-bandwidth connection so for me it’s OK. I don’t know how it would behave with more and heavier visuals (high-definition logo of a company, etc...) but maybe high-bandwidth connection will compensate in this case.

o   Navigation is fluid between the pages and response time is also, even on first connection to the Siebel environment.

o   I didn’t try to make performance-costly operations specifically so I can only say that the UI performed well with basic operations and navigation.

 Compatibility
o   As you can imagine, this is my major concern (as I point out in some articles where I present webkit properties implementation for example), I try to draw attention on this point everytime I can when customizing the OpenUI.

o   So I tried with IE9, Chrome and Firefox (I don’t have Safari and Opera installed so I couldn’t test it with these browsers). They state on theme pages that they support Opera and Safari also but I can’t confirm that.

o   The result is same in 3 browsers I tried. Apparently, they took into account the difficulties to make customization depending on different browsers.

The theme I have tested is OK on design (depends on your taste actually), performance and compatibility as far as I could test it.

So this is a great news to see some companies going along with the OpenUI product expansion. Check it out yourself at http://www.openuithemes.com


Additional note:

Apparently, they also offer Plugins to modify the user experience.
They presented me 2 examples and also offered me to test it for free. They told me that other plugins are like I already did for voice recognition in Siebel OpenUI, mouse hover info, applets layouts changes and so on but I don’t know much more right now.