NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: rjolda on July 14, 2025, 02:11:51 AM

Title: J Files Question
Post by: rjolda on July 14, 2025, 02:11:51 AM
Hi,
I am just starting to play with J Files. J files 3 and CLarion 11.0 ABC.
I have a master table which is a collection of initialization records for each of my kiosks.
I want to be able to write the record for only ONE kiosk to a json object so that I can re--import it to a new computer in that kiosk. 
I played with the basic:
json.Start()
json.Save(KioskTable,'.\Kiosk.json')
This make it effortless to place all the Kiosk records into the Json object.
HOWEVER, I want to pick and export ONE record.
How can I placr a filter so that only 1 Kioskrecord that I have chosen gets written to the Json object?
Thanks,
Ron
Title: Re: J Files Question
Post by: Alberto on July 14, 2025, 04:44:06 AM
Hi, from the docs:
json.Start()
json.Save(CustomerTable,'.\customer.json','',json:Object)

You can use a Group, Queue, View or File as the structure holding the data being

A file record is a Group so I think you can get the record and ...

json.Save(Cus:record,'.\customer.json','',json:Object)

Regards
Title: Re: J Files Question
Post by: rjolda on July 14, 2025, 05:56:16 AM
Thanks for pointing that out.  I will give it a try.
Ron
Yes, I put the button on the Update form for the record and got that record in my Json file.
Thanks,
Ron