Quick Search


Tibetan singing bowl music,sound healing, remove negative energy.

528hz solfreggio music -  Attract Wealth and Abundance, Manifest Money and Increase Luck



 
Your forum announcement here!

  Free Advertising Forums | Free Advertising Board | Post Free Ads Forum | Free Advertising Forums Directory | Best Free Advertising Methods | Advertising Forums > Post Your Free Ads Here in English for Advertising .Adult and gambling websites NOT accepted. > Other

Other Post anything that does not fit in the above categories here.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 04-06-2011, 03:20 AM   #1
nishi173
 
Posts: n/a
Default Cheap Windows 7 Introducing the JavaScript Object

Thanks to Christian Stich, a consultant working on Excel Services projects, for putting together this series on the Excel Services JavaScript Object Model.
Excel Services 2010 has added two entirely new programming APIs: The REST API which I covered in an earlier series of posts and the JavaScript Object Model (JSOM) which I will discuss in this post.
The JavaScript Object Model (JSOM) enables a whole new set of solutions using Excel Services. With the JSOM it is possible to detect and react to a user's interactions with an Excel Web Access (EWA) web part and to programmatically interact with one or multiple EWA web parts.
How Do I Use It?
Using the JSOM is done by inserting JavaScript code on the page that contains the EWA web part(s). This can be done either by adding the code to the web part page using the Content Editor web part or by directly editing the .aspx page itself.
What Does It Offer?
The JSOM enables the developer to access items such as sheets, ranges, tables, PivotTables, and charts. It is possible to set and retrieve values from individual cells or from Excel style A1 ranges or named ranges. The JSOM also provides for events that are raised when the user changes the active selection or active cell or when the user starts editing a cell. Moreover, the JSOM can be used to scroll to a different region and to switch the displayed sheet or named item.
To see the class diagram for the JSOM please click the thumbnail below.

Please note that the class diagram is preliminary and may have some changes at the time when Excel Services 2010 is officially released.
Using the JSOM - A Simple Example
Often people want to use an EWA web part as a data source. EWA web parts can consume data via SharePoint's web part filter framework. However the opposite, using EWA web parts as data sources is not supported by SharePoint 2010.
The example showcases using the JSOM for the detection of user events in one EWA and using those user events and corresponding data to programmatically drive another EWA. This can be used to effectively use an EWA as a data source.
All the developer or user has to do apart from building a web part page with two EWA web parts is to add a Content Editor web part and link it to a file containing the JavaScript code such as the example below.

So,Office Home And Student 2010 Key, let's see what these few lines of JavaScript code that we have embedded on the web part page can do.
The web part on the left side contains four "buttons" (cells A1, A2, B1, and B2) which contain strings that correspond to named items present in the web part on the right hand side. "Market Cap",Microsoft Office Ultimate 2007, "Volume",Windows 7 Starter, "P/E Ratio" are charts and "Stocks" is a named range.
Below these "buttons" is a list of company names - these do not have to be fixed and could be changed or new ones could be added by a viewer of the web part page. Next to the company names is the most recent share price of each company's stock. This data as well as the other stock market data used in this example could be live data retrieved either via Excel Services external data support, or via User Defined Functions.

The viewer of the web part page can select one or more companies by simply using the mouse to select the cells with the companies' names. In this case, the user has selected "Microsoft" and "Contoso" in the left web part - the JavaScript code detects the change of the active selection and copies these company names ("Microsoft" and "Contoso") to the right web part.

The user then clicks on the Market Cap "button" (cell A1) - again the JavaScript code detects the change in the active selection and accordingly switches the right web part to display the Market Cap chart.

Next, the user highlights all four companies - this change in the active selection is again detected and the selected companies are copied from the left web part to the right web part. This then results in the Market Cap chart being updated to show all four companies.

Finally, the user clicks on the Volume "button" (cell B1) - the JavaScript code thus causes the web part on the right to display the stock trade Volume chart, showing all four companies that had been selected.

Summary
The JSOM is a powerful new API that expands Excel Services capabilities and that enables Excel Services to be used for completely new solutions. The JSOM can be used by itself to provide a means for automating Excel Web Access, or to provide part-to-part communication between different EWA web parts. It can also be used with other APIs such as the new Visio Services JavaScript Object Model, Bing Maps SDK and many others to build custom solutions/mash-ups.
  Reply With Quote
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On


All times are GMT. The time now is 11:43 PM.

 

Powered by vBulletin Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Free Advertising Forums | Free Advertising Message Boards | Post Free Ads Forum