SlideShare uma empresa Scribd logo
1 de 25
Necto 16 Training
Necto SDK and JavaScript Basics
Objectives
• By the end of this lesson you will be able to:
• Show basic knowledge in JavaScript
• Debug your JavaScript using Internet Explorer
• Manipulate Necto using the Necto SDK
Agenda
• Overview
• Using JavaScript with Necto
• Flow of JavaScript and API’s in Necto
• Debugging in Necto and Internet Explorer
• Using DCOM XML’s in Necto
• Example and Exercise
Necto SDK and JavaScript
Overview
Overview JavaScript is the language of choice to make
modifications and additions to Necto
 It can be used with HTML and interact with the
Document Object Model (DOM)
 JavaScript is run on the client machine so provides
an immediate response, generally not requiring
interaction with the server.
 Necto has a full suite of API’s which can be called
and modified by JavaScript code.
Using JavaScript with Necto
JavaScript options JavaScript variables and functions are case sensitive
 Use JavaScript to:
 React to events
 <button type="button" onclick="alert('Welcome!')">Click
Me!</button>
 Write to HTML output
 document.write("<h1>This is a heading</h1>");
 Change HTML Content
 x=document.getElementById("demo") //Find the element
x.innerHTML="Hello JavaScript"; //Change the content
JavaScript: Choose the syntax for the level When you write JS code in Necto you need to
be aware of the level you are addressing in
Necto
 Application Level, HTML.
 getComponentById("NectoApplication","
pnAppl").getWbParametersValues();
 WorkBoard Level (components)
 getComponentById(“View1","pnAppl").c
allSetGridSelection(2,0,2,1,0);
Where can I use JavaScript? You can add JavaScript code to many areas of Necto
including but not limited to:
 E-BINecto.htm
 Entries are surrounded by <script language=JavaScript></script>
 In a WorkBoard JavaScript entry area
 No requirements for surrounding script setup
 In side any HTML component
 Entries are surrounded by
 <HTML><BODY><SCRIPT> … </SCRIPT></BODY></HTML>
 As a best practice for developing JavaScript we recommend
using a development tool or Notepad++
Functions in JavaScript Functions: A function contains code that will be executed by an event or
by a call to the function.
 You may call a function from anywhere within a page (or even from other
pages if the function is embedded in an external .js file).
 Example :
function onWorkboardLoadedEvent ()
{
alert (“Workboard loaded”);
}
 A good JavaScript tutorial is available at
http://www.w3schools.com/js/default.asp
Necto SDK and API
To add the functionality to Necto you need to use a
combination of the API’s and the SDK
All Necto Installations are shipped with the latest API
and SDK documentation, the URL’s for these are below:
•API =
http://<yourservername>/panorama/api/necto-api-
reference.htm
•SDK =
http://<yourservername/panorama/api/necto_SDK.h
tm
Flow of JavaScript and API’s in
Necto
API flow in Necto
 Wait for something to happen (a trigger
for an Event).
 If required get data and then identify the
specific item you need.
 Process the data
 Change data and/or output a reaction.
API’s in Necto We have multiple API’s for:
 Events such as onClickCommand()
 Calls such as callSave()
 Triggers such as onMemberChanged()
 All API’s can be found here http://support.panorama.com
search for API
 All API’s are in the format lowercase first letter for the first
word followed by uppercase thereafter i.e.
callFilterGridMembers()
Debugging in Necto and
Internet Explorer
Debugging in Necto In Internet Explorer simply edit the options under
advanced; uncheck – ‘Disable Script Debugging
(Internet Explorer)’ and (Other)
 To debug or activate changes in
 your JavaScript code you must:
 Apply changes
 Save WorkBoard
 Refresh/Reload WorkBoard
Starting the debugger 1 Use the Debugger to check you are changing the
correct item to do this add ‘debugger;’ to the Java
code
 Example:
 getSomething()
 {
 debugger;
 var a = 1;
 alert(a);
 }
Starting the debugger 2 The debugging will spawn a debugging tool in my
case it’s Visual Studio and you will get a message
similar to:
 You should be able to
step through your code
and set breakpoints etc…
Using DCOM XML’s in Necto
Manipulating XML data in Necto Retrieve data use the XML DCOM object
 Find the correct leaf value
 Manipulate the data in the leaf
 Write back the xmlDoc.xml string
 Code Snippet to manipulate the xml data:
 function onWbParameterChanged(id, xml)
 {
 var temp = getComponentById("NectoApplication“,
“pnAppl”).getWbParametersValues();
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async=false;
xmlDoc.loadXML(temp);
x=xmlDoc.getElementsByTagName('Param');
x[0].setAttribute("Value","5");
x[0].setAttribute("Caption","5");
getComponentById("NectoApplication“,
“pnAppl”,).setWbParametersValues(xmlDoc.xml);
}
Example
Manipulating XML data in Necto Example
 To complete the examples you require:
 Contoso Cube (http://www.microsoft.com/en-
us/download/details.aspx?id=18279)
 Necto 16
 Follow these instructions :
Exercise
Adding functionality to a WorkBoard
 To complete the exercise you require:
 Contoso Cube
 Necto 16
 Follow these instructions :
 Using the same view as we looked at in the exercise add functionality to it by
adding a pick list (like the one below) and adding the ability to show the original
view and alternatively show a view from any of your other WorkBoards
 You will need to use the API callReplaceView
 The viewpath that the API requires is held in the view properties->general->View
path
Thank you, any
questions?

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Java script
Java scriptJava script
Java script
 
Java Script
Java ScriptJava Script
Java Script
 
Introduction to react native @ TIC NUST
Introduction to react native @ TIC NUSTIntroduction to react native @ TIC NUST
Introduction to react native @ TIC NUST
 
React native app with type script tutorial
React native app with type script tutorialReact native app with type script tutorial
React native app with type script tutorial
 
Unit Testing your React / Redux app (@BucharestJS)
Unit Testing your React / Redux app (@BucharestJS)Unit Testing your React / Redux app (@BucharestJS)
Unit Testing your React / Redux app (@BucharestJS)
 
Introduction To JavaScript
Introduction To JavaScriptIntroduction To JavaScript
Introduction To JavaScript
 
1. java script language fundamentals
1. java script language fundamentals1. java script language fundamentals
1. java script language fundamentals
 
Java script
Java scriptJava script
Java script
 
Introduction to React JS for beginners
Introduction to React JS for beginners Introduction to React JS for beginners
Introduction to React JS for beginners
 
Node
NodeNode
Node
 
NInject - DI Container
NInject - DI ContainerNInject - DI Container
NInject - DI Container
 
Migrating an application from Angular 1 to Angular 2
Migrating an application from Angular 1 to Angular 2 Migrating an application from Angular 1 to Angular 2
Migrating an application from Angular 1 to Angular 2
 
Introduction to ReactJs & fundamentals
Introduction to ReactJs & fundamentalsIntroduction to ReactJs & fundamentals
Introduction to ReactJs & fundamentals
 
React JS - Introduction
React JS - IntroductionReact JS - Introduction
React JS - Introduction
 
2310 b 07
2310 b 072310 b 07
2310 b 07
 
A Brief Introduction to React.js
A Brief Introduction to React.jsA Brief Introduction to React.js
A Brief Introduction to React.js
 
Learn react-js
Learn react-jsLearn react-js
Learn react-js
 
Agile JavaScript Testing
Agile JavaScript TestingAgile JavaScript Testing
Agile JavaScript Testing
 
Introduction to ReactJS
Introduction to ReactJSIntroduction to ReactJS
Introduction to ReactJS
 
Angular 1.x vs 2 - In code level
Angular 1.x vs 2 - In code levelAngular 1.x vs 2 - In code level
Angular 1.x vs 2 - In code level
 

Destaque

03 creating new_work_boards_ready
03 creating new_work_boards_ready03 creating new_work_boards_ready
03 creating new_work_boards_ready
www.panorama.com
 
06 necto advanced_analytics_ready
06 necto advanced_analytics_ready06 necto advanced_analytics_ready
06 necto advanced_analytics_ready
www.panorama.com
 

Destaque (9)

Necto 16 training 9 navigation component
Necto 16 training 9   navigation componentNecto 16 training 9   navigation component
Necto 16 training 9 navigation component
 
Necto 16 training 25 - necto insights
Necto 16 training 25  - necto insightsNecto 16 training 25  - necto insights
Necto 16 training 25 - necto insights
 
Necto 16 training 21 - single sign on
Necto 16 training 21 -  single sign onNecto 16 training 21 -  single sign on
Necto 16 training 21 - single sign on
 
Necto 16 training 11 infographics
Necto 16 training 11   infographicsNecto 16 training 11   infographics
Necto 16 training 11 infographics
 
Necto 16 training 16 workboard properties and advanced features
Necto 16 training 16   workboard properties and advanced featuresNecto 16 training 16   workboard properties and advanced features
Necto 16 training 16 workboard properties and advanced features
 
15 - Panorama Necto 14 formulas, exceptions - visualization & data discovery...
15  - Panorama Necto 14 formulas, exceptions - visualization & data discovery...15  - Panorama Necto 14 formulas, exceptions - visualization & data discovery...
15 - Panorama Necto 14 formulas, exceptions - visualization & data discovery...
 
Amrr
AmrrAmrr
Amrr
 
03 creating new_work_boards_ready
03 creating new_work_boards_ready03 creating new_work_boards_ready
03 creating new_work_boards_ready
 
06 necto advanced_analytics_ready
06 necto advanced_analytics_ready06 necto advanced_analytics_ready
06 necto advanced_analytics_ready
 

Semelhante a Necto 16 training 20 component mode &amp; java script

Client side scripting using Javascript
Client side scripting using JavascriptClient side scripting using Javascript
Client side scripting using Javascript
Bansari Shah
 

Semelhante a Necto 16 training 20 component mode &amp; java script (20)

Full Stack React Workshop [CSSC x GDSC]
Full Stack React Workshop [CSSC x GDSC]Full Stack React Workshop [CSSC x GDSC]
Full Stack React Workshop [CSSC x GDSC]
 
8.-Javascript-report powerpoint presentation
8.-Javascript-report powerpoint presentation8.-Javascript-report powerpoint presentation
8.-Javascript-report powerpoint presentation
 
Google Web Toolkits
Google Web ToolkitsGoogle Web Toolkits
Google Web Toolkits
 
Basic JavaScript Tutorial
Basic JavaScript TutorialBasic JavaScript Tutorial
Basic JavaScript Tutorial
 
Angular 2 for Java Developers
Angular 2 for Java DevelopersAngular 2 for Java Developers
Angular 2 for Java Developers
 
eXo SEA - JavaScript Introduction Training
eXo SEA - JavaScript Introduction TrainingeXo SEA - JavaScript Introduction Training
eXo SEA - JavaScript Introduction Training
 
JavaScript: DOM and jQuery
JavaScript: DOM and jQueryJavaScript: DOM and jQuery
JavaScript: DOM and jQuery
 
Flex Daily Solutions @ FITC 2008
Flex Daily Solutions @ FITC 2008Flex Daily Solutions @ FITC 2008
Flex Daily Solutions @ FITC 2008
 
Session vii(java scriptbasics)
Session vii(java scriptbasics)Session vii(java scriptbasics)
Session vii(java scriptbasics)
 
manual
manualmanual
manual
 
manual
manualmanual
manual
 
CSC PPT 12.pptx
CSC PPT 12.pptxCSC PPT 12.pptx
CSC PPT 12.pptx
 
Java script
Java scriptJava script
Java script
 
Java script
Java scriptJava script
Java script
 
Wt unit 5
Wt unit 5Wt unit 5
Wt unit 5
 
React Basic and Advance || React Basic
React Basic and Advance   || React BasicReact Basic and Advance   || React Basic
React Basic and Advance || React Basic
 
20180518 QNAP Seminar - Introduction to React Native
20180518 QNAP Seminar - Introduction to React Native20180518 QNAP Seminar - Introduction to React Native
20180518 QNAP Seminar - Introduction to React Native
 
Javascript - Ebook (A Quick Guide)
Javascript - Ebook (A Quick Guide)Javascript - Ebook (A Quick Guide)
Javascript - Ebook (A Quick Guide)
 
Adding a modern twist to legacy web applications
Adding a modern twist to legacy web applicationsAdding a modern twist to legacy web applications
Adding a modern twist to legacy web applications
 
Client side scripting using Javascript
Client side scripting using JavascriptClient side scripting using Javascript
Client side scripting using Javascript
 

Mais de Panorama Software

Mais de Panorama Software (20)

Top BI trends and predictions for 2017
Top BI trends and predictions for 2017Top BI trends and predictions for 2017
Top BI trends and predictions for 2017
 
Centralized BI - IT and the Business
Centralized BI - IT and the BusinessCentralized BI - IT and the Business
Centralized BI - IT and the Business
 
Centralized BI in Healthcare
Centralized BI in HealthcareCentralized BI in Healthcare
Centralized BI in Healthcare
 
Panorama Necto 16
Panorama Necto 16Panorama Necto 16
Panorama Necto 16
 
Panorama Necto the most secure, centralized and state of the art Business i...
Panorama Necto   the most secure, centralized and state of the art Business i...Panorama Necto   the most secure, centralized and state of the art Business i...
Panorama Necto the most secure, centralized and state of the art Business i...
 
Necto 16 training 22 necto server
Necto 16 training 22   necto serverNecto 16 training 22   necto server
Necto 16 training 22 necto server
 
Necto 16 training 15 formulas and exceptions
Necto 16 training 15   formulas and exceptionsNecto 16 training 15   formulas and exceptions
Necto 16 training 15 formulas and exceptions
 
Necto 16 training 5 dimension selector
Necto 16 training 5   dimension selectorNecto 16 training 5   dimension selector
Necto 16 training 5 dimension selector
 
Necto 16 training 18 access security
Necto 16 training 18   access securityNecto 16 training 18   access security
Necto 16 training 18 access security
 
Necto 16 training 1 navigation around necto
Necto 16 training 1   navigation around nectoNecto 16 training 1   navigation around necto
Necto 16 training 1 navigation around necto
 
Necto 16 training 24 (archive) nova view to necto migration
Necto 16 training 24 (archive)   nova view to necto migrationNecto 16 training 24 (archive)   nova view to necto migration
Necto 16 training 24 (archive) nova view to necto migration
 
Necto 16 training 7 geo-analytics
Necto 16 training 7   geo-analyticsNecto 16 training 7   geo-analytics
Necto 16 training 7 geo-analytics
 
Necto 16 training 3 ribbon
Necto 16 training 3   ribbonNecto 16 training 3   ribbon
Necto 16 training 3 ribbon
 
Necto 16 training 23 - visual studio modeling
Necto 16 training 23 -  visual studio modelingNecto 16 training 23 -  visual studio modeling
Necto 16 training 23 - visual studio modeling
 
Necto 16 training 19 - data security
Necto 16 training 19 -  data securityNecto 16 training 19 -  data security
Necto 16 training 19 - data security
 
Necto 16 training 17 - administration
Necto 16 training 17 -  administrationNecto 16 training 17 -  administration
Necto 16 training 17 - administration
 
Necto 16 training 14 - one click insight
Necto 16 training 14 -  one click insightNecto 16 training 14 -  one click insight
Necto 16 training 14 - one click insight
 
Necto 16 training 13 - save to a private root
Necto 16 training 13 -  save to a private rootNecto 16 training 13 -  save to a private root
Necto 16 training 13 - save to a private root
 
Necto 16 training 10 - notifications
Necto 16 training 10 -  notificationsNecto 16 training 10 -  notifications
Necto 16 training 10 - notifications
 
Necto 16 training 8 - collaboration
Necto 16 training 8  - collaborationNecto 16 training 8  - collaboration
Necto 16 training 8 - collaboration
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 

Necto 16 training 20 component mode &amp; java script

  • 1. Necto 16 Training Necto SDK and JavaScript Basics
  • 2. Objectives • By the end of this lesson you will be able to: • Show basic knowledge in JavaScript • Debug your JavaScript using Internet Explorer • Manipulate Necto using the Necto SDK
  • 3. Agenda • Overview • Using JavaScript with Necto • Flow of JavaScript and API’s in Necto • Debugging in Necto and Internet Explorer • Using DCOM XML’s in Necto • Example and Exercise
  • 4. Necto SDK and JavaScript Overview
  • 5. Overview JavaScript is the language of choice to make modifications and additions to Necto  It can be used with HTML and interact with the Document Object Model (DOM)  JavaScript is run on the client machine so provides an immediate response, generally not requiring interaction with the server.  Necto has a full suite of API’s which can be called and modified by JavaScript code.
  • 7. JavaScript options JavaScript variables and functions are case sensitive  Use JavaScript to:  React to events  <button type="button" onclick="alert('Welcome!')">Click Me!</button>  Write to HTML output  document.write("<h1>This is a heading</h1>");  Change HTML Content  x=document.getElementById("demo") //Find the element x.innerHTML="Hello JavaScript"; //Change the content
  • 8. JavaScript: Choose the syntax for the level When you write JS code in Necto you need to be aware of the level you are addressing in Necto  Application Level, HTML.  getComponentById("NectoApplication"," pnAppl").getWbParametersValues();  WorkBoard Level (components)  getComponentById(“View1","pnAppl").c allSetGridSelection(2,0,2,1,0);
  • 9. Where can I use JavaScript? You can add JavaScript code to many areas of Necto including but not limited to:  E-BINecto.htm  Entries are surrounded by <script language=JavaScript></script>  In a WorkBoard JavaScript entry area  No requirements for surrounding script setup  In side any HTML component  Entries are surrounded by  <HTML><BODY><SCRIPT> … </SCRIPT></BODY></HTML>  As a best practice for developing JavaScript we recommend using a development tool or Notepad++
  • 10. Functions in JavaScript Functions: A function contains code that will be executed by an event or by a call to the function.  You may call a function from anywhere within a page (or even from other pages if the function is embedded in an external .js file).  Example : function onWorkboardLoadedEvent () { alert (“Workboard loaded”); }  A good JavaScript tutorial is available at http://www.w3schools.com/js/default.asp
  • 11. Necto SDK and API To add the functionality to Necto you need to use a combination of the API’s and the SDK All Necto Installations are shipped with the latest API and SDK documentation, the URL’s for these are below: •API = http://<yourservername>/panorama/api/necto-api- reference.htm •SDK = http://<yourservername/panorama/api/necto_SDK.h tm
  • 12. Flow of JavaScript and API’s in Necto
  • 13. API flow in Necto  Wait for something to happen (a trigger for an Event).  If required get data and then identify the specific item you need.  Process the data  Change data and/or output a reaction.
  • 14. API’s in Necto We have multiple API’s for:  Events such as onClickCommand()  Calls such as callSave()  Triggers such as onMemberChanged()  All API’s can be found here http://support.panorama.com search for API  All API’s are in the format lowercase first letter for the first word followed by uppercase thereafter i.e. callFilterGridMembers()
  • 15. Debugging in Necto and Internet Explorer
  • 16. Debugging in Necto In Internet Explorer simply edit the options under advanced; uncheck – ‘Disable Script Debugging (Internet Explorer)’ and (Other)  To debug or activate changes in  your JavaScript code you must:  Apply changes  Save WorkBoard  Refresh/Reload WorkBoard
  • 17. Starting the debugger 1 Use the Debugger to check you are changing the correct item to do this add ‘debugger;’ to the Java code  Example:  getSomething()  {  debugger;  var a = 1;  alert(a);  }
  • 18. Starting the debugger 2 The debugging will spawn a debugging tool in my case it’s Visual Studio and you will get a message similar to:  You should be able to step through your code and set breakpoints etc…
  • 19. Using DCOM XML’s in Necto
  • 20. Manipulating XML data in Necto Retrieve data use the XML DCOM object  Find the correct leaf value  Manipulate the data in the leaf  Write back the xmlDoc.xml string  Code Snippet to manipulate the xml data:  function onWbParameterChanged(id, xml)  {  var temp = getComponentById("NectoApplication“, “pnAppl”).getWbParametersValues(); xmlDoc=new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async=false; xmlDoc.loadXML(temp); x=xmlDoc.getElementsByTagName('Param'); x[0].setAttribute("Value","5"); x[0].setAttribute("Caption","5"); getComponentById("NectoApplication“, “pnAppl”,).setWbParametersValues(xmlDoc.xml); }
  • 22. Manipulating XML data in Necto Example  To complete the examples you require:  Contoso Cube (http://www.microsoft.com/en- us/download/details.aspx?id=18279)  Necto 16  Follow these instructions :
  • 24. Adding functionality to a WorkBoard  To complete the exercise you require:  Contoso Cube  Necto 16  Follow these instructions :  Using the same view as we looked at in the exercise add functionality to it by adding a pick list (like the one below) and adding the ability to show the original view and alternatively show a view from any of your other WorkBoards  You will need to use the API callReplaceView  The viewpath that the API requires is held in the view properties->general->View path