Home Forums Development CPM : any sample CPM word print document ?

Tagged: 

Viewing 4 reply threads
  • Author
    Posts
    • #11647
      Sreeejith VRSreeejith VR
      Participant

      any sample CPM word print document ?

      0
    • #11656
      Jenish JayakumarJenish Jayakumar
      Participant

      Hi Sreejith,

      I believe what you’re referring to is sample “print” word document with merge fields for printing from CPM.

      We have already shared a sample word document with merge field for the pattern. Please use the same pattern to build the documents.

      Note: With Full access to Adobe PDF reader, a PDF document with merge fields could also be created.

      0
    • #11705
      Sreeejith VRSreeejith VR
      Participant

      hi Jenish. thanks.
      i was looking for some help on that doc.
      how do you bring in the collections from the form to word merge fields?
      for example i have a section like below which is a collection.

      (bp:section
      callRecord1
      (: caption “Call Records”)
      (: captions (@ section callRecord1 title))
      (: collection #t)
      (bp:text title (: caption “Title”) (: sync #f) (: enabled #f))
      (bp:text priority (: caption “Priority”) (: sync #f) (: enabled #f))
      (bp:text text (: caption “Note”) (: sync #f) (: enabled #f))
      (bp:text location (: caption “location”) (: sync #f) (: enabled #f))
      )

      i tried the merge fields like

      «${fields[CusFtF.callRecord.title]value}»

      its not working.is it possible to bring collection to merge field? is there any sample doc for this.

      also ,

      i have a conditional filed like the below one.

      (bp:text
      EntityFN
      (:
      caption
      (if (@ question isEntityIndividual)
      (string-append “Full Name of the person (as per passport)”)
      (string-append “Name of the Entity”)
      )
      )
      (: value (@ question entityFullName))
      (: enabled (@ question canCurrentUserEdit))
      (: sync #f)
      )
      i am trying to bring in this to the word file using the below merge field.
      { IF “«${fields[relationshipDet.Relationship.va»” = “Yes” “Full Name of the person (as per passport)” “Name of the Entity” }
      this is not working. whats wrong here? – i am getting the value here correctly – «${fields[relationshipDet.Relationship.va» as yes. tried without “” as well . in both cases instead of using the value for comparison, its just being printed in the word document.
      the output is like YesName of the Entity

      0
    • #11714
      Johnny ZhangJohnny Zhang
      Participant

      Try: «${fields[CusFtF.callRecord.0.title]value}»

      You can debug to see the full list of available fields on a form by querying against the model class that was shared previously by Jenish.

      0
    • #11723
      nexj uaenexj uae
      Participant

      hi Johnny, thanks.

      how do i make this dynamic ?  if i write like this , it will fetch me first collection record only right.

      the print document needs to populate all the records in this collection dynamically . is that possible ?

      0
Viewing 4 reply threads
  • You must be logged in to reply to this topic.