customize receipt

Oct 23, 2006 4 Replies

I am working with customizd receipt. What I need is to add some data in the standard receipt. I have stored the data to SessionClass.Variable(1) before printing receipt. I changed the xml template to show them. In the template, I refer them as the following:



Len(SessionClass.Variable2) "value 1:" SessionClass.Variable2



when printing, I got compile error says " token "SessionClass.Variable2" was not found" . Any one got ideas? What is the xml format of the receipt? Because SessionClass.Variable index starts from 0, I guess variable(1) should be the second. I tried SessionClass.Variable(1) as well, got same error.


Thank you for your help. Leanne



Hi Leanne,

"SessionClass" is the name of the class, "Session" is the name of the local instance of that object. The session variables are numbered from one thru ten. Hope that helps.

Ken K Computer Analytics

Thank you Ken. I fixed that and now no problem there. But I still got error: "Token "row" not found. Have you got any more idea?

Leanne

Ken K wrote:

Leanne, the token is valid only within a ... token pair. You might consider moving your code so that it is located within an existing structure.

Ken

I fixed and it works now. Thank you again Ken. Leanne

Ken K wrote:

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required