Accessing data nested inside a JSON data source in Project Siena

Hi all
I'm trying to work with JSON data sources via REST in Project Siena. I can easily set up the JSON data source and get the data into my data sources list. However, the data is nested, so for example a REST request to search returns JSON data that is unpacked
(correctly) as:
search_query > entries > name
I have tried two different REST-based data sources with the same result. I have tried accessing the data a couple of ways: firstly via a Gallery view and secondly just getting a listing with a DropDown.
For this example, I've tried setting the Data items to search_query!entries (and a bunch of other things) with the idea that I could then refer to ThisItem!name and when that failed trying almost everything I could from the function reference
http://siena.blob.core.windows.net/beta/ProjectSienaBetaFunctionReference.html#_Toc373745469
Should this work? It seems like it's an extremely common structure for JSON returned from a RESTful service (top level containing count, pagination, other data and then a set of result details beneath).
Any ideas appreciated. For completeness, the two data sources I've tried are the Box.com Content API (Search and Folders) and the ZenDesk API (Groups).
Cheers.

What you get back from the call is essentially a table with a single row--the "entries" column within that row have multiple rows that contain the name data. Try binding First(search_query)!entries to extract the name records. 

Similar Messages

  • Using s SQL server as a data source for Project Siena (An AX SQL database more specificaly)?

    I cant seem to find this information on the internet yet so I figured I would ask my question here.
    I would like to pull data from a Dynamics AX sql database to use in a project siena app. I have heard that this is something that is planned for a future release of Siena but is there any way this can be done currently?
    Thank you

    Hi Philip,
    It's not supported in the current version. The following thread from Vijay outlines some of the features targeted for the next release:
    http://social.technet.microsoft.com/Forums/en-US/405aed19-21b8-4a36-bf45-b1d962567c3b/some-functionality-in-the-next-siena-refresh?forum=projectsiena. As you can see, it will include read/write over web services. So, if your data is exposed using services,
    you should be able to meet your requirements.
    Thanks
    Robin

  • The data type of "output column "Cookies" (7371)" does not match the data type "System.Int32" of the source column "Cookies"

    I have the following data flow:
    ADO Source
    Input Column: Cookies       ID: 7371      Datatype: DT_NUMERIC
    Output Column: Cookies     ID: 7391      Datatype: DT_NUMERIC
    DATA CONVERSION TASK
    Input Column: Cookies       ID: 1311     Datatype: DT_NUMERIC
    Output Column: Copy of Cookies   ID: 1444    Datatype: DT_I4
    SQL Server Destination
    Input Column: Copy of Cookies    ID: 8733    Datatype: DT_I4
    Output Column: Cookies       ID: 8323     Datatype: DT_I4
    This looks fine to me. Why am I getting the error?
    This is SQL Server 2008 and I am working at this point only in BIDS, so it is not a question of dev vs prod server or anything. One environment, running in BIDS. Other similar data flows seems to be working ok. It seems the error is referring to a datatype
    mismatch in the source--but how can that be?
    Thanks!

    Actually, I am wrong in that Visakh. I think you are correct.
    There are two versions of all tables, one with 15 minute rollups and one with daily rollups. Otherwise the tables are the same--same exact fields. I use a loop with a data flow inside to get data from one version of the rollup and then the other.
    The problem is, for some of the fields with larger values the datatype is NUMERIC instead of INTEGER. (This is Cache database). SO:
    dailyCookies:   Field: CountOne   Datatype:  NUMERIC
    15minCookies:   Field: CountOne   Datatype: INTEGER
    A variable dynamically creates the query so it appends "daily" or "15min" to the beginning of the tables. So on the first loop it does the 15min tables and on the second the daily tables. When I created this particular table I have to plug a default query
    in so I used the daily. It picked up the datatype as NUMERIC so when I run the package it loops through 15min first and sees the datatype is INTEGER.
    How to deal with this? I suppose I could convert the datatype in the source query, but that would be a hassle to do that for some fields and not others. This tables has hundreds of fields, BTW. Can one source object deal with a change of datatypes? SSIS
    is so picky on datatypes compared to other tools....
    Thanks,

  • Populating JSON Data to Combobox - Need Help!

    Hello,
    I am trying to use a dynamicly created JSON comming from a webservice to populate comboboxes. I am really new to Flex and ActionScript 3.0.
    The problem what i have here is that my combobox stays empty. I am trying to fill it with all values from "key" (representing the manufacturers)
    Here´s my Code so far:
    [CODE]<?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="absolute"
                    creationComplete="service.send(params)" xmlns:s="library://ns.adobe.com/flex/spark">
        <mx:Script>
            <![CDATA[
                import com.adobe.serialization.json.JSON;
                import mx.collections.ArrayCollection;
                import mx.rpc.events.ResultEvent;
                public var myURL:String = "http://dev.ws.topdata.de/data/tdifdata.php?";
                public var params:Object = {Lookup: "DeviceManufacturerId"};
                private function onJSONLoad(event:ResultEvent):void
                    //get the raw JSON data and cast to String
                    var rawData:String = String(event.result);
                    //decode the data to ActionScript using the JSON API
                    //in this case, the JSON data is a serialize Array of Objects.
                    var arr:Array = (JSON.decode(rawData) as Array);
                    //create a new ArrayCollection passing the de-serialized Array
                    //ArrayCollections work better as DataProviders, as they can
                    //be watched for changes.
                    var dp:ArrayCollection = new ArrayCollection(arr);
                    //pass the ArrayCollection to the Combobox as its dataProvider.
                    dropdown.dataProvider = dp;
                    trace(rawData);
            ]]>
        </mx:Script>
        <mx:HTTPService id="service" method="GET" resultFormat="text" url="{myURL}" result="onJSONLoad(event)">
        </mx:HTTPService>
        <s:ComboBox x="26" y="33" labelField="key" id="dropdown"/>   
    </mx:Application>[/CODE]
    trace(rawData); returns something like
    [CODE]"1607":
                "key": "Xitan",
                "value": "2283",
                "isPremium": "0"
        "1608":
                "key": "Xitron",
                "value": "2284",
                "isPremium": "0"
        "1609": [/CODE]
    Now i´ve tried to bind this dataProvider for my first combobox listing all items with the value from "key" but my combobox stays blank/empty....

    I tried the following now and it says "can´t convert obect@... to Array"  maybe there is something wrong with the JSON outout from the  webservice? But the JSON from the webservice validates, however if i test it with a small own JSON file locally it works...
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                    layout="absolute"
                    minWidth="955" minHeight="600"
                    applicationComplete="init()"
                    frameRate="30">
        <mx:Script>
            <![CDATA[
                import com.adobe.serialization.json.JSON;
                // var ini
                private var filePath:String = "http://dev.ws.topdata.de/data/tdifdata.php?Lookup=DeviceManufacturerId";
                private var urlLoader:URLLoader;
                private var jsonDataArray:Array;
                private function init():void
                    // Add event listener for button click
                    btn.addEventListener(MouseEvent.CLICK,loadJSONFile);
                private function loadJSONFile(e:MouseEvent=null):void
                    // Load file
                    urlLoader = new URLLoader();
                    urlLoader.addEventListener(Event.COMPLETE, fileLoaded,false,0,true);
                    //urlLoader.addEventListener(IOErrorEvent.IO_ERROR, fileLoadFailed);
                    urlLoader.load(new URLRequest(filePath));
                private function fileLoaded(e:Event):void
                    // Clean up file load event listeners
                    urlLoader.removeEventListener(Event.COMPLETE, fileLoaded);
                    // If you wanted to get the data from the event use the line below
                    //var urlLoader:URLLoader = URLLoader(event.target);
                    // Parse the file to an array
                    jsonDataArray = JSON.decode(urlLoader.data);
                    trace(jsonDataArray);
                    // Proceed to do something with the loaded data
                    proceed();
                private function proceed():void
                    // Retrieve data tests
                    trace("jsonDataArray[0].name = " + jsonDataArray[0].name);
                    // Populate data grid with our JSON Data
                    dg.dataProvider = jsonDataArray;               
            ]]>
        </mx:Script>
        <mx:DataGrid horizontalCenter="0" top="100" id="dg" width="400" height="200">
            <mx:columns>
                <mx:DataGridColumn headerText="Key" dataField="key"/>
                <mx:DataGridColumn headerText="Value" dataField="value"/>
            </mx:columns>
        </mx:DataGrid>
        <mx:Label text="An example of parsing JSON using AS3Corelib" color="#FFFFFF" fontWeight="bold" left="10" top="10" fontSize="14"/>
        <mx:Button label="PARSE DATA INTO DATA GRID" horizontalCenter="0" top="70" width="400" id="btn"/>
    </mx:Application>

  • "Syntax error or access violation" on Data Flow Task OLE DB Data Source

    I am implementing expression parameter for a SQL Server connection string (like this: http://danajaatcse.wordpress.com/2010/05/20/using-an-xml-configuration-file-and-expressions-in-an-ssis-package/)  and it works fine except when it reaches data flow
    task - OLE DB Source task. In this task, I execute a stored procedure like this: 
    exec SelectFromTableA ?,?,?
    The error message is this:
    0xC0202009 at Data Flow Task, OLE DB Source [2]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft OLE DB Provider for SQL Server"  Hresult: 0x80004005  Description: "Syntax error or access violation".
    Error: 0xC004706B at Data Flow Task, SSIS.Pipeline: "OLE DB Source" failed validation and returned validation status "VS_ISBROKEN"
    When I change the SQL command above with reading from table directly it works fine. I should also add that before changing connection string of the SQL data source to use expression, the SSIS package was working fine and I know that the connection string
    is fine because other tasks in the package works fine!
    Any idea why?

    Hi AL.M,
    As per my understanding, I think this problem is due to the mismatching between the source and the destination tables. We can reconfigured every of components of the package to check the table schemas and configuration settings, close the BIDS/SSDT and then
    open and try to see if there are errors.
    Besides, to trouble shoot this issue, we can use the variable window to see the variable's value. For more details, please refer to the following blog:
    http://consultingblogs.emc.com/jamiethomson/archive/2005/12/05/2462.aspx
    The following blog about “SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred: Reasons and troubleshooting” is for your reference:
    http://blogs.msdn.com/b/dataaccesstechnologies/archive/2009/11/10/ssis-error-code-dts-e-oledberror-an-ole-db-error-has-occurred-reasons-and-troubleshooting.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Access denied to a READ-ONLY data source

    Post Author: covey9257
    CA Forum: Data Connectivity and SQL
    I'm using Crystal 10 sevice pack 6.  My report is using an ODBC connection to a PSql 9.5 stored procedure.  The stored procedure creates a temp table and inserts records from 3 different ticket tables.  It has one parameter in it that selects which location to load the table with.  My report works fine as long as I don't try to put any of the fields from the temp table on the report.  If I do, then I get the following error.
    Failed to open a rowset. Details: 42000:&#91;Pervasive&#93;&#91;ODBC Client Interface&#93;&#91;LNA&#93;&#91;Pervasive&#93;&#91;ODBC Engine Interface&#93;&#91;Data Record Manager&#93;&#91;SPEng&#93;&#91;Pervasive&#93;&#91;ODBC Engine Interface&#93;Access denied to a READ-ONLY data source.
    I found that this was an issue in Crystal 9.0, but nothing with cr 10.
    Does anyone know of a work around or fix for this scenario??
    Thanks - Cathy

    Thanks for the quick reply Don.
    If you have the option that Pervasive uses to not use the exclusive lock on the DB try adding it to the SQLExpression function in CR.
    I am not sure how to accomplish this.  I've done some quick searching but cannot come up with SQL that indicates locking unless I am using some kind of language like VB or C#.
    Here is my Command Object statement
    INSERT INTO RASAPSign
    (sVendNo, sChqNo, dtDateSigned)
    VALUES
    ('{?VendNum}', '{?ChqNum}', CURDATE());
    SELECT sVendNo, sChqNo, dtDateSigned
    FROM RASAPSign
    WHERE sVendNo = '{?VendNum}' and sChqNo = '{?ChqNum}'
    Can you give me an idea of what to change?  Or at least what terminology to search for?
    I tried this option with BEGIN and END
    BEGIN
    INSERT INTO RASAPSign
    (sVendNo, sChqNo, dtDateSigned)
    VALUES
    ('{?VendNum}', '{?ChqNum}', CURDATE());
    END
    SELECT sVendNo, sChqNo, dtDateSigned
    FROM RASAPSign
    WHERE sVendNo = '{?VendNum}' and sChqNo = '{?ChqNum}'
    But I get a syntax error.
    Thanks, rasinc
    Edited by: rasinc on Apr 14, 2011 3:28 PM
    To show code with Begin and End

  • Accessing JSON Data for Expired or Disabled Webapps

    I would like the ability to access webapp items that are either expired or disabled from the outputted JSON data. The reason I would like the ability to check how many web app items a user has submitted and have expired (the webapp items have a time limit of 3 weeks then are disabled) is then I can write liquid code letting the user know they have reached their limit.
    In the meantime, is there a workaround for implementing something like this? Thanks.

    certificate chaining issue...
    http://msdn.microsoft.com/en-us/library/windows/desktop/aa383770(v=vs.85).aspx
    Danovich suggests to check your FQDN vs DN:
    http://blog.danovich.com.au/2010/07/09/sccm-clients-not-installing-in-native-mode/
    more here (although CM07 is discussed):
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/931e839f-a85a-41dd-a175-5546d1316463/client-push-problem-with-ca-cert?forum=configmgrsetup
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Save the data in the file as json data

    Hello,
    I need to read data from list / Pictures gallery / Documents  and save the returned data  in the file as json data .
    How Can I Implement that .
    ASk

    Try below:
    http://msdn.microsoft.com/en-us/library/office/jj164022%28v=office.15%29.aspx
    The code in the following example shows you how to request a JSON representation of all of the lists in a site by using C#. It assumes that you have an OAuth access token that you are storing in the
    accessToken variable.
    C#
    HttpWebRequest endpointRequest = (HttpWebRequest)HttpWebRequest.Create(sharepointUrl.ToString() + "/_api/web/lists");
    endpointRequest.Method = "GET";
    endpointRequest.Accept = "application/json;odata=verbose";
    endpointRequest.Headers.Add("Authorization", "Bearer " + accessToken);
    HttpWebResponse endpointResponse = (HttpWebResponse)endpointRequest.GetResponse();
    Getting properties that aren't returned with the resource
    Many property values are returned when you retrieve a resource, but for some properties, you have to send a
    GET request directly to the property endpoint. This is typical of properties that represent SharePoint entities.
    The following example shows how to get a property by appending the property name to the resource endpoint. The example gets the value of the
    Author property from a File resource.
      http://<site url>/_api/web/getfilebyserverrelativeurl('/<folder name>/<file name>')/author
    To get the results in JSON format, include an Accept header set to
    "application/json;odata=verbose".
    If this helped you resolve your issue, please mark it Answered

  • Create report based on JSON data

    Dear All,
    I'm on Oracle APEX 4.1 and Oracle 11g. I'm receiving JSON data in my application and would like to print report based on JSON data without storing it in any table.
    Can you please suggest best way to achieve it?
    Regards,
    Chintan

    Hi,
    in 4.1 you can for example use the open source PL/JSON library (http://sourceforge.net/projects/pljson/) to parse JSON.
    In APEX 5.0, we currently plan to add a JSON API package that e.g. can be used to convert JSON to XML. Here is an example:
    SQL> select col1, col2
      2  from xmltable (
      3      '/json/row'
      4      passing apex_json.parse('[{"col1": 1, "col2": "hello"},{"col1": 2, "col2": "world"}]')
      5      columns
      6          col1 number path '/row/col1',
      7          col2 varchar2(5) path '/row/col2' );
                    COL1 COL2
                       1 hello
                       2 world
    At the last OOW, it was also announced that the RDBMS will provide native support. That should be the preferred option in the future.
    Regards,
    Christian

  • Parsing Json data to Array

    i have json string which i want to parse in string and add in Array,
    also i want to access this value as per field name to display in TextBox.
    i have parse the json data in string format but i want to add it in array as per their field name,so that i can access it in textfields.
    [{"userid":1,"uname":"andruw","address":"west","city":"london","email":"[email protected]"},
    {"userid":2,"uname":"pamela","address":"east","city":"london","email":"[email protected]"},
    {"userid":3,"uname":"penny","address":"south","city":"paris","email":"[email protected]"},
    {"userid":4,"uname":"jhon","address":"north","city":"zurich","email":"[email protected]"}]

    Why do you wnat it string in hte first place, now you need to split it to get the info. The honest thing to do is to create a custom class to hold this info and populate the array with objects created from JSON. That way you can easily map data to UI controls.
    class Person
        userId:int;
        uname:String;
        address:String;
        city:String;
        email:String;
    My 2 cents,
    C

  • Enhance the Master Data field in Datasource from standard source table

    Hi Friends Please help me to resolve this, would really be very kind of all of you.
    Requirement. I want to Enhance the field ZFACTREG from VIBDBE table in my datasource 0busentity_attr extract structure l_s_REIS_BUSENTITY_ATTR, I want to create the logic in CMOD exit_saplrsap_002 to call my function module for enhancement of master data. Please help me Step by Step
    Thanks
    Poonam Roy
    Step #1
    I put this code which gives me error in CMOD like this
    ERROR : Das formale Argument 'OTHERS' muss am Schluss der Ausnahmeliste stehen.
    ABAP Code#1 IN exit_saplrsap_002
    DATA: l_d_fmname(30) TYPE c.
    CONCATENATE 'Z_DS_' i_datasource(25) INTO l_d_fmname.
    TRY.
    CALL FUNCTION l_d_fmname
    EXPORTING
    I_DATASOURCE = I_DATASOURCE
    I_UPDMODE = I_UPDMODE
    TABLES
    I_T_SELECT = I_T_SELECT
    I_T_FIELDS = I_T_FIELDS
    I_T_DATA = I_T_DATA
    C_T_MESSAGES = C_T_MESSAGES
    EXCEPTIONS
    RSAP_CUSTOMER_EXIT_ERROR = 1
    OTHERS = 2
    IF FOUND.
    IF SY-SUBRC <> 0.
    RASIE RSAP_CUSTOMER_EXIT_ERROR.
    END IF
    CATCH CX_SY_DYN_CALL_ILLEGAL_FUNC.
    ENDTRY.
    Step#2
    I simple created the Function module Z_DS_BUSINESS
    and put the code in source code which gives me error . what should i put in other tabs like"Import", Export", Tables" i kept blank
    ABAP CODE give me error : The Dictionary structure or table "FIELD-SYMBOLS" is either not active. i have to remove include in the FM. WHY SO??
    FUNCTION Z_DS_BUSINENSS
    ""Lokale Schnittstelle:
    *" IMPORTING
    *" VALUE(I_DATASOURCE) TYPE RSAOT_OLTPSOURCE
    *" VALUE(I_CHABASNM) TYPE SBIWA_S_INTERFACE-CHABASNM
    *" VALUE(I_UPDMODE) TYPE SBIWA_S_INTERFACE-UPDMODE
    *" TABLES
    *" I_T_SELECT TYPE SBIWA_T_SELECT
    *" I_T_FIELDS TYPE SBIWA_T_FIELDS
    *" I_T_DATA
    *" C_T_MESSAGES STRUCTURE BALMI OPTIONAL
    *" EXCEPTIONS
    *" RSAP_CUSTOMER_EXIT_ERROR
    INCLUDE ZXRSAU02.
    WRITE: / 'INSIDE THE Z_DS_MEASUREMENTS PROGRAM'.
    TABLES: REIS_BUSENTITY_ATTR,
    VIBDBE,
    field-symbols:.<fs_REIS_BUSENTITY_ATTR> like REIS_BUSENTITY_ATTR.
    DATA: BEGIN OF i_c_t_data OCCURS 0.
    include structure REIS_BUSENTITY_ATTR.
    DATA END OF i_c_t_data.
    DATA: i_c_t_data_copy like i_c_t_data OCCURS 0 WITH HEADER LINE,
    begin of i_vibdbe occurs 0,
    INTRENO like vibdbe-INTRENO,
    ZFACTREG like vibdbe-ZFACTREG,
    end of i_vibdbe.
    i_c_t_data_copy[] = i_c_t_data[] = c_t_data[].
    sort i_c_t_data_copy by vibdbe.
    Select INTRENO
    into table i_VIBDBE from VIBDBE
    for all entries in i_c_t_data_copy
    where INTRENO = i_c_t_data_copy- INTRENO.
    if sy-subrc = 0.
    sort i_VIBDBE by INTRENO.
    loop at i_c_t_data assigning <fs_REIS_BUSENTITY_ATTR>.
    clear: i_VIBDBE.
    read table i_VIBDBE with key INTRENO = <fs_REIS_BUSENTITY_ATTR>-INTRENO
    BINARY SEARCH
    transporting ZFACTREG .
    if sy-subrc = 0.
    <fs_REIS_BUSENTITY_ATTR>-ZZFACTORY = i_vibebe-ZFACTREG
    endif.
    null

    I don' t see the dot between the two lines
    OTHERS = 2
    IF FOUND.
    Regards

  • How to retrieve data from inside the folders in SharePoint SSRS

    Hi ,
    How to get the data from inside the folders and subfolders.
    How can I do that.
    https://social.msdn.microsoft.com/Forums/en-US/15451351-4ee2-428c-a0b7-135810e4cbfa/action?threadDisplayName=ssrs-reports-sharepoint-list-datasource-how-to-retrieve-items-from-subfolders
    Here the information is not given.
    Regards
    Vinod

    Hi Vinodaggarwal87,
    According to your description, you want to retrieve data from sharepoint list in a sub folder. Right?
    In this scenario, we should select the XML data source type and in the connection string provide the
    List.asmx service URL when creating data source. Then we need to use the List web Service and specify "recursive" for ViewAttribute in Lists.asmx. For detail steps, please refer to the links below:
    Generate SSRS report on SharePoint List with folders using List Service.
    SSRS: how to specify ViewAttributes when creating a report against a SharePoint's list
    If you want to set the ViewAttribute on CAML query level. You need add the view tag outside of query tag:
    <View Scope="RecursiveAll">
        <Query>
            <Where>...</Where>
        </Query>
    </View>
    Reference:
    View Element (List)
    ViewAttributes Recursive Scope not working SharePoint 2013 CAML Query to fetch all files from document library recursively
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • AdvancedDataGrid populated by JSON data

    Hi, I'm currently use an AdvancedDataGrid to show a HierarchicalData from and XML file.
    It works but now I have to use a JSON data and for a DataGrid with a simple Data Provider I have no problem.
    Is it possible to use a JSON source for a HierchicalData?
    Thanks,
    David

    We don't have support for that type of thing built into Muse.
    If you find a solution using HTML/JS etc., you maybe be able to insert it into a Muse site using Object -> Insert HTML and accomplish what you are after.
    Cheers,
    Justin

  • JQuery GRID JSON data

    I have following code to use JQuery GRID.
    I tried to use XML data first, using DataXML.cfm which works.
    After that, I tried to use JSON using following code which is the same I just change datatype to json.
    I use url to test my cfm file which returns data.
    Can any one help me or suggestion to see where I can look the following javaScripts or cfm file for JQuery GRID to find a solution,
    Your help and information is great appreciated,
    Iccsi,
    following is cfc file
    <cffunction name="getLoc" access="remote" returntype="any" returnformat="json">
    <cfquery name="qryLoc" datasource="Mysource">
    SELECT invid, invdate, amount, tax, total, note  FROM invheader
    </cfquery>
    <cfoutput>
    <cfset i = 1>
    <cfset data = ArrayNew(1)>
    <cfloop query="qryLoc">
    <cfset row = StructNew()>
    <cfset row["invid"] = "#qryLoc.invid#">
    <cfset row["invdate"] = "#qryLoc.invdate#">
    <cfset row["amount"] = "#qryLoc.amount#">
    <cfset row["tax"] = "#qryLoc.tax#">
    <cfset row["total"] = "#qryLoc.total#">
    <cfset row["note"] = "#qryLoc.note#">
    <cfset data[i]  = row>
    <cfset i = i + 1>
    </cfloop>
    <cfreturn #serializeJSON(data)#>
    </cfoutput>
    </cffunction>
    following  is jGrid.cfm
    $(function () {
        $("#list").jqGrid({
            url: 'http://127.0.0.1/test/Example.cfc?method=getLoc',
            datatype: 'json',
            colNames: ['Tax', 'Inv No', 'Date', 'Notes', 'Total', 'Amount' ],
            colModel: [
                { name: 'tax', width: 80, align: 'right' },
                { name: 'invid', width: 55 },
                { name: 'invdate', width: 90 },
                { name: 'note', width: 150, sortable: false },
                { name: 'total', width: 80, align: 'right' },
                { name: 'amount', width: 80, align: 'right' }
            pager: '#pager',
            rowNum: 10,
            rowList: [10, 20, 30],
            sortname: 'invid',
            sortorder: 'desc',
            viewrecords: true,
            gridview: true,
            autoencode: true,
            caption: 'My first grid'
    </script>
    </head>
    <body>
    <table id="list"><tr><td></td></tr></table>
        <div id="pager"></div>
    </body>
    </html>
    XMLData.cfm is following data
    <cfcontent type="text/xml;charset=utf-8" />
    <rows>
       <page>1</page>
       <total>1</total>
       <records>1</records>
       <row id='1'>
           <cell>1</cell>
           <cell>07/26/2013</cell>
           <cell><![CDATA[Client 1]]></cell>
           <cell>700</cell>
           <cell>140</cell>
           <cell>840</cell>
           <cell><![CDATA[Nice work!]]></cell>
       </row>
    </rows>
    my cfc file returns following data
    [{"tax":10.00,"invid":1,"invdate":"July, 24 2013 00:00:00","note":"Test","total":10.00,"amount":10.00},{"tax":50.00,"invid":2,"invdate":"J uly, 03 2013 00:00:00","note":"test","total":100.00,"amount":20.00},{"tax":50.00,"invid":3,"invdate":" July, 15 2013 00:00:00","note":"test","total":100.00,"amount":20.00}]

    Did you look at the example in the jqGrid Demos page? The answer is there.
    Open http://trirand.com/blog/jqgrid/jqgrid.html
    Open Chrome Developer Tools
    See what is the URL when you click the next page button on the grid?
    http://trirand.com/blog/jqgrid/server.php?q=1&_search=false&nd=1374957231342&rows=10&page= 2&sidx=id&sord=desc
    If you click the previous page:
    http://trirand.com/blog/jqgrid/server.php?q=1&_search=false&nd=1374957248411&rows=10&page= 1&sidx=id&sord=desc
    As you can see the page value in the query string change from 2 to 1.
    Then, see the PHP code. The page variable is use to retrieve data.
    That means if you give a number of rows, the grid does not calculate page number automatically. You should do the calculation from the CFC.

  • CFAJAXPROXY - getting JSON data ?

    I want to pass JSON formatted data to JavaScript components
    (I want to use Yahoo Interface framework) - CFC methods accessed
    via CFAJAXPROXY tag automatically return results already converted
    to JavaScript so my question is how do I either suppress the
    JavaScript conversion or how do I reference the JSON data returned
    by the method (which I can see in the debugger).

    You should be able to use the SP.WebProxy to make the remote REST call. You will have to list the endpoint in your AppManifest under RemoteEndPoints. You can read more in the link below. The REST call method using jQuery is in the second option.
    https://msdn.microsoft.com/en-us/library/office/fp179895.aspx
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

Maybe you are looking for

  • External Hard Drive Woes

    I just the other day moved my 130+ gig. iTunes music folder to a portable external drive. I changed the itunes music folder location in the advanced prefrence, and restarted iTunes. Now, an apparently random, but quite sizable number, of songs won't

  • HT203200 How can you change your security questions?

    Hello Is there a way I can change my security answers ?

  • Why doesn't my new ipad 2 work?

    I have just purchased an ipad2 and it has just arrived. I turned it on and followed the instructions: download iTunes. what do I don next?! I have turned it on and it is just a black screen with iTunes' and the iTunes logo on it with the iPad cable..

  • Error while doing invoice verification

    DearAll,               I have created a purchase order against cost center and GRN also completed for this now i am trying to complete the invoice verification it is throw the error as "GL ACCOUNT IS NOT DEFINED IN CHART OF ACCOUNTS 0001" ANY CONFIG

  • Why is the Voice Service Worst than any other phone?

    I am getting no signal/service in MANY spots and I never had this issue with my Droid X.  I have tried putting the phone in 3g mode only and have no better luck.  Latest software loaded and no better results as well as performance based option on for