{"action":"created","issue":{"url":"https://api.github.com/repos/volkanceylan/Serenity/issues/739","repository_url":"https://api.github.com/repos/volkanceylan/Serenity","labels_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/739/labels{/name}","comments_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/739/comments","events_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/739/events","html_url":"https://github.com/volkanceylan/Serenity/issues/739","id":157194177,"number":739,"title":"xyzDialog.cs; trailing spaces in a field are trimmed off when they are required; how to disable trimming","user":{"login":"JohnRanger","id":2699447,"avatar_url":"https://avatars.githubusercontent.com/u/2699447?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnRanger","html_url":"https://github.com/JohnRanger","followers_url":"https://api.github.com/users/JohnRanger/followers","following_url":"https://api.github.com/users/JohnRanger/following{/other_user}","gists_url":"https://api.github.com/users/JohnRanger/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnRanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnRanger/subscriptions","organizations_url":"https://api.github.com/users/JohnRanger/orgs","repos_url":"https://api.github.com/users/JohnRanger/repos","events_url":"https://api.github.com/users/JohnRanger/events{/privacy}","received_events_url":"https://api.github.com/users/JohnRanger/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-27T12:18:20Z","updated_at":"2016-05-29T15:54:53Z","closed_at":"2016-05-29T15:37:55Z","body":"Hi JaiQ,\r\n\r\nJohn Ranger here again with an issue.\r\n\r\n- [X ] Check Serenity Users Guide, including how-to and troubleshooting sections\r\n- [ ] Check Serenity WIKI in GitHub\r\n- [ X] Please have a look CHANGELOG.md for directions on breaking changes\r\n- [ X] Try a search for previous issues here, that might have similar case\r\n- [X] Check your browsers's CONSOLE tab for errors, and include them here\r\n- [X] Please report with as many details as possible to help us identify the problem\r\n\r\n### Configuration (Serenity / Serene version, OS, Browser used etc.)\r\n- Serenity V1.9.13\r\n- Any browser\r\n- SQL 2012\r\n\r\n### Expected behavior\r\nContent which Comes from DB and is displayed within a field in a Dialog (even with leading/trailing spaces) and the Content of the field is not modified and then the update button is clicked - must never be trimmed.\r\n\r\nWhy would I want/Need that? For example the SerialNumber field of a VMware virtual machine has unfortunately a trailing space and I Need to store this unmodified.\r\n\r\n### Actual behavior\r\nContent loaded from DB into a field in a Dialog (Content has trailing spaces) is properly displayed (has the trailing spaces). When the update button is clicked, the Content of the field with trailing spaces is trimmed and then stored back into the DB\r\n\r\n### Steps to reproduce the behavior\r\n1) Create Content in a field in DB with trailing spaces which is in table used by xyzRow.cs\r\n2) Within xyzGrid (in GUI), click on the record, in which you have created the Content with trailing spaces\r\n3) check within relevant field that there are the trailing spaces\r\n4) Click on update button\r\n5) Within xyzGrid (in GUI), click on the record, in which you have created the Content with trailing spaces\r\n6) check within relevant field that there are the trailing spaces --> they are gone\r\n\r\nQuestion: Is there a way to configure the trim behavior of fields within a Dialog and if yes, how?\r\n\r\nThank you and with Kind regards,\r\n\r\nJohn\r\n"},"comment":{"url":"https://api.github.com/repos/volkanceylan/Serenity/issues/comments/222367829","html_url":"https://github.com/volkanceylan/Serenity/issues/739#issuecomment-222367829","issue_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/739","id":222367829,"user":{"login":"JohnRanger","id":2699447,"avatar_url":"https://avatars.githubusercontent.com/u/2699447?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnRanger","html_url":"https://github.com/JohnRanger","followers_url":"https://api.github.com/users/JohnRanger/followers","following_url":"https://api.github.com/users/JohnRanger/following{/other_user}","gists_url":"https://api.github.com/users/JohnRanger/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnRanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnRanger/subscriptions","organizations_url":"https://api.github.com/users/JohnRanger/orgs","repos_url":"https://api.github.com/users/JohnRanger/repos","events_url":"https://api.github.com/users/JohnRanger/events{/privacy}","received_events_url":"https://api.github.com/users/JohnRanger/received_events","type":"User","site_admin":false},"created_at":"2016-05-29T15:54:53Z","updated_at":"2016-05-29T15:54:53Z","body":"HI JaiQ,\r\n\r\nthanks again. I have (for testing reasons) now temporarily upgraded the Serenity FW to the newest available version and added trim instead of TrimToNull (as TrimToNull also does not exist in the newest SFW).\r\n\r\nThe definition within xyzRows.cs loooks now like this:\r\n\r\n```cs\r\n [DisplayName(\"Db.Clients.Clients.SerialNumber\"), Size(100), NotNull, QuickSearch]\r\n        [SetFieldFlags(FieldFlags.None, FieldFlags.TrimToEmpty | FieldFlags.Trim)]\r\n        public String SerialNumber\r\n        {\r\n            get { return Fields.SerialNumber[this]; }\r\n            set { Fields.SerialNumber[this] = value; }\r\n        }\r\n```\r\n\r\nBut: Still no success. The trailing spaces are still trimmed off when clicking on update.\r\n\r\nDo I have to do something on the client side or is this something which happens in the xzRepository.cs?\r\n\r\nWith kind regards,\r\n\r\nJohn"}}
{"actor":{"display_login":"JohnRanger"}}