How to create rule for DOCX From Dynamic Template

Certified Senior Developer

Hi,

I have a requirement to create a dynamic table in pdf , now i am using plugins DOCX from Dynamic table 

for this how to create rule can anyone suggest,

thanks

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    a!localVariables(
      local!application: rule!GAI_getApplication(applicationId: ri!appId).data,
      local!projectInfo: rule!GAI_getProjectInfoDisplaySummary(appId: ri!appId),
      local!grantDocument: rule!GAI_getGrantDocument(applicationId: ri!appId, isactive: true()).data,
      local!programAssessmentChart: rule!GAI_convertPgmActvtyAssmntDataToTempData(
        pgmActvtyAssmnt: rule!GAI_getPrgmActvtyAssessmentByApplnId(applicationId: ri!appId).data,
        applicationId: ri!appId
      ),
      local!programActivity: rule!GAI_getRefProgramActivity(
        programActivityId: a!forEach(
          items: local!programAssessmentChart.fk_program_activity_id,
          expression: fv!item
        )
      ).data,
      {
        local!grantDocument,
        local!programAssessmentChart,
        local!programActivity,
        local!application,
        local!projectInfo,
        concat(
        "<dynamic>",
        a!forEach(
        items: local!programActivity,
        expression: concat(
        "<ctable activity='",
        fv!item.['recordType!{c1b3acd6-4f4f-401f-828d-b60dc3af6722}GAI Ref Program Activity.fields.{c6132d99-98ea-42d1-a06a-2c005c045e8e}activityName'],
        "'activityName='",
        "' />"
        )
        ),
        "</dynamic>"
        )
      }
    )

Reply
  • 0
    Certified Senior Developer

    a!localVariables(
      local!application: rule!GAI_getApplication(applicationId: ri!appId).data,
      local!projectInfo: rule!GAI_getProjectInfoDisplaySummary(appId: ri!appId),
      local!grantDocument: rule!GAI_getGrantDocument(applicationId: ri!appId, isactive: true()).data,
      local!programAssessmentChart: rule!GAI_convertPgmActvtyAssmntDataToTempData(
        pgmActvtyAssmnt: rule!GAI_getPrgmActvtyAssessmentByApplnId(applicationId: ri!appId).data,
        applicationId: ri!appId
      ),
      local!programActivity: rule!GAI_getRefProgramActivity(
        programActivityId: a!forEach(
          items: local!programAssessmentChart.fk_program_activity_id,
          expression: fv!item
        )
      ).data,
      {
        local!grantDocument,
        local!programAssessmentChart,
        local!programActivity,
        local!application,
        local!projectInfo,
        concat(
        "<dynamic>",
        a!forEach(
        items: local!programActivity,
        expression: concat(
        "<ctable activity='",
        fv!item.['recordType!{c1b3acd6-4f4f-401f-828d-b60dc3af6722}GAI Ref Program Activity.fields.{c6132d99-98ea-42d1-a06a-2c005c045e8e}activityName'],
        "'activityName='",
        "' />"
        )
        ),
        "</dynamic>"
        )
      }
    )

Children
No Data