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'm using the latest HTML client (whichever update was released in March, I have it installed on VS 2013) and trying to see if the following is possible.  I have two tables, Parent and Child, in a one to many relationship. Can I somehow 'pass' the Parent entity to the Child's AddEditNew screen, as a parameter, then on that Add/Edit Child screen have a button that does something like this?  (pseudo code ahead)     myapp.AddEditChild.SaveThisChild_execute = function (screen) {    var newChild = new myapp.Child();          newChild.Parent = screen.Parent; //how do you 'pass' the parent to this screen?          myapp.ApplyChanges();         }; That's the idea at least.  Trying to see what's possible and stretch my understanding of the HTML client and its add/edit/save pipeline as much as I can. I have to admit that one of my weak points
    Read more...

    I've been working on a sample LS app using the latest VS 2013 updates.  Intrinsic database and HTML client. I have an Azure account I just signed up for and am trying to get this in the cloud as easily as possible.  At this stage security etc have no role in the app.  Could someone point me to a page/blog/how-to on the best way of doing this?  I've been reading up and it seems I have to right-click the server and client apps separately and tell them to publish to Azure?  Is there a solution-wide way of publishing both or a best-practice for doing each? In VS 2013 I'm being prompted for all kinds of Azure/Windows installers when I try to publish.  Not sure which of those I need specifically-- by that I mean I see options for Azure/Node and Azure/PHP publishing in the list of options, which I certainly don't need. And all told the options all add up to 450MB for me to download, so I'd like to keep the footprint as small as possible. 
    Read more...

    Hi, I'm using VS LightSwitch 2012 and want to hide a menu from a user group and not just a menu item, for example like the way the Administration menu is hidden if you are not in the Administrator Group. Up to now all the threads I found handles and explains only the menu items  even though the question was hiding the menu and not just menu items. Does anyone know how to do that? Thanx, Marius
    Read more...

    I'm writing a Lightswitch HTML app that allows users to upload and view an image associated with a person. I've split the image out into it's own table and given it a 0.1 - 1 relationship with the Person table with the idea that if I don't include the image in the Person browse screen, my records would load much faster. Am I correct in this assessment or is Lightswitch loading the image anyway because of the relationship I declared with the Person table? (I'm not familiar with the data envelope choice Lightswitch makes.) Also, if it is loading the image anyway, then how would you recommend I ensure screen responsiveness for a Person Browse screen? Thanks. - Mike
    Read more...

    Getting started with RIA
    4/11/2014 4:09 PM
    I'm still baffled by RIA. Never done anything with WCF and running into limitations of having to return data in exact shape as entities. have worked around some of these with SQL views due to time limitations.  I have a few dumb questions. I read many of the links about lightswitch and RIA, but don't understand much of the terminology (e.g. Domain services), so I'm lost almost straight away. I'm willing to buy a book or take a course on plural sight or wherever, but want to make sure i choose the right one as there are very few books specific to LS and I don't want to waste time learning the wrong subject. I have a desktop silverlight app that's deployed via a UNC path. What's required to use RIA? I'm assuming it's going to involve having to use IIS and creating a WCF service(?) on the IIS server to consume the http calls. Or have I got completely wrong, is RIA services something that runs in the silverlight app (and still sends call to SQL server --not via
    Read more...

    1234

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