I am working with a SAP NW 7.4 and I am using OData with Annotations (no CDS, SEGW & Code) for SAPUI5 Apps. These apps are built with Smartform and Smartfields.
My question is: I have to extract the info an entitySet which is used as ValueList in SAPUI5 but, I should receive some parameters from the screen when the call to the OData Service is called.
I tried to send the Parameter from my Entity Type to the related Entity by creating a new ParemeterIn as in the following picture:
With the following:
But only works when it is displayed as "SearchHelp".
I searched here and on SAP but I cannot find anything similar that helps me out. Suggestions???
Related
Let's say we have some list of items that are automatically downloaded from API
<ComboBox items="{'model>Users'}">
<c:Item
key="{model>Id}"
text="{model>FirstName} {model>LastName}"
/>
</ComboBox>
Works really well. But how can I now expand the data downloaded with oData by adding some more objects?
The things that I've tried:
Trying to find some sort of "onDownloadCompleate" function so that when the users are downloaded I can attach some more. I couldn't find such function in oData v4.
Getting the data from the model and attaching additional objects to it. I couldn't found how I can do this.
The only solution I see is to not use oData at all and just download the users using normal API call.
In my company we started using UI5 and I've already done 2 simple reports.
When I created the OData for the report I imported it from a function that exported a table type.
Now I've created a Function that imports 2 RANGES and exports a flat structure and I have no idea how to create the OData for it.
I've looked up in the internet and here in stack overflow and couldn't find any resource regarding this.
How do I make the OData so the UI5 developer can consume the data in the flat structure.
I'm sorry if its too general, if it is let me know and I will try to add more info.
Thank you.
EDIT: Do I need to just export the fields instead exporting the structure?
Its a 4 fields structure right now.
Good morning,
I have a Kendo UI data source handling my oData request. The data source is sitting client side and as I filter it , it makes the necessary calls for me and I have some custom markup displaying results. I have a limit of ten records being returned and this is working fine.
On the back end I am using WebAPi 4.0.30506.0 and oData 5.6 (we are stuck with .net 4 ). This is resolving the queries nicely. No problems here.
The problem is that the client now wants to have the filtered data exported server side (data eventually going into a pdf or excel report) , does anybody have any ideas on how to cross the filter settings over to another call.
I have had some success chucking the whole ODataQueryOptions into the cache for each user , but this feels dirty and inefficient.
All ideas welcome.
After some serious google bashing I found this nuget package :
https://www.nuget.org/packages/LinqToQuerystring/
Examples here : http://linqtoquerystring.net/examples.html
I can now pull the filter value out as a string an reapply as necessary.
I used Node js for my webapp and I wanted to create a new user with unique email ID and hence that required me to look up the index table but then I realised that the Node Driver doesn't have the index() function as the one in Java( graphDb.index() ). Any work around for such an issue, like using REST or some Cypher connetor
Neo4j just so happens to have a wonderful REST API that should work for your application. The docs for the api are detailed here:
http://docs.neo4j.org/chunked/milestone/rest-api.html.
It even has an entire section devoted to indexing.
We are using the OData Provider Toolkit to expose custom data as an OData feed. We have noticed that the author field is always unset:
<entry>
<id>http://localhost/sample.svc/Entity</id>
<title type="text"/>
<updated>2013-01-30T01:02:28Z</updated>
<author>
<name/>
</author>
Is there a way to set the author programmatically using this toolkit? We haven't been able to find a way to access the SyndicationItems of the associated Atom feed that generates the result.
Depending on which version of WCF Data Services (ie System.Data.Services.DataService) you are using with that toolkit, you have two options here:
1) Use so-called 'Entity Property Mapping' to tell the system to put a specific property's value into the Author field. This functionality has been present since .NET 4.0 (and available through an update to 3.5SP1 as well). To turn this on, look into the ResourceType.AddEntityPropertyMappingAttribute API (http://msdn.microsoft.com/en-us/library/system.data.services.providers.resourcetype.addentitypropertymappingattribute.aspx).
2) Customize the instances of ODataEntry being written out using the recently added support for wrapping the ODataWriter being used by the data service. This is only available in versions 5.1 and later, which can be found at NuGet (http://nuget.org/packages/Microsoft.Data.Services/). To wrap the writer, you will need to hook up to the DataService.CreateODataWriter delegate property. You can see an example of how to use this here: http://odatasamples.codeplex.com/SourceControl/changeset/view/be77d3cacb2c#WcfDataServices101/WcfDataServices101.CustomizedEntityLinks/CustomizedEntityLinksService.svc.cs. Once you are in the WriteStart method, you can use the ODataEntry.Atom() extension method to get access to the atom-specific metadata like authors, contributors, etc.
Hope that helps, I can provide more exact code examples as needed.