Tuesday, March 1, 2011

Ctrl-C:Ctrl-V::Drag:Drop

Reusability of components, objects, code, ...whatever, remains the most unfulfilled promise offered by any software methodology. However it is much more realistic when it comes to siebel. A mere push of Ctrl - B can create a clone of existing Object. But problem starts when any change comes which should be cascaded across all the cloned objects.
Recently i was bombarded with requirement of adding couple of columns to multiple applets. Querying each applet and creating new columns in each applet would have definitely killed me. But once again Professor Google and my colleague, Sandeep, came up with idea of "Compare Objects" which saved my life.

Consider a scenario were we have to add a single column to multiple list applets which are clone of each other. Let's take "Test SR Applet" as main applet and "Test SR Clone Applet" is clone applet. We need to add "Sub Status" column to both these applets. First add column to "Test SR Applet" manually.Map the column to web template. Now comes the interesting part of adding column to clone applet.

Query for both applets. Select both applets.


Rush to "Tools->Compare Objects->Selected".



Expand the "Test SR Applet" tree for "List -> List -> Column".



Hit on the right icon (tooltip says copy the object on the other side) to add the missing column from main applet to clone applet.

Same thing should be done on the "Applet Web Template Item" hierarchy. Once done save the changes, compile the object and look out for magic. It saved me lot of time and probably may help you during tough time.

Happy Cloning!!

1 comment:

Unknown said...

This functionality is very useful for other objects as well like integration objects. Sometime we come across where we need to add new IC in the existing IO or else we want to update the existing IC with the latest Business component changes. For such scenario siebel provide sync option.But sync will update all other IC's as well and that leads to rework.

So in this case create a new IO based on same BO and include two IC one is new IC which we need to add in existing IO and second one is old IC with the latest BC definition.

Afterwards compare both IO same as applet comparision. And move the IC of newly created IO in the existing creating IO as per requirement.

Happy Cloning!!!!