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.

Similar Messages

  • Bind report data to ajax libraries such as jquery or mootools data grids

    Hi,
    Does anyone know how to bind (or supply) data retrieved in a standard report to jQuery or Mootools data grids? Varchar2 will not be enough and is troublesome when dealing with a lot of data in terms of number of columns and number of rows.
    Thanks.
    Andy

    You talking here only about textboxes, what about the other controls in your form(dropdownlists, checboxes....)? How you will be validating the data on these forms? What if you want to implement server side functionality behind?. I'm asking these question
    just to see if you planned well for your idea. I guess you're going into this because you want to runaway of generating many forms via asp.net, is this correct?.
    Another options can be:
    Create forms that are generated on runtime based on your datasource, I've done this before but there was a specific DB design for that. Here you can read your DB and based on you can create the different types of asp.net controls, in addition to calling
    sever side controls and validation.
    The second option is to have a look at the InfoPath product, its mainly used for Sharepoint but not sure for asp.net.
    Fouad Roumieh

  • Developer-Online New Tutorial Released: Create a Flickr gallery using jquery and JSON

    Create a Flickr gallery using jquery and JSON
    Hello everyone, In this tutorial I'll show how is simple to build your Flickr photo gallery using jQuery framework and JSON. We'll see how to setup thumbnail's numbers, convert your RSS Flickr in a JOSOn format and display theme. Thank You for your attention!
    Posted on:                                       2010-01-11 10:20:48
    Author: patrizio Quatrini
    Best Regards
    Waleed Barakat

    Heya,
    When I first read your post I originally thought you were posting a tutorial about whether a chosen username has already been resigtered or not on the signup page like this tutorial:
    http://DwFAQ.info/signup_demo.php
    Spry Check Username Availability
    Date Created: Sunday, July 5, 2009 2:29 PM
    Then after looking at the page you've linked to and trying to understand the objective of the tutorial I've noticed that you are talking about something like this:
    http://DwFAQ.info/home.php?id=7
    Spry Search
    Date Created: Sunday, March 1, 2009 8:51 PM
    It's pretty simple to do with the link I've referenced. Simply create your database with populated tables, use the mentioned script to convert the database data into xml syntax, then enter your dynamic database script as the location of the xmlDataSet in the spry page linked.
    View source on this page which shows the non-destructive filter in action to see how it's done! You can also spice it up a little for products, etc. by using this method. The key is to create a dynamic xml syntax from your database and then use the dynamic xml script location as your xmlDataSet in the search page.
    I have an example of the auto suggest search on my homepage http://DwFAQ.info
    On the top-left side of the page click on the link that says Search Tutorials to reveal the search form. Then start typing characters into the search box to see the entries instantly filter according to the characters that are typed. You can also filter further by clicking on the category checkboxes to filter by keywords AND category.
    You can view the source code on my homepage to see the location of the dynamic xml syntax referenced as the xmlDataSet location and how it was implemented into the site.

  • JSON.parse: unexpected non-whitespace character after JSON data

    I am having problem using cold fusion and jquery.ajax it will throw error
    JSON.parse: unexpected non-whitespace character after JSON data
    this is the response in firebug {"EMPCODE":"E-00001"}
    child.cfm
      <cfif IsDefined("empmycode")>
             <cfset  myarray= getempCode(#mycode#)>
             <cfoutput>#myarray#</cfoutput>
      </cfif>
    <cffunction name="getempCode">
           <cfargument name="empcode">
             <cfquery  name="empQuery" datasource="#datasource#">
                   Select empcode from employee where empcode = '#empcode#'
             </cfquery>
                <cfset mystruct = StructNew()>  
                <cfset mystruct.empcode=#empQuery.empcode#>
            <cfreturn   SerializeJSON(mystruct)>
      </cffunction>
    parent.cfm
    $.ajax({
        type: 'post',
            data: {empmycode:empcode}, 
        url: 'child.cfm',
        success:function(data){
        var myobjc = jQuery.parseJSON(data);
        console.log(myobj.empcode);
    Thank you in advance

    jemz wrote:
      <cfif IsDefined("empmycode")>
             <cfset  myarray= getempCode(#mycode#)>
             <cfoutput>#myarray#</cfoutput>
      </cfif>
      <cffunction name="getempCode">
           <cfargument name="empcode">
             <cfquery  name="empQuery" datasource="#datasource#">
                   Select empcode from employee where empcode = '#empcode#'
             </cfquery>
                <cfset mystruct = StructNew()>  
                <cfset mystruct.empcode=#empQuery.empcode#>
            <cfreturn   SerializeJSON(mystruct)>
      </cffunction>
    The above code is confusing. You test for the existence of empmycode, yet you actually use mycode instead. In addition, what you call an array isn't, and you fail to 'var' the method's local variables.
    You could modify the code, by scoping, as well as bearing in mind what Carl has said:
    <cfif IsDefined("form.empmycode")>
        <cfset  code= getempCode(form.empmycode)>
        <cfoutput>#code#</cfoutput>
    </cfif>
    <cffunction name="getempCode">
    <cfargument name="empcode">
    <cfset var mystruct = StructNew()>
    <!--- Alternative:  <cfqueryparam cfsqltype="cf_sql_varchar" value="'#arguments.empcode#"> --->
             <cfquery  name="empQuery" datasource="#datasource#">
                   Select empcode from employee where empcode = <cfqueryparam cfsqltype="cf_sql_integer" value="'#arguments.empcode#">
             </cfquery>
    <cfset mystruct.empcode=empQuery.empcode>
    <cfreturn   SerializeJSON(mystruct)>
    </cffunction>

  • SAP UI Table and escaped JSON data

    Hi,
    There is table which is bound to a JSON data.
    I'm getting the JSON data via ajax call. Some of the data in the JSON is escaped.
    But, i'm loading the table data via Table.bindRows() API. This shows the data in the escaped format. I want to show it in the unescaped format
    ===========================  Representative code =================================
    oControl = new sap.ui.commons.TextField().bindProperty("value","Token").setEditable(false);
    oMasterTbl.addColumn(new sap.ui.table.Column({
    label : new sap.ui.commons.Label({
    text : "MYDATA"
    template : oControl,
    sortProperty : "mydata",
    filterProperty : "mydata",
    width : "50%"
              function onBody() {
              var aUrl = '../services/MyCustom.xsjs;
              jQuery.ajax({
              url: aUrl,
              method: 'GET',
              dataType: 'json',
              success: this.onCompleteBody
              function onCompleteBody(myTxt){
                  oModel.setData({ businessData : myTxt });
                  oMasterTbl.bindRows("/businessData/MyData");
                  oMasterTbl.setModel(oModel);
                  oMasterTbl.invalidate();
    ===========================  End Representative code ==============================
    Tried oModel.setData({ businessData : unescape(myTxt) });
    This invalidates the JSON and the table data is empty.
    How and where do i unescape the relevant data ?
    I know that the value in the field may be escaped. How do i unescape the data from the model ?
    regards,
    sreeram

    Hello,
    The below code snipped worked
              function onCompleteBody(myTxt){
                  oModel.setData({ businessData : myTxt });
                  oMasterTbl.bindRows("/businessData/MyData");
                  oMasterTbl.setModel(oModel);
                  var nrows = oModel.getProperty("/businessData/MyData");
                  var cntxt, len, i;
                  len = nrows.length;
                  for (i=0; i<len; i++) {
                  cntxt = oMasterTbl.getContextByIndex(i);
                  tkn = cntxt.getProperty("mydata");
                  tkn = unescape(tkn);
                  oModel.setProperty("mydata", tkn, cntxt);
                  oMasterTbl.setModel(oModel);
                  oMasterTbl.invalidate();

  • 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

  • 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>

  • Problems with loading JSON data

    Hi,
    I have been following Simon Widjaja(EDGEDOCKS) YouTube lesson for loading external JSON data. But i'm not able to at least log the data to console.
    I get this error: "avascript error in event handler! Event Type = element"
    content.json is in the home folder. Data in it is very simple:
      "title": "TITLE 1",
      "description": "DESCRIPTION 1"
      "title": "TITLE 2",
      "description": "DESCRIPTION 2"
    And here's the code in edgeActions.js:
    (function($, Edge, compId){
    var Composition = Edge.Composition, Symbol = Edge.Symbol; // aliases for commonly used Edge classes
       //Edge symbol: 'stage'
       (function(symbolName) {
             Symbol.bindElementAction(compId, symbolName, "document", "compositionReady", function(sym, e) {
             // loading external json data
             $.ajax({
             type: "GET",
             cache: false,
             url: "content.json",
             datatype: "json",
             success: function(data){ console.log("data: ", data); },
             error: function() { console.log("something went wrong"); }
          //Edge binding end
       })("stage");
       //Edge symbol end:'stage'
    })(window.jQuery || AdobeEdge.$, AdobeEdge, "EDGE-11125477");
    I have tried $getJSON also as mentioned in the youtube video.
    Please note: I don't get "something went wrong" also logged.
    I'm using the free trial version. Is this is a limitation in the free trial?

    Well, same issue as here: Loading external data using ajax
    The jQuery file is missing, so $.ajax() or $.getJSON() cannot run.
    You have to add the jQuery file as indicated below:
    See: http://jquery.com/download/
    Note: Without loading the jQuery file, you can use these functions: Adobe Edge Animate CC JavaScript API

  • Reading JSON data from a URL

    Hi all,
    I have a requirement of reading JSON data from a particular URL and using one of the value to set one property in iView. I need some info on how to get JSON data from a URL and extracting attribute's value from it.
    What are the APIs that can be used for this?Can anyone provide a solution/working example in Java for this?
    I am working on EP 7.3.

    Hi Tarun,
    JAXB should work for you. Take a look at this example:
    JAXB JSON Example | Examples Java Code Geeks
    Regards,
    Tobias

  • DeserializeJSON - is there a limit on the size of the JSON data that can be converted?

    I have some valid JSON data that's being converted successfully by DeserializeJSON... until it gets to a certain size, or that's certainly what appears to be happening.  The breaking point seems to be somewhere in the neighborhood of 35,000 characters... about 35KB.  When the conversion fails, it fails with a "JSON parsing failure: Unexpected end of JSON string" message.  And when the conversion fails, the JSON data is deemed to be valid per tools like this one:  http://www.freeformatter.com/json-validator.html.
    So, is there a limit on the size of the JSON data that can be converted by DeserializeJSON?
    Thanks!

    Thanks Carl.
    The JSON is being submitted in its entirety, confirmed by Fiddler.  And it's actually being successfully saved to a SQL Server nvarchar(MAX) field too.  I can validate that saved JSON.
    I'm actually grabbing the JSON to convert directly from the SQL Server, and your comments / thoughts led me down the path of resolution.
    Turns out that the JSON was being truncated prior to getting to the DeserializeJSON command, but it was the cfquery pull that was doing the truncating.  The fix was to enable "long text retrieval (CLOB)" for this datasource in CF Admin.  I'd never run into that before or even knew that this setting existed.
    Thanks again for your comments!

  • 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

  • Bapi to create/change MM/SD grid control data (AFS)

    Hi experts,
    I'm looking for a way to create and change MM/SD grid control data by bapi (or by other way that can be implemented in ABAP).
    I mean the data that you can see when you go to trx J3AB, enter a material and push the buttons: "MM grid control data" or "SD grid control data"
    Thank you in advance.
    -francesco

    I found it by myself, there's the FM J_3A_CREA_GRCD_MASTER_GRID, inside the J3AGRI idoc FM J_4A_IDOC_INPUT_J3AGRI.

  • Modify JSON data after Approval

    I've managed to write my own UI5 app based on the "Building SAP Fiori-like UIs with SAPUI5", and I want the Approve function to work now.
    I have the following JSON data detail:
      "BusinessPartnerList": [
      "BPId": "0100000000",
      "Role": "01",
      "EmailAddress": "[email protected]",
      "PhoneNumber": "6789",
      "WebAddress": "http://www.sap.com",
      "CompanyName": "SAP",
      "LegalForm": "AG",
      "Country": "DE",
      "City": "Walldorf",
      "PostalCode": "69190",
      "Street": "Dietmar-Hopp-Allee",
      "Building": "15",
      "SalesOrders" : [
      "SalesOrderID": "0500000009",
      "Netto Amount": "3338.00",
      "Time Stamp": "2014.04.28. 9:00:00",
      "Gross Amount": "3972.22",
      "Status": "N",
      "CurrencyCode": "EUR",
      "Items": [
      "Position": "0000000010",
      "QuantityUnit" : "EA",
      "Tax": "181.64",
      "ProductName": "First Item Name",
      "ProductID": "HT-1000",
      "Quantity": "1",
      "DeliveryDate": "2014-05-05T07:00:00.0000000",
      "CurrencyCode": "EUR"
      "Position": "0000000020",
      "QuantityUnit" : "EA",
      "Tax": "596.60",
      "ProductName": "Second Item Name",
      "ProductID": "HT-1002",
      "Quantity": "2",
      "DeliveryDate": "2014-05-05T07:00:00.0000000",
      "CurrencyCode": "USD"
      "SalesOrderID": "0500000030",
      "Netto Amount": "22337.00",
      "Time Stamp": "2014.04.28. 9:00:00",
      "Gross Amount": "26581.03",
      "Status": "P",
      "CurrencyCode": "EUR"
      "SalesOrderID": "0500000039",
      "Netto Amount": "3338.00",
      "Time Stamp": "2014.04.28. 9:00:00",
      "Gross Amount": "3972.22",
      "CurrencyCode": "EUR",
      "Status": "N"
    I can list the SalesOrders for the specific partner, and than list the items of the specific SalesOrder.
    Now I'd like to Approve the order, and change it's status from "n" to "P" in the JSON file as well.
    But I have no idea how to do it in the SalesOrderItem.controller.
    I hope someone can help me

    Since "BusinessPartnerList" and "SalesOrders"  are both arrays, i think you need some index in your path.
    if you want to adress a specific business partner and sales order, you would need something like oJsonModel.setProperty("/BussinessPartnerList/0/SalesOrders/1/Status" , 'P' );

  • 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

  • Load Grid with data from System.Data.DataTable

    Hi all.
    A have a System.Data.DataTable e need load a grid with data from this DataTable.
    How Load a Grid with data from System.Data.DataTable?

    Hi Francisco,
    actually i don't think that you can use a .NET datatable to fill a business one grid.
    the business one has it's own datatable.
    in c# it would look like this:
    oForm.DataSources.DataTables.Add("MyDataTable");
    ((SAPbouiCOM.Grid)(oForm.Items.Item("grid").Specific)).DataTable = oForm.DataSources.DataTables.Item("MyDataTable");
    oForm.DataSources.DataTables.Item(0).ExecuteQuery("SELECT Field FROM [dbname].dbo.TABLE");
    ((SAPbouiCOM.Grid)(oForm.Items.Item("grid").Specific)).CollapseLevel = 1;
    ((SAPbouiCOM.Grid)(oForm.Items.Item("grid").Specific)).AutoResizeColumns();
    ((SAPbouiCOM.Grid)(oForm.Items.Item("grid").Specific)).SelectionMode = SAPbouiCOM.BoMatrixSelect.ms_Single;
    good night
    lg David

Maybe you are looking for

  • Setting up SLD

    Hello All, I am doing a below scenario. Portal version : EP6 SP15 J2EE : SP15 I am trying to set up ESS based on WebDynpro in my Enterprise Portal SP15. For that I have to use the SLD for configuring the JCO connection. Now I can use the SLD of the p

  • Swing

    Hi I have a code like following ..But the line 'SmsDisplayText.append(update);' is not working...I am calling this function from other class...The function is working but the particular statement 'SmsDisplayText.append(update);' is not working please

  • Using the new 3tb Western Digital drives in a 2 gen drobo

    I am confused as to whether I can use a WD 3tb drive in my drobo. MY setup is as follows: intel 27 inch imac running snow leopard, i tunes 10, 2nd gen drobo with the latest firmware installed. I have my itunes library on the drobo and I stream all of

  • Integrating UCCX with Presence - Unable to Add Users to Contacts List

    Hi, I'm trying to integrate UCCX with Presence via the Desktop Administrator. I have created an enduser (LDAP Sync) and assigned the user a Service Profile which includes the Directory UC Service for LDAP, have tried both LDAP and GC configuration. I

  • How to transport SAPUI5 components from ABAP repo

    Hi All, Please suggest me how can I move the SAPUI5(deployed in ABAP repo) apps from Dev system to QA . Thanks in advance Rajesh