You are here:   Forum
Register   |  Login

 

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 06: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 05: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:1297
    Avatar

    --
    21 May 2012 06: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

    Hello all, I'm trying to set some default values for each new row added to a editable datagrid but I can't seem to figure out what event occurs when the new row is added? Thanks Dave Dave Barker
    Read more...

    We have created a number of light SL applications in Visual Studio 2013. I wonder if it is worth upgrading them to VS 2015? Are there any new features in the new version, or other reasons that make the upgrade? Do you have any other comments or things we should consider? Thanks in advance!
    Read more...

    I'm using a querystring as a parameter to filter records, so that an email link automatically opens the app to the required record. In development when debugging, the url with querystring is like: http://localhost:59944/HTMLClient/#10  and this works great. But after deploying to the production IIS webserver, where you'd think the url should be:  https://app.domain.com/#10 IIS automatically redirects and changes the url to: https://app.domain.com/HTMLClient/default.htm I believe these different development vs. production url's are normal and this has never been a problem with my other LS HTML apps that don't use querystrings. But, it kills this one, and I can't figure out a workaround. Will appreciate any suggestions, thank you. Stephen
    Read more...

    CBA in Visua Studio 2015
    10/26/2016 4:00 AM
    Hello, I have some CBA implemented using Visual Studio 2013, does anyone had success implementing CBA in Visual Studio 2015? Thank you so much
    Read more...

    Hello, I am trying to build in some validation, and cancel all navigation and/or applying of changes on a dialog AddEditScreen, depending on the value of a specific content item. I am also using SweetAlert. Here is my code... myapp.AddEditIncident.beforeApplyChanges = function (screen) { if (screen.Incident.StrRepChargeTo == null) { swal({ title: "Make a selection!", text: "Please choose a Charge To location...", type: "success", showCancelButton: false, showConfirmButton: true, cancelButtonText: "OK!", confirmButtonText: "OK!" }, function () { //myapp.cancelChanges().then(function () { // myapp.navigateBack(); }) }) } } Everything works, except LS starts the page navigation even before the beforeApplyChanges
    Read more...

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