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:1232
    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:1232
    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

    When duplicate values are entered in a field I've designated as a unique index, it returns the message "Save operation failed. The "Detector" record has duplicate key values." I'd like to change this message to something more understandable to the user. How do I do this? Thanks in advance.
    Read more...

    Just noticed that I have a details picker foreign key relation that renders as a search box on Add, on Edit it renders as a drop down and does not allow changes. I believe it used to work correctly. Any ideas of what could change the behavior on edit as opposed to add? This relation actually appears twice in two different details picker on the page. The first one still works fine, the second has the strange edit behavior. Any ideas? I looked at the lsml file and did not see any obvious difference. Thanks! Konrad U
    Read more...

    Execute Stored Procedure
    7/28/2015 2:50 PM
    Hi guys, What is the best practice to execute a stored procedure? By the way the stored procedure below is executing a SSIS package.  Any step by step instructions would be great. Unfortunately my last project I worked on Lightswitch was 5 years ago used VS 2010 I'm currently using VS2013 for this project, I'm still trying to wrap my head around it :-)  declare @output_execution_id bigint exec [dbo].[ExecuteMoveDataToLegacy] @output_execution_id output Thank you  Codernater
    Read more...

    OData in LightSwitch
    7/27/2015 7:39 AM
    Hi all, I'm a newer. I want to know what is OData? And how can I use it in LightSwitch application?Thank you very much.
    Read more...

    how to create custom query
    7/27/2015 7:33 AM
    I want to create a page that I can search data from database with my own conditions in LightSwitch application.
    Read more...

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