You are here:   Forum
Register   |  Login

Forum Notice

This Forum is ARCHIVE only
For LightSwitch questions,
please use the official forums at:

http://social.msdn.microsoft.com/forums/en-US/lightswitch/threads


Forums

Need to filter database content for user on login
Last Post 21 May 2012 05:10 AM by admin. 1 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
olisherr424User is Offline
New Member
New Member
Send Private Message
Posts:1
Avatar

--
21 May 2012 04:51 AM

    Hello, 

    Basically.. I am wanting a way to:

    When a user logs in, automatically his company (a field in the database) is found and only people from the same company are shown to that user.

    Example of what i am looking for.. "if a users companyID is 'Wizards', i want data on the database to be filtered automatically so that he can only see people with a companyID =="

    Please any help with this would be much appreciated. Also please not i am doing this using C# and Forms Authentication.

    Thanks
    Oli  

    Michael WashingtonUser is Offline
    Send Private Message
    Posts:1023
    Avatar

    --
    21 May 2012 05:10 AM
    -----------
    Michael Washington
    http://LightSwitchHelpWebsite.com
    You are not authorized to post a reply.


    Latest Microsoft Visual Studio LightSwitch Forum Threads That Have Answers

    I had a customer with an interesting question.  His LS app has a 'Browse Customers' screen which shows a list of customers in it. He raised the point that when on that screen someone new to the app could easily mistake the Metro interface's back arrow next to the 'Browse Customers' title to mean that you have to click it to go to the Browse Customers screen, even though you're on the screen.  I never noticed that, I'm so used to the UI, but he's got a point.  Is there a way to position the title to the right a bit more so as to limit confusion? Likewise in the screen's command bar we've added the prototypical add/edit buttons.  Doing so positions them on the lower-right of the screen.  Is there a way to position those elsewhere, say on top right?  Again, the client thinks it would be easier to see them on the top. I'm sure all this can be done with some custom CSS but wasn't sure if there was a better way.
    Read more...

    I have been trying to resolve this issue for at least a week with no luck. Any help would be greatly appreciated. When I run Fiddler and try to load the app that is hosted on IIS 8.5 I get two 404 errors. Its looking for two files that do not exist. S:\INetPub\Workorders\WorkordersUI_2014\DesktopClient\Web\Microsoft-LightSwitch-Security-ServerGenerated-Implementation-AuthenticationService.svc\binary\GetAuthenticationInfo and S:\INetPub\Workorders\WorkordersUI_2014\DesktopClient\Web\Microsoft-LightSwitch-Security-ServerGenerated-Implementation-AuthenticationService.svc\binary\GetAuthenticationInfo I read online somewhere that this is being caused by the application using the wrong version of WCF Data Services, when it should be using version 5.0. When I installed VS 2013 it also installed Data Services version 5.6 and is using this version in the project. I have tried the recommend fix of changing the Server.csproj references to the following <Reference
    Read more...

    Hello, After having published a Visual Studio Lightswitch 2013 Application to Windows Azure as a Desktop Client I receive a Load operation failed for query 'Login' An error occurred when parsing the Cookie header for Uri… The actual screenshot can be viewed at the following location: http://screencast.com/t/yxXDdNUoI Also the tracing results can be viewed at the following screenshots: http://screencast.com/t/39HChZjr1I http://screencast.com/t/Y4w7VLLErf http://screencast.com/t/9xwUtBO8UPMI http://screencast.com/t/0auhNjjx Unfortunately the tracing doesn't seem to be telling me anything unless I'm missing something… Also using Fiddler does not  appear to show any relevant information. Thanks Mark
    Read more...

    Hello. Is there an equivalent to the $(element) and contentItem from a _postRender for an _execute or _created method?
    Read more...

    Hello. I have to set some values programmatically like: … screen.tblIssueItem.salutation = screen.tblLanguages.data[i].dtRU; … This works fine. Depending of a selected language {dtRU, dtEN, dtFR, dtJP, dtCH), I want to change the Field (dtRU). Is there a way to refer to the Field with help of an object or a string-variable like? … Var selLang = null switch (screen.tblCountry.selectedItem.fldLanguage) {                 case “France”;                                selLang = “dtFR”, … … screen.tblIssueItem.salutation = screen.tblLanguages.data[i](selLang); … Of course my example do not work. Any suggestions?
    Read more...

    1234

    Microsoft Visual Studio is a registered trademark of Microsoft Corporation / LightSwitch is a registered trademark of Microsoft Corporation