Siebel Business Process & Functionality (MOSC)

MOSC Banner

AddItem method not working in script,causing Application crash

edited Dec 16, 2016 12:06AM in Siebel Business Process & Functionality (MOSC) 1 commentAnswered

Hi All,

Can someone please help on below script issue:

Here is the test product structure:

Fijo_old(Root Customizable product,Service Bundle)

  SFIDdummyrelationship(Relationship)

     POCDummy(Customizable product under Fijo_old)

         PromotionPOCDummy(Relationship)

              PromotionPOCDummy(Product added under POCDummy)

Script is kept under Fijo_old under Cfg_ChildItemChanged in scripts.

When running following script,looks like the AddItem method is making the application crash on selecting the product POCDummy in configurator:

function Cfg_ChildItemChanged (ChangedItem)
{

               var nCnt = ChangedItem.GetChildCount();

                var x;
                var item;
                var item_id;
                var item_name;
                var new_val;

                        for ( var i = 0; i<nCnt; i++)
                   
                         {      AddItem( "$.[Fijo_old]#1.[SFIDdummyrelationship]#[POCDummy]", "PromotionPOCDummy", "PromotionPOCDummy", "1");

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center