2013-08-02 8 views
0

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 
} 

우리가 뭔가 또는 시벨 BC에서 데이터를 얻을 수있는 다른 시험 방법을 변경해야하는 경우 알려주세요.

사용자 정의의 일부로이 자바 스크립트 파일에서 Siebel BC의 데이터를 사용할 수 있어야합니다.

답변

0

아래에 언급 된 코드가 저에게 효과적이었습니다. 또한 "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");