Re: JSON not working in Standalones?

2016-06-20 Thread Ali Lloyd
> in 8.1.0 (dp 1) the new “Inclusions”-tab in the standalone settings is
disabled,
> so I can’t select anything there.

I suspect you may have the "search for inclusions" radio button selected
instead of the "select inclusions" one, in the General tab.

On Mon, Jun 20, 2016 at 1:44 PM Ton Kuypers <tkuyp...@publishingtools4u.com>
wrote:

> Yes, that part I already figured out ;-)
>
> But is there a way to add the JSON-part or all of the mergExt to a
> standalone right now?
>
>
> Met vriendelijke groeten,
> Warm Regards,
>
>
>
> Ton Kuypers
> +32 (0) 477 739 530
>
> Steenweg op Leopoldsburg 100 • B-2490 • Balen • Belgium
> www.publishingtools4u.com
>
>
>
>
>
> > On 19 jun. 2016, at 00:30, Monte Goulding-2 [via Runtime Revolution] <
> ml-node+s278305n4705912...@n4.nabble.com> wrote:
> >
> > In 8.1.0 the mergExt externals are not yet being searched for so you
> need to manually select inclusions. Ali is working on a mechanism to allow
> searching for them.
> >
> > Cheers
> >
> > Monte
> >
> > Sent from my iPhone
> >
> > > On 19 Jun 2016, at 4:19 AM, [hidden email]
>  <[hidden email]
> > wrote:
> > >
> > > In all but  8.1.0 (dp 1) I’ve included all extensions, in 8.1.0 (dp 1)
> the new “Inclusions”-tab in the standalone settings is disabled, so I can’t
> select anything there.
> >
> >
> > ___
> > use-livecode mailing list
> > [hidden email] 
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode <
> http://lists.runrev.com/mailman/listinfo/use-livecode>
> >
> > If you reply to this email, your message will be added to the discussion
> below:
> >
> http://runtime-revolution.278305.n4.nabble.com/JSON-not-working-in-Standalones-tp4705904p4705912.html
> <
> http://runtime-revolution.278305.n4.nabble.com/JSON-not-working-in-Standalones-tp4705904p4705912.html
> >
> > To start a new topic under Revolution - User, email
> ml-node+s278305n278306...@n4.nabble.com
> > To unsubscribe from Revolution - User, click here <
> http://runtime-revolution.278305.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code=278306=dGt1eXBlcnNAcHVibGlzaGluZ3Rvb2xzNHUuY29tfDI3ODMwNnw1ODc5MTUzNzU=
> >.
> > NAML <
> http://runtime-revolution.278305.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer=instant_html%21nabble%3Aemail.naml=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
>
>
> pt4u-3.jpg (9K) <
> http://runtime-revolution.278305.n4.nabble.com/attachment/4705967/0/pt4u-3.jpg
> >
>
>
>
>
> --
> View this message in context:
> http://runtime-revolution.278305.n4.nabble.com/JSON-not-working-in-Standalones-tp4705904p4705967.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: JSON not working in Standalones?

2016-06-20 Thread Ton Kuypers
Yes, that part I already figured out ;-)

But is there a way to add the JSON-part or all of the mergExt to a standalone 
right now?


Met vriendelijke groeten,
Warm Regards,



Ton Kuypers
+32 (0) 477 739 530

Steenweg op Leopoldsburg 100 • B-2490 • Balen • Belgium
www.publishingtools4u.com





> On 19 jun. 2016, at 00:30, Monte Goulding-2 [via Runtime Revolution] 
> <ml-node+s278305n4705912...@n4.nabble.com> wrote:
> 
> In 8.1.0 the mergExt externals are not yet being searched for so you need to 
> manually select inclusions. Ali is working on a mechanism to allow searching 
> for them. 
> 
> Cheers 
> 
> Monte 
> 
> Sent from my iPhone 
> 
> > On 19 Jun 2016, at 4:19 AM, [hidden email] 
> >  <[hidden email] 
> > > wrote: 
> > 
> > In all but  8.1.0 (dp 1) I’ve included all extensions, in 8.1.0 (dp 1) the 
> > new “Inclusions”-tab in the standalone settings is disabled, so I can’t 
> > select anything there. 
> 
> 
> ___ 
> use-livecode mailing list 
> [hidden email]  
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-livecode 
> <http://lists.runrev.com/mailman/listinfo/use-livecode> 
> 
> If you reply to this email, your message will be added to the discussion 
> below:
> http://runtime-revolution.278305.n4.nabble.com/JSON-not-working-in-Standalones-tp4705904p4705912.html
>  
> <http://runtime-revolution.278305.n4.nabble.com/JSON-not-working-in-Standalones-tp4705904p4705912.html>
> To start a new topic under Revolution - User, email 
> ml-node+s278305n278306...@n4.nabble.com 
> To unsubscribe from Revolution - User, click here 
> <http://runtime-revolution.278305.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code=278306=dGt1eXBlcnNAcHVibGlzaGluZ3Rvb2xzNHUuY29tfDI3ODMwNnw1ODc5MTUzNzU=>.
> NAML 
> <http://runtime-revolution.278305.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer=instant_html%21nabble%3Aemail.naml=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>


