List of Values in ADF service interface - web-services

I got a ADF Business Components Model Project. In some View Objects I defined a List of Values for the Attributes, and also set a Label in the UI Hints tab of some Attributes.
When I run the Application Module every thing works fine.
Now I want to expose this (and some other) View Objects via web service. So I added a Service Interface to the Application Module, where I set how the View Objects should be exposed. I also checked the Generate Control Hints Operation Check box.
In the next step I create a Web Service Data Control with the WSDL of my service. Then when I drop the result of a, for example, findByViewCriteria-method, to a jsf page, and choose ADF Form, I got neither the option for a Choice component, nor are the labels like I configured them.
Does any one have a idea, what am I missing? How do I enable the LOV and UI Hints in my web service?

The Web service won't have LOV defined on it just because those are defined in the ADF BC layer.
So what you need to do is to add a list to the parameter you are passing to a Web service.
Similar to this:
https://blogs.oracle.com/shay/entry/adding_lov_to_non_database

Shays answer was very helpful (as always), though I want to share how I eventually solved this in my case.
As he pointed out
The Web service won't have LOV defined on it just because those are defined in the ADF BC layer.
So I dropped the attribute, as selectOneChoise to the page. Important thing to note is, that only the result of a find-method can be used as a List Data Source, the result of a getByKey-method results in an error.

Related

Sharepoint 2010, calling the external webservice without using workflow

I am very new to the SharePoint platform, and I need an insight as how can I achieve the following.
I need to call an external Webservice from Sharepoint(2010), without using workflow feature.
When the Webservice returns the data, I need to use one of value as a filter for an existing List.
e.g. Webservice returns user's department. I need to capture that department and use it a filer for an already existing List that displays information for all the departments. I need the List to display the information only for the department returned by the Webservice.
It may be possible to have your web service return the data as an external content type (BCS). That can then be used in an out of the box filter on a page. I do something similar with a client ID using the picker box from SP to select the item from the external source and then filter other web parts on the page.

Access 2013 on SharePoint 2013 Online - Multiple Questions

Very long time since I even look at Access.. but on SPO, with a database on Azure it seems really nice ... wondering tho..
Any way to remove that left pane with the Databases from the UI?
Set a list button to go to a URL formatted using selected column fields in the row?
Join in oData datasource like SharePoint Online List? Validate against SharePoint list Data? set dropdowns to lookup using SharePoint list data?
Any file upload control and upload to a sharePoint Library? A way to add metadata to a file and do some validation - like does file exist with this metadata. Dynamically rename files to some unique string.
Perform complex field validation with REGEX?
Secure the application and database to SharePoint groups.
What's the business language of choice? Not clear on how to edit and save macros. Can it make calls to webservices?
Any way to change that obsure url you get for the App in SharePoint 2013 Online?
Any way to remove that left pane with the Databases from the UI?
No, but there is a workaround. Right click on the tables you don't want to be visible, and select the option to hide them individually. You can also rename the table-views in that pane, so they appear to have more user-friendly names for your end-users.
Set a list button to go to a URL formatted using selected column fields in the row?
The best way to achieve something like this would be using a hyperlink control attached to a calculated column in your table/query where the URL and display text are computed and linked together automatically. If you need list functionality, you can allow the user to select an item in the list, and have that automatically update a separate hyperlink control to provide the link functionality.
Join in oData data source like SharePoint Online List? Validate against SharePoint list Data? set dropdowns to lookup using SharePoint list data?
Access 2013 Web Apps cannot pull external data at this time. Access 2013 Web Apps only accept incoming data connections e.g. a MS-SQL or oData service can use industry-standard methods to connect to your Access Web App and validate data.
Any file upload control and upload to a SharePoint Library? A way to add metadata to a file and do some validation - like does file exist with this metadata. Dynamically rename files to some unique string.
The only file support currently provided by Access Web Apps is in the form of images uploaded to an image field inside a table. This is useful to add people's photos to their records in a "contacts" table, and things like this. Other than that, you will need to use a custom SharePoint library interface for this type of functionality.
Perform complex field validation with REGEX?
Not currently supported to my knowledge.
Secure the application and database to SharePoint groups.
This functionality is handled within SharePoint, not within Access or SQL Azure. Secure your SharePoint site collection as needed, and these security settings will apply appropriately to read and/or write operations by SharePoint users within your database. e.g. a SharePoint "visitor" (read-only access) will not be able to edit any data in your database - only view it.
What's the business language of choice? Not clear on how to edit and save macros. Can it make calls to web-services?
In Access 2013 Web Apps, VBA is no longer supported. Macros have to be written using the GUI "wizardy" macro interface, which greatly limits the scope of available operations. As a result, you cannot perform more complex tasks, such as making calls to external web-services. However, for basic data operations and UI operations, the GUI macro interface serves the purpose well.
Any way to change that obscure URL you get for the App in SharePoint 2013 Online?
The URL is randomly assigned when you create an Access 2013 Web App, but is guaranteed to never change after it is assigned. Therefore, you could reasonably use your DNS/web-host to "mask" the URL with a CNAME or other type of HTTP redirection. There are many ways to do this, and they are all external to SharePoint and Access 2013 Web Apps, so it's up to your DNS and web providers to support this.

WSO2 Governance Registry UI customization

Folks,
I'd like to have something like the following in our service registry.
I'd like to add a field to the UI that when I click on it in the UI, it does a select from the database and creates a popup with the data returned from that database select.
is this possible?
For instance, I'd like to have a button on the UI page for a service that when clicked, goes to the database and gets all "METHODS" of the service (I would have previously populated customized database fields after analyzing the service definition, and this button would execute a customized select statement to pull the required data out of the db).
I am not entirely clear about what your requirements is but i think this might help take look at the doc for RXT[1] and see if you can solve your requirement with that :).
[1] http://docs.wso2.org/wiki/pages/viewpage.action?pageId=22185121
Thanks,
Pulasthi

Changing SharePoint group settings using web services

I want to change the group settings (oGrp.OnlyAllowMembersViewMembership = false) for all the site groups present in my site. I have to use web services to perform this function and not the object model.
Until now I have worked on the object model mostly so I'm not very sure of web services. Please let me know if anyone has ideas on how to go about it.
I don't believe this is possible using the web services. They have a more limited set of functionality than the object model. It is possible to add and remove users from groups but there is little that allows you to change a group's settings. UpdateGroupInfo is the closest I know of which doesn't do what you want.
Your best option is to write your own custom web service and deploy that. You can then use the SPGroup.OnlyAllowMembersViewMembership property from the object model to configure the groups.

Enabling management of content types on SharePoint lists via web service

I can enable the management of content types in a document library's "advanced settings". Is there any web service method for this? I need to do this in an automated way, not manually.
It seems like neither Lists.AddList nor Lists.UpdateList can set the value of the "Flags" attribute that is needed for this. My web service client has alread created a new content type and has associated this content type with the list. But without enabling the management of content types, the new type won't appear in the "New" drop-down menu, for example.
Niklas
The web services are limited compared to what is available using the object model. If you can't find it in the web services SDK (I can't) then unfortunately it doesn't exist.
If you can use the object model, see SPList.ContentTypesEnabled. Otherwise, you will need to create your own web service that flips the bit on this particular property.