SmartConnector Forum
Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.
Link copied. Please paste this link to share this article on your social media post.
I have a processor that has a collection parameter.
When I add the processor to the smartconnector website and save, it is creating an extra entry.
I only added one. This is a known issue? If yes, is there a way for me to have this information saved somewhere else?
Link copied. Please paste this link to share this article on your social media post.
I think what Jeff was suggesting was that you might be inadvertently adding another item when you really mean to expand the node. Clicking the big blue + icon Adds another item to your collection (and also expands it) while clicking on the actual node itself toggles the expansion of the node.
Link copied. Please paste this link to share this article on your social media post.
Maneesh,
There are no open issues with these symptoms. Could you provide a little more information so that I could look into this?
What version of SmartConnector are you using?
Does the "AutomationServersInfo" property have any attributes associated with it?
Link copied. Please paste this link to share this article on your social media post.
Hi Maneesh,
To my knowledge this is not a known issue, but I am not quite sure I follow you on how you got it into this state. What do you see when you expand the first one in the list?
Also, from looking at your UI, you should probably be setting your 'Password' field as an EncyptedString so it doesn't show when looking at the Portal unless you select it:
[Required, EncryptedString, DefaultValue("P@ssw0rd!")]
public string Password { get; set; }
-Jeff
Link copied. Please paste this link to share this article on your social media post.
I am using this version of the website:
SmartConnector Windows Service Middleware
The current service version is 2.2.108.
In my processor class I have this:
[Required]
public List<AutomationServerInfo> AutomationServersInfo { get; set; }
public class AutomationServerInfo {
[Required, DefaultValue("admin")]
public string Username { get; set; }
[Required, DefaultValue("P@ssw0rd!")]
public string Password { get; set; }
[Required, DefaultValue("http://10.169.82.23/EcoStruxure/DataExchange")]
public string Url { get; set; }
}
Initially when I add this processor to the website, I see one. But each time I save a new item is added to the collection.
Link copied. Please paste this link to share this article on your social media post.
Also, you may consider sub-classing the "EwsConnection" class in Ews.Common rather than create your own class with three of the same properties. Using this class will allow you to leverage some of the extension methods and/or IManagedEwsClient.
At the very least, you should decorate your "Password" with the "EncryptedString" attribute so that it is not in plain text in the database.
#region Password
[Required, EncryptedString]
public string Password { get; set; }
#endregion
Link copied. Please paste this link to share this article on your social media post.
Jeff, its probably not a security best practice to put in a default for the Password (or anything which is an EncryptedString). That value would be in plain text in the assembly.
Link copied. Please paste this link to share this article on your social media post.
You are right! I just included it as an example, but probably should have omitted that one .
-Jeff
Link copied. Please paste this link to share this article on your social media post.
Maneesh,
I cannot reproduce this issue against the latest version (which happens to be 2.2.127 - which was posted this morning). There haven't been any modifications in this area of the Portal so I don't think that it matters that you are using a slightly older version though.
What browser are you using?
Link copied. Please paste this link to share this article on your social media post.
Maneesh,
Out of curiosity, when you are expanding the list, are you clicking the Big Blue + or the small one on the left of Automation Servers Info tree item?
-Jeff
Link copied. Please paste this link to share this article on your social media post.
Chrome.
Each time I "Save" the processor, in the details tab, I see a new item added to the collection.
Link copied. Please paste this link to share this article on your social media post.
I think what Jeff was suggesting was that you might be inadvertently adding another item when you really mean to expand the node. Clicking the big blue + icon Adds another item to your collection (and also expands it) while clicking on the actual node itself toggles the expansion of the node.
Link copied. Please paste this link to share this article on your social media post.
You are right. I was clicking on the blue + sign to expand and I tried it now and it works.
Sorry for the confusion. That was the problem.
Thanks!
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.