Sign In   Register
  • Hi, 

    I'm trying to run a query to return all (current and previous) version(s) of forms with a specific assigned property name. Using the below script, I was able to return a list of all forms (current version only) that include that property...

    Hi, 

    I'm trying to run a query to return all (current and previous) version(s) of forms with a specific assigned property name. Using the below script, I was able to return a list of all forms (current version only) that include that property along with the assigned value to each one of them. Is there a way to query that property value from both current and previous form(s) versions? 

    import com.avoka.fc.core.dao.DaoFactory
    import com.avoka.fc.core.entity.Form
    import com.avoka.tm.query.*
    import com.avoka.tm.vo.*

     //Form Property name to look up
     String nameOfProperty = "WindwardReceiptResourceName"

    List<Form> forms = new DaoFactory().getFormDao().getActiveAndProductionFormList()

    List<String> fileNames =[]


    forms.each { form ->

    String formCode = form.getFormCode()
    String propertyValue = new PropertyQuery()
    .setName(nameOfProperty)
    .setSpaceName("TEST")
    .setFormCode(formCode)
    .getValue()

    if(propertyValue){
    fileNames.add(propertyValue as String);
    //println propertyValue
    }

    }

    println fileNames

    More
    1. View Post
    0
    0
    0
    0
    0
    0
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
Unable to load tooltip content.

Not a member?

Register to ask a question and access to more content.

Join now

Recent Q&A

Goggle reCAPTCHA V3 - Exchange Package available?
Hi, we've been advised that Google have a new version of reCAPTCHA V3. Refer ...

Looking for something else?

You can request access to:

  • Courses
  • Full Release Notes
  • Product Downloads
  • SDK

Request access

Leader Board

1
Mark Murray
User's Points: 1376
2
Lin Vanoevelen
User's Points: 1046
3
Julio Berrueco Pinto
User's Points: 715
4
Matthew White
User's Points: 398
5
Chad Thomas
User's Points: 300

Announcements

Summary of Vulnerability CVE-2022-22965 is a reported critical vulnerability targeting the Spring Ja...

Website tips

Online eLearning videos now available

The Knowledge team is excited to announce that all online eLearning content has now been consolidated into the Journey Platform website to provide a more streamlined user experience.  

Read more ...