This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
embeddedapi:devel:lua [2011/12/28 11:35] miconda [sr.xhttp.reply] |
embeddedapi:devel:lua [2013/09/16 22:14] linuxmaniac [sr.xavp.get_keys] |
||
---|---|---|---|
Line 306: | Line 306: | ||
</ | </ | ||
+ | ===== SR.XAVP ===== | ||
+ | |||
+ | xavp management functions. | ||
+ | |||
+ | ==== sr.xavp.get_keys ==== | ||
+ | |||
+ | returns an array table with the key names of the xavp variable. | ||
+ | |||
+ | Prototype | ||
+ | |||
+ | <code c> | ||
+ | t = sr.xavp.get_keys(" | ||
+ | </ | ||
+ | |||
+ | Example | ||
+ | |||
+ | <code c> | ||
+ | $xavp(test=> | ||
+ | $xavp(test[0]=> | ||
+ | $xavp(test[0]=> | ||
+ | </ | ||
+ | |||
+ | <code c> | ||
+ | t = sr.xavp.get_keys(" | ||
+ | for k,v in pairs(t) do | ||
+ | sr.log(" | ||
+ | end | ||
+ | </ | ||
+ | |||
+ | Result | ||
+ | |||
+ | <code c> | ||
+ | 1:three | ||
+ | 2:two | ||
+ | 3:one | ||
+ | </ | ||
+ | |||
+ | ==== sr.xavp.get ==== | ||
+ | |||
+ | returns a dictionary table with the values of the xavp variable. | ||
+ | Third param is optional and it choose between get all the values of a key ( 0, default) or just the first ones (1) | ||
+ | |||
+ | Prototype | ||
+ | |||
+ | <code c> | ||
+ | t = sr.xavp.get(" | ||
+ | </ | ||
+ | |||
+ | Example | ||
+ | |||
+ | <code c> | ||
+ | $xavp(test=> | ||
+ | $xavp(test[0]=> | ||
+ | $xavp(test[0]=> | ||
+ | $xavp(test[0]=> | ||
+ | $xavp(test[0]=> | ||
+ | $xavp(test[0]=> | ||
+ | </ | ||
+ | |||
+ | <code c> | ||
+ | t = sr.xavp.get(" | ||
+ | for k,t2 in pairs(t) do | ||
+ | for i,v in ipairs(t2) do | ||
+ | | ||
+ | end | ||
+ | end | ||
+ | |||
+ | t = sr.xavp.get(" | ||
+ | for k,v in pairs(t) do | ||
+ | | ||
+ | end | ||
+ | </ | ||
+ | |||
+ | Result | ||
+ | |||
+ | <code c> | ||
+ | a[1]: | ||
+ | a[2]: | ||
+ | a[3]: | ||
+ | b[1]: | ||
+ | b[2]: | ||
+ | b[3]: | ||
+ | |||
+ | a:3[number] | ||
+ | b: | ||
+ | </ | ||
===== SR.SL Package ===== | ===== SR.SL Package ===== | ||
Line 483: | Line 569: | ||
</ | </ | ||
+ | ==== sr.sqlops.xquery ==== | ||
+ | |||
+ | Execute SQL query and store in XAVP. | ||
+ | |||
+ | Prototype | ||
+ | |||
+ | <code c> | ||
+ | sr.sqlops.xquery(" | ||
+ | </ | ||
===== SR.RR Package ===== | ===== SR.RR Package ===== | ||
Line 621: | Line 716: | ||
- | ===== SR.dispatcher | + | ===== SR.DISPATCHER |
==== sr.dispatcher.select ==== | ==== sr.dispatcher.select ==== | ||
Line 726: | Line 821: | ||
==== sr.uac.replace_from ==== | ==== sr.uac.replace_from ==== | ||
+ | |||
+ | ===== SR.TMX Package ===== | ||
+ | |||
+ | ==== sr.tmx.t_suspend ==== | ||
+ | |||
+ | ===== SR.MQUEUE Package ===== | ||
+ | |||
+ | ==== sr.mq.add ==== | ||