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 - PeterPetropoulos

Pages: [1]
1
The Rest - Ask For Help / Re: Need embed point for calculations, please
« on: February 10, 2025, 11:58:38 AM »
I understand what you're saying.
I'm accustomerd to updating a VIEW after it's been built, and I had that confused with building the VIEW.

I look forward to a discussion on Thursday, but I won't wait till then.

If a VIEW won't work, maybe a QUEUE will be better.

Will test and report.

Thank you.

2
The Rest - Ask For Help / Re: Need embed point for calculations, please
« on: February 10, 2025, 05:07:16 AM »
The API returns 1 parent and 8 child records.
I put a debug statement in there to show me the number of the returned record.

The embed appears only once when I'd expect it to appear 9 times, and the record number it shows is zero.

I've put debug messages in about 20 places, and while they appear, they all show a zero record number.

Do you have another suggestion, please?  :-)

3
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?

4
Got the answer:

Do not use the filter to link the views.
Modify the view in the generated source.


5
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?   :-)

6
The Rest - Ask For Help / Re: Need help understanding NT commands
« on: December 27, 2024, 09:32:17 AM »
WOO HOO!

IT WOIX!

No errors (reported ;-!  We got Data!

Jane,
Many thanks!

Yoiks and away!

7
The Rest - Ask For Help / Re: Need help understanding NT commands
« on: December 26, 2024, 07:59:51 AM »
Jane,

Thank you.  I've read through all this several times.
I need an example that is more than ('something',whatever :-)

I know that there are multiple ways to get this right, but I am losing time getting it wrong.

Having received a token from my REST server after logging in, how do I use that token in formatting the next request?
The generated docs show me how to ask for a record, or a group of records, but I need to get that token in the right place, and that's not happening yet.  I know that because the server is giving me the equivalent of 'I know thee not.'

More specifically, DebugView is showing me that the variable file names are not getting set.  That means my message to the server failed.


8
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?'

Pages: [1]