Sheila On 7 – Berlayar

Posted: Tuesday,March 22, 2011 in Sheila On 7
Tags: ,

Buat kamu para pengemar lagunya Sheila On 7,ada kabar gembira terbaru mereka sudah meluncurkan album terbaru yang berjudul “berlayar”.

Berikut ini daftar lagu lengkap yang terdapat dalam album sheila on 7 tahun 2011:
1. Hari Bersamanya
2. Pasti Ku Bisa
3. Hujan Turun
4. Berlayar Denganku
5. Kamus Hidupku
6. Bait Pertama
7. Have Fun
8. On the Phone
9. Perfect Time

GWT web application started to give “Element not found” javascript error message on Internet Explorer 7 (IE7)? This application worked fine on Internet Explorer 6and Firefox 2. Now your best guess would be; GWT not working on IE 7 properly. Wasn’t it?

But the scenario became confusing and unbelievable because your applicationworked fine on IE7 in some machines while not on some others. Have you faced this issue? Then the below solution is for you.

This issue can be fixed by a making a change on windows registry.

Steps to follow are;
1. Open up the Registry editor – type regedit on command prompt.

2. Look for the key shown below

HKEY_CLASSES_ROOT\TypeLib\{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}\1.1\win32

3. Click on the “Default” row and see the value there. If it’s value is “C:\WINDOWS\system32\shdocvw.dll”, then that is what causes the above mentioned issue. If you have installed Windows in a different drive; C:\ must be replaced with the that letter.

4. Replace that value with “C:\WINDOWS\system32\ieframe.dll”.

5. Now restart IE7, and load your GWT application.

 

Source

 

Description

This article provides steps for troubleshooting script errors encountered while using Yahoo! Messenger.

Resolution

Having the most recent Java application will ensure proper communication between Internet Explorer and the Messenger application. Please follow these steps to uninstall and reinstall your Java runtime environment.

Uninstall and Reinstall Java
1.     On your keyboard, hold down the Windows key and press the R key. This opens the “Run” command.
2.     Type in appwiz.cpl and click OK. This opens “Add or remove Programs”.
3.     Select Java and then click the Uninstall button. There may be multiple installed versions, so be sure to remove all of them.
4.     Next, download and install the latest version of Java Runtime Environment
5.     To ensure the update is effective please Clear the Yahoo! Messenger Cache
6.     Restart Messenger to determine if the issue is resolved.
If the issue persists, try Resetting the Browser Configuration.

 

1. Radial Engines (Mesin Radial)

Quote:
Mesin radial adalah susunan mesin pembakaran dalam, di mana silinder diatur mengelilingi arah sebuah pusat poros engkol seperti jeruji pada roda. Pembakaran ini secara umum digunakan mesin pesawat sebelum digantikan dengan mesin poros turbo dan turbojet. Mesin Radial ini digunakan untuk menggerakkan baling-baling pesawat.

Spoiler for gif:
Quote:

2. Mesin Uap

Quote:
Mesin uap adalah mesin yang menggunakan energi panas dalam uap air dan mengubahnya menjadi energi mekanis. Mesin uap digunakan dalam pompa, lokomotif dan kapal laut, dan sangat penting dalam Revolusi Industri.

Spoiler for gif:
Quote:

3. Mesin Jahit

Quote:
Mesin jahit adalah peralatan mekanis atau elektromekanis yang berfungsi untuk menjahit (kalo ini pasti udah pada tau semua kan). Berikut sejarah singkat tentang jarum jahit. Sejarah jahit-menjahit dengan menggunakan jarum sudah dimulai pada awal-awal peadaban manusia. Bahan jarumnya bermacam-macam. Ada yang terbuat dari batu, tembaga, tulang ataupun gading. Jarum yang masih kasar itu digunakan untuk menyatukan kulit hewan menjadi pakaian. Sementara benangnya yang digunakan dibuat dari otot hewan. Jarum logam digunakan sekitar abad ke-14, yang merupakan jarum dengan menggunakan lubang yang umum dijumpai pada saat ini.

Spoiler for gif:
Quote:

4. Mekanisme Maltese Cross

Quote:
Maltese Cross adalah mekanisme yang menerjemahkan sebuah rotasi terus-menerus menjadi gerakan berputar yang berselang. Mekanisme jenis inilah yang menjadi dasar pembuatan mesin jam.

