Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

We Value Your Feedback!
Could you please spare a few minutes to share your thoughts on Cloud Connected vs On-Premise Services. Your feedback can help us shape the future of services.
Learn more about the survey or Click here to Launch the survey
Schneider Electric Services Innovation Team!

HistoryItems

SmartConnector Forum

Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • EcoStruxure Building
  • SmartConnector
  • SmartConnector Forum
  • HistoryItems
Options
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
JeffBowman
Sisko JeffBowman Sisko
164
ardak
ardak Schneider Alumni (Retired)
34
sesa180908_brid
Commander sesa180908_brid Commander
34
mike_meirovitz
Commander mike_meirovitz
21
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to SmartConnector Forum
sesa450478_brid
sesa450478_brid Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2017-08-30 03:25 AM

0 Likes
4
922
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2017-08-30 03:25 AM

HistoryItems

Hi everyone,

I have my own SQL database with historical data from 3rd party, and I want to have these historical data  on the Enterprise Server as Trend Log.

For that I created a program in C# and i saw/used the method "DataAdapter.HistoryItems", but i do not understand how to use that method.

Is it possible to have more information/documentation?

Thank you very much for the availability

Reply
  • All forum topics
  • Previous Topic
  • Next Topic
Replies 4
sesa180908_brid
Commander sesa180908_brid Commander
Commander

Posted: ‎2017-08-30 05:45 AM

1 Like
3
874
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2017-08-30 05:45 AM

Michele,

To do what you want to do, the ES will need to be an EWS Client to a SmartConnector EWS Server.  However, the approach you are suggesting is not how you should be proceeding.  The EwsServerDataAdapter class is only used to interact with the native SmartConnector EWS data tables.

In order have your external DB supply data via EWS Serve, you will need to create a custom EWS Server Extension.  This type of data flow is described in abstract in the SmartConnector Developers Guide.pdf section 4.2.  Details on how to develop such an Extension is described in section 5.7 of the same document.  In your case you will need to provide a custom implementation of the MongooseGetHistoryProcessor instead of what is shown in the example.  The steps are the same though. 

If you have more questions feel free to post them here.

Reply
sesa450478_brid
sesa450478_brid Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2017-08-30 07:34 AM

0 Likes
2
874
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2017-08-30 07:34 AM

OK thanks, I understand how to continue my work, but i have another question.

How and when i should use the method "DataAdapter.HistoryItems" ?

Reply
sesa180908_brid
Commander sesa180908_brid Commander
Commander

Posted: ‎2017-08-30 07:48 AM

0 Likes
1
874
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2017-08-30 07:48 AM

The EwsServerDataAdapter class provides methods and properties to create, retrieve, update, and delete data from the local SmartConnector database for the logical EWS Server it is instantiated for.  It is also used to control how the EWS Server is provisioned.

The HistoryItems you refer to is an IQueryable<EwsHistoryItem> property which allows consumers of the class instance to execute LINQ queries to retrieve items from the database.  It will only return data from the local database and not an external source (as is the case in your situation).

The standard EWS Server controller Processors use the EwsServerDataAdapter class to serve data requested by EWS clients (such as an ES or AS).  Because your data is an an external database, you need to change this behavior by writing a custom EWS Server Extension as described previously.

Hopefully this clears things up.

Reply
gosloto
gosloto
Cadet

Posted: ‎2022-10-27 07:50 AM

0 Likes
0
782
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2022-10-27 07:50 AM

 

Read it! https://community.se.com/t5/SmartConnector-Forum/Unable-to-poll-alarms-from-Get-AlarmEvents-gosloto-in-Smart-Connector/td-p/409428/jump-to/first-message We hope you find it informative. If you get any information from this, be sure to let us know.

 

Tags (1)
  • Tags:
  • english
Reply
Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

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.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of