Thanks for this great extension. I was using the Percentage data type as it works great. However here are some of the observations I see happening: 1) When entering "-10", the on screen displays as "-10" but the DB records it as 0 2) I used place validation codes on a percentage property at the Entity table. When an error is triggered, the red box highlight for that percentage data type field does not show
Thank you! So this means that the problems that Spaso mentions aren't fixed in the latest version? I'll definitely have a look at what's going on then. I hadn't heard back & assumed that I had fixed the problems.
Yann... Man... is very cool your work. I´m From Brasil... and my english is very bad ok. But... I Try. Where i get one exemple about password input field ? In my test... show field is ok... but when input is not work.
Hi Yann I noticed when using your controls (Percent and ISBN) in Screen in conjunction with Luminous Themes (Blue or Purple) that foreground colour are not white as for other control type that originally provided by Microsoft (and also they are not rounded with thin line when not focused). Foreground colour for place to type value are blue or purple Also, in properties change labels because there are without spaces (DecimalPlaces to Decimal Places; TrimZeros to Trim Zeros). I didn't find out how to store less than 100% value (e.g. 25%). When my input is 1, I got 100,00%, when input is 1.1 I got 1.100,00%, when 1,1 I got 1.100,00% Please, find these as suggestions to improve your product as much as possible. (5 stars - of course, without any doubt) I'm really aware that this is the 1.0.x version Best regards Spaso Lazarevic
Thank you for the excellent feedback! I only had time to do very basic testing. Your observations will be very helpful for improving the controls. It's much easier to fix something when someone kindly points out what's "wrong".
For 25% you should just be able to type "25". Values like "1", "25", "100", "0.5", "0.25", "1.1" all worked fine for me ("1%", "25%", "100%", "0.5%", "0.25%", "1.1%"). I'm assuming that the different culture could be causing a problem. I'll have to look into that as well.
These problems should now be fixed in Version 1.1 - thanks again for both using my extension, & letting me know about the problems. Sorry it's taken this long to get them fixed. I hope that you find the two new business types useful as well.
I have a 2012 LS solution already with some extensions, when I added the Luminous Types to use the Password Type and started the application, I got a white screen and nothing happens, remove the extension project and everything back up and running, the only hint that I is
"A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll
An exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll but was not handled in user code "
Could you help me?
I'm so sorry. Somehow I didn't get the notification of your question. I always try to answer as soon as I can.
Someone had reported a problem to me directly, so I'm actually working on getting all the types to work in LS 2012 right now (which is how I ended up seeing your question). I should have an updated version by Monday at the latest (earlier if I can).
I am working with Visual Studio 2012. When I enable your business types extension I get this error:
Error launching the screen. Error : Could not load file or assembly 'System.Xml.Serialization, Version=18.104.22.168, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The requested assembly version conflicts with what is already bound in the app domain or specified in the manifest. (Exception from HRESULT: 0x80131053)
By the way, I am Reading your book "Pro Visual Studio LightSwitch 2011 Development". This book is very good.
Hi Guys (both Victor & Jean Pierre),
I did find the problem, so I will be able to fix it, I've just been off sick for about a week. I'll let you both know here, when I've uploaded the fixed version. Thanks for your support & patience.
I'm really glad you're finding the book helpful.
As long as LightSwitch sees it as a String property, it shouldn't matter what the backend data type is. Are you not able to change a String property to a Link? Are you sure you've activated the extension for the project you want to use it in?
Well now that I know you're around, I'm getting a 'Operation is not valid due to the current state of the object.' when I click on the link, is there a specific format I need? I suppose the links don't work in a web app?
Just a normal URL, such as http://lightswitchcentral.net.au, or http://www.lightswitchcentral.net.au
I don't use LightSwitch web applications myself, & I don't remember if I tried the extension in one. But I haven't had anyone say that it doesn't work in a web application.
I'm also getting the "Operation is not valid due to the current state of the object." error. The contents of the nvarchar(500) column is "http://www.yahoo.com" and I'm clicking the link symbol next to the textbox on a ListDetails screen.
I installed the vsx, restarted Visual Studio, ticked the extension, but I don't get any of these controls in my text field "selectors" (the dropdown that allows you to select a control type. Any ideas?
I have a problem with the percentages when using regional configuration in Spanish. If I input 2, it will turn out as 200%, if I inpput 20, it will turn itself again into 200%. If I use English configuration on my OS system and regional settings, everything works fine.
Do you know if there is a workaround for this?
Thanks for this extension and I use it quite a bit for my little project. My question is on the usage of the Percentage Editor in a Modal Window and it is a familiar problem that we spoke about before. Thanks to Burt Bielicki, he pointed out a way to prevent the modal window from closing when the Enter key is pressed.
I use your Percentage data type and the Percentage Editor in a modal window. With the method described in the forum thread above, I am able to prevent the Enter key from closing the modal window for LightSwitch supplied controls. However that same method does not stop the Enter key pressed on the Percentage Editor.
Do you have any thoughts about why this is the case and if there is something I can explore?
Thanks CT. I haven't had much time to look into any issues due to the book, bt I shouuld be able to have a look & see if I can get it to do what you want. If buyilt-in control can do it, I should be able to emulate that.
Issue 1) I entered "9783161484100" (the sample ISBN-13 you provide), I get the validation error "ISBN-13 numbers are not allowed"; 2) If I enter just "9", I get the validation error "A valid ISBN number is " with no sample number.