﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - Crosslight - Crosslight Form Builder - Nullables</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Form-Builder---Nullables/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Crosslight Form Builder - Nullables</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Form-Builder---Nullables/</link><pubDate>Tue, 10 May 2016 01:41:46 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Glad to hear the good news.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Crosslight Form Builder - Nullables</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Form-Builder---Nullables/</link><pubDate>Mon, 09 May 2016 15:07:56 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Yudi,&lt;/p&gt;&lt;p&gt;I applied the hotfix and tested again. The problem seems to be solved. Using my culture it works as intended. Hopefully it works in any other culture as well.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item><item><title>Crosslight Form Builder - Nullables</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Form-Builder---Nullables/</link><pubDate>Mon, 09 May 2016 06:56:04 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Hello Thomas,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Thank you for the detail explanation. I have re-test the scenario and make sure that the test device using German culture (set Settings &amp;gt; Language &amp;amp; input &amp;gt; Language to "Deutsch").&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;However, no error persist after clear the "Amount" field and set the focus to the text field above.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I have created a worklog for the Crosslight-Android development team to correctly show null value after "Amount" field is cleared. The report is filed under CROS-1128.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I'll keep this thread updated with any news I heard from the team regarding the progress of CROS-1128.&lt;/span&gt;&lt;/p&gt;
&lt;br&gt;&lt;br&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;&lt;strong&gt;Edited on May 9, 2016 3:30 AM&lt;br&gt;Reason: Update recent progress of CROS-1128&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Nightly-build hotfix for CROS-1128 is now available in NuGet. Per my test, user are now be able to clear the "Amount" field and left the field empty (not revert back to previous valid value) when set the focus to the text field above.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Please give it a spin and let us know how it works in your end.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Crosslight Form Builder - Nullables</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Form-Builder---Nullables/</link><pubDate>Fri, 06 May 2016 13:58:34 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Yudi,&lt;/p&gt;&lt;p&gt;this may work at your end and with your settings, but it does not work with my settings.&lt;/p&gt;&lt;p&gt;Unfortunately, I cannot record my screen like you do, so I try to describe as good as I can.&lt;/p&gt;&lt;p&gt;The first time I enter 123.50 into the empty Amount field. Then I set the focus to the text field above. No error and value stays as I entered it. I set the focus to the Amount field again. Then I clear the Amount field and set the focus to the text field above. The Amount field is now not empty. It shows 123,50 (! comma as decimal delimiter).&lt;/p&gt;&lt;p&gt;I think, this has to do with the culture settings as I wrote some posts before. My culture is German. Having different culture settings can cause problems when converting values. In one culture the dot (.) is the decimal delimiter and in another culture the comma (,) is the decimal delimiter. When you internally do a conversion and maybe a "TyrParse" you must handle this. Not matter what the decimal delimiter is, the conversion must not fail.&lt;/p&gt;&lt;p&gt;Please, try again with a different culture.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item><item><title>Crosslight Form Builder - Nullables</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Form-Builder---Nullables/</link><pubDate>Tue, 03 May 2016 08:28:27 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;blockquote&gt;&lt;p&gt;I downloaded the FormBuilder sample but I could not find the code you changed.&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Sorry if my previous reply causing misunderstanding. Here are the detail steps that I did to test the reported problem:&lt;/span&gt;&lt;/p&gt;&lt;ol style="color: #1f497d;"&gt;&lt;li&gt;Open Crosslight FormBuilder sample in Xamarin Studio or Visual Studio.&lt;/li&gt;&lt;li&gt;Open TextField.cs (FormBuilderSamples.Core/Models/Reference/Editors/TextField.cs).&lt;/li&gt;&lt;li&gt;Make changes into the class by adding: "Amount" nullable property; add contants AmountPropertyMetadata; and initialize Amount property to null in the contructor.&lt;/li&gt;&lt;li&gt;Open TextField.Form.cs (FormBuilderSamples.Core/Models/Reference/Editors/TextField.Form.cs).&lt;/li&gt;&lt;li&gt;Make changes into the class by: enabling DetailOnlySection; add Amount metadata into the DetailOnlySection.&lt;/li&gt;&lt;li&gt;Save the changes.&lt;/li&gt;&lt;li&gt;Test the project on LG Nexus 4 running Android 5.1.1 Lollipop.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I enclosed the video which shows how the test was conducted on my device. Please find the video and the modified sample in the attachment and let me know if you find anything that I might miss during my attempt to reproduce the reported problem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Note: The modified sample is uploaded in &lt;a href="https://onedrive.live.com/download?resid=A29317908CEA783A!486&amp;amp;authkey=!AEmp_oeNUn3ok2w&amp;amp;ithint=file%2czip" target="_blank"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Crosslight Form Builder - Nullables</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Form-Builder---Nullables/</link><pubDate>Thu, 28 Apr 2016 06:56:29 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Yudi,&lt;/p&gt;&lt;p&gt;I downloaded the FormBuilder sample but I could not find the code you changed. Searching for a nullable, I&amp;nbsp;just found a DateTime?.&lt;/p&gt;&lt;p&gt;So, I upgraded my code with Crosslight 5.0.5000.626-exp, but nothing changed. I still get the errors. Maybe it is a cultural problem, too. The decimal delimiter can be "." (123.45)&amp;nbsp;or "," (123,45). I think you have to include this in the conversion code.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item><item><title>Crosslight Form Builder - Nullables</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Form-Builder---Nullables/</link><pubDate>Wed, 27 Apr 2016 08:26:18 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Hi Thomas,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I implemented the changes into &lt;a href="http://git.intersoftsolutions.com/projects/CS/repos/basic-form-builder/browse" target="_blank"&gt;Crosslight FormBuilder sample&lt;/a&gt; and follow the steps below:&lt;/span&gt;&lt;/p&gt;
&lt;ol style="color: #1f497d;"&gt;&lt;li&gt;After the form appear, the Amount field is empty, showing only the placeholder text ("Amount").&lt;/li&gt;&lt;li&gt;Then enter an amount, 123.45.&lt;/li&gt;&lt;li&gt;Leave the field.&lt;/li&gt;&lt;li&gt;Get back to the amount field and clear the amount.&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;No error persist when performing the above steps. For your information, I'm using Crosslight 5.0.5000.626-experimental from NuGet.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;If you are using the latest stable version (5.0.5000.607), could you please try to update the NuGet package and let me know the result?&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Crosslight Form Builder - Nullables</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Form-Builder---Nullables/</link><pubDate>Fri, 22 Apr 2016 11:48:56 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Crosslight Support,&lt;/p&gt;&lt;p&gt;I have a question concerning nullables and Crosslight form builder.&lt;/p&gt;&lt;p&gt;I have the following code in my model:&lt;/p&gt;&lt;p&gt;public double? Amount&lt;br&gt;{&lt;br&gt;get&lt;br&gt;{&lt;br&gt; return (double?)this.GetValue(AmountPropertyMetadata);&lt;br&gt;}&lt;br&gt;set&lt;br&gt;{&lt;br&gt; this.SetValue(AmountPropertyMetadata, value);&lt;br&gt;}&lt;br&gt;}&lt;/p&gt;&lt;p&gt;public static EntityProperty AmountPropertyMetadata = EntityMetadata.Register(new DataEntityProperty&amp;lt;MyClass, double?&amp;gt;("Amount", true, false, false, "", "", null, true, false, false));&lt;/p&gt;&lt;p&gt;And the belonging metadata property:&lt;/p&gt;&lt;p&gt;[Editor(EditorType.NumericTextField)]&lt;br&gt;[StringInput(Placeholder = "Amount")]&lt;br&gt;[Layout(Style = LayoutStyle.DetailOnly)]&lt;br&gt;public static double? Amount;&lt;/p&gt;&lt;p&gt;I want to use a nullable data type, because when I create a new entry of MyClass and enter the Amount field in the UI, I don't want to clear the "0" as default entry before I can enter the real amount. I think this is not a good user experience.&lt;/p&gt;&lt;p&gt;Doing this with the code above works partly. When creating a new entry the form pops up and the Amount field is empty, showing only the placeholder text. Then I enter an amount, I leave the field, I get back to the amount field and clear the amount.&lt;/p&gt;&lt;p&gt;The result is an exception (see screenshot) while debugging and the value entered before remains in the amount field. But I want the have a clean amount field with the placeholder text.&lt;/p&gt;&lt;p&gt;Do you have any advice or fix?&lt;/p&gt;&lt;p&gt;Thanks,&lt;br&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item></channel></rss>