Skip to content

Commit e1a0622

Browse files
committed
Various updates
1 parent fb6014c commit e1a0622

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

launcher-csharp/Monitor/Examples/GetMonitoringDataFunc.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public virtual IEnumerable<object> Invoke(string accessToken, string requestPath
3333

3434
// Declare variables
3535
//ds-snippet-start:Monitor1Step3
36-
DateTime cursorDate = DateTime.UtcNow.AddYears(-1);
36+
DateTime cursorDate = DateTime.UtcNow.AddDays(-1);
3737
bool complete = false;
3838
string cursorValue = cursorDate.ToString("yyyy-MM-dd") + "T00:00:00Z";
3939
int limit = 2000; // Amount of records you want to read in one request

launcher-csharp/Views/Home/Index.cshtml

-2
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,12 @@
3030
<input type="text" class="form-control" id="code_example_search" placeholder="Search for code example">
3131
</div>
3232

33-
3433
<div id="api_json_data" class="hidden">@ViewBag.APIData</div>
3534
<div id="cfr11_data" class="hidden">@ViewBag.CFRPart11</div>
3635

3736
<div id="filtered_code_examples" class="container" style="margin-top: 10px; padding-left: 0px;">
3837
@foreach(var api in ViewBag.APITexts)
3938
{
40-
4139
var linkToCodeExample = ((ApIs) api).Name.ToLower() == ExamplesApiType.ESignature.ToString().ToLower() ? ExamplesApiType.ESignature.ToKeywordString()
4240
: ((ApIs) api).Name.ToLower() == ExamplesApiType.Click.ToString().ToLower() ? ExamplesApiType.Click.ToKeywordString()
4341
: ((ApIs) api).Name.ToLower() == ExamplesApiType.Monitor.ToString().ToLower() ? ExamplesApiType.Monitor.ToKeywordString()

launcher-csharp/WebForms/Controllers/CreateAndEmbedForm.cs

+2
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ public ActionResult EmbedForm()
117117
accountId,
118118
formId);
119119

120+
this.ViewBag.Description = this.CodeExampleText.AdditionalPages
121+
.First(x => x.Name == "webforms_heading").ResultsPageText;
120122
this.ViewBag.InstanceToken = form.InstanceToken;
121123
this.ViewBag.Url = form.FormUrl;
122124
this.ViewBag.IntegrationKey = this.configuration["DocuSign:ClientId"];

launcher-csharp/WebForms/Views/CreateAndEmbedForm/Embed.cshtml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<body>
1212
<div id="app">
1313
<div id="webform-customer-app-area">
14-
<h5 id="webforms-heading">The web form has been embedded below using the Docusign JS library.</h5>
14+
<h5 id="webforms-heading">@Html.Raw(ViewBag.Description)</h5>
1515
<div id="docusign" class="webform-iframe-container">
1616
<p>Web Form will render here</p>
1717
</div>

0 commit comments

Comments
 (0)