Recently our technical support team has received a question one of our customers who wanted to know if it is possible to sort data in the Web Viewer in SharpShooter Reports. The customer wanted to click a column header for the data to be sorted. The first thing our support team wanted to reply: ‘’Unfortunately, our product does not support the requested functionality’’. But our products architecture is developed the way that if a customer wants to add some new functionality that is not supported by the product, he can do this programmatically.
The powerful scripting feature in SharpShooter Reports allows developing any reports you cannot even imagine. Thanks to the flexibility of Javascript and Html you can create miracles! So, using all these, I tried to implement the data sorting functionality the way the customer wants and would like to tell you how I did this.
(more…)
Author Archive
Attachment: JSON-Enabled WCF Services (part 2).zip
This article is to continue the article JSON WCF Service (part 1), in which we created WCF service taking and giving out data in JSON format.
In this article, we are going to implement JavaScript-based client side that will interact with our WCF service. However, we won’t write a single line of pure JavaScript code in order to do this. Instead, we will use Script#. It allows us to write code in C#, programming language we got used to and translate it to JavaScript.
In my work I often get task to develop Rich Internet Application. After such task I have a terrible headache with the choice of technology. The two most used ones are Silverlight and Flash. But the question which is better comes up; and it is very hard to objectively consider all pros and cons of them. Both of them are cross-platform technologies, so the application, created on Silverlight or Flash, will look the same in all browsers.
But, unfortunately, nothing is perfect… These technologies have one serious (to my mind) disadvantage: they are limited in use. This means that you won’t be able to fully use Silverlight application on Linux or Flash application on iOS. I even don’t mention mobile systems that are essential part of our life. Majority of up-to-date mobiles and pads don’t provide full support for Silverlight and Flash.
When I read general description of Script#, I thought “Wow how simple it is!”. I need just to write some code on C#, compile my application, get the needed JavaScript files which stably work in all browsers. And I don’t need to think of DOM model of browsers, and especially differences among them – I can do everything on C#. Script# supports such library as jQuery. And this, to my mind, is a key benefit. The second thing that impressed me is that I don’t need to spend a lot of time reading tons of docs to start working with Script#. My average knowledge
of JavaScript and C# is enough.
After two month of our “intimate relationships” with Script# – I can say that I love it
! Script# fully satisfied my expectations. It allowed me to quickly create the project, and, what is the most important, to get as a result qualitative, stable and pure JavaScript code.
And now, I’d like to explain what the Script# technology includes: