Skip to content

Commit 26c6a05

Browse files
committed
Update docgen example for dynamic tables
1 parent a53885f commit 26c6a05

File tree

5 files changed

+42
-8
lines changed

5 files changed

+42
-8
lines changed
36.3 KB
Binary file not shown.

launcher-csharp/eSignature/Examples/DocumentGeneration.cs

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,13 +229,48 @@ public static DocGenFormFieldRequest FormFields(
229229
},
230230
new DocGenFormField
231231
{
232-
Name = "Salary",
233-
Value = salary,
232+
Name = "Start_Date",
233+
Value = startDate,
234234
},
235235
new DocGenFormField
236236
{
237-
Name = "Start_Date",
238-
Value = startDate,
237+
Name = "Compensation_Package",
238+
Type = "TableRow",
239+
RowValues = new List<DocGenFormFieldRowValue>
240+
{
241+
new DocGenFormFieldRowValue
242+
{
243+
DocGenFormFieldList = new List<DocGenFormField>
244+
{
245+
new DocGenFormField
246+
{
247+
Name = "Compensation_Component",
248+
Value = "Salary",
249+
},
250+
new DocGenFormField
251+
{
252+
Name = "Details",
253+
Value = salary,
254+
},
255+
},
256+
},
257+
new DocGenFormFieldRowValue
258+
{
259+
DocGenFormFieldList = new List<DocGenFormField>
260+
{
261+
new DocGenFormField
262+
{
263+
Name = "Compensation_Component",
264+
Value = "Bonus",
265+
},
266+
new DocGenFormField
267+
{
268+
Name = "Details",
269+
Value = "You will be eligible for a bonus of up to 20 percent based on your performance.",
270+
},
271+
},
272+
},
273+
},
239274
},
240275
},
241276
},

launcher-csharp/eSignature/Models/DSConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class DsConfiguration
1212
public string DocPdf = "World_Wide_Corp_lorem.pdf";
1313
public string DocumentTemplatePdf = "World_Wide_Corp_Web_Form.pdf";
1414
public string WebFormConfig = "web-form-config.json";
15-
public string OfferDocDocx = "Offer_Letter_Demo.docx";
15+
public string OfferDocDocx = "Offer_Letter_Dynamic_Table.docx";
1616
public string DocCsv = "UserData.csv";
1717
public string DocHtml = "doc_1.html";
1818
public string ExportUsersPath = @"..\..\..\ExportedUserData.csv";

launcher-csharp/eSignature/Views/DocumentGeneration/eg042.cshtml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@
8484

8585
<select class="form-control" id="jobTitle" name="jobTitle">
8686
<option value="Software Engineer">Software Engineer</option>
87-
<option value="Product Manager">Product Manager</option>
88-
<option value="Sales Representative">Sales Representative</option>
87+
<option value="Account Executive">Account Executive</option>
8988
</select>
9089
</div>
9190

launcher-csharp/launcher-csharp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<ItemGroup>
3939
<PackageReference Include="DocuSign.Admin" Version="1.4.0" />
4040
<PackageReference Include="DocuSign.Click" Version="1.2.2" />
41-
<PackageReference Include="DocuSign.eSign.dll" Version="6.6.0" />
41+
<PackageReference Include="DocuSign.eSign.dll" Version="6.9.0-rc1" />
4242
<PackageReference Include="DocuSign.Monitor" Version="1.1.1" />
4343
<PackageReference Include="DocuSign.Maestro" Version="1.0.0-alpha2" />
4444
<PackageReference Include="DocuSign.Rooms" Version="1.3.0" />

0 commit comments

Comments
 (0)