pt4u-3.jpg (9K) 
<http://runtime-revolution.278305.n4.nabble.com/attachment/4705967/0/pt4u-3.jpg>




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/JSON-not-working-in-Standalones-tp4705904p4705967.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: JSON not working in Standalones?

2016-06-18 Thread Monte Goulding
In 8.1.0 the mergExt externals are not yet being searched for so you need to 
manually select inclusions. Ali is working on a mechanism to allow searching 
for them.

Cheers

Monte

Sent from my iPhone

> On 19 Jun 2016, at 4:19 AM, tkuyp...@telenet.be 
>  wrote:
> 
> In all but  8.1.0 (dp 1) I’ve included all extensions, in 8.1.0 (dp 1) the 
> new “Inclusions”-tab in the standalone settings is disabled, so I can’t 
> select anything there.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

JSON not working in Standalones?

2016-06-18 Thread tkuyp...@telenet.be
Hi,

I have a question about JSON, or maybe a bug...

1 field to enter a zip-code of a city.
The code in this field: 

on closeField
   put "http://www.opzoeken-postcode.be/.json 
" into vURL
   replace "" with the text of me in vURL
   put JSONToArray(url vURL) into tCities
   put 0 into vCounter
   repeat for each element vCity in tCities
  add 1 to vCounter
  put tCities[vCounter][Postcode][postcode_deelgemeente] & tab after vCities
  put tCities[vCounter][Postcode][naam_deelgemeente] & cr after vCities
   end repeat
   if last char of vCities = numToChar(13) then delete last char of vCities
   if last char of vCities = numToChar(10) then delete last char of vCities
   set the itemdel to tab
   if the num of lines of vCities = 1 then
  put item 2 of vCities into fld "City"
   else
  put vCities into fld "Cities"
   show fld "Cities"
   end if
end closeField

This will place a list of cities and zipcodes into another field.

The function taken from the documentation:

function JSONToArray pJSON
   local tArray,tKeys
   repeat for each line tKey in mergJSONDecode(pJSON,"tArray")
  put JSONToArray(tArray[tKey]) into tArray[tKey]
   end repeat
   return tArray
end JSONToArray


When you enter a Belgian zip-code like 3500, it will return a list of cities, 
when you enter 2400 it will return only one city.
At least in the IDE it does, when creating a standalone, nothing happens.

I’ve tried this in LC 8.0.0, 8.0.1 (rc 1), 8.0.1, 8.0.2 (rc 1), 8.0.1 (rc 2) 
and 8.1.0 (dp 1).
In all but  8.1.0 (dp 1) I’ve included all extensions, in 8.1.0 (dp 1) the new 
“Inclusions”-tab in the standalone settings is disabled, so I can’t select 
anything there.

Am I missing something?


Met vriendelijke groeten,
Warm Regards,



Ton Kuypers
+32 (0) 477 739 530

Steenweg op Leopoldsburg 100 • B-2490 • Balen • Belgium
www.publishingtools4u.com 






Met vriendelijke groeten,

Ton Kuypers



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

JSON not working in Standalones?

2016-06-18 Thread Ton Kuypers
Hi,

I have a question about JSON, or maybe a bug...

1 field to enter a zip-code of a city.
The code in this field: 

on closeField
   put "http://www.opzoeken-postcode.be/.json; into vURL
   replace "" with the text of me in vURL
   put JSONToArray(url vURL) into tCities
   put 0 into vCounter
   repeat for each element vCity in tCities
  add 1 to vCounter
  put tCities[vCounter][Postcode][postcode_deelgemeente] & tab after vCities
  put tCities[vCounter][Postcode][naam_deelgemeente] & cr after vCities
   end repeat
   if last char of vCities = numToChar(13) then delete last char of vCities
   if last char of vCities = numToChar(10) then delete last char of vCities
   set the itemdel to tab
   if the num of lines of vCities = 1 then
  put item 2 of vCities into fld "City"
   else
  put vCities into fld "Cities"
   show fld "Cities"
   end if
end closeField

This will place a list of cities and zipcodes into another field.

The function taken from the documentation:

function JSONToArray pJSON
   local tArray,tKeys
   repeat for each line tKey in mergJSONDecode(pJSON,"tArray")
  put JSONToArray(tArray[tKey]) into tArray[tKey]
   end repeat
   return tArray
end JSONToArray


When you enter a Belgian zip-code like 3500, it will return a list of cities, 
when you enter 2400 it will return only one city.
At least in the IDE it does, when creating a standalone, nothing happens.

I’ve tried this in LC 8.0.0, 8.0.1 (rc 1), 8.0.1, 8.0.2 (rc 1), 8.0.1 (rc 2) 
and 8.1.0 (dp 1).
In all but  8.1.0 (dp 1) I’ve included all extensions, in 8.1.0 (dp 1) the new 
“Inclusions”-tab in the standalone settings is disabled, so I can’t select 
anything there.

Am I missing something?


Met vriendelijke groeten,
Warm Regards,



Ton Kuypers
+32 (0) 477 739 530

Steenweg op Leopoldsburg 100 • B-2490 • Balen • Belgium
www.publishingtools4u.com 





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode