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

    Hi all! Long time no see.. I have some strange behavior in LS desktop app, well at least to me..  Lets say I have 3 tables:  - customers - categories - customers extended (for some settings) So "categories" are in one to many relationship with "customers" and "customers extended" is in one to zero or one with "customers".. I also have computed field "full name" in "customers extended" which method is simple: String.Format("{0} {1}", Me.Customer.Name, Me.Customer.Category.Name) In "customers" code behind I have method "Category_changed" which I use when user selects another category to set some defaults for specific category in "customers" table in example: Me.Customer.Discount = Me.Customer.Category.Discount Now whenever I open "Customers Extended list detail screen" it triggers "Category_changed" method from "customers" table and
    Read more...

    Hi,  I've got an error when exporting a report from LS to Word. I have a table named (Products), with a field named TITLE i've created a word, with Table. I would like to export to these table, only the MAIN TITLE for only selected lines. I tested 3 differents metods, all with same result. first one: Dim resumen = From a In Me.RelaciónReferencias Where a.IncluirTituloEnResumen = True                Dim TablaResumen As New List(Of OfficeIntegration. Read more...

    How does one completely uninstall a Lightswitch application? (not visual studio) As an example, if one changes the digital certificate, then Lightswitch cannot do the automatic update. Sometimes when you delete from Add / Remove Programs, the application does not completely uninstall. Any examples / instructions would be excellent. Thank you, Bill
    Read more...

    Hopefully an easy one to answer - what's the recommended method for forcing upper case field entry in the HTML client? Thanks, Chris
    Read more...

    1234

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