IT Link Solutions Blog | All posts tagged 'ms-sharepoint'

How can we achieve user’s authorization using custom permissions in LightSwitch while using SharePoint Lists as datasource

by Administrator 22. March 2016 08:13

Basically, these permissions are for forms authentication. If we have SharePoint then SharePoint will take care of such permissions itself.

In your case in which you are using two SharePoint lists as data source it can be used only through SharePoint permissions (like read, view, edit, contribute, and full control).

For instance, if a user have got read or write permissions, it will allow access to that user in accordance with the permissions assigned. On the other hand, if a user have got the contribute rights then he will be able to add new items. Moreover, if some items are added using MS LightSwitch application, SharePoint will treat it just like adding items directly through SharePoint ‘add new item form’. Same conditions will apply to other operations like, edit, delete, view etc.

Can I use SPServices from any subsites and site collection

by Administrator 16. March 2016 05:10

You should be able to move the sites up and down in the same site collection pretty simply. The tactic is if you need to go to a different site collection as webservices are tied to the site collection you are on. One of the arguments used is WebURL and it can be used to make sure that you are pointing at the right list or library location you are actually seeking for.


The script that is given below may help with your problem:



        operation: "GetListItems",

        // Force sync so that we have the right values for the child column onchange trigger

        async: false,

        webURL: "/webs/sitecollection/site", => “URL should be the same as we have the list on that particular site collection”

        listName: "tst",

        // Filter based on the currently selected parent column's value

        // Only get the parent and child columns

        CAMLViewFields: "<ViewFields><FieldRef Name='Title' /></ViewFields>",

        // Override the default view rowlimit and get all appropriate rows

        CAMLRowLimit: 0,

        completefunc: function(xData, Status) {





LightSwitch Azure hosted application do not load SharePoint custom list data from other site

by Administrator 14. March 2016 01:20

This query is about light switch applications’ data source

Here the user is trying to say that he has developed some application in Microsoft Visual Studio LightSwitch and used some SharePoint lists as data source.

In that scenario let us clear some basic things first. If you have added some SharePoint lists to your app in LightSwitch you should keep in mind that it is site specific on SharePoint. The domain for the app would only be the site on which you have deployed it. And it will try to locate lists and libraries on the same site on which it is deployed.

Here is the demonstration for it:



Your site will be working fine if and only if you deploy it to Site ‘A’ but when you deploy this app to Site ‘B’ it will not show any data. Most people think that it might be some sort of permissions issue.

MS LightSwitch app will not remind the site name for the data source rather it reminds only about the lists and libraries names. In this particular case, app will try to find list 1 and list 2 on site ‘B’ when we deploy it on Site ‘B’ and we don’t have any list having these names.

So whenever you try to deploy your LightSwitch app to some other site which is not the same site from where we are fetching data, you must recreate or clone all the lists and libraries to that site as well. One thing interesting here is that, we don’t even need to change a single line in our app, no need to change the site name for data source because, the app will find lists against the site name itself.



Review Us!

Connect with Us

Tag cloud