how to manage custom data table in Umbraco back office? - umbraco

Is there an out of box way to manage data of custom tables in Umbraco back office ?
I will need to access data in MVC site pages. Want to use Umbraco back office for this and give a html table / gird like interface with data where user can do CRUD operations on data records.
how it can be done ? Is there a feature or datatype to support this ?
Please guide and help me.

Take a look at uSiteBuilder for Umbraco:
http://usitebuilder.vegaitsourcing.rs/tutorials?id=22389
Also:
Document Type: a List View Type
Some info:
http://www.robertgray.net.au/posts/a-first-look-at-umbraco-container-content-types#.VKqX9WSsWGg

Related

Better Realtime filter/search option to integrate in ASP.NET MVC application

Our SQL Server database has a huge number of data in different tables (millions of records) and we are populating the data using paging in the UI. Data is dynamically added and updated. Now I am planning to implement realtime filtering/searching of the data. The UI will have a text box where user types search keyword and the rows in the grid should be refreshed based on the search string as a typeahead functionality. I am thinking to use azure search as one of the candidate for implementing this functionality. But we are not on cloud yet and I have to justify my team if we had to go through this route.
Are there any other products or methods that can help in achieving this? I am still doing research on this. But if anyone has already implemented a solution like this, I would like to know more about your recommendations.
I recently started using https://datatables.net, and it's been a good experience.
Otherwise, you'll probably have to roll your own solution that keeps track of page and filter criteria on the client side and makes Ajax calls whenever they're altered. Your endpoint would need to take the page and filter as parameters, perform the necessary query of the data, and return the desired records.

ReportViewer's ReportParameter in MVC 5

I am working on a solution where we have to show the filter data of ReportViewer in MVC application. We have SSRS reports hosted in SSRS server. I am able to show the report viewer in MVC application. On top of this, we need to filter the data's in the ReportParameters based on the user's permission. Since we dont want to store the copy of .rdlc file, we cannot alter the reportparameter list as it is a readonlycollection.
Is there a way we could apply the filter
you could try adding a hidden parameter to the report that will be used by the parameter dataset list for filtering and that way you can control it by code. Check this article regarding parameters and filtering.
https://learn.microsoft.com/en-us/sql/reporting-services/tutorial-add-a-parameter-to-your-report-report-builder
Regards

orchard contenttype get data from 2 different databases

My situation is that i have an external database and i should present the information in an orchard hp. The customer wants also to set new information and both should be shown via projection.
Short with simple example type book:
Books are in an external db.
Books should be set in orchard, in the orchard-db not in the external-db.
The query - projection should get both books-entities and displayed.
Is there a simple orchard-way to implement my problem?
Unfortunately, I did not find any sample for what ... Any suggestions?
Thank you
From what you've described I understand that in short you want to manage some data from an external data source as Orchard content items. This is well possible, it needs the following to happen:
Create a content type for your data.
Periodically pull in changes from the external data source.
Programmatically create content items of your new type from the data pulled in.
Since this is not an everyday scenario I don't know of any tutorials out there for this although there is at least one sample: the External Pages module does pretty much this, by pulling in Markdown pages from a Mercurial repo.

Asp.net mvc displaying results about a selection being made

I am porting an application from wpf to asp.net mvc.
In the wpf I have a view in which the user selects from a combobox the name of a client and then in some textboxes, next to the combobox, some specific information about the client will show up (email, address, etc). In wpf I fill all this information in an observablecollection that resides in memory and when the client changes, I retrieve the other ones from the collection so it won't fo through the database.
Is there any way in asp.net mvc I can do this ? Or every time the client changes i will fetch from the database the extra information ? (will be slow)
This controls is just to select the client (and the extra information to help the user) so it should be fast.
How would you do it ?
If you don't want to make a call back to the server for every selection, then you should look at a solution whereby you pre-fetch all the data that you need and hold it in a javascript object. Then you could write a javascript method that would fire on the selection DOM event.
Sounds like what you are looking for is Session. You can pull the list from the database once, store it in session, and then reference session as needed for each client's data. This recommendation is based on presumption that the list is not being modified elsewhere, and therefore, invalidating the version of the list you have stored in Session.
Using Session in ASP.NET - http://msdn.microsoft.com/en-us/library/ms178581.aspx

Sharepoint and Cross-Site Lookup

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/

Resources