无法在javascript调用环境中捕获从业务服务方法返回的输出属性集

无法在javascript调用环境中捕获从业务服务方法返回的输出属性集,javascript,siebel,escript,Javascript,Siebel,Escript,我们正试图在Siebel Open UI中检索自定义演示模型文件中的数据。我们正在使用输入属性集调用业务服务的方法。我们能够调用BS方法,并且在Siebel方面一切都按照预期工作。但是,当我们从Siebel BS返回调用环境时,在调用环境中,分配的变量没有被填充 自定义js文件中的代码 var service = SiebelApp.S_App.GetService( "My BS" ); if( service ) { outPS = service.InvokeMethod( "Ge

我们正试图在Siebel Open UI中检索自定义演示模型文件中的数据。我们正在使用输入属性集调用业务服务的方法。我们能够调用BS方法,并且在Siebel方面一切都按照预期工作。但是,当我们从Siebel BS返回调用环境时,在调用环境中,分配的变量没有被填充

自定义js文件中的代码

var service = SiebelApp.S_App.GetService( "My BS" );
if( service )
{
    outPS = service.InvokeMethod( "GetDetails", inPS ); 
    alert("Value of OutPS    :"+ outPS);
    var test = outPS.GetChildByType('ResultSet').GetProperty("Mypropname");
    //tried var test = outPS.GetProperty("Mypropname");
    alert(Mypropname);
    //here outPS is coming as null, when we verify it from siebel side its populated
}
请告诉我们是否需要更改某些内容或任何其他经过测试的方式来从Siebel BC获取数据


作为定制的一部分,我们需要来自Siebel BC的数据在这个javascript文件中可用。

下面提到的代码似乎适合我。此外,请确保“out_prop_name”与BS中定义的名称完全相同

var svc = SiebelApp.S_App.GetService("BS Name");
var inp_svc=SiebelApp.S_App.NewPropertySet();
inp_svc.SetProperty("inp_prop_name","prop_val");
var out_svc=SiebelApp.S_App.NewPropertySet();
out_svc=svc.InvokeMethod("MethodName",inp_svc);
out_svc.GetChildByType('ResultSet').GetProperty("out_prop_name");