1 Reply Latest reply on Dec 14, 2011 5:25 AM by try67

    use variable for filename for exportdata

    kwbarclay

      I am trying to set a var value and then use the var in the exportdata method using formcalc.

       

      var txtFileName = "DataFileName"

      if (tbxVicName.isNull) then

      var txtFileName = Concat(num2date(date(), "YYYY_MMM_DD"),"_CameronDamageAssesment")

      xfa.host.exportData(Ref(txtFileName.rawValue),0)

      else

      var txtFileName = Concat(num2date(date(), "YYYY_MMM_DD"),tbxVicName.rawValue)

      xfa.host.exportData(txtFileName,0)

      endif

       

      Thanks for any assistance.

      Kurt