|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622 。
您需要 登录 才可以下载或查看,没有帐号?注册
x
following is my code.
&ciJOB = &session.GetCompIntfc(CompIntfc.SHEC_CI_JOB_DATA);
&ciJOB.InteractiveMode = True;
&ciJOB.GetHistoryItems = True;
&ciJOB.EditHistoryItems = True;
&ciJOB.KEYPROP_EMPLID = &staDataItems [1];
&log.WriteLine("KEYPROP_EMPLID = " | &ciJOB.GetPropertyByName("KEYPROP_EMPLID"));
&ciJOB.KEYPROP_EMPL_RCD = &staDataItems [2];
&log.WriteLine("KEYPROP_EMPL_RCD = " | &ciJOB.GetPropertyByName("KEYPROP_EMPL_RCD"));
&ciJOB.get();
If %Session.ErrorPending Then
&Count = %Session.PSMessages.Count;
For &I = 1 To &Count
&ERROR = %Session.PSMessages.Item(&I);
&TEXT = &ERROR.Text;
&log.WriteLine(&TEXT);
End-For;
Else
&log.WriteLine("get record success !");
End-If;
the component interface "SHEC_CI_JOB_DATA" is created by myself.
i had tested it by application designer , and it works well.
but when i use the code above, it can not get the record.
i had set the same value to the variables. and the log show me the EMPLID,and EMPL_RCD, they are all right. but can not get the record.i don't konw why , can someone help me to solove this problem?
thx ! |
|