Extracting data from arguments

The forum to discuss the Headless version of Servoy. Web, Java and Servlet development questions can all be posted here.

Extracting data from arguments

Postby Gordon McLean » Wed Feb 27, 2013 11:20 am

Hi

Does anyone know how to extract the arguments out of this string

{limit:{25},page:{1},start:{0},callback:{Ext.data.JsonP.callback1},desk:{1},_dc:{1361956523821},org:{11}}

I have tried

arguments[0][key]
arguments[0].desk
etc

What I want from the string is desk and org items..

Many thanks
Gordon
Gordon McLean
Clickdigital.com
Gordon McLean
 
Posts: 253
Joined: Wed Aug 03, 2005 12:24 pm
Location: UK

Re: Extracting data from arguments

Postby Gordon McLean » Wed Feb 27, 2013 11:24 am

found my own answer sorry to waste the bandwidth

Arguments
{limit:{25},page:{1},start:{0},callback:{Ext.data.JsonP.callback1},desk:{1},_dc:{1361956523821},org:{11}}

Extract using
arguments[0]['desk']

Result = 1
Gordon McLean
Clickdigital.com
Gordon McLean
 
Posts: 253
Joined: Wed Aug 03, 2005 12:24 pm
Location: UK


Return to Servoy Headless Client

Who is online

Users browsing this forum: No registered users and 1 guest