91
Web Server - Ask For Help / Including on Report the total count of records displayed
« Last post by Richard I on April 03, 2024, 07:41:07 PM »Hi
I have a report where I am totalling the number of records being displayed using loc:Count+=1
A stop statement into the Serverside code returns a total number correctly both as loc:Count and as p_web.GSV('loc:Count')
My problem is getting the count value to display in the Header of the report.
Ive tried in WindowManager OpenReport Procedure after Parent Call SetTarget(report)
and in PrimeReportOptions when run in web mode...
loctotal = p_web.GSV('loc:Count')
where loc:Total is a long N_4
But both return 0 in the report
What do I need to do , please?
Thanks
Richard
NT 14.20
I have a report where I am totalling the number of records being displayed using loc:Count+=1
A stop statement into the Serverside code returns a total number correctly both as loc:Count and as p_web.GSV('loc:Count')
My problem is getting the count value to display in the Header of the report.
Ive tried in WindowManager OpenReport Procedure after Parent Call SetTarget(report)
and in PrimeReportOptions when run in web mode...
loctotal = p_web.GSV('loc:Count')
where loc:Total is a long N_4
But both return 0 in the report
What do I need to do , please?
Thanks
Richard
NT 14.20
92
Web Server - Ask For Help / Re: Freezing when applying security to buttons
« Last post by Richard I on April 03, 2024, 12:38:16 PM »Hi Bruce,
the problem of freezing applied to On the browse line buttons
Simply removed them and just using the below browse change delete buttons which will hide with security applied.
Thanks
Richard
the problem of freezing applied to On the browse line buttons
Simply removed them and just using the below browse change delete buttons which will hide with security applied.
Thanks
Richard
93
Web Server - Ask For Help / Re: Inbound stream from Postmark - Solved
« Last post by JohanR on March 31, 2024, 03:43:54 AM »Hi,
p_web.RequestData.DataStringtheory
contains the post data in a stringtheory obect
NetWebServerRequestDataType group,type
WebServer &NetWebServer ! Pointer back to our Web Server object
FromIP like (Net:SimplePacketType.FromIP)
OnSocket like (Net:SimplePacketType.OnSocket)
SockID like (Net:SimplePacketType.SockID)
DataStringTheory &StringTheory
RequestMethodType long ! e.g. NetWebServer_POST or NetWebServer_GET
SiteId long
SessionId String(Net:MaxSessionLength) ! used when deleting sessions
end
Assign from stringtheory to stringtheory object
SomeLoadString.SetValue(p_web.RequestData.DataStringtheory)
really cool and easy once you get the how and what to use
Johan
p_web.RequestData.DataStringtheory
contains the post data in a stringtheory obect
NetWebServerRequestDataType group,type
WebServer &NetWebServer ! Pointer back to our Web Server object
FromIP like (Net:SimplePacketType.FromIP)
OnSocket like (Net:SimplePacketType.OnSocket)
SockID like (Net:SimplePacketType.SockID)
DataStringTheory &StringTheory
RequestMethodType long ! e.g. NetWebServer_POST or NetWebServer_GET
SiteId long
SessionId String(Net:MaxSessionLength) ! used when deleting sessions
end
Assign from stringtheory to stringtheory object
SomeLoadString.SetValue(p_web.RequestData.DataStringtheory)
really cool and easy once you get the how and what to use
Johan
94
Web Server - Ask For Help / Re: Inbound stream from Postmark
« Last post by JohanR on March 30, 2024, 04:03:06 AM »Hi,
Forgot to add,
the ContentType is set to application/json
[st][3] [netTalk][thread=3] TVCWEB - p_web.RequestContentType:application/json
[st][3] [netTalk][thread=3] TVCWEB - p_web._UserAgent:postmark
below the post data from the server window
POST /ReceiveStatements HTTP/1.1
Host: www.vineyardconnection.co.za
X-PM-Webhook-Trace-Id: c2d5bcbc-1eff-4695-bfe9-c2be112ce564
X-PM-Webhook-Event-Id: test-hook
X-PM-Retries-Remaining: 0
Expect: 100-continue
Connection: close
User-Agent: Postmark
Content-Type: application/json
Content-Length: 1702
{
"Date": "Sat, 30 Mar 2024 11:35:48 +0000",
"From": "support@postmarkapp.com",
"FromName": "Postmarkapp Support",
"FromFull": {
"Email": "support@postmarkapp.com",
"MailboxHash": "",
"Name": "Postmarkapp Support"
},
"HtmlBody": "<html><body><p>This is a test html body.</p></body></html>",
"MailboxHash": "SampleHash",
"MessageID": "00000000-0000-0000-0000-000000000000",
"MessageStream": "inbound",
"ReplyTo": "replyto@example.com",
"Subject": "Test subject",
"Tag": "TestTag",
"TextBody": "This is a test text body.",
"Headers": [
{
"Name": "X-Header-Test",
"Value": ""
}
],
"To": "\"Firstname Lastname\" <mailbox+SampleHash@inbound.postmarkapp.com>",
"ToFull": [
{
"Email": "mailbox+SampleHash@inbound.postmarkapp.com",
"MailboxHash": "SampleHash",
"Name": "Firstname Lastname"
}
],
"Cc": "\"First Cc\" <firstcc@postmarkapp.com>, secondCc@postmarkapp.com",
"CcFull": [
{
"Email": "firstcc@postmarkapp.com",
"MailboxHash": "",
"Name": "First Cc"
},
{
"Email": "secondCc@postmarkapp.com",
"MailboxHash": "",
"Name": ""
}
],
"Bcc": "\"First Bcc\" <firstbcc@postmarkapp.com>",
"BccFull": [
{
"Email": "firstbcc@postmarkapp.com",
"MailboxHash": "",
"Name": "First Bcc"
}
],
"StrippedTextReply": "This is the reply text",
"OriginalRecipient": "mailbox+SampleHash@inbound.postmarkapp.com",
"Attachments": [
{
"Name": "test.txt",
"Content": "VGhpcyBpcyBhdHRhY2htZW50IGNvbnRlbnRzLCBiYXNlLTY0IGVuY29kZWQu",
"ContentLength": 45,
"ContentType": "text/plain",
"ContentID": ""
}
]
}
Johan
Forgot to add,
the ContentType is set to application/json
[st][3] [netTalk][thread=3] TVCWEB - p_web.RequestContentType:application/json
[st][3] [netTalk][thread=3] TVCWEB - p_web._UserAgent:postmark
below the post data from the server window
POST /ReceiveStatements HTTP/1.1
Host: www.vineyardconnection.co.za
X-PM-Webhook-Trace-Id: c2d5bcbc-1eff-4695-bfe9-c2be112ce564
X-PM-Webhook-Event-Id: test-hook
X-PM-Retries-Remaining: 0
Expect: 100-continue
Connection: close
User-Agent: Postmark
Content-Type: application/json
Content-Length: 1702
{
"Date": "Sat, 30 Mar 2024 11:35:48 +0000",
"From": "support@postmarkapp.com",
"FromName": "Postmarkapp Support",
"FromFull": {
"Email": "support@postmarkapp.com",
"MailboxHash": "",
"Name": "Postmarkapp Support"
},
"HtmlBody": "<html><body><p>This is a test html body.</p></body></html>",
"MailboxHash": "SampleHash",
"MessageID": "00000000-0000-0000-0000-000000000000",
"MessageStream": "inbound",
"ReplyTo": "replyto@example.com",
"Subject": "Test subject",
"Tag": "TestTag",
"TextBody": "This is a test text body.",
"Headers": [
{
"Name": "X-Header-Test",
"Value": ""
}
],
"To": "\"Firstname Lastname\" <mailbox+SampleHash@inbound.postmarkapp.com>",
"ToFull": [
{
"Email": "mailbox+SampleHash@inbound.postmarkapp.com",
"MailboxHash": "SampleHash",
"Name": "Firstname Lastname"
}
],
"Cc": "\"First Cc\" <firstcc@postmarkapp.com>, secondCc@postmarkapp.com",
"CcFull": [
{
"Email": "firstcc@postmarkapp.com",
"MailboxHash": "",
"Name": "First Cc"
},
{
"Email": "secondCc@postmarkapp.com",
"MailboxHash": "",
"Name": ""
}
],
"Bcc": "\"First Bcc\" <firstbcc@postmarkapp.com>",
"BccFull": [
{
"Email": "firstbcc@postmarkapp.com",
"MailboxHash": "",
"Name": "First Bcc"
}
],
"StrippedTextReply": "This is the reply text",
"OriginalRecipient": "mailbox+SampleHash@inbound.postmarkapp.com",
"Attachments": [
{
"Name": "test.txt",
"Content": "VGhpcyBpcyBhdHRhY2htZW50IGNvbnRlbnRzLCBiYXNlLTY0IGVuY29kZWQu",
"ContentLength": 45,
"ContentType": "text/plain",
"ContentID": ""
}
]
}
Johan
95
Web Server - Ask For Help / Inbound stream from Postmark
« Last post by JohanR on March 30, 2024, 03:38:44 AM »Hi,
I have created my NetWebPage to receive data (JSON) from Postmark,
as well as the data structures and code using the CodeWriter
but am a little confused as to how to get the data to load into the json data structure?
p_web.?
p_web.GetValue('json') , gives me nothing,
do I need to set some settings first, or which p_web method do I use to return the data to load into
SomeLoadString.SetValue(p_web.GetValue('json'))
json.start()
json.SetTagCase(jf:CaseAsIs)
json.Load(element,SomeLoadString) ! Load From a StringTheory object
This seems to give me an empty string
thanks
Johan
I have created my NetWebPage to receive data (JSON) from Postmark,
as well as the data structures and code using the CodeWriter
but am a little confused as to how to get the data to load into the json data structure?
p_web.?
p_web.GetValue('json') , gives me nothing,
do I need to set some settings first, or which p_web method do I use to return the data to load into
SomeLoadString.SetValue(p_web.GetValue('json'))
json.start()
json.SetTagCase(jf:CaseAsIs)
json.Load(element,SomeLoadString) ! Load From a StringTheory object
This seems to give me an empty string
thanks
Johan
96
Web Server - Ask For Help / Re: Login window not centered
« Last post by Richard I on March 29, 2024, 11:10:52 AM »Two Screen shots Jeff
97
Web Server - Ask For Help / Re: Login window not centered
« Last post by jking on March 29, 2024, 08:00:24 AM »Richard,
Yes, that is correct...I have mine set the same. However, post a screen shot of the CSS Classes tab so we can see where you have called your custom class. See the screen shot from my previous post as a sample.
Jeff
Yes, that is correct...I have mine set the same. However, post a screen shot of the CSS Classes tab so we can see where you have called your custom class. See the screen shot from my previous post as a sample.
Jeff
98
Web Server - Ask For Help / Re: Multi-Site host question
« Last post by jking on March 29, 2024, 07:52:11 AM »Hi Bruce,
Thanks, not a big problem for me as I only update NT versions periodically or if there is something new I need...like the partial save button fix in NT 14.20.
Thanks,
Jeff
Thanks, not a big problem for me as I only update NT versions periodically or if there is something new I need...like the partial save button fix in NT 14.20.
Thanks,
Jeff
99
Web Server - Ask For Help / Re: Trying to Resize Browse Grid for Mobile phone
« Last post by rjolda on March 29, 2024, 05:06:50 AM »Solved. I hired a young kid to go over the css with me.
in my custom.css:
@media screen and (max-width: 640px){
.ui-dialog{max-width:100%}
.ui-dialog-content{max-width:100%}
.nt-body-div{font-size: x-small}
.nt-contentpanel{font-size: x-small}
.nt-child-grid{font-size: x-small}
.nt-child-grid{
display: grid;
grid-template: 1fr; <<<<<<<<<------------- this one line did the trick!!!
Ron
in my custom.css:
@media screen and (max-width: 640px){
.ui-dialog{max-width:100%}
.ui-dialog-content{max-width:100%}
.nt-body-div{font-size: x-small}
.nt-contentpanel{font-size: x-small}
.nt-child-grid{font-size: x-small}
.nt-child-grid{
display: grid;
grid-template: 1fr; <<<<<<<<<------------- this one line did the trick!!!
Ron
100
Web Server - Ask For Help / Re: API documentation
« Last post by Niels Larsen on March 28, 2024, 11:38:47 PM »Thanks!
I can see that there are a few more places where it would make sense to change. Example in PrimeParameters/AddServiceError.
I can see that there are a few more places where it would make sense to change. Example in PrimeParameters/AddServiceError.