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

    DropUp Menue for Buttons
    9/27/2016 8:04 AM
    Hello, I'm working on a HTML-Client Lightswitch project with VS 2013 and have a question. I am new in programming and designing and have no idea how to solve it. I have created some tables and screens and add commands in the command bar, but when I saw the result in browser I was wondering if it is possible to create a DropUp Menue where all the commands are inside, so that you have one button which show me the other commands. I have one button to add a record, one to delete it, one to search through my records and one to edit my records.If it is possible, I want one button "Options" which give me the possibility to choose between the other commands. I hope you understand me and can help me out. Regards, AHleonIT
    Read more...

    Hi, I'm not sure if submitting question in right forum (LightSwitch or TFS). In my company we have a solution developed in Visual Studio 2012 LightSwitch and into App.Server layer we consume an ApplicationDataService.svc (OData) and a WCF Service. I created a build definition into TFS to schedule a daily building and publishing of App. At first Build Definition worked perfectly but for some reasons it runs into an error whose log results shows among others, as follows: PrepareForBuild: Creando directorio "bin\Debug\". LSSvcGenerators: Quitando el directorio "C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.Server\GeneratedArtifacts\GeneratedSvcFiles\". Creando directorio "C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.Server\GeneratedArtifacts\GeneratedSvcFiles\". Generación completada Copiando el archivo de
    Read more...

    This is actually a note to the community, not a question. related archived & unanswered post If you attempt to post to a LOB field (CLOB, BLOB, NCLOB etc.), lightswitch will reply with an error because of the expected datatype. (ex: ORA-00932: inconsistent datatypes: expected - got NCLOB). This is because Lightswitch is expecting a RowVersion field for concurrency like in a SQL Server DB. A workaround is to modify the .lsml file for the table located in project folder > Server > DataSources > [your db name] > [your table name with LOB field]. Locate the table and add this tag '<UseForConcurrency />' under the field you use for the primary key. Lightswitch will now allow you to enter the data without the error. <KeyProperty Name="MyKeyField_PK" PropertyType=":Int32"> <KeyProperty.Attributes> <Hidden /> <Required /> <NotSearchable />
    Read more...

    i just learn LightSwitch and read some articles guide (like Beth Massi 's post...), follow some guide like https://blogs.msdn.microsoft.com/lightswitch/2012/01/12/drop-down-lists-tips-tricks-beth-massi/  .... In My Visual Stuido 2015, LightSwitch HTML, i dont find any control like "Data Modal Picker", just only "Detail Picker", and cant find option like "Support Search/Sorting", only Support Paging. So in my build html client "BrowseCities" page, when i click State, it popup list State,  but i cant see the Search option above the list  So.... my Visual Studio or my project missing something? or LightsSwitch doesn't support it to HTML Client?
    Read more...

    hello does anyone has a VS LightSwitch Security Admin running in the browser? i tryed it with the MVC version (see title, http://lightswitchhelpwebsite.com/Blog/tabid/61/EntryId/3281/An-HTML-MVC-LightSwitch-Security-Administration.aspx) from the LS help website. well this works so fare in the localhost in VS 2015, but in the published version in azure or local server the admin link does not appear when i log in as an admin. and when i use the direct URL to the admin page no users are listed even when they are in the SQL db! has anyone a Idee what the Problem is and how to fix this? thanks for your support marcel
    Read more...

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