Update or not Time() in a PDF FormCalc?


i use time() in object (invoice number) generate number, every time open "saved" pdf, invoice number changes or updates because time(). normal. have been trying insert if statement test object , insert time() if object empty (new invoice) or not (not empty) when invoice stored record sale.

 

this guess not work!

 

 

<script>if (txtinvoicenum eq null) (txtinvoicenum = time()) end if

 

please help!

 

you not need brackets after 'then' , 'endif' 1 word in formcalc.

 

if (txtinvoicenum.isnull) then

txtinvoicenum = time()

endif

 

should work.



More discussions in LiveCycle Designer


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support