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

MOSC Banner

Issue with setting primary in MVG

edited Aug 31, 2013 12:04AM in Siebel Open UI, Tools, Scripting and EAI (MOSC) 6 commentsAnswered
Hi All,
Following is the piece of code.

BusObj = TheApplication().GetBusObject(BusObjectName);
pBC = BusObj.GetBusComp(ParentBusCompName);
pBC.SetViewMode(AllView);
pBC.ClearToQuery();
pBC.SetSearchSpec("Id", ObjectId);
pBC.ExecuteQuery(ForwardOnly);
if(pBC.FirstRecord())
{
    MVGBC = pBC.GetMVGBusComp(MVGField);
    ChildBC = MVGBusComp.GetAssocBusComp();
    ChildBC.SetViewMode(AllView);
    ChildBC.ClearToQuery();
    ChildBC.SetSearchExpr(SearchSpec);
    ChildBC.ExecuteQuery(ForwardOnly);
    if(ChildBC.FirstRecord())
    {
        ChildBC.Associate(NewAfter);
    }
}

Here I'm just trying to associate a record in the MVG applet through scripting.
Details of the MVL:
Auto Primary - Default
Check No Match - N
Primary Id Field - <primary id field in parent buscomp>
Source Field - <empty>
Use Primary Join - Y

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