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

Read Only Fields
Last Post 16 Aug 2011 05:05 AM by admin. 2 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Andy DruryUser is Offline
New Member
New Member
Send Private Message
Posts:19
Avatar

--
16 Aug 2011 04:49 AM
    Very New to Light Switch and would appreciate any assistance

    Is it possible to have a field on a screen become read only dependant upon the value in certain fields, when its first loaded and during screen entry ?

    What would be the best way to force several fields on a screen to be entered dependant on the value of another. i,e when a status set to Order, require order date, order number etc.

    Regards

    Andy
    Michael WashingtonUser is Offline
    Send Private Message
    Posts:1065
    Avatar

    --
    16 Aug 2011 04:58 AM
    What would be the best way to force several fields on a screen to be entered dependant on the value of another. i,e when a status set to Order, require order date, order number etc.

    There are no code samples I can think of, but I would use a Silverlight Custom control. Some like to use FindControl in the LightSwitch page code behind to attach events to controls, but I think that you can end up with a lot of hard to decipher 'spaghetti code' (however it will also work).
    -----------
    Michael Washington
    http://LightSwitchHelpWebsite.com
    Michael WashingtonUser is Offline
    Send Private Message
    Posts:1065
    Avatar

    --
    16 Aug 2011 05:05 AM
    I just saw this thread that may help:
    http://social.msdn.microsoft.com/Fo...cf97cd2169
    -----------
    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 3 tables that I need to filter to when a user selects a value on a screen. Category table: CategoryId Manufacturer table: ManufacturerId CategoryId Model table: ModelId ManufacturerId I have 3 drop down boxes that when the user selects the Category, I want it to filter the Manufacturer and so on. How do I accomplish this? Thanks!
    Read more...

    I have an app with sensitive information that I need to track who logged in and what they viewed while within the application for auditing purposes.  I do not need to know what was changed as the information in the app is read only. Is there a way to do this in Lightswitch?
    Read more...

    I have a Web API action that uses ServerApplication context. I'm inserting some records and then calling context.DataWorkspace.ApplicationData.SaveChanges(). When I debug and hit this line and continue, the code exits from the action (not completing any of the code below it) and returns a 500 Internal Server error to my client. I get no error from the server code while debugging in Visual Studio. I'm following the syntax as it needs to be, but I can't return anything after the SaveChanges line is run. Any ideas on this one? I'm pretty much dead in my tracks until I figure this out.
    Read more...

    Hi! this extension disappeared somewhere when installing VS2013 updates.. It was present when having VS2013 update 1 and office developer tools march, but now with VS2013 update 3 and office developer july update it's gone, even when using latest 13.2.12 version which has support for xtrareports for lightswitch (from version 14.1 LS reports are gone).. so now there is no datasources for reports, no support for report data designer, cannot build project and la-la-la..  any ideas? tnx.. Kivito Nobody expects the Spanish Inquisition! (M.P.F.C.)
    Read more...

    Hi! Have a strange situation when using list - details screen in SL LS desktop application (latest VS2013 update3, but it was happened with update1 also and office developer tools installed).. so if I add master entity in main list and some details entities in details grid, it seems that LS get confused and I'm getting data-conflict message-box for details entity with statement that "other user deleted this record" with choice to delete record and cancel.. that happens for every detail that I tried to enter.. so it seems that I must enter master record -> save it, and ONLY THEN enter details records -> save details records.. as I can recall everything works fine in VS2012, and now it's so impractical.. Can someone confirm this please? Kivito Nobody expects the Spanish Inquisition! (M.P.F.C.)
    Read more...

    1234

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