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:1206
    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 just installed VS2013 and it could not install Lightswitch because it could not find the files lightswitchcore.mse and lightswitchcoreres.msi.  Where do I find these files so that I can install Lightswitch fully in the VS2013?
    Read more...

    Hi LightSwitch Team, while changes into a table and underlying Query (into the Designer) of the LightSwitch Application occur something wrong and Visual Studio 2013 (Premium with Update 4) crashed. After that I can not build the LightSwitch Project. The errors are: Error 2 Could not load the application definition. Root element of file is not a 'ModelFragment' or a module.  0 1  Error 1 Root element is missing. <ProjectPath>\Server\DataSources\ApplicationData\Query1.lsml 0 1  The all solution can not build (the Build Task must be killed by using Task Manager) anymore. I've tried everything: 1. Tried to remove the last added Query1 (see above) 2. Undo Pending Changes 3. Get Latest Version with overriding all files Nothing worked! I discovered, that the ApplicationDefinition.lsml does not exist anymore. Who deleted it and where it is now (I searched the all hard drive, it is
    Read more...

    When querying data with ServerApplicationContext, the examples I have seen do something like this: var query = ctx.DataWorkspace.DataSource.Table.GetQuery().Execute(); My problem is that this returns ALL of the entities as IEnumerable.  Is it possible to change this to IQueryable<T> or at least apply a Where clause before executing the query?
    Read more...

    Money Editor default value
    3/23/2015 8:45 AM
    Hi, I'm really new in Lightswitch, and I want to set more money editor input box default value to "0" How can I do it? Please help! Thanks, Mykie
    Read more...

    In my case the Filter is an int value. I want the user to be able to enter the values like this (1,2,3,4,5,..). I applied this query with an string value and it working just fine if (Country != null) { String[] Country_Array = Read more...

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