NetTalk Central

Author Topic: J Files Question  (Read 46 times)

rjolda

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
J Files Question
« on: Today at 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

Alberto

  • Hero Member
  • *****
  • Posts: 1889
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: J Files Question
« Reply #1 on: Today at 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
-----------
Regards
Alberto

rjolda

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Re: J Files Question
« Reply #2 on: Today at 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
« Last Edit: Today at 07:16:06 AM by rjolda »