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 have been looking over forums and documentation, but I still can't seem to get it to work. I have a entity called "Party." It has multiple 1 to 0..1 relationships, such as "Carrier", "Producer", "Brokerage", "Insured", "Beneficiary". The reason why is that a "Party" can be multiple things. I can be a producer, an insured, and a beneficiary all at once. Or I can just be an insured. The Party table grabs general information on a party and each of the 0..1 relationships further define that party.  Anyways... I want to be able to create a party, and then create any child records associated with it. Maybe just a carrier. Maybe a insured and a beneficiary. I get the use of a button to create the dependent record. But for some reason, it is just not working. partialvoidAddCarrier_Execute() { this.PartyProperty.Carrier = new Read more...

    greetings all - I've seen many posts that "SHOULD" answer my question - but i can not seem to get this to work...help please. I have a "master screen" that has a button, "Show Select Worksheet" and collection, "ScoreCard1MockupEntries"... When that button is taped, a new view is  launched as a dialog... myapp.ViewMockups.ShowSelectWorkSheet_execute = function (screen) { // Write code here. myapp.showSelectWorksheet(null, { afterClosed: function () { screen.ScoreCard1MockupEntries.load(); } }); }; The view has a button that kicks of a long running process, server side, via web api commanding... myapp.SelectWorksheet.ImportWorksheet_execute = function (screen) { // Write code here. var paramWorksheetName = screen.WorksheetNames.selectedItem.Name; //// disable button after initial click... screen.findContentItem("ImportWorksheet").isEnabled = false;
    Read more...

    I'll see if I can explain this... We have an app with a Supervisor/Employee parent-child relationship.   The way it's set up is we have an Employee table with a [0..1] relationship on the same Employee table, representing the possible supervisor an employee might have.   On the Add/Edit Employee screen I can drag the Supervisor field from the visual collection onto the display and I'll get a modal picker that allows me to choose a supervisor for that employee.  That works fine as far as functionality is concerned; I can pick any employee and assign them as the supervisor for the current employee I'm editing or adding. However, nothing prevents someone picking an employee as that same employee's supervisor.  What I'd really like is to have the modal picker show all employees *except* the one I'm currently editing.  How might I do this?
    Read more...

    Hi,      I am using visual studio 2013. I used file zilla to upload my light switch html client app (project folders) to my arvixe shared hosting. when i tried to browse to the url, i got the error "Failed to load model: /msls/model_failed_server_1args".     I have a custom error tracking system that sent me an email saying "Microsoft.LightSwitch.SecurityData.svc does not exist".     Is it the "Visual studio Publish wizard" that installs this service? or is this something i can manually install somewhere in the production environmnet? or is this something my arvixe shared host provider needs to install?    Or maybe i just need to focus on publishing through visual studio? When i tried the publication, I get an error that says i am connected to the server, but not suthorized. i am using the arvixe publication user and password? Does my html client project folder need to be
    Read more...

    Dear All, Iam new to C#, I almost worked for 2 month with C#. I need a help with the follwoing code. public partial class Part_2_CustomerItemDetail { partial void PDF_Execute() { vw_CustLedgerEntryItem1 entryItem = this.vw_CustLedgerEntry.SelectedItem; InvGetPDF2RequestBody reqBody = new InvGetPDF2RequestBody( entryItem.Document_No_ , Int16.Parse(entryItem.Report_Type) , "DynNavHRS" , @"\\p-nav-as-1\NavUserTemp\tma04" , false , false , "DE" , false , "" , "" , entryItem.Company , 1 , false); InvGetPDF2Request req = new InvGetPDF2Request(reqBody); HRSReportServiceSoapClient wsHRS = new HRSReportServiceSoapClient(); wsHRS.InvGetPDF2Completed += new
    Read more...

    1234

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