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:1065
    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 have 3 tables that I need to filter to when a user selects a value on a screen. Category table: CategoryId Manufacturer table: ManufacturerId CategoryId Model table: ModelId ManufacturerId I have 3 drop down boxes that when the user selects the Category, I want it to filter the Manufacturer and so on. How do I accomplish this? Thanks!
    Read more...

    I have an app with sensitive information that I need to track who logged in and what they viewed while within the application for auditing purposes.  I do not need to know what was changed as the information in the app is read only. Is there a way to do this in Lightswitch?
    Read more...

    I have a Web API action that uses ServerApplication context. I'm inserting some records and then calling context.DataWorkspace.ApplicationData.SaveChanges(). When I debug and hit this line and continue, the code exits from the action (not completing any of the code below it) and returns a 500 Internal Server error to my client. I get no error from the server code while debugging in Visual Studio. I'm following the syntax as it needs to be, but I can't return anything after the SaveChanges line is run. Any ideas on this one? I'm pretty much dead in my tracks until I figure this out.
    Read more...

    Hi! this extension disappeared somewhere when installing VS2013 updates.. It was present when having VS2013 update 1 and office developer tools march, but now with VS2013 update 3 and office developer july update it's gone, even when using latest 13.2.12 version which has support for xtrareports for lightswitch (from version 14.1 LS reports are gone).. so now there is no datasources for reports, no support for report data designer, cannot build project and la-la-la..  any ideas? tnx.. Kivito Nobody expects the Spanish Inquisition! (M.P.F.C.)
    Read more...

    Hi! Have a strange situation when using list - details screen in SL LS desktop application (latest VS2013 update3, but it was happened with update1 also and office developer tools installed).. so if I add master entity in main list and some details entities in details grid, it seems that LS get confused and I'm getting data-conflict message-box for details entity with statement that "other user deleted this record" with choice to delete record and cancel.. that happens for every detail that I tried to enter.. so it seems that I must enter master record -> save it, and ONLY THEN enter details records -> save details records.. as I can recall everything works fine in VS2012, and now it's so impractical.. Can someone confirm this please? Kivito Nobody expects the Spanish Inquisition! (M.P.F.C.)
    Read more...

    1234

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