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

    Hello there!  I have two databases, one of which has a table of budgets. The other has a relation table phone calls.  When I see the details screen of budgets, the grid of phone calls I can not add / edit / delete.  As I can make them work?
    Read more...

    The strangest thing is happening with my LS application. I created a regular Browse screen to my HTML Client Project, added it to Screen Navigation, run, and when I click on it, nothing happens. It does not open. So I thought 'this is odd'. I deleted it, created a new one, with no controls or screen properties whatsoever, just the basic screen as LS initially creates it. Tried again. Same result. Also I tried creating another one, with data. Could not navigate to it. That's not it!: I added a button to another screen, set the Tap action to open the newly created "almost empty" screen (showBrowseXYZ). When I start the application, the button is disabled!. If I change the action to show any other screen, it appears enabled and works as expected. I tried clean & rebuild, restarting Visual Studio (2013 update 2). I don't know what else to do. I really need some help here. thanks. Nicolás Lope de Barrios If you found this post helpful, please
    Read more...

    Any luck with solving this? I am trying to publish from another machine and I keep getting this error:  The "DecryptPassword" task failed unexpectedly. And I know that the connection string is encrypted in the user file, but I don't understand why publish would fail. I'm using the same windows user login to publish from the new machine as well. 
    Read more...

    1. VS2013,  project LightSwitch. I would like to select a file and write it location in a string database field. Made a button and wrote the code to call file open dialog: using System.Collections.Generic; using Microsoft.LightSwitch; using Microsoft.LightSwitch.Framework.Client; using Microsoft.LightSwitch.Presentation; using Microsoft.LightSwitch.Presentation.Extensions; using System.Windows.Controls; namespace LightSwitchApplication { public partial class voyages_tableListDetail { partial void Method_Execute() { OpenFileDialog dlgopen = new OpenFileDialog(); dlgopen.Filter = "All file|*.*|Files jpeg|*.jpg|Files png|*.png"; } } } Get the error: "This action can only be performed on the UI thread." Can you please tell how to fix the error. 2.Pressing the "+" create a form for data entry and editing images_voyage_AddAndEditNew. As I understand it,
    Read more...

    I am working on the permissions in our lightswitch HTML c# application. We have a code : filter = e => e.customernumber == this.Application.User.Name; So if a customer logs into the application they can only see theire own rows. (The username is the customer number) But when we log in as administrator, ofcourse we cannot see any rows anymore. We are looking to complete the code, that when we log in as administrator, we can see all rows. When customer log in with theire customernumber, they have to see only theire rows.
    Read more...

    1234

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