NetTalk Central

Author Topic: fomat in webbrowse for json export  (Read 4060 times)

lkeyser

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • Email
fomat in webbrowse for json export
« on: November 05, 2018, 10:04:11 PM »
Please assist

I don?t know what the syntax should be in json on a to export a webbrowse in nettalk..
I would like to have the same ?function? to export a browse to json format as the current xml export that has automated.

The syntax in for s view in clarion is?Taken from the demo in json

json.start()
json.save(BRW1::View:Browse,'customers.json','Customers')
TextViewer('customers.json')   

If I want this in a webbrowse, whats the correct syntax please
 
Many thanks
Louis


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: fomat in webbrowse for json export
« Reply #1 on: November 06, 2018, 10:50:23 PM »
Hi Louis,

I _think_ you are saying that you want to export a browse to JSON. Is that correct?

Since you are making a machine-readable file have you considered making a NetWebServiceMethod procedure instead so the remote _program_ can fetch the JSON - not waiting for a human to export it?

cheers
Bruce


lkeyser

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • Email
Re: fomat in webbrowse for json export
« Reply #2 on: November 07, 2018, 01:18:56 AM »
Thats correct Bruce.

Thanks... for the advice. Thinks im still stuck in legacy mode by the looks ..
Thanks for the suggestion... Im sure your suggested approach will work for me.

Thanks ..