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.
Pages: [1]
1
The Rest - Ask For Help / Need embed point for calculations, please
« on: February 09, 2025, 01:17:57 PM »
My API Rest server is correctly gathering and reporting records to the client.
I need to perform calculations on the records being sent, such as accrued interest.
In which procedure, at what embed point should I make those calculations, please?
I need to perform calculations on the records being sent, such as accrued interest.
In which procedure, at what embed point should I make those calculations, please?
2
The Rest - Ask For Help / Need help linking parent < - >> child records, please
« on: February 07, 2025, 01:50:58 PM »
Assume a standard Customer < - >> Orders construct.
I want the API to return open orders for the requested customer.
The client requests the customer by name.
The orders are linked to the customer by a customer record number, say CUST:RecNo = ORDER:CustRecNo.
The API Returns tab lists 2 files.
File 1. Customers are filtered by 'CUST:Name = ' aName (local variable sent in the API request). That works.
File 2. Orders should be limited to the customer record number (above).
I am getting the filter wrong. I'm getting all of every customers' orders, not just the ones for the requested customer.
The filter on file 2 is 'ORDER:CustRecNo = ' & CUST:RecNo, which is giving me records for all customers.
Reversing them doesn't help much, either.
Question: What is the correct filter syntax to limit the orders to the requested customer? :-)
I want the API to return open orders for the requested customer.
The client requests the customer by name.
The orders are linked to the customer by a customer record number, say CUST:RecNo = ORDER:CustRecNo.
The API Returns tab lists 2 files.
File 1. Customers are filtered by 'CUST:Name = ' aName (local variable sent in the API request). That works.
File 2. Orders should be limited to the customer record number (above).
I am getting the filter wrong. I'm getting all of every customers' orders, not just the ones for the requested customer.
The filter on file 2 is 'ORDER:CustRecNo = ' & CUST:RecNo, which is giving me records for all customers.
Reversing them doesn't help much, either.
Question: What is the correct filter syntax to limit the orders to the requested customer? :-)
3
The Rest - Ask For Help / Need help understanding NT commands
« on: December 22, 2024, 09:30:26 AM »
I have a desktop program communicating with an API server I built.
In the net.PageReceived procedure, I've been advised to use
self.RemoveHeader
self.ServerResponse
self.ThisPage
I don't understand what they do or how to use them. I am looking for documentation that will tell me how to use these procedures, whether to include parameters or return values, for instance. Having searched the NT documentation and the Developing pdf, I cannot find them.
Where can I find documentation on these procedures? Is it a matter of 'read the code?'
In the net.PageReceived procedure, I've been advised to use
self.RemoveHeader
self.ServerResponse
self.ThisPage
I don't understand what they do or how to use them. I am looking for documentation that will tell me how to use these procedures, whether to include parameters or return values, for instance. Having searched the NT documentation and the Developing pdf, I cannot find them.
Where can I find documentation on these procedures? Is it a matter of 'read the code?'
Pages: [1]