SlideShare una empresa de 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?

Más contenido relacionado

La actualidad más candente

Java script
Java scriptJava script
Java scriptITz_1
 
Java Script
Java ScriptJava Script
Java Scriptsiddaram
 
Introduction to react native @ TIC NUST
Introduction to react native @ TIC NUSTIntroduction to react native @ TIC NUST
Introduction to react native @ TIC NUSTWaqqas Jabbar
 
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 tutorialKaty Slemon
 
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)Alin Pandichi
 
Introduction To JavaScript
Introduction To JavaScriptIntroduction To JavaScript
Introduction To JavaScriptReema
 
1. java script language fundamentals
1. java script language fundamentals1. java script language fundamentals
1. java script language fundamentalsRajiv Gupta
 
Introduction to React JS for beginners
Introduction to React JS for beginners Introduction to React JS for beginners
Introduction to React JS for beginners Varun Raj
 
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 Ross Dederer
 
Introduction to ReactJs & fundamentals
Introduction to ReactJs & fundamentalsIntroduction to ReactJs & fundamentals
Introduction to ReactJs & fundamentalswebsyndicate
 
A Brief Introduction to React.js
A Brief Introduction to React.jsA Brief Introduction to React.js
A Brief Introduction to React.jsDoug Neiner
 
Agile JavaScript Testing
Agile JavaScript TestingAgile JavaScript Testing
Agile JavaScript TestingScott Becker
 
Introduction to ReactJS
Introduction to ReactJSIntroduction to ReactJS
Introduction to ReactJSTu Hoang
 
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 levelAnuradha Bandara
 

La actualidad más candente (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
 

Destacado

Necto 16 training 9 navigation component
Necto 16 training 9   navigation componentNecto 16 training 9   navigation component
Necto 16 training 9 navigation componentPanorama Software
 
Necto 16 training 25 - necto insights
Necto 16 training 25  - necto insightsNecto 16 training 25  - necto insights
Necto 16 training 25 - necto insightsPanorama Software
 
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 onPanorama Software
 
Necto 16 training 11 infographics
Necto 16 training 11   infographicsNecto 16 training 11   infographics
Necto 16 training 11 infographicsPanorama Software
 
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 featuresPanorama Software
 
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...Panorama Software
 
03 creating new_work_boards_ready
03 creating new_work_boards_ready03 creating new_work_boards_ready
03 creating new_work_boards_readywww.panorama.com
 
06 necto advanced_analytics_ready
06 necto advanced_analytics_ready06 necto advanced_analytics_ready
06 necto advanced_analytics_readywww.panorama.com
 

Destacado (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
 

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

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]GDSC UofT Mississauga
 
8.-Javascript-report powerpoint presentation
8.-Javascript-report powerpoint presentation8.-Javascript-report powerpoint presentation
8.-Javascript-report powerpoint presentationJohnLagman3
 
Google Web Toolkits
Google Web ToolkitsGoogle Web Toolkits
Google Web ToolkitsYiguang Hu
 
Basic JavaScript Tutorial
Basic JavaScript TutorialBasic JavaScript Tutorial
Basic JavaScript TutorialDHTMLExtreme
 
Angular 2 for Java Developers
Angular 2 for Java DevelopersAngular 2 for Java Developers
Angular 2 for Java DevelopersYakov Fain
 
eXo SEA - JavaScript Introduction Training
eXo SEA - JavaScript Introduction TrainingeXo SEA - JavaScript Introduction Training
eXo SEA - JavaScript Introduction TrainingHoat Le
 
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 2008marcocasario
 
Session vii(java scriptbasics)
Session vii(java scriptbasics)Session vii(java scriptbasics)
Session vii(java scriptbasics)Shrijan Tiwari
 
React Basic and Advance || React Basic
React Basic and Advance   || React BasicReact Basic and Advance   || React Basic
React Basic and Advance || React Basicrafaqathussainc077
 
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 NativeEric Deng
 
Javascript - Ebook (A Quick Guide)
Javascript - Ebook (A Quick Guide)Javascript - Ebook (A Quick Guide)
Javascript - Ebook (A Quick Guide)sourav newatia
 
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 applicationsJeff Durta
 
Client side scripting using Javascript
Client side scripting using JavascriptClient side scripting using Javascript
Client side scripting using JavascriptBansari Shah
 

Similar 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
 

Más de Panorama Software

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 2017Panorama Software
 
Centralized BI - IT and the Business
Centralized BI - IT and the BusinessCentralized BI - IT and the Business
Centralized BI - IT and the BusinessPanorama Software
 
Centralized BI in Healthcare
Centralized BI in HealthcareCentralized BI in Healthcare
Centralized BI in HealthcarePanorama Software
 
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...Panorama Software
 
Necto 16 training 22 necto server
Necto 16 training 22   necto serverNecto 16 training 22   necto server
Necto 16 training 22 necto serverPanorama Software
 
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 exceptionsPanorama Software
 
Necto 16 training 5 dimension selector
Necto 16 training 5   dimension selectorNecto 16 training 5   dimension selector
Necto 16 training 5 dimension selectorPanorama Software
 
Necto 16 training 18 access security
Necto 16 training 18   access securityNecto 16 training 18   access security
Necto 16 training 18 access securityPanorama Software
 
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 nectoPanorama Software
 
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 migrationPanorama Software
 
Necto 16 training 7 geo-analytics
Necto 16 training 7   geo-analyticsNecto 16 training 7   geo-analytics
Necto 16 training 7 geo-analyticsPanorama Software
 
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 modelingPanorama Software
 
Necto 16 training 19 - data security
Necto 16 training 19 -  data securityNecto 16 training 19 -  data security
Necto 16 training 19 - data securityPanorama Software
 
Necto 16 training 17 - administration
Necto 16 training 17 -  administrationNecto 16 training 17 -  administration
Necto 16 training 17 - administrationPanorama Software
 
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 insightPanorama Software
 
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 rootPanorama Software
 
Necto 16 training 10 - notifications
Necto 16 training 10 -  notificationsNecto 16 training 10 -  notifications
Necto 16 training 10 - notificationsPanorama Software
 
Necto 16 training 8 - collaboration
Necto 16 training 8  - collaborationNecto 16 training 8  - collaboration
Necto 16 training 8 - collaborationPanorama Software
 

Más 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

Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard37
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAnitaRaj43
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
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 TerraformAndrey Devyatkin
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
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 FresherRemote DBA Services
 
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...apidays
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKJago de Vreede
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 

Último (20)

Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.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
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
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
 
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...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 

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