App Studio - JSON data source

Hi,
I really would like know how to incorporate JSON as a datasource for my app studio apps... Can someone please point me  in the right direction?
I have tried this example: http://blogs.msdn.com/b/quick_thoughts/archive/2014/07/13/rest-apis-in-app-studio-part-2-changing-the-source-code.aspx but unfortunately can only get it to half work ( ie showing only the movie titles no images or synopsis etc)
even tho when I step thru the movie collection the relevant data is there.
So any advice or other tutorials on the same subject would be greatly appreciated...

Hi,
Were you able to resolve your issue?
I came across the same problem. My JSON has ImageUrl and ArticleUrl and when I added this JSON schema to display in the detail page or the App Studio, I kept getting an error in the MainPage.xaml 
 "object reference not set to an instant of an object. 
Can I add two or more different Web API sources for App Studio or I'm limited to just one? Below is the details error in the  MainPage.xaml.
 at AppStudio.Data.HighlightRootSchema.GetHashCode()
   at System.Collections.Generic.GenericEqualityComparer`1.GetHashCode(T obj)
   at System.Linq.Set`1.InternalGetHashCode(TElement value)
   at System.Linq.Set`1.Find(TElement value, Boolean add)
   at System.Linq.Enumerable.<IntersectIterator>d__92`1.MoveNext()
   at System.Linq.Enumerable.<OfTypeIterator>d__aa`1.MoveNext()
   at AppStudio.Data.ObservableCollectionExtensions.AddRangeUnique[T](ObservableCollection`1 oldCollection, IEnumerable`1 newItems)
   at AppStudio.Data.DataSourceBase`1.<LoadDataAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at AppStudio.ViewModels.ViewModelBase`1.<LoadItemsAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at AppStudio.ViewModels.MainViewModel.<LoadDataAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at AppStudio.Views.MainPage.<OnNavigatedTo>d__0.MoveNext()
App Studio Team, please help. 
Thanks,
GP

Similar Messages

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

  • Crystal report for visual studio 2010 data source object is not valid error

    Hello,
    I receive an "data source object is not valid" error when I want to print one CR document after setting an ADODB.Recordset on SetDataSource method of my report.
    On my developer station, this operation works without problem but on client station, I get this error.
    The redistributable package for client is installed on client side (CRRuntime_32bit_13_0_1.msi).
    Can someone help me?
    Thank you.

    Thank's for your answers
    Dim rsPkLst As ADODB.Recordset = Nothing
    Dim report As New crPickingList
    ' Fill ADODB.Recordset with SQL Statment
    If rsPkLst.RecordCount > 0 Then
          report.SetDataSource(rsPkLst) ' Error : The data source object is invalid
    EndIf
    This error appears during  "report.SetDataSource(rsPkLst)" instruction.
    ADODB drivers are already installed and my ADODB.Recordset is filled with good records.
    This project is an updated project from Visual Studio 2003 to Visual studio 2010 and the old version was running fine.
    Developer and client station runs under Windows XP SP3.
    On developer side I install CRforVS_13_0_1 (BuildVersion=13.0.1.220.Cortez_CR4VS).
    On client side I install CRRuntime_32bit_13_0_1.msi.
    Both stations use Microsoft .Net Framework 4.
    Move to ADO.NET is a solution but, for the moment, I do not have the time to change all applications from my company.
    (I get this error from all application updated from VS 2003 to VS 2010 developed since 2005)
    David.

  • ADF BC standalone app and JDBC data source

    Hi,
    I have created a small ADF BC (swing) application that is not using ANY application server. It's just a small rich client app. It's using a table on an Oracle database. In JDeveloper I have set the Connection Type in the AppModule to JDBC URL and thsi works just fine.
    However, using that method makes it impossible to deploy the app sinice the JDBC URL is hardcoded. I thought changing the Connection Type to JDBC DataSource would solve my problem. But now I get the message that the JNDI data source could not be found.
    What do I need to do to make this work? I just want to have the app not being bound to a specific database/host.
    Thank you for any help!
    /Bruno
    (oracle.jbo.common.ampool.ApplicationPoolException) JBO-30003: The application pool (oracle.model.AppModuleLocal) failed to checkout an application module due to the following exception:
    ----- LEVEL 1: DETAIL 0 -----
    (oracle.jbo.JboException) JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-27200: JNDI failure. Unable to lookup Data Source at context FWRK
    ----- LEVEL 2: DETAIL 0 -----
    (oracle.jbo.DMLException) JBO-27200: JNDI failure. Unable to lookup Data Source at context FWRK
    ----- LEVEL 3: DETAIL 0 -----
    (javax.naming.NoInitialContextException) Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

    Hi,
    as mentioned in the original post there is no application server involved. It's a standalone rich client application which is running locally on the client computer. It just needs to read some data from a database.
    /Bruno

  • Oracle BI Apps with SAP data sources

    What is the delivered content provided by Oracle BI Apps to map with SAP data sources?
    Thank you!

    As things stand right now SAP R3 is only supported on a much older release of BI Apps (7.8.4). That release used the Informatica SAP PowerConnect technology to populate the Warehouse.
    I posted before on this forum the list of supported SAP Modules.
    BI Apps cannot use SAP BW. BW can be a direct data source for BI EE however.
    In the near future our support for SAP will be up to date and back on track. There are internal efforts underway that I cannot discuss here in the forum.

  • Essbase Studio: Regarding data sources

    Hi,
    Just wanted to know a thing about Essbase Studio.
    Does my back-end datasource have to have tables/views in a star schema format? Is this mandatory for me when I use Studio to build/deploy cubes?
    Or I can use generation views/tables also?
    thanks to all.
    Avishek!

    It doesn't have to but it makes life much easier.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Connection/data source caching in JSC App Server?

    Tried to change the data source for one of my apps (changed all data sources on all row sets). I got a connection error despite the fact that the IDE could see the data source.
    I restarted the app server to no avail.
    I finally stopped the app server AND restarted JSC and eveything started working again (except for the Conversion error I'm tracking down :-) ...

    Did the connection error occur at runtime ?
    If so, then it's not recommended to change the datasource
    especially if you change databases. It's not impossible to make
    the changes - you need to edit the Page bean constructor and the
    constructor in the SessionBean and anywhere else you
    initialize the rowset with the URL.
    If you changed the database, then because vendors
    map JDBC types differently, you may need to make
    changes . Typically you'll see conversion errors when changing
    the database.
    JDBC Type (which we call SQL Type) --> Java Type:
    =========================================
    CHAR --> java.lang.String
    VARCHAR --> java.lang.String
    LONGVARCHAR --> java.lang.String
    NUMERIC --> java.math.BigDecimal
    DECIMAL --> java.math.BigDecimal
    BIT --> boolean
    BOOLEAN --> boolean
    TINYINT --> byte
    SMALLINT --> short
    INTEGER --> int
    BIGINT --> long
    REAL --> float
    FLOAT --> double
    DOUBLE --> double
    BINARY --> byte[]
    VARBINARY --> byte[]
    LONGVARBINARY --> byte[]
    DATE --> java.sql.Date
    TIME --> java.sql.Time
    TIMESTAMP --> java.sql.Timestamp
    CLOB --> java.sql.Clob
    BLOB --> java.sql.Blob
    ARRAY --> java.sql.Array
    DISTINCT --> (mapping of underlying type)
    STRUCT --> java.sql.Struct
    REF --> java.sql.Ref
    DATALINK --> java.net.URL
    JAVA_OBJECT --> (underlying Java class)
    Source: JDBC 3.0 Specification, Appendix B
    Also, see this post for more info :
    http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=47015
    John
    JSC QA

  • Searching Web Apps with Data Source fields containing multiple values

    I have a Web App with a field allowing multiple values to be entered similar to the checkbox list. I need to restrict allowed values to a large, finite list of values currently stored in another Web App as the data source. I can't apply the Data Source field type as that only allows single value selection. I also need to be able to use the Web App Search form to search for items containing 1 OR more values in this field (the search functionality of a checklist field type). Here's what I've tried for field types:
    Text (string) or Text (multiline) field type - By saving a list of comma separated values (the same way that checkbox list outputs) to a text input or textarea, the search logic only searches for exact string (including commas) and doesn't parse the individual values.
    List (checkbox list) field type - This allows me to search multiple values using OR logic, but the web app will only store values that have been entered as options in the actual web app field setup. I tried using a checkbox list with minimal or empty options hoping that whatever values I sent over in a comma separated string value would still get stored, but because the values came from my Web App data source and not the list of options stored with the field, they were not saved.
    Has anyone found a way to do this?
    My other question is about how I might use a similar multi-value field as described above but return search results containing items with ALL selected values for that field (AND logic).
    Can anyone enlighten me to the inner workings of BC web app search logic?

    Thanks Robert.
    You'll need to create your own interface to the webapp database for those kind of data operations
    by this, are you speaking of the internal BC database which stores web app schema data? That would be great if it were possible to update that programmatically because I need to use the List (Checkbox List) field type (for the search functionality), but I need to supply the checkbox options from a web app rather than by manually updating the list entered in the Fields view of the web app settings (shown below).
    I'm curious if anyone else has tried this?
    Again, my reason for needing to use the List (Checkbox List) field type is that the page which processes searches knows to expect a comma separated list for this field type and then appears to be parsing out the individual values for searching out web app items with 1 or more matching values. You're right that text fields (string and multiline) just check for 'string contains' matches, and this would be ok if I was only ever needing to search just one value at a time. Here's an example of what I might do:
    Web App item field value (as recorded against the List (Checkbox List) field type:
    8294877,8294878
    Web App Search value (for this same field):
    8294879,8294877,8294885
    The search would return this web app item because the field contains 2 (1 or more) individual values even though they were entered into the search field in a different order. If this web app item were just a Text (string or multiline) field, the searched value is not a substring of the web app item's stored value, so it would not find a match. Hence the need to use Checkbox List field type.
    The web app will have thousands if not 10s of thousands of records, so dumping them all into one big array or object and searching on the front-end won't be practical (though it works great on smaller datasets).

  • Dynamic filter in Design studio using drop-down when data source is Universe

    Hi community,
    Is there anyway to create Cascading filter in Design studio when data source is Universe using drop-down component (Dimension filters cannot be used in my requirement).
    My requirement is,
    I have 2 drop-downs:
    drop-down 1 : shows the regions in a country.
    drop-down 2 : should display states based the region selected in the first drop-down (drop-down 1). Also drop-down 2 should pass selected state as input to the data-source
    Thanks in advance
    Vivek VJ

    Hi Vivek,
    Please check out this post: How to Create Multiple Dropdown boxes (Cascading Filters) when using Universe in the backend.
    Regards,
    Mustafa.

  • Error using Youtube data source in siena

    Hi,
    We are facing authentication error while publishing the app for YouTube data source.
    All credentials and service keys are provided and correct. it works in source file, but not when published.
    Thanks in advance!! waiting for any help..
    saravana

    Hello,
    There is a pointer that may help you out in the following thread
    https://social.technet.microsoft.com/Forums/en-US/f8cc7f2f-21bc-4ecb-91b2-622f40a5cbd3/from-the-community-tips-and-tricks?forum=projectsiena
    Please look at my post regarding the youtube authentication.
    Regards
    StonyArc
    http://www.stonyarc.com http://www.xboxlivenation.com Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This is beneficial to other community members
    reading the thread.

  • Jndi data source references at deployment time

    hi,
    i have been thinking and trying for days now, so any hint is greatly appreciated.
    we have an enterprise java application with adf faces, bc4j and jpa all in one ear which runs on weblogic 10.3. we want several instances of the same application running on the same weblogic server, with different context-root's and database connections. what I don't know how to do is how I could create an application-wide jndi link to a jdbc data source at deployment time - because the data source jndi name is listed in bc4j application modules and persistence.xml - so one global jndi link for the application would be great.
    e.g.
    jndi names of data sources installed in the weblogic server:
    jdbc/customer1
    jdbc/customer2
    deployment1:
    context-path: /app-customer1
    local data source name: java:comp/env/jdbc/customer
    deployment 2:
    context-path: /app-customer2
    local data source name: java:comp/env/jdbc/customer
    so the goal is, at deployment time, to create a link to jdbc/customer1 for the first deployment and jdbc/customer2 for the second deployment using .. ?
    thank you very much,
    matt

    hi Anand,
    thank you for your answer. It is indeed a part of the solution I would need to apply - resource references in web.xml to have the bc4j application modules reference a jndi data source under java:comp/env. The other part to it is that we have an ejb jar in our jee application, built with hibernate and a persistence.xml file (yes we are crazy enough to use both bc4j and jpa in one ear). The jndi name of the data source specified in persistence.xml would not pick up a resource reference specified in web.xml would it - actually i should just try this out. So that's the 2nd part of the solution.
    cheers,
    Matt

  • Data source issue in new app creation

    Using Hyp. 9.3 I am trying to create a new application. The data source for the new app was created in sql server and it was used to create a new app. The problem is after going throught the create new app wizard, the new app was there but no db. I think I may have refreshed instead of create. Anyway I went ahead and deleted the app and tried to start fresh to create the new app. But when I went to select the data source it is no longer there. I checked the sql server connection and it seems fine. So what could have happened to the data source?

    If the essbase database does not exist and you click refresh it will create the database.
    Anyway can you not just create a new datasource.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • OIM Data Source Configuration in JBoss App Server

    Hi experts,
    I have deployed OIM on JBoss Application Server. Physical machine on which database is hosted was relocated and its IP address is also get changed.
    I have made changes in xlConfig.xml to point to new DB (IP Address).
    But DB connections are set in the App server Data Source as well
    I made changes in Data Source as well to point to new IP address of DB machine.
    Managed to start OIM .
    But getting database connection exception in log. similar exception is given in post:
    ERROR [DATABASE] Class/Method: tcDataBase/writeStatement encountersome prob
    Thanks,
    Pallavi
    Edited by: Pallavi Chaudhari on Aug 10, 2011 9:47 AM

    You should update it in these files,
    xlconfig.xml
    JBOSS/deploy/xell-ds.xml
    \Oracle\xellerate\Profiles\Jboss.profile
    Thanks
    M

  • Standalone 10.1.3.1.0 - Configure app to use the data-sources on parent app

    Hello:
    1.- I have defined a connection pool, and a data source, for the parent app "default"
    in my oc4j standalone.
    2.- I read in some place, that I can use those definitions in my deployed apps,
    without define a datasource for every app.
    3.- Previously, I have my own data-sources.xml file in every ear file, with exactly
    the same information, and in my orion-application.xml, i have a <data-source>
    tag, specifying this file.
    4.- Now i want to use the parent's data-sources definitions, so I remove from all my ear files, the data-sources.xml file, and the tag in the orion-application.xml, I've deployed the apps, but I can't connect to de parent datasource, so..
    How can I configure my apps, to use the parent's data sources configurations?
    thnks in advance.
    Alex.

    You could also define a datasource for the OC4J instance. Then the apps deployed on it, can retrieve the datasource.
    Ronald

  • How to use .UNX as data source in design studio??

    How to user .UNX as source in design studio??
    I am new to design studio. Experts I need to transfer some Dashboards(Dashboards are developed using BEX query ) from Xcelsius to Design studio.
    Experts need some guidance.

    Hi,
    I haven't worked on this, but the below links seems to helpful about your queries.
    Migrating SAP Dashboards to Design Studio
    Dashboard Migrator to Design Studio - Recent Webcast
    Dashboard Migrator - Xcelsius | Design Studio - SAP BusinessObjects - APOS
    http://events.asug.com/2013AC/Business%20Intelligence/0302%20SAP%20BusinessObjects%20Design%20Studio%20and%20Dashboards%…
    Design Studio dashboard application based on a Universe as a data source - Part 1
    --SumanT

Maybe you are looking for