Siebel学习笔记
Siebel(escript)的学习:
1.Siebel的数据类型
Primitive(原始的)—Number,Integer,Hexadecimal(十六进制),Octal(八进制),Floating Point(浮点),Decimal(十进制),Scientific(系统的),Boolean, String
Composite(复合的)—Object,Array,
Special(特殊的)----Undefined(未定义的), Null,NaN(非数值)
-
typeof 方法
typeof variable or typeof(variable)
返回值为:“undefined”,“boolean”,“string”,“object”,“number”,“function”,or"buffer" -
Refresh Record Methods
刷新Applet的记录
var oBs=TheApplication().GetService(“FINS Teller UI Navigation”).
oBs.InvokeMethod(“RefreshCurrentApplet”,Inputs,Outputs);
/如果input的参数中有设置Refresh All为Y,则刷新当前View所在的所有Applet/
BC有两个Method:
BusComp.invokeMethod(“RefreshRecord”) 刷新当前记录
BusComp.invokeMehtod(“RefreshBusComp”) 刷新当前查询记录
4.TheApplication().Trace Method
TheApplication().TraceOn(filename,type,selection)
Filename 为日志文件,绝对路径
Type 包括Allocation和SQL
1.Allocation.Traces allocations and deallocations of Siebel objects. This option is useful if you suspect memory leaks in your code.
2.SQL.Traces SQL statements generated by the Siebel application.
Selection 一般我们都用All就可以了
eg: TheApplication().TraceOn(“D:\siebel_debug\trace.txt”,“Allocation”,“All”);
5.配置MVL注意点
配置MVL时需要将use primary join 打勾,不然会导致生成N+1条SQL语句的问题.
MVL.use primary join的作用:
use primary join没有打勾,会把