We have a infopath form in which there is button called Generate (which generates a new Report Number in the field everytime the new form is opened). but when we click on the button it generates the same report number which is in the format CDR +1900000 +ID. Any ideas or suggestions??
We are using below custom code for the button which ...