81
Web Server - Ask For Help / Re: Including on Report the total count of records displayed
« Last post by Jane on April 04, 2024, 10:08:33 AM »Write a separate routine to read through and count all the records that will be in the report.
Run that BEFORE you OPEN the report.
That way the report header can have the correct information.
Run that BEFORE you OPEN the report.
That way the report header can have the correct information.
82
Web Server - Ask For Help / Changing the json results of a netwebservicemethod without using external name
« Last post by JHojka on April 04, 2024, 05:14:15 AM »I have several tables that I need to change the way the json is created. I originally had used the external name of the table field to force the json to use upper and lower case. This worked great but, I have to convert these tables to the IPDriver which has proven to not like external names on any fields. Removing the external names fixes all my IPDriver problems but now my nettalk web service methods are not properly setup to translate the json. I found that reflection might be able to solve my issue. I have been able to use json.reflection.walk() to see what is being done with the json. I have been able to use json.reflection.rename() to change the reflection entry. I am not able to figure out where to put this code as I am not getting the results I would like. Nothing is actually getting renamed. I only see that I will need to make these translations on loading and saving of the table for gets as well as updates and adds.
from debugview
797 611.954211 7984 MSCClientWeb.exe [3][rf]FIELD: GroupName=[MSCVERView] ColumnName=[MSCVER:VERSIONSEQUENCE] Num=[0] Type=[rf:NotSet] Rename=[VersionSequence] Pic=[] Attributes=[]
Any help would be appreciated on this.
from debugview
797 611.954211 7984 MSCClientWeb.exe [3][rf]FIELD: GroupName=[MSCVERView] ColumnName=[MSCVER:VERSIONSEQUENCE] Num=[0] Type=[rf:NotSet] Rename=[VersionSequence] Pic=[] Attributes=[]
Any help would be appreciated on this.
83
Web Server - Ask For Help / Re: Including on Report the total count of records displayed
« Last post by Bruce on April 03, 2024, 09:52:13 PM »Post a small example showing the affect and I can comment on what you might be doing wrong.
84
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
85
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
86
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
87
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
88
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
89
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
90
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