Posts

Showing posts from 2016

Invoke a taskflow from button

From Script:                 var inputPropSet; var outputPropSet; var taskUIsvc; inputPropSet = TheApplication().NewPropertySet(); outputPropSet = TheApplication().NewPropertySet(); taskUIsvc = TheApplication().GetService("Task UI Service (SWE)"); inputPropSet.SetProperty("TaskName","<Task Name>"); taskUIsvc.InvokeMethod("LaunchTaskFromScript",inputPropSet,outputPropSet);

Get the Date from user on button click and Validate the date entered

Problem: There was a scenario, where I had to Pass the effective date of an Insurance policy to the workflow for further processing whenever the user clicks a button Solution: I used the browser script of that applet and invoked the following script:       if(name == "<button method>")     {     var person = prompt("Please enter the effective date","MM/DD/YYYY");     var datePat = /^(\d{2,2})(\/)(\d{2,2})\2(\d{4}|\d{4})$/;     var matchArray = person.match(datePat); // is the format ok? if (matchArray == null) { alert("Date must be in MM/DD/YYYY format");  } else{ //Month Check var month = matchArray[1]; // parse date into variables var day = matchArray[3]; var year = matchArray[4]; if (month < 1 || month > 12) { // check month range  alert("Month must be between 1 and 12"); } //Day Check if (day < 1 || day > 31) {  alert("Day m...

File Saving in Folder other than Temp

Solution: Add following lines in the client and tools cfg as required. [EAIFileTransportConfigSubsys] EAIFileTransportFolders = c:\;d:\

Workflow Calling

Calling a Workflow from user property BC User Property Named method n Value- "Change Plan",  "INVOKESVC", "<The BC In which the User property is defined>", "Workflow Process Manager", "RunProcess", "'ProcessName'", "'<Workflow Name>'", "'RowId'", "[Id]", "'<Process Property>'", "[<Field Name>]", "'<Process Property>'", "'<String Value>'" Note: RowId- This points to the 'Object Id' Process Property of the workflow. [Id]-This points to Id Field in the BC Application RunTime Create a Action Set: With Action Type: BusService Business Service Name: Workflow Process Manager Business Service Method: RunProcess Business Service Context: "ProcessName", "<WorkFlow Name>" The Object Id is defaulted with Id Field

Changing the Applet Focus of a View on navigating through drilldowns, etc

Parent Applet Focus on navigating through drilldowns As per Siebel vanilla functionality, if we click on any hyper link (Drill down) field then it will navigates to another view, but after navigating to the destination view, the focus will be always on child applets instead of “Parent Applet”. In order to set the focus always on the parent applet we may have to do the following configuration changes: Tools Level Changes: 1. At View Level, we have “Default Applet Focus” property. Set “Applet name” for this property. 2. At View User Property (Child object of View), set the following: Name : DefaultAppletFocus Value : “Applet Name” After setting the above properties, if focus still remains on child applet then we have to verify the following parameters of the CFG file. 3. In cfg file we have “EnableSIFocusTracking” property; this property should have value as “TRUE”. Application Side Changes: 4. Navigate to sitemap > Administration – Server Configuration – Enterpris...

Raise Log Level-Server

Navigate to Site Map->  Sibel Configuration-> Servers-> Locate the Server for the list applet-> corresponding to the server go its Component by clicking the component tab->Query for the Object manager name in Column "Components" in the below List applet(eg: Public Sector)->and click the Events tab to see the corresponding OM's Events->Press Ctrl+A(to select all) and go to menu button and select "Change Records" option-> select field "Log Level" and chnage value to 5. 

Navigation Buttons GotoNext and GoToPrevious not working in Form Applet

Image
Problem: Navigation Buttons GotoNext and GoToPrevious not working in Form Applet Description: The Navigation buttons in the below Form applet wasn't working. Solution: For Next/Previous button, Html bitmap: RECNAV_NEXT_ON has to be mentioned for a custom applet

Invoke Taskflow from Script

Topic: Invoke Taskflow from Script Description:    var inputPropSet; var outputPropSet; var taskUIsvc; inputPropSet = TheApplication().NewPropertySet(); outputPropSet = TheApplication().NewPropertySet(); taskUIsvc = TheApplication().GetService("Task UI Service (SWE)"); inputPropSet.SetProperty("TaskName","<TaskFlow Name>"); taskUIsvc.InvokeMethod("LaunchTaskFromScript",inputPropSet,outputPropSet);

Hide Applets form just UI(View)

Problem:  To Hide applets from UI Description: There are certain scenarios where we want the applet to be added under a view to retain context for the child applet(case-Contact-SR:in the requirement we want to see only the Contact and SR applets and want to hide case applet) or during applet toggle; we need to give a default applet, but the requirement says there should not be any applet for rest of the values(here we need to hide the default applet). In these scenarios we could go for this custom template . Solution: 1. Create a new template under Web template entity and Assign the new swt file with Content as follows: <!-- Template Start: CCAppletList_B_EL.swt --> <swe:include file="CCApplet_NamedSpacer.swt"/> <swe:control id="1100"><div class=CmdTxt><swe:this property="FormattedHtml" hintText="Outside Applet Help Text" hintMapType="Control"/></div><p></swe:control> ...

Remove The Siebel Loading Logo and text

Image
Siebel Version: 8.2.2.2 Requirement: Oracle Siebel usually has a waiting logo or symbol that appears when we navigate from one view to other or when  loading of some kind takes place, like the image below. Solution: The css behind the view is basic.css we add an attribute and value: visibility:  hidden; under the class mask -"div.siebui-mask-splash" and "#mask div.siebui-mask-content" Refer the Image below: Clear cache and Reload. Voila the loading image is gone!!

Add CSS for siebel Applet Formsection Labels through out the application

Image
The Following code is added in theme-base.css file which is found at D:\Siebel\8.2.2.0.0\Client_1\PUBLIC\enu\FILES .mceGridField .FormSection {    border: 4px solid grey; background-color: grey; float: left; /* font-style: italic; */ font-weight: bolder; font-size: medium; color: black; } this provides the following output.

IFrame Resize in Open UI

Image
Problem: In open UI the IFrame is small and needs to be resized. Reason: additional parameters need to be set to Symbolic URL in case of Open UI , but the same works fine and the size is also large in case of Siebel HI. Solution: Go to Administration-Integration->Symbolic URL Administration, under the Symbolic url list query for the Symbolic URL entry that is being used in the applet add a parameter IFrame and Value=iFrame width=100% height=500 frameBorder=On. Logout and login again the issue is solved.