Siebel Open UI, Tools, Scripting and EAI (MOSC)

MOSC Banner

Delete Record from MVG

edited Sep 28, 2011 7:55PM in Siebel Open UI, Tools, Scripting and EAI (MOSC) 4 commentsAnswered
Hello,

I need to remove some records from M:M MVG. Scenario is like that if there is any record available in the MVG having Primary as 'Y', i need to add one new record here ,need to set the primary of this new record as true,and then delete the old record.The code which i used is as follows:

    var OrgMVG = bcServiceAgreement.GetMVGBusComp("Account");
    var oAssocMVGBC = OrgMVG.GetAssocBusComp();
 
    with(oAssocMVGBC)
           {
                           ActivateField("SSA Primary Field");
                           SetViewMode(AllView);
                           ClearToQuery();
                           SetSearchSpec("Id", newAccountOrg);
                           ExecuteQuery(ForwardOnly);
                           var isExist = oAssocMVGBC.FirstRecord();
                           if (isExist)
                           {
                             oAssocMVGBC.Associate(NewAfter);
                           }              
                                                
                           
                           ClearToQuery();
                           SetSearchSpec("Id", newAccountOrg);
                           ExecuteQuery(ForwardOnly);
                           var isExist1 = oAssocMVGBC.FirstRecord();

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