Spoiler for gif:
Quote:

5. Mekanisme Transmisi Manual

Quote:
Transmisi manual adalah sistem transmisi otomotif yang memerlukan pengemudi sendiri untuk menekan/menarik seperti pada sepeda motor atau menginjak kopling seperti pada mobil dan menukar gigi percepatan secara manual. Gigi percepatan dirangkai didalam kotak gigi/gerbox untuk beberapa kecepatan, biasanya berkisar antara 3 gigi percepatan maju sampai dengan 6 gigi percepatan maju ditambah dengan 1 gigi mundur (R)

Spoiler for gif:
Quote:

6. Constant Velocity Joint

Quote:
Constant Velocity Joint memungkinkan poros berputar untuk mengirimkan daya melalui sudut variabel, kecepatan rotasi konstan, tanpa peningkatan berarti dalam gesekan atau bermain. Mekanisme ini biasanya terdapat pada system pergerakan pada roda mobil.

Spoiler for gif:
Quote:

7. Sistem Torpedo Penghancur Pada Kapal

Quote:
Torpedo adalah proyektil berpenggerak sendiri yang ditembakkan di atas atau di bawah permukaan laut dan kemudian meluncur di bawah permukaan laut dan dirancang untuk meledak pada kontak atau pada jarak tertentu dengan target. Torpedo dapat diluncurkan dari kapal selam, kapal permukaan, helikopter atau pesawat.

Spoiler for gif:
Quote:

8. Rotary Engine (Mesin Rotor)

Quote:
Rotary engine adalah mesin pembakaran dalam yang digerakkan oleh tekanan yang dihasilkan oleh pembakaran dirubah menjadi gerakan berputar pada rotor yang menggerakkan sumbu. Orang lebih mengenal mesin rotor dengan sebutan piston. Karena mesin rotor sangat kompak, ringan, mesin ini banyak digunakan pada berbagai kendaraan dan peralatan seperti pada mobil balap, pesawat terbang, go-kart, speed boat.

Spoiler for gif:

 

Source

This article describes the steps required to configure Siebel to invoke Siebel eScript code from a button.

You can invoke siebel script from a button through business component server script, applet server script and applet browser script. The following is an explanation of how to do this. For these examples I will assume that you have configured the button and this is displayed on the desired applet. If you dont know how to configure a button using Siebel Tools refer to the Siebel Bookshelf – Configuration eBusiness Applications.

For all examples below you need to configure the button in Siebel Tools to call a custom method. In Siebel Tools Object Explorer, navigate to Applet > Control, for the applet you have configured the button on. In the Controls list applet update the Method Invoked field to have value: TestMethod.

TestMethod will be the custom method that is invoked when the button is clicked. You will execute code when this method is invoked.

Now to execute script when the button is clicked we need to add code to the PreInvokeMethod event script of the Business Component/Applet and execute the code only if the Method Invoked = TestMethod. We need to ensure that we return CancelOperation if the custom TestMethod is invoked, because this is a custom method, if we return ContinueOperation then Siebel would error as the Siebel C++ internal code does not know what that method is. For more information on this, see my post about CancelOperation and ContinueOperation:

Siebel Scripting: CancelOperation or ContinueOperation?

Below are the code examples. Note that for each of these examples, I am executing code to create and populate text into a text file called Test.log. This is acheived through code similar to the following:

 

TheApplication().TraceOn("Test.log","Allocation","All");
TheApplication().Trace("This is text in Test.log");
TheApplication().TraceOff();

As I have not specified a path for the Test.log file in the code, the file will be created in the default location which is the bin directory. Eg. D:\siebel\webclient\bin.

There are code examples below for the following cases:

1. Invoke Applet Server Script from a Button
2. Invoke Applet Browser Script from a Button
3. Invoke Business Component Script from a Button
4. Invoke Applet Browser Script, Applet Server Script and Business Component Server Scripts from a Single Button Click

 

Invoke Applet Server Script from a Button

Here is the code added to the PreCanInvokeMethod method of the applet server script:

 

function WebApplet_PreCanInvokeMethod (MethodName, &CanInvoke)
{
var retval = ContinueOperation;
try {
if ( MethodName == "TestMethod" )
{
CanInvoke = "TRUE";
retval = CancelOperation;
}
}
catch(e)
{
retval = CancelOperation;
TheApplication().RaiseErrorText(e.toString());
}
finally
{
}
return (retval);
}

Here is the code added to the PreInvokeMethod method of the applet server script:

 

function WebApplet_PreInvokeMethod (MethodName)
{
var retval = ContinueOperation;
try {
if ( MethodName == "TestMethod" )
{
retval = CancelOperation;
TheApplication().TraceOn("Test.log","Allocation","All");
TheApplication().Trace("Executing Applet Server Script!");
TheApplication().TraceOff();
}
}
catch(e)
{
retval = CancelOperation;
TheApplication().RaiseErrorText(e.toString());
}
finally
{
}
return (retval);
}

Now if you compile the applet, run the application and click the button a file Test.log will be created in the bin directory containing text “Executing Applet Server Script!”.

Invoke Applet Browser Script from a Button

Here is the code added to the PreCanInvokeMethod method of the applet server script:

 

function WebApplet_PreCanInvokeMethod (MethodName, &CanInvoke)
{
var retval = ContinueOperation;
try {
if ( MethodName == "TestMethod" )
{
CanInvoke = "TRUE";
retval = CancelOperation;
}
}
catch(e)
{
retval = CancelOperation;
TheApplication().RaiseErrorText(e.toString());
}
finally
{
}
return (retval);

}

Here is the code added to the PreInvokeMethod method of the applet browser script:

 

function Applet_PreInvokeMethod (name, inputPropSet)
{
var retval = "ContinueOperation";
try {
if ( name == "TestMethod" )
{
retval = "CancelOperation";
alert("Executing Applet Browser Script!");
}
}
catch(e)
{
alert("Error in preinvokemethod event of " + this.Name() + "\n" +
e.toString() + " " + e.message + "\n" +
"Error Code: " + (e.number & 0xFFFF));
retval = "CancelOperation";
throw(e);
}
finally
{
}
return (retval);
}

Now if you compile the applet, generate browser scripts, run the application and click the button an alert message box will be displayed containing text “Executing Applet Browser Script!”.

Invoke Business Component Server Script from a Button

Here is the code added to the PreCanInvokeMethod method of the applet server script:

 

function WebApplet_PreCanInvokeMethod (MethodName, &CanInvoke)
{
var retval = ContinueOperation;
try {
if ( MethodName == "TestMethod" )
{
CanInvoke = "TRUE";
retval = CancelOperation;
}
}
catch(e)
{
retval = CancelOperation;
TheApplication().RaiseErrorText(e.toString());
}
finally
{
}
return (retval);

}

In Siebel Tools, navigate to the Business Component that the applet is based on. Here is the PreInvokeMethod script for the Business Component:

 

function BusComp_PreInvokeMethod (MethodName)
{
var retval = ContinueOperation;
try {
if (MethodName == "TestMethod")
{
retval = CancelOperation;
TheApplication().TraceOn("TestBC.log","Allocation","All");
TheApplication().Trace("Executing Business Component Script!");
TheApplication().TraceOff();
}
}
catch(e)
{
retval = CancelOperation;
TheApplication().RaiseErrorText(e.toString());
}
finally
{
}
return (retval);
}

Now if you compile the applet and business component, run the application and click the button a file TestBC.log will be created in the bin directory containing text “Executing Business Component Server Script!”.

Invoke Applet Browser Script, Applet Server Script and Business Component Server Scripts from a Single Button Click

Here is the code added to the PreCanInvokeMethod method of the applet server script:

 

function WebApplet_PreCanInvokeMethod (MethodName, &CanInvoke)
{
var retval = ContinueOperation;
try {
if ( MethodName == "TestMethod" )
{
CanInvoke = "TRUE";
retval = CancelOperation;
}
}
catch(e)
{
retval = CancelOperation;
TheApplication().RaiseErrorText(e.toString());
}
finally
{
}
return (retval);

}

Here is the code added to the PreInvokeMethod method of the applet server script:

 

function WebApplet_PreInvokeMethod (MethodName)
{
var retval = ContinueOperation;
try {
if ( MethodName == "TestMethod" )
{
TheApplication().TraceOn("Test.log","Allocation","All");
TheApplication().Trace("Executing Applet Server Script!");
TheApplication().TraceOff();
}
}
catch(e)
{
retval = CancelOperation;
TheApplication().RaiseErrorText(e.toString());
}
finally
{
}
return (retval);

}

In Siebel Tools, navigate to the Business Component that the applet is based on. Here is the PreInvokeMethod script for the Business Component:

 

function BusComp_PreInvokeMethod (MethodName)
{
var retval = ContinueOperation;
try {
if (MethodName == "TestMethod")
{
retval = CancelOperation;
TheApplication().TraceOn("TestBC.log","Allocation","All");
TheApplication().Trace("Executing Business Component Script!");
TheApplication().TraceOff();
}
}
catch(e)
{
retval = CancelOperation;
TheApplication().RaiseErrorText(e.toString());
}
finally
{
}
return (retval);
}

Now if you compile the applet and business component, generate browser scripts, run the application and click the button the following will occur:

1. The applet browser script will execute first displaying an alert message box containing text “Executing Applet Browser Script!”.

2. The applet server script will then execute writing to file Test.log in the bin directory containing text “Executing Applet Server Script!”.

3. The business component server script will then execute writing to file TestBC.log in the bin directory containing text “Executing Business Component Script!”.

So the order of script execution for siebel applets and business components are as such:

Applet Browser Script -> Applet Server Script -> Business Component Server Script

Notice that the applet browser script and applet server script no longer returns CancelOperation, it returns ContinueOperation, this allows the script to be executed in following event methods. Eg. If we returned CancelOperation on the Applet Server Script in the above example the Business Component script would not have executed.

 

Source

 

LookupValue function in SIEBEL

Posted: Monday,November 8, 2010 in Siebel
Tags: , , ,

LookupValue


Finds a row in S_LST_OF_VAL where the TYPE column matches the type argument, the CODE column matches the lang_ind_code argument, and the LANG_ID column matches the language code of the currently active language. This function is used to obtain the translation of the specified untranslated value in the specified LOV into the currently active language.

Syntax

val = TheApplication().InvokeMethod(“LookupValue”, type, lang_ind_cd)

 

Argument

Description

type

Type as specified in the List of Values administration view.

lang_ind_cd

Language independent code value as specified in the List of Values administration view.

 

Returns

Returns a string containing the display value (the VAL column) for the row.

Used With

COM Data Control, Java Data Bean, Mobile/Dedicated Web Client Automation Server, Server Script

Example

The following eScript example returns the display value for currently active language for the account role of “Consultant”.

var LOVText=TheApplication().InvokeMethod (“LookupValue”,”ACCOUNT_ROLE”,”Consultant”);

 

Here’s some code that will need tweaking to fit your needs. Here I assumed the table starts in cell A1, and has no blank rows. You can adjust the values of R1,G1,B1 and R2,G2,B2 to give you the pastel shades you want.

Code:
Sub TwoColorBands()
Dim rng As Range

Dim lastCol As Long, lastRw As Long, indx As Long, ct As Long
Dim R1 As Integer, G1 As Integer, B1 As Integer
Dim R2 As Integer, G2 As Integer, B2 As Integer

lastCol = Cells(1, Columns.Count).End(xlToLeft).Column
lastRw = Range("A" & Rows.Count).End(xlUp).Row
R1 = 200
G1 = 50
B1 = 100
R2 = 250
G2 = 75
B2 = 120
indx = 0
Set rng = Range("A1", Cells(lastRw, lastCol))
rng.Rows(1).Interior.Color = RGB(R1, G1, B1)
For Each rw In rng.Rows
    If rw.Cells(1).Value = rw.Cells(1).Offset(1, 0).Value Then
        rw.Offset(1, 0).Interior.Color = rw.Interior.Color
    ElseIf rw.Offset(1, 0).Row <= lastRw Then
        indx = indx + 1
        If indx Mod 2 <> 0 Then
            rw.Offset(1, 0).Interior.Color = RGB(R2, G2, B2)
        Else
           rw.Offset(1, 0).Interior.Color = RGB(R1, G1, B1)
        End If
    End If
Next rw
End Sub

Source