Details

    • Type: Sub-task
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Company:
      All Clients/Multiple Clients

      Description

      CBES HTML forms implementation:
      1. Add TemplatefileType column in database
      2. Add metadata with localization in datbase
      3. Expose metadata from API to angular
      4. fetchTemplatefiletype value on Edit
      5. Save Templatefiletype value in database.
      6. Fetch key values on Preview forms
      7. API changes on send forms

        Attachments

          Activity

          Hide
          swapnil.pandhare Swapnil Pandhare (Inactive) added a comment -

          Hi Mohd Belal,

          Please find below changed API responses for HTML implementation :
          1. Preview API resonse :
          {"DocType":1,"fileName":"155124268543312_1551335964546.html","formDetails":

          {"first_name":"John","last_name":"Doetest"}

          ,"fileExtension":".html"}

          2. Get meta data collection API :
          URL : /api/documenttemplate/GetMetaDataCollection
          Response added in API : "templateFileTypes":

          { "48": "PDF", "49": "HTML" }

          3. Get template details API
          URL : /api/documenttemplate/GetFormData/

          {id}

          New response :
          {"Id":191,"TemplateName":"CBES HTML","Description":"CBES HTML","TemplateFileName":"155124268543312_1551335964546.html","Accessibility":0,"DocumentType":14,"DocumentPath":"OBFileServer\\OnBoard\\PDFServiceAssets\\TemplatesPdf\\1\\Document
          ","SourceProductId":17,"TemplateTypeId":27,"TemplateVersion":null,"TemplateDocumentSource":"21","TemplateStatusId":23,"TemplateStatus":null,"TemplateStartDate":null,"TemplateEndDate":null,"strPDFFiels":null,"strFieldMapping":null,"DateCreated":"2019-02-28T12:11:22","UploadDate":"2019-02-28T12:11:22","UploadedBy":"0","CompletedWithin":null,"PDFFormFields":

          {"3":"pagename","4":"submit","5":"reset","6":"subject","7":"subject","8":"maths","9":"physics","10":"fileupload","11":"ok","12":"imagebutton","13":"description","14":"dropdown"}

          ,"MappingFields":

          {"1~first_name$^$11":"first_name-Person.Given Name","2~last_name$^$14":"last_name-Person.Family Name"}

          ,"OriginalFormFields":

          {"1":"first_name","2":"last_name","3":"pagename","4":"submit","5":"reset","6":"subject","7":"subject","8":"maths","9":"physics","10":"fileupload","11":"ok","12":"imagebutton","13":"description","14":"dropdown"}

          ,"isDocInUse":false,"ESignedDocument":false,"IsArchived":0,"TemplateFileTypeId":49}

          Also, you need to send "TemplateFileTypeId" field while saving documentTemplate.

          Please let me know if you need more details .

          Thanks,
          Swapnil P.

          Show
          swapnil.pandhare Swapnil Pandhare (Inactive) added a comment - Hi Mohd Belal , Please find below changed API responses for HTML implementation : 1. Preview API resonse : {"DocType":1,"fileName":"155124268543312_1551335964546.html","formDetails": {"first_name":"John","last_name":"Doetest"} ,"fileExtension":".html"} 2. Get meta data collection API : URL : /api/documenttemplate/GetMetaDataCollection Response added in API : "templateFileTypes": { "48": "PDF", "49": "HTML" } 3. Get template details API URL : /api/documenttemplate/GetFormData/ {id} New response : {"Id":191,"TemplateName":"CBES HTML","Description":"CBES HTML","TemplateFileName":"155124268543312_1551335964546.html","Accessibility":0,"DocumentType":14,"DocumentPath":"OBFileServer\\OnBoard\\PDFServiceAssets\\TemplatesPdf\\1\\Document ","SourceProductId":17,"TemplateTypeId":27,"TemplateVersion":null,"TemplateDocumentSource":"21","TemplateStatusId":23,"TemplateStatus":null,"TemplateStartDate":null,"TemplateEndDate":null,"strPDFFiels":null,"strFieldMapping":null,"DateCreated":"2019-02-28T12:11:22","UploadDate":"2019-02-28T12:11:22","UploadedBy":"0","CompletedWithin":null,"PDFFormFields": {"3":"pagename","4":"submit","5":"reset","6":"subject","7":"subject","8":"maths","9":"physics","10":"fileupload","11":"ok","12":"imagebutton","13":"description","14":"dropdown"} ,"MappingFields": {"1~first_name$^$11":"first_name-Person.Given Name","2~last_name$^$14":"last_name-Person.Family Name"} ,"OriginalFormFields": {"1":"first_name","2":"last_name","3":"pagename","4":"submit","5":"reset","6":"subject","7":"subject","8":"maths","9":"physics","10":"fileupload","11":"ok","12":"imagebutton","13":"description","14":"dropdown"} ,"isDocInUse":false,"ESignedDocument":false,"IsArchived":0,"TemplateFileTypeId":49} Also, you need to send "TemplateFileTypeId" field while saving documentTemplate. Please let me know if you need more details . Thanks, Swapnil P.
          Hide
          mohd.belal Mohd Belal (Inactive) added a comment -

          Hi Swapnil Pandhare,

          Let me proceed with the API implementation as  provided above and if needed anything I will ping you back.

          cc - Samir

          Thanks

          Show
          mohd.belal Mohd Belal (Inactive) added a comment - Hi Swapnil Pandhare , Let me proceed with the API implementation as  provided above and if needed anything I will ping you back. cc - Samir Thanks
          Hide
          mohd.belal Mohd Belal (Inactive) added a comment - - edited

          Hi Swapnil Pandhare,

          The remaining API which needs to be updated are:

          1. create / update document API
          2.  Send Forms new column File type listing ( FormsLibrary-> active)
          3. Person->SavePDFData to save the mapped fields before sending mail to user.

          cc - Samir

           

          Thanks

          Show
          mohd.belal Mohd Belal (Inactive) added a comment - - edited Hi Swapnil Pandhare , The remaining API which needs to be updated are: create / update document API  Send Forms new column File type listing ( FormsLibrary-> active) Person->SavePDFData to save the mapped fields before sending mail to user. cc - Samir   Thanks
          Hide
          swapnil.pandhare Swapnil Pandhare (Inactive) added a comment -

          Hi Mohd Belal,

          Below is update as per our call :
          1. create / update document API - Done. Give response as mentioned above.
          2. Send Forms new column File type listing ( FormsLibrary-> active) - Pending
          3. Person->SavePDFData to save the mapped fields before sending mail to user. - There might be no changes needed.

          Thanks,
          Swapnil P.

          Show
          swapnil.pandhare Swapnil Pandhare (Inactive) added a comment - Hi Mohd Belal , Below is update as per our call : 1. create / update document API - Done. Give response as mentioned above. 2. Send Forms new column File type listing ( FormsLibrary-> active) - Pending 3. Person->SavePDFData to save the mapped fields before sending mail to user. - There might be no changes needed. Thanks, Swapnil P.
          Hide
          swapnil.pandhare Swapnil Pandhare (Inactive) added a comment -

          Hi Mohd Belal,

          Below is today's update : :
          1. create / update document API - Done. Give response as mentioned above.
          2. Send Forms new column File type listing ( FormsLibrary-> active) - Done
          You will get TemplateFileTypeId as extra field in the collection for each documenttemplate record.
          3. Person->SavePDFData to save the mapped fields before sending mail to user. - There might be no changes needed.

          Thanks,
          Swapnil P.

          Show
          swapnil.pandhare Swapnil Pandhare (Inactive) added a comment - Hi Mohd Belal, Below is today's update : : 1. create / update document API - Done. Give response as mentioned above. 2. Send Forms new column File type listing ( FormsLibrary-> active) - Done You will get TemplateFileTypeId as extra field in the collection for each documenttemplate record. 3. Person->SavePDFData to save the mapped fields before sending mail to user. - There might be no changes needed. Thanks, Swapnil P.
          Hide
          jayshree.nagpure Jayshree Nagpure (Inactive) added a comment -

          Hi Mohd Belal,

          We have to verify this through API or UI ?
          Can you please confirm

          Thanks
          Jayshree

          Priya Dhamande

          Show
          jayshree.nagpure Jayshree Nagpure (Inactive) added a comment - Hi Mohd Belal , We have to verify this through API or UI ? Can you please confirm Thanks Jayshree Priya Dhamande
          Hide
          mohd.belal Mohd Belal (Inactive) added a comment -

          Hi Jayshree Nagpure,

          Both have to tested and verified.

          cc -Samir, Swapnil Pandhare

          Thanks

          Show
          mohd.belal Mohd Belal (Inactive) added a comment - Hi Jayshree Nagpure , Both have to tested and verified. cc - Samir , Swapnil Pandhare Thanks
          Hide
          jayshree.nagpure Jayshree Nagpure (Inactive) added a comment -

          Verified HTML Preview through UI - Working fine
          For API, currently there is no such API preview request implemented.
          Created jira for the same DMS-1127.

          Closing this ticket

          Priya Dhamande Swapnil Pandhare Mohd Belal Ganesh Sadawarte

          Show
          jayshree.nagpure Jayshree Nagpure (Inactive) added a comment - Verified HTML Preview through UI - Working fine For API, currently there is no such API preview request implemented. Created jira for the same DMS-1127 . Closing this ticket Priya Dhamande Swapnil Pandhare Mohd Belal Ganesh Sadawarte

            People

            Assignee:
            jayshree.nagpure Jayshree Nagpure (Inactive)
            Reporter:
            swapnil.pandhare Swapnil Pandhare (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 10h Original Estimate - 10h
                10h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 14.5h
                14.5h