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 06: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 05: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:1110
    Avatar

    --
    16 Aug 2011 05: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:1110
    Avatar

    --
    16 Aug 2011 06: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

    Inactivity timeout
    11/26/2014 1:20 PM
    All,  I still didn't find a solution for the inactivity timout. After 5 minutes of inactivity, the authentication coockie is timed out. This results in the same problem for the lightswitch and the html client. I found a work around for the Silverlight client in creating a "hearbeat" timer that every 30 seconds does a simple query to the backend. I guess I can do something similar in the html client creating a time in the create event of the home page that does a similar simple query to the backend. this does not solve however the issue when I click the "remember me next time" in the logon page. Closing the browser and restarting again within 5 minutes works fine. I get automatically logged in, but waiting for more than 5 minutes before opening a new browser and navigating to the app doesn't automatically in. I guess the persistens authentication coockie is not valid anymore on the server. I thought the timout setting on the Forms authentication in the
    Read more...

    Hi Community,  Whats the best way of dealing with a featurerequest, where the screen is a editable screen, but where the user should be able to open up other screens?  The edit screen should show the navigational menu. regards Phero
    Read more...

    I've developed my first LightSwitch application. It's a web app. I developed it on my laptop. I want to host the app on my desktop Windows 8.1 Pro machine in my home network, as that's the closest thing I've got to a "server". I used Visual Studio 2013 to develop it, and it's using a SQL 2008 R2 Developer Edition database on the desktop. According to the MSDN article Deploying LightSwitch Applications I can publish it to my "server", so long as I've installed the Web Platform Installer 4.5, this is according to another MSDN article titled How to: Configure a Server to Host LightSwitch Applications. I tried doing that on my Windows 8.1 desktop, but when I got to the point of running the Web Platform Installer, it showed me that it was version 5.0; not 4.5 as the instructions said. Now, I'm guessing that is OK. I went to the Products tab and see that there isn't
    Read more...

    Hi, My lightswitch desktop application has stopped working. I am getting the following error when I try to start the application: "One or more active X controls could not be displayed because either: 1. Your current security settings prohibit running ActiveX controls on this page, or 2. You have blocked a publisher of one of the controls. " I have already tried the recommendation mentioned here Link My registry already has the right settings. Any help is highly appreciated. Regards, Sathya. 
    Read more...

    All, I have a LightSwitch project that successfully published to Azure at least 30 times. I am getting a publish error. (I've already done Dave's bankruptcy process.) Unfortunately, this is the 2nd time I've received this error. The first time was after installing vs2013 Update 3. That time, I resolved the matter by uninstalling update 3. This time, I need something in Update 4 which I've just installed but unfortunately, I am getting the following error when publishing to Azure: ----------------------------------------------------------------------- Error 1 The "CSPack" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "C:\Program Files
    Read more...

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