Expand my Community achievements bar.

Invoice Number

Avatar

Level 1

How can I create an invoice number in Livecycle that will increment by one each time a reset form button is pressed? I am new to Livecycle and from what I can find browsing the net, I will need a web service to achive this. How could I accomplish this even if I have access to a web service? Any help would greatly be appreciated!!!!!

3 Replies

Avatar

Level 9

Hi,

If you want to calculate hoe many number of times a particular button is clicked and basing that you want to generate some invoices, you can do that. You can use a hidden NumericField. And put this code in the click event of the ReserButton. It will strore the number of times the button is cliked and it will increment everytime the button is clicked.

var a = NumericField1.rawValue ;

a = a +1;

NumericField1.rawValue = a ;

Thanks,

Bibhu.

Avatar

Level 1

Thanks Bibhu,

I put the code you suggested into the "click" area of the reset button, then created a numeric field but every time, i clicked the reset button, the number never changed. What am i doing wrong?

Avatar

Level 9

It should work. Could you please share the form at bibhu69@gmail.com I canhave a look.