I am trying to display a sql query result on a page in my Sharepoint site. After looking around I found instructions on how to do that using the Content Query Web part. The instructions to enable that feature instructions here include activating the SharePoint Server Publishing Infrastructure. I currently don't have that option. Is there something I can install to my sharepoint site to get that option? Is there a better/easier way to display the results of a sql query in sharepoint?
Make sure to look in your "site collection features" instead of your site feature. This feature needs to be activated at the root level of the site collection.
FYI the Content Query WebPart only retrieve content from your site collection (by crafting a relevant CAML query, which is finally transformed to SQL query). You don't have the possibility to create a direct sql query and receive the result.
If you need to query another database than the one SharePoint is using (avoid accessing it from SQL at all cost !), you'll need to rely on the Business Connectivity Service, a data view webpart (using SharePoint designer), or create a simple webpart that will be responsible for everything (connecting to the db, doing the query and rendering the result in any way).
Hope it helped.
Related
so I developed a small Neo4j database with the aim of providing users with path-related information (shortest path from A to B and properties of individual sections of the path). My programming skills are very basic, but I want to make the database very user-friendly.
Basically, I would like to have a screen where users can choose start location and end location from dropdown lists, click a button, and the results (shortest path, distance of the path, properties of the path segments) will appear. For example, if this database had been made in MS Access, I would have made a form, where users could choose the locations, then click a control button which would have executed a query and produced results on a nice report.
Please note that all the nodes, relationships and queries are already in place. All I am looking for are some tips regarding the most user-friendly way of making the information accessible to the users.
Currently, all I can do is make the users install neo4j, run neo4j every time they need it, open the browser, run the cypher script and then edit the cypher script (write down strings as locations) and then execute the query. This makes it rather impractical for users and also I am worried that some user might corrupt the data,
I'd suggest making a web application using a web framework like Rails, especially if you're new to programming. You can use the neo4j gem for that to connect to your database and create models to access the data in a friendly way:
https://github.com/neo4jrb/neo4j
I'm one of the maintainers of that gem, so feel free to contact us if you have any questions:
neo4jrb#googlegroups.com
http://twitter.com/neo4jrb
Also, you might be interested in look at my newest project called meta model:
https://github.com/neo4jrb/meta_model
It's a Rails app that lets you define via the web app UI your database model (or at least part of it) and then browse/edit the objects via the web app. It's still very much preliminary, but I'd like to be able to things like what you're talking about (letting users examing data and the relationships between them in a user friendly way)
I general you would write an tiny (web/desktop/forms-)application that contains the form, takes the form values and issues the cypher requests with the form values as parameters.
The results can then be rendered as a table or chart or whatever.
You could even run this from Excel or Access with a Macro (using the Neo4j http endpoint).
Depending on your programming skills (which programming language can you write in) it can be anything. There is also a Neo4j .Net client (see http://neo4j.com/developer/dotnet).
And it's author Tatham Oddie showed a while ago how to do that with Excel
I’m working on a web project which uses Umbraco CMS, we are using the site search functionality to find the products on our site it is working fine, when I add new products to the commerce server 2009 R2 it is being listed in the respective category, but these newly added products are not available in the site search. We are using Adobe Search & Promote to index the site, commerce server search technology to search the product. Any clue on this?
Thanks in Advance!
Govind
For the purposes of this discussion, lets say that your Microsoft Commerce Server site name is 'GovinSite*' and you have a single Microsoft Commerce Server product catalog named 'GovinCatalog'
Now let me state two assumptions based on your intial question:
Assumption 1: I interpret your statement, "when I add new products to the commerce server 2009 R2 it is being listed in the respective category", as decribing the act of you adding products manually using the 'Microsoft Commerce Server Catalog Manager' thin client tool and then seeing them show up in the interface once you've added them through the thin client interface in Catalog Manager
Assumption 2: I interpret your statement, "'but these newly added products are not available in the site search* to mean that the newly added products do not show up immediately in the search results on your website which uses Commerce Server Search to return results.
Now, consider that Microsoft Commerce Server 2009 R2 stores all of its products in SQL Server in the GovinSite_ProductCatalog database. For each catalog you create, a corresponding set of tables is created in SQL Server. The categories you define and products within those categories are stored in the GovinCatalog_CatalogProducts table within that database. When you add a product or category through code, or using the asmx based CatalogWebService or via the Commerce Server Catalog Manager, that product gets added to the GovinCatalog_CatalogProducts table. That said, whether or not the product will IMMEDIATELY show up in your live search results will depend on the caching strategy you have implemented for the site. If you are indeed using Microsoft Commerce Server search, depending on the type of search you are executing it is likely using the full text search index. If you have not refreshed either the site cache or the full text search index in Commerce Server, you may experience a situation where you can see the product in Catalog Manager, but it is NOT visible on your site. Refreshing your site cache OR refreshing the full text catalog index will resolve this issue. If it does not fix your problem, then you likely have a problem stemming from the code you are using to search for products using the Commerce Server Catalog API (either 2007 or 2009).
So, since you state you are using Adobe Search & Promote to index the site, I would imagine you are talking about the site content, but not necessarily the site product catalog data. The index used by adobe is likely a completely different index than the one leveraged by Commerce Server Full Text Search. Before you go to far try the following:
1) Create a product in Catalog Manager
2) Try to search for the product on your site
3) Assuming it doesn't show up, go back to Microsoft Commerce Server Catalog Manager and select Refresh Catalog Full Text Index from the task menu on the left hand side
4) Try to search for the product again on your site
5) If it still doesn't show up, go back to Microsoft Commerce Server Catalog Manager and select Refresh Site Cache
6) Try to search for the product again on your site
7) If it still doesn't show up, it must be an issue with the code that is making search requests to Commerce Server's database either via the Commerce Foundation (2009 API) or the Core Systems Catalog API (2007)
For more information on Microsoft Commerce Server caching, try here
For more information on the Commerce Server 2007 Catalog API searching try here
I could go deeper on this, but I would prefer to let you validate my assumptions and respond before I explore your matter further.
I'm completely new with SharePoint. How can I create a new page where the user can essentially click a button that will call a stored procedure on the same server? Am I going to need to create an ASP.NET application?
SharePoint 2007 and SQL Server 2008
SharePoint Designer will allow you to put a DataViewWebPart on a page and let you tweak it endlessly. The DataViewWebPart can be populated from all sorts of data sources including SQL databases so it might be able to meet your needs.
You could create this as a webpart. There's a built-in project type for a SharePoint Visual WebPart. Would this be just a single button that always executes the same stored procedure? Does there need to be a list of procedures to choose from? Would the list always be the same, or would it need to be populated dynamically?
I have this scenario
I want to build two sharepoint 2007 sites. One for customers info and the other for products and
customers orders.
Now the problem is that in the second site I need to reference the customers info from the first site but unfortunately sharepoint doesnot provide out of the box cross-site lookup.
I did some search and found custom cross-site fields and used one but when I upgraded the
site to sharepoint 2010 this custom field was not compatible and the upgrade wizard said it could not be upgraded.
so what is the solution for this ? is it to merge the two sites so that I can use the standard lookup feature or is there any workaround for this ?
please if any body has faced such a scenario, share the solution with me ?
thanks
If the sites are in the same site collection, the out of the box lookup field can work across sites. The browser UI does not show it, but you can set LookupWebId on the field through either the api or a list template.
Given your specific scenario though, it would probably make more sense to set up the customers as users (possibly via a custom membership provider) and just use a standard user field.
you need to create new custom field type for fetching customers info from the first site and it can be added your list.
The below site can help you:
http://vspug.com/nicksevens/2007/08/31/create-custom-field-types-for-sharepoint/
I need to extract the data from a SharePoint List and view it in a GridView ASP control or any other data table control, how to use the SharePoint API to extract the items from the SharePiont list and demonstrated in a ASP control
There are 2 options:
Using the SharePoint object model, but that is only useable if you are on the same server as sharepoint is.
Generally you would use the SPList object's GetItems method, which takes an SPQuery, that in turn uses a CAML query to specify exactly which items you want returned, i.e. akin to a SQL SELECT statement. for more info check out the SPList.GetItems(SPquery) article on MSDN
The other option is to use the Lists.asmx Web Service to query a list. The web service can be called from another machine. For more info check the MSDN article