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

MOSC Banner

I am getting ReferenceError:Function expected SetSearchSpec can't call as a function for following s

edited Aug 11, 2018 5:00AM in Siebel Open UI, Tools, Scripting and EAI (MOSC) 6 commentsAnswered ✓

function WebApplet_PreInvokeMethod (MethodName)

{

try

{

if ( MethodName == "Test" )

{

var a=10;

var Status = "";

var BC = this.BusComp().Name();

with (BC)

{

  

    SetSearchSpec("Activity Id", "1-140RE");

      if (FirstRecord())

  {

Status = GetFieldValue("Status");

if(Status == "Unscheduled")

    { 

SetFieldValue("Comment","abc123");

return ("ContinueOperation");

}

else

{

return ("CancelOperation");

}

   }

}

return ("ContinueOperation");

}

}

catch(e)

{

throw e;

  }

}

I am using Siebel IP2018 version

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