之前使用報表處理是出現了一些問題,原來發現是版本造成的。此文記錄兩個版本之間的函數差別。
官方資料入口:http://doc.raqsoft.com.cn/report/preference/wdzl1.html
潤乾報表4.0 |
潤乾報表V2018 |
潤乾報表V2018備注 |
數據集函數 ( 原潤乾報表4.0已刪除函數為:ds.enumGroup ) |
||
ds.avg() |
同ds.avg() |
@r用根集;@a 計數null |
ds. bselect1() |
ds.bfind(select, {refer1:order1:value1},…,{refer2:order2:value2}) |
@r用根集 |
ds. colcount() |
ds.fcount() |
|
ds.count() |
同ds.count() |
@r用根集; |
ds.dcount() |
同ds.dcount() |
@r用根集 |
ds.dselect() |
參見ds.select() |
@r用根集(將潤乾報表4.0的ds.dselect()、ds.select()、ds.first()、ds.last()、ds.select1()、ds.selectEx()、ds.top()合並為集算器的ds.select()) |
ds.field() |
同ds.field() |
|
ds.fieldname() |
ds.fname(fieldNoExp) |
|
ds.first() |
參見ds.select() |
@r用根集(將潤乾報表4.0的ds.dselect()、ds.select()、ds.first()、ds.last()、ds.select1()、ds.selectEx()、ds.top()合並為集算器的ds.select()) |
ds.group() |
同ds.group() |
@r用根集,order省略為不排序,>0升序,<0降序; order1,..,ordern省略時升序 (將潤乾報表4.0的ds.group()、ds.groupEx()合並為潤乾報表V2018的ds.group()) |
ds.groupEx() |
參見ds.group() |
@r用根集(將潤乾報表4.0的ds.group()、ds.groupEx()合並為潤乾表的ds.group()) |
ds.isfield() |
同ds.isfield() |
|
ds.last() |
參見ds.select |
@r用根集(將潤乾報表4.0的ds.dselect()、ds.select()、ds.first()、ds.last()、ds.select1()、ds.selectEx()、ds.top()合並為集算器的ds.select()) |
ds.max() |
同ds.max(select,{filter}) |
@r用根集 |
ds.min() |
同ds.min(select,{filter}) |
@r用根集 |
ds.plot() |
同ds.plot(value,list,{filter}) |
@c包含相等,@z降序,@r用根集 |
ds.select() |
同ds.select(select:{order},{filter},{num},{distinct}) ds.select(select,{filter},{num},{distinct};{sort1}:{order1},…) |
@r用根集,@z從后數, num省略時返回全部(將潤乾報表4.0的ds.dselect()、ds.select()、ds.first()、ds.last()、ds.select1()、ds.selectEx()、ds.top()合並為集算器的ds.select()) |
ds.select1() |
參見ds.select() |
@r用根集(將潤乾報表4.0的ds.dselect()、ds.select()、ds.first()、ds.last()、ds.select1()、ds.selectEx()、ds.top()合並為集算器的ds.select()) |
ds.selectEx() |
參見ds.select() |
@r用根集(將潤乾報表4.0的ds.dselect()、ds.select()、ds.first()、ds.last()、ds.select1()、ds.selectEx()、ds.top()合並為集算器的ds.select()) |
ds.sum() |
同ds.sum(select,{filter}) |
@r用根集(將潤乾報表4.0的ds.dselect()、ds.first()、ds.last()、ds.select1()、ds.selectEx()、ds.top()合並為集算器的ds.select()) |
ds.top() |
參見ds.select() |
@r用根集(將潤乾報表4.0的ds.dselect()、ds.select()、ds.first()、ds.last()、ds.select1()、ds.selectEx()、ds.top()合並為集算器的ds.select()) |
單元格函數 (原潤乾報表4.0已刪除函數為:inputvalue ()) |
||
avg() |
同avg(exp) |
@a 對null元素進行計數 (將潤乾報表4.0的avg()、avg2()合並為潤乾報表V2018的avg()) |
avg2() |
參見avg(cellExp,exp) |
將潤乾報表4.0的avg()、avg2()合並為潤乾報表V2018的avg() |
call() |
同call(sqlStatement{,arg1{,arg2{,arg3{,……}}}}{;dbName}) |
將潤乾報表4.0的call()、call2()合並為潤乾報表V2018的call() |
call2() |
參見call() |
將潤乾報表4.0的call()、call2()合並為潤乾報表V2018的call() |
case() |
同case() |
|
cell() |
同cell() |
|
col() |
同col() |
|
count() |
同count(exp) |
@a對null元素進行計數 @d對去除重復內容后的數據進行計數 |
disp() |
同disp() |
|
ds() |
同ds() |
|
eval() |
同eval() |
|
if() |
同if(x1:y1,…,xk:yk;y) |
|
list() |
list(valueExp1{,valueExp2{,valueExp3{,……}}}) |
@m 各元素遞歸並集,對內部的list不展開 (將潤乾報表4.0的list()、list2()合並為潤乾報表V2018的list()) |
list2() |
參見list() |
將潤乾報表4.0的list()、list2()合並為潤乾報表V2018的list() |
map() |
同map() |
|
max() |
max(x) max(x,cell) |
|
maxc() |
同maxc() |
|
maxwidth() |
同maxwidth() |
|
min() |
同min() |
|
minc() |
同minc() |
|
nvl() |
ifn( valueExp1, valueExp2 ) |
|
plot() |
plot( valueExp, ListExp) |
@e包含等於,@z指list降序否則升序 |
query() |
query(sqlStatement{,arg1{,arg2{,arg3{,……}}}}{;dbName}) |
將潤乾報表4.0的query()、query2()合並為潤乾報表V2018的query() |
query2() |
參見query() |
將潤乾報表4.0的query()、query2()合並為潤乾報表V2018的query() |
row() |
同row() |
|
seq() |
同seq() |
|
sort() |
sort(array) |
@z降序 |
sum() |
sum(expression) sum(exp,cellExp) |
|
throwe() |
throwe({msg}) |
|
to() |
同to() |
|
value() |
同value() |
|
valueat() |
同valueat() |
|
時間日期函數 (原潤乾報表4.0已刪除函數為:dayNo() ) |
||
age() |
age(dateExp{,typeExp{,dateExp2}}) age(stringExp,formatExp{{,typeExp},date2Exp}) |
|
date() |
date(stringExp) date(year,month,day) |
|
dateTime() |
datetime(string) datetime(long) |
將潤乾報表4.0的dateTime()、dateTime2()合並為潤乾報表V2018的datetime () |
dateTime2() |
datetime(string, format) |
將潤乾報表4.0的dateTime()、dateTime2()合並為潤乾報表V2018的datetime () |
day() |
同day(dateExp) |
|
dayName() |
同dayName(dateExp) |
|
daysAfter() |
interval (datetimeExp1,datetimeExp2) |
@y計算兩個日期時間型數據相差幾年 @q 計算兩個日期時間型數據相差幾季度 @m 計算兩個日期時間型數據相差幾月 @s 計算兩個日期時間型數據相差幾秒 @ms計算兩個日期時間型數據相差幾毫秒 @r 計算兩個日期時間型數據間隔,返回實數 缺省為計算兩個日期時間型數據相差幾天 (將潤乾報表4.0的daysAfter()、secondsAfter()合並為潤乾報表V2018的interval()) |
daysinmonth() |
參見days(dateExp) |
將潤乾報表4.0的daysinmonth ()、daysinyear()合並為潤乾報表V2018的days() |
daysinyear() |
參見days@y(dateExp) |
將潤乾報表4.0的daysinmonth ()、daysinyear()合並為潤乾報表V2018的days() |
hour() |
同hour(datetimeExp) |
|
lastday() |
elapse(dateExp, n) |
將潤乾報表4.0的lastday()、lastmonth ()、lastyear()、relDate()、relTime()合並為潤乾報表V2018的elapse() |
lastmonth() |
elapse@m (dateExp, n) |
將潤乾報表4.0的lastday()、lastmonth ()、lastyear()、relDate()、relTime()合並為潤乾報表V2018的elapse() |
lastyear() |
elapse@y (dateExp, n) |
將潤乾報表4.0的lastday()、lastmonth ()、lastyear()、relDate()、relTime()合並為潤乾報表V2018的elapse() |
minute() |
同minute() |
|
month() |
同month() |
|
monthbegin() |
pdate @m(dateExp) |
將潤乾報表4.0的monthbegin ()、monthend ()、queterbegin ()、quaterend ()、weekbegin()、weekend()合並為潤乾報表V2018的pdate() |
monthend() |
pdate @me(dateExp) |
將潤乾報表4.0的monthbegin ()、monthend ()、queterbegin ()、quaterend ()、weekbegin()、weekend()合並為潤乾報表V2018的pdate() |
now() |
同now() |
|
quaterbegin() |
pdate @q(dateExp) |
將潤乾報表4.0的monthbegin ()、monthend ()、queterbegin ()、quaterend ()、weekbegin()、weekend()合並為潤乾報表V2018的pdate() |
quaterend() |
pdate @qe(dateExp) |
將潤乾報表4.0的monthbegin ()、monthend ()、queterbegin ()、quaterend ()、weekbegin()、weekend()合並為潤乾報表V2018的pdate() |
relDate() |
參見elapse(dateExp, n) |
將潤乾報表4.0的lastday()、lastmonth ()、lastyear()、relDate()、relTime()合並為潤乾報表V2018的elapse() |
relTime() |
參見elapse@s(dateExp, n) |
將潤乾報表4.0的lastday()、lastmonth ()、lastyear()、relDate()、relTime()合並為潤乾報表V2018的elapse() |
second() |
同second(datetimeExp) |
|
secondsAfter() |
參見interval@s (datetimeExp1,datetimeExp2) |
將潤乾報表4.0的daysAfter()、secondsAfter()合並為潤乾報表V2018的interval() |
time() |
同time() |
|
weekbegin() |
pdate @w(dateExp) |
將潤乾報表4.0的monthbegin ()、monthend ()、queterbegin ()、quaterend ()、weekbegin()、weekend()合並為潤乾報表V2018的pdate() |
weekend() |
pdate @we(dateExp) |
將潤乾報表4.0的monthbegin ()、monthend ()、queterbegin ()、quaterend ()、weekbegin()、weekend()合並為潤乾報表V2018的pdate() |
year() |
同year(dateExp)) |
|
數學函數 |
||
abs() |
同abs() |
|
ceil() |
同ceil() |
|
cos() |
同cos() |
|
exp() |
同exp() |
|
fact() |
同fact() |
|
floor() |
同floor() |
|
log() |
ln(numberExp) |
|
log10() |
lg (numberExp) |
|
pi() |
同pi() |
|
pow() |
同power(xExp, nExp) |
|
rand() |
同rand() |
|
round() |
同round() |
|
sign() |
同sign() |
|
sin() |
同sin() |
|
sqrt() |
同sqrt() |
|
tan() |
同tan() |
|
asin() |
同asin() |
|
acos() |
同acos() |
|
atan() |
同atan() |
|
字符串函數 (原潤乾報表4.0已刪除函數為:ltrim ()、rtrim()) |
||
fill() |
同fill(s, n) |
|
left() |
同left(string, n) |
|
len() |
同len(str) |
|
like() |
同like( stringExp, formatExp{, ignoreCase} ) |
|
link() |
同link(serviceName{,jspArgNames,jspArgValues{,reportArgNames,reportArgValues}}) |
|
lower() |
同lower(str) |
|
mid() |
同mid(s, start{, end}) |
|
pos() |
同pos() |
|
right() |
同right(s, n) |
|
rmQuote() |
同rmquote(exp) |
|
rmb() |
同rmb() |
|
rplc() |
replace( src,a,b) |
|
space() |
同space() |
|
split() |
同split() |
|
trim() |
同trim(s) |
|
upper() |
同upper() |
|
wordCap() |
同wordcap() |
|
數據類型轉換 |
||
asc() |
同asc( string{, nPos} ) |
|
bigint() |
bigint(stringExp) bigint(numberExp) |
|
char() |
同char( int ) |
|
chn() |
同chn(intExp{,abbrivateExp{, uppercaseExp }} ) |
|
decimal() |
同deicmal() |
|
double() |
同double() |
|
float() |
同float() |
|
hexstring() |
同hexstring(dataExp{,spaceExp}) |
|
int() |
同int() |
|
isdate() |
同isdate() |
|
isEmpty () |
同isempty () |
|
isnumber() |
同isnumber() |
|
istime() |
同istime() |
|
long() |
同long() |
|
number() |
同number() |
|
rgb() |
同rgb( redIntExp, greenIntExp, blueIntExp{, alphaIntExp} ) |
|
str() |
string(expression{, format}) |
|
分頁后運算函數 |
||
pno() |
同pno() |
@x 在橫向分頁的頁表中的頁碼 @y 在縱向分頁的頁表中的頁碼 |
pcount() |
同pcount() |
@x 在橫向分頁的頁表中的頁碼 @y 在縱向分頁的頁表中的頁碼 |
pcsum() |
同pcsum({cellExp}) |
|
pccount() |
同pccount({cellExp}) |
|
資料來源於網絡。