Yes, of course...
1- Create a class Named WebPage using Package Web (or any other but you have to change it in the Rule file).
2- Create a rule file named, for instance, CSPrules.csr, copy the rule inside it, save and compile it.
3- Copy the ClassMethod toRec inside that class and compile it.
4- Create a csp Form using the studio wizzard.
5- In your csp form (you must have the ID field usualy named as sys_Id (this name should not be changed, unless you change it in the Rule file).
6- I usualy create a new <tr>, before the buttons, where i insert the tag <RecSel>
7- The ClassMethod is prepared for first and last also.
if you need them just have another image and add a line to the CSR file like:
<TD><img src='/images/body_btn_first.gif' OnClick="var id=#server(Web.WebPage.toRec('#(table)#',document.form.sys_Id.value,'first'))#;#server(..formLoad(id))#;"></TD>


Nuno

Eli Itshaki wrote:
can you please put full example how to use this rule from csp page with the
class ?


"Nuno Canas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]

I've made available for download at http://www.i9ation.com/Downloads/ a
 record navigator/selector as a <csr:> rule.

It will be also uploaded to:
http://www.mgateway.com/utility.htm
http://www.zcachelib.org

Nuno








Reply via email to