NetTalk Central

Show Posts

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.


Messages - JohanR

Pages: [1] 2 3 ... 24
1
Web Server - Ask For Help / Date and lookup
« on: May 30, 2024, 04:26:09 AM »

Hi,

Any tips on how to handle date entry for DOB's?

The popup calendar does not have a year button,
hot to make it easy to get to to your birth year?

Can I prime the lookup with a year at least if I have a separate drop field just for years?
Or is the only option to do 3 separate fields for YYYY, MM, DD?


thanks

Johan






2
Web Server - Ask For Help / Partial Save - Success or Fail?
« on: May 26, 2024, 12:18:49 PM »
Hi,

How would I know if the partial save was a success or failed?

thanks

Johan



3
Web Server - Ask For Help / Re: Partial Save? (extra info)
« on: May 25, 2024, 06:50:00 AM »
Hi,

Further info , this works if the field you're changing is on the page.

   ord:special_instructions = 'Partial save2222'
   p_web.SetValue('ord:special_instructions',ord:special_instructions)

if the field that your changing is not on the page, then you have to set the session variable as well.

   ord:special_instructions = 'Partial save2222'
   p_web.SSV('ord:special_instructions',ord:special_instructions)
   p_web.SetValue('ord:special_instructions',ord:special_instructions)

regards

Johan


4
Web Server - Ask For Help / Re: Partial Save?
« on: May 25, 2024, 06:33:15 AM »
Hi Ron

Thanks,
but am using buttons on the form to save the form but leave it open, or if it was inserted will save and convert to a change record situation.
Very useful.

eg.
User is doing a quote in insert mode, and if he's happy , converts the quote to a confirmed order.
This way the user can confirm, and keep editing and update the other required information without leaving the page, name, address etc..but the order has been confirmed and saved.
Or he decides to add to to next the despatch , and don't want that add to happen with a record that is in insert mode.


regards

Johan




5
Web Server - Ask For Help / Partial Save?
« on: May 22, 2024, 12:40:33 AM »
Hi,

If I want to update other fields in the record, how and where do I set them using a partial save button?
Do I set the session variables, the actual record fields or how?

Have tried, but for some reason the data is not being written to disk,
the partial save works, and it saves the fields from the page, but not the ones I set in the embed.
I did move the code to the embed before the save code. 

thanks

Johan


6
Hi,

Thanks for replies and advice,
Have it working quite nicely.

regards

Johan


7
Hi,

Plan I'm going with, if I missing the obvious let me know.

Memory NetWebform 
In the generate form , call a hidden NetWebClient procedure that handles the POST and return URL to NetWebForm

On the NetWebform, display fields for confirmation and a PAY button with the URL returned by the NetWebClient
If client clicks the button, then they will redirected to the CC Payment page 

If there are other ways to handle this, please let me know

Johan

 

8
Hi,

I am currently trying to implement a new secure credit card payment system, YOCO

It's a 2 step process, initiated by a POST, with the bearer security, amount, currency and then on the success of the POST,
one of the return data fields is a redirect URL ,
which I must direct the user to.
This redirected URL is a page on the providor site, where the user will enter CC, Expiry etc,
on success/fail/cancel , one of my URL will be called


Question is how to handle the re-direct after the receipt of the successful POST?


TIA for any info

Johan





9
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

10
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



11
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






12
Hi Bruce

Yes, <FORM> was off on the memory form,
I mailed you an example app with the problem.

regards

Johan

13
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

14
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

15
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

Pages: [1] 2 3 ... 24