This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
1
Web Server - Ask For Help / Re: Inbound stream from Postmark - Solved
« 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
2
Web Server - Ask For Help / Re: Inbound stream from Postmark
« 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
3
Web Server - Ask For Help / Inbound stream from Postmark
« 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
4
Web Server - Ask For Help / Re: Heading on a form / TABLE form on a MEMORY form?
« on: March 26, 2024, 06:36:57 AM »
Hi Bruce
Yes, <FORM> was off on the memory form,
I mailed you an example app with the problem.
regards
Johan
Yes, <FORM> was off on the memory form,
I mailed you an example app with the problem.
regards
Johan
5
Web Server - Ask For Help / Re: Heading on a form / TABLE form on a MEMORY form?
« on: March 24, 2024, 11:51:12 PM »
Hi Bruce
That's what I was thinking,
but for some reason does not seem to save, on inserts or on changes
So was thinking it got lost somewhere in the population of the form, but will duplicate in an example app and see if it does the same thing.
thanks
Johan
That's what I was thinking,
but for some reason does not seem to save, on inserts or on changes
So was thinking it got lost somewhere in the population of the form, but will duplicate in an example app and see if it does the same thing.
thanks
Johan
6
Web Server - Ask For Help / Re: Heading on a form / TABLE form on a MEMORY form?
« on: March 23, 2024, 06:18:36 AM »
Hi Bruce
Thanks for the info,
when I call the Memory form, with Insert action or from the browse,
is there a way to pass on the action/stage to the Table Form from the Memory Form
regards
Johan
Thanks for the info,
when I call the Memory form, with Insert action or from the browse,
is there a way to pass on the action/stage to the Table Form from the Memory Form
regards
Johan
7
Web Server - Ask For Help / Re: Heading on a form / TABLE form on a MEMORY form?
« on: March 16, 2024, 02:10:19 AM »
Hi,
I have placed a TABLE form on a MEMORY form, and all seems to work.
just not sure if something will come up and if the method is sound and safe for all situations
thanks
Johan
I have placed a TABLE form on a MEMORY form, and all seems to work.
just not sure if something will come up and if the method is sound and safe for all situations
thanks
Johan
8
Web Server - Ask For Help / Heading on a form / TABLE form on a MEMORY form?
« on: March 16, 2024, 12:58:34 AM »
Hi,
Perhaps 2 questions in 1
1)
I've seen several posts and it does not seem as if there is a simple solution to change the heading text after the form is generated.
Is there simple way to change heading on a form?
2)
Is there a way to wrap a TABLE form in a MEMORY form, but still have the TABLE function normally?
IOW use the TABLE form as an update form from a browse, but still wrapped inside the MEMORY form?
Thinking is to use the wrapping MEMORY form to populate fields above the TABLE form tab
thanks
Johan
Perhaps 2 questions in 1
1)
I've seen several posts and it does not seem as if there is a simple solution to change the heading text after the form is generated.
Is there simple way to change heading on a form?
2)
Is there a way to wrap a TABLE form in a MEMORY form, but still have the TABLE function normally?
IOW use the TABLE form as an update form from a browse, but still wrapped inside the MEMORY form?
Thinking is to use the wrapping MEMORY form to populate fields above the TABLE form tab
thanks
Johan
9
Web Server - Ask For Help / Re: User feedback?
« on: March 16, 2024, 12:37:56 AM »
Hi osquiabro/bruce
thanks for info,
just to understand,
on the memory form how are the 2 buttons setup?
and what action will close the memory form and end up in the gotfocusback in the 'calling' procedure
any examples that you possibly can point me to that has similar action?
thanks
Johan
thanks for info,
just to understand,
on the memory form how are the 2 buttons setup?
and what action will close the memory form and end up in the gotfocusback in the 'calling' procedure
any examples that you possibly can point me to that has similar action?
thanks
Johan
10
Web Server - Ask For Help / User feedback?
« on: March 14, 2024, 01:19:01 AM »
Hi,
For some reason can't figure out how to get a user response when they click a button and act accordingly?
eg. similar to the message function.
'Are you sure you want cancel this action?'
if yes - delete record
if no - leave as is
If I look at the code , it seems as if the Form "Cancel confirmation" message that pops up is part of the form function
Is there a way I can include a custom action in this function?
thanks
Johan
For some reason can't figure out how to get a user response when they click a button and act accordingly?
eg. similar to the message function.
'Are you sure you want cancel this action?'
if yes - delete record
if no - leave as is
If I look at the code , it seems as if the Form "Cancel confirmation" message that pops up is part of the form function
Is there a way I can include a custom action in this function?
thanks
Johan
11
Web Server - Ask For Help / Processing incoming mail via Postmark
« on: February 28, 2024, 01:54:40 AM »Hi
Am trying to process incoming mail being sent to a webhook
The data declaration below is for the attachments on the mail
The "Content" field will contain the attachment.
Total cumulative size for all Inbound attachment files may not exceed 35 MB
How do I change the declaration of "Content" to variable length?
The length is specified in "ContentLength" but I need to change STRING(255) to expect a variable length
After the structure change , would I have to change the loading code?
thanks
Johan
from the postmark docs
],
"Attachments": [
{
"Name": "test.txt",
"Content": "VGhpcyBpcyBhdHRhY2htZW50IGNvbnRlbnRzLCBiYXNlLTY0IGVuY29kZWQu",
"ContentType": "text/plain",
"ContentLength": 45
}
]
generated code and structure from capesoft codewriter
AttachmentsQueueType Queue,Type,Name('Attachments')
Name STRING(255),Name('Name')
Content STRING(255),Name('Content')
ContentType STRING(255),Name('ContentType')
ContentLength Real,Name('ContentLength')
End
json.NewPointer Procedure(*Cstring pGroupName, *CString pColumnName)
! note that pColumnName is the json tag name, not the label. case sensitive.
Code
case pGroupName & '.' & pColumnName
Of 'group.ToFull'
element.ToFull &= NEW ToFullQueueType
Of 'group.CcFull'
element.CcFull &= NEW CcFullQueueType
Of 'group.BccFull'
element.BccFull &= NEW BccFullQueueType
Of 'group.Headers'
element.Headers &= NEW HeadersQueueType
Of 'group.Attachments'
element.Attachments &= NEW AttachmentsQueueType
End
12
Web Server - Ask For Help / Re: VarnishCheck? slightly NTWS related
« on: February 26, 2024, 03:06:15 AM »
Hi Bruce
Thanks!
I did try and follow the link over the weekend but it ended up on the amazon standard website,
BUT
after your suggestion I tried again and this time a form popped up with exactly the required function,
perhaps I mis copied the previous URL.
"Stop unwanted Amazon Route 53 health checks"
thanks for the help,
regards
Johan
Thanks!
I did try and follow the link over the weekend but it ended up on the amazon standard website,
BUT
after your suggestion I tried again and this time a form popped up with exactly the required function,
perhaps I mis copied the previous URL.
"Stop unwanted Amazon Route 53 health checks"
thanks for the help,
regards
Johan
13
Web Server - Ask For Help / Re: VarnishCheck? slightly NTWS related
« on: February 25, 2024, 10:30:52 PM »
Hi Bruce
No AWS, it's a dedicated server in a datacentre, self managed.
Not aware of any health checks installed, but will do scratch around
thanks
Johan
No AWS, it's a dedicated server in a datacentre, self managed.
Not aware of any health checks installed, but will do scratch around
thanks
Johan
14
Web Server - Ask For Help / VarnishCheck? slightly NTWS related
« on: February 25, 2024, 12:40:11 AM »
Hi,
I have moved from an old windows server(2012R2) to windows server 2022
All good as far as I can see,
however now my NTWS is being hit with this request every second.
[insecure] GET /varnishcheck HTTP/1.1
Host: 197.189.218.234
Connection: close
User-Agent: Amazon-Route53-Health-Check-Service (ref b2bec952-b505-45e9-9f3d-74bbf25e43d7; report http://amzn.to/1vsZADi)
Accept: */*
Accept-Encoding: identity,gzip,deflate
Seems Varnish is some sort of caching program to speed up websites, still investigating.
Is this just par for the course, or something I can do?
Did not get this on my old server, so just trying to understand why the difference, is it the OS or my setup, or just the way it is?
thanks
Johan
I have moved from an old windows server(2012R2) to windows server 2022
All good as far as I can see,
however now my NTWS is being hit with this request every second.
[insecure] GET /varnishcheck HTTP/1.1
Host: 197.189.218.234
Connection: close
User-Agent: Amazon-Route53-Health-Check-Service (ref b2bec952-b505-45e9-9f3d-74bbf25e43d7; report http://amzn.to/1vsZADi)
Accept: */*
Accept-Encoding: identity,gzip,deflate
Seems Varnish is some sort of caching program to speed up websites, still investigating.
Is this just par for the course, or something I can do?
Did not get this on my old server, so just trying to understand why the difference, is it the OS or my setup, or just the way it is?
thanks
Johan
15
Web Server - Ask For Help / Re: Net Talk - Scan a document
« on: February 12, 2024, 10:27:18 PM »Hi Ron
Perhaps not exactly what you need, just some of the ways I'm managing our scanning of docs depending on what the document is
The user can then pick which method for which document.
1) Network printer and scanner - scans to a folder on the network, there is an idle procedure that collects the files there and saves them into the DB, files on the disk with a record pointer to the file. Someone will then later in the desktop app index and tag the pages in the pdf to the correct client records.
2) Upload form - user picks the pdf file from wherever (this is best quality as you can upload native PDF's)
3) Camera on a form that saves the image to PDF into the storage DB
4) In certain situations I also use CamScanner mobile app as a seperate scanning app, produces the best quality that I can find, this is great for bulk scanning , it produces multi page PDF's
which once uploaded can be split into single page PDF's and then indexed in the app by a user.
We use all 4, depending on the doc and where it comes from.
Johan