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

Similar Messages

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

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

  • Pre-Populating the header data in the survey attached to an activity in CRM

    Hello Gurus,
    I have a question regarding Pre-Populating the header data in the survey attached to an activity in CRM Mobile 4.0. That in can we define a Functional module for a PBO (Process Before Output) for a survey u201CZ_SVY_Templateu201D in CRM 4.0.
    So that when a Sales rep opens the Survey in CRM Mobile 4.0 the Organizationu2019s Header data should automatically be displayed in the u201CZ_SVY_Templateu201D, so that he just needs to fill out only the remaining additional blank fields in the survey.
    << Moderator message - Please do not offer points >>
    Thanks,
    Siddhu
    Edited by: Rob Burbank on Oct 8, 2010 2:16 PM

    Moderator message - Cross post locked
    Rob

  • 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

  • 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

  • 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

  • What's the best way to read JSON data?

    Hi all;
    What is the best way to read in JSON data? And is the best way to use it once read in to turn it into XML and apply XPath?
    thanks - dave

    jtahlborn wrote:
    without having a better understanding of what your definition of "use it" is, this question is essentially unanswerable. Jackson is a fairly popular library for translating json to/from java objects. the json website provides a very basic library for parsing to/from xml. which one is the "best" depends on what you want to do with it.Good point. We have a reporting product ([www.windward.net|http://www.windward.net]) and we've had a number of people ask us for JSON support. But how complex the data is and what they want to pull is all over the place. The one thing that's commin is they generally want to pull down the JSON data, and then put specific items from that in the report.
    XML/XPath struck me as a good way to do this for a couple of reasons. First it seems to map well to the JSON data layout. Second it provides a known query language. Third, we have a really good XPath wizard and we could then use it for JSON also.
    ??? - thanks - dave

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

  • Invoking a method using reflection with json data as argument

    Hi,
    I want to invoke a method using reflection and this method have one argument . Now I want to pass a json data as an argument to this method .Please see the following code.
    int HelloWorld(int Id){
    return Id;
    json data{"Id":43}
    how can I use the reflection to use the json.
    Please provide your guidelines

    Thanks for your reply, I am building a windows console application .And I want to convert the json data to object array to use in Method Base.Invoke method.
    Regards,
    Ethan
    Maybe you could select the correct language development forum here:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=vslanguages&filter=alltypes&sort=lastpostdesc
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Flash Pro CS6 - Exporting Sprite Sheet With EaselJS JSON Data

    Hi,
    I've imported a png sequence into Flash Pro and have been trying to get the new sprite sheet generation feature to export JSON data in EaselJS format, but when I choose the EaselJS option from the dropdown menu, I only get a window function:
    (function(window) {
    }(window));
    However, when I export as JSON, I do get proper JSON data.  Is this a known issue with EaselJS support in CS6, or should I be doing something differently?  I'd rather not use Zoe, the SWF to EaselJS AIR utility, because the pngs are fairly large and Zoe seems to have a maximum dimention cap for exporting sprite sheets, I get 12 of them whereas Flash Pro is able to auto detect dimentions, exporting one sprite sheet, which is great, I just need to get it to generate the EaselJS data along with it.  Thanks in advance!

    Thanks, I was just about to convert the JSON file myself, then I read your reply, tried it and viola.  Do you happen to know why EaselJS can only read symbols, even if I labeled my frames? 

  • C# Parsing JSON data within Mobile project OR via Controller Issue

    When I invoke the following to a custom controller to return data to my client (Windows Phone 8.1 app):
    var _lines = await App.MobileService.InvokeApiAsync<List<Tfl.Api.Presentation.Entities.Line>>("lines", System.Net.Http.HttpMethod.Get, new Dictionary<string, string>
    {"url", "http://api.tfl.gov.uk/Line"}
    I received the following Exception:-
    FileNotFoundException was caught
    Could not load file or assembly 'System.Runtime.Serialization,
    Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one
    of its dependencies. The system cannot find the file specified.
    However, I successfully parse the JSON data via the controller [I did have an image here displaying the data, but not enough rep to post!] and I also have no references to the above dll in my Windows Phone application.
    Any ideas?
    Note: Occurs using either local parsing within the mobile app or via controllers in a service app; also running VS Ultimate 2013 with Update 4

    Hi James,
    The data is deserializing using System.Runtime.Serialization 4.0.0.0 on the client side (which is targeting .NET 4.5). I am using a third party DLL found here (api.tfl.gov.uk) which contains all of the data transfer objects required to map the data from
    the JSON into an object structure.
    I have tested this DLL also within a console application and runs as expected, deserializing and mapping data etc; could the issue be that the DLL I'm using containing DataContract and DataMember annotations cannot be used as a reference within the Windows
    Phone 8.1 app?
    I say this because I have a solution whereby I 'copy' the DTO modes in the DLL into plain models using the same code (minus Serialization annotations) and the JSON then is able to deserialize and map to those in the phone.
    So the solution are present is to create my own models, however if you've any other ideas/workarounds that would be great to know in the future where I can just reference the third party DLL.
    Thanks for the response!
    --David

  • Creating childSymbol from JSON data

    Hi
    This is a bit tricky one, i think.
    I am trying to make a menu, from some JSON data. I want to make a function, that takes, in this case the id (this is not to be confused with Javascripd id. This is just the name in the JSON file) and creating a symbol. But i don't want it to repeat itself. Right now, it only says placeholder, in those places, it shouldn't create a symbol at all.
    http://torbenvf.dk/ledelsehelehistorien/test/index.html
    Heres the code from the ComposisionReady
    (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) {
             $.getJSON('slides.json', function(data) {
                     for(var i=0; i<data.length; i++)
                var s = sym.createChildSymbol("slide", "Stage");
                                 if(i)
                                     { if(repeat != data[i].id)
                                         {s.$("title").html(data[i].id);}
                                 else
                                                         else{
                                     s.$("title").html(data[i].id);}
                                 repeat = data[i].id;
    Eventually, the whole thing is going to look something like this, just using dynamic data
    http://torbenvf.dk/ledelsehelehistorien/grafiskprototype1koma5.html
    Kind Regards

    1) So, the html() function is no longer available. See ==> Adobe Edge Animate CC JavaScript API
    2) I looked at your json file.
    Findings: Your json items have no html tags, therefore you can replace .html() by .text()
    Note: i will test your website with iOS8 (iPad) and Mac OS X (MacBook Pro).

Maybe you are looking for

  • Can not watch movies in full screen view?

    Can not watch movies in full screen view movie stops

  • Network behind a router ,,,concept of behind

    I have got Router55 in a diagram , it has BRI0/0 connection to ISDN cloud, and S0/0 connection to frame relay cloud, and E0/0 to LAN and E0/1 to another router BB If a question ask : "Configure your network(mean configure R55) so that ICMP traffic is

  • ITunes Install Error

    "This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package." is the error I receive when I doubleclick my itune

  • Generate SQL Insert Statements

    Hello, I am testing generating insert statements for which I have a function which will return a sql statement. This sql statement when I execute would results as sql insert statements. What I am trying to acheive through a procedure is when I execut

  • DW CS4 can't connect to MySQL database.

    First, sorry for this very basic questions. I have checked my settings but couldn't figure out what was the problem. I got MySQL Error #: 1045 Access denied for user 'cs4admin'@'localhost' (using password: YES). I was following the example from David