2. Objectives
• By the end of this lesson you will be able to:
• Use the Necto SDK
• Know what Single Sign On (SSO) is for Necto
• Create or modify an SSO file (database if needed).
• Debug C# and ASPX files
3. Agenda
• Where is the SDK and how can I use it?
• Getting Microsoft Community 2015 (Free Tool)
• Implementing SSO
• Debugging SSO
4. Overview
• To allow Necto to be used within your corporate portal or other
wrapper you can utilize SSO
• SSO is called using a URL from your portal/wrapper to call a
Necto aspx page
• To edit and debug the aspx page you will require
• Microsoft Community 2015 or other debugging tool
• Medium level knowledge of C# and JavaScript
• IIS debugging knowledge
5. Necto SDK
• The Necto SDK can be found here:
• http://<yourservername>:4444/panorama/api/Necto_SDK.htm
• SDK can be used to feed information in to Necto through
Necto.htm or through other files in component mode such as
.aspx files
• Call SDK files using URL’s, with additional parameters
• http://<yourservername>:4444/panorama/novaview.
UserLoginDB2.aspx?user_name=a1&password=1234
6. SDK Rendering Parameters
• Alias, the unique Id of a Workboard
• Slicers, sliceing security that can be performed
• User, If current user is admin you can impersonate, or load as a
specific user with an ASID
• Security mode, Windows, Mixed, Necto, None
• Language defined as he, en, it
• Show, features such as BOOKS, USERS_BAR
• TaskPane, pane to show on start i.e. WORKBOARDS
• FirstWB, first WB to show
• Menus, Show or hide menu’s by ID
• Settings, Skin file name
7. Implementing SSO
• Necto is installed to be able to work with SSO
• Create an *.aspx file in the ‘…PanoramaE-BINovaview’ folder
• Novaview is an Application within the IIS system
• The file can be called and executed from a URL to run Necto
following the SDK and the example files I will provide
• Necto can take the parameters from the calling program but
also get more from a database
8. Getting Microsoft Community 2015
• Got to https://www.visualstudio.com/
• You can get the full developer suite here for free, so that you
can code, attach to a process and debug a web app
• Download install and restart your machine…
9. Debugging an IIS application
• Open Visual Studio 2015 using ‘run as Administrator’
• Got to File -> Open -> Web Site
• Select Local IIS
• Choose Novaview (it is an application in the tree) which the wizard will
see as http://localhost/Panorama/Novaview
• Press ‘Open’
• Go to Debug -> Novaview Properties
• Choose ‘Start Options’ then in ‘Specific Page’ enter similar to the
following
• UserLoginDB2.aspx?user_name=a1&password=1234
• Press Start to start debugging
10. Work through Exercise
• Add this file to the Necto server
• Debug change the password for the database
• string connectionString = "server=vpc-james2olap;database=Data
security;uid=datasecuritylogin;pwd=MyPassword;connection
timeout=30";
• Change the first Workboard to a real Workboard in your system
• AttachParameter('FirstWB','b5829046-4137-46d1-9378-
f5ad56ed92d7');
11. Work through Exercise
• Create a database called ‘Data Security’ and create a table
called ‘Sheet1$’ and columns similar to the following:
• Debug using the steps in the previous slides
Show
a. APPLICATION_BAR - show\hide the application bar. As a side effect, the user will not be able to do all operations that appear in the application bar
b. WORKBOARD_BAR - show\hide the workboard bar. As a side effect, the user will not be able to do all operations that appear in the workboar bar
c. USERS_BAR - show\hide the users bar. The use can still show the user’s bar from the user’s show\hide button in the application bar
d. TASKPANE – show\hide the whole task pane
e. BOOKS – show\hide all three WorkBoard books
f. PUBLIC_BOOK – show\hide the public book pane
g. PRIVATE_BOOK – show\hide the user’s private book pane
h. SHARED_BOOK –show\hide the shared book pane
i. SLICERS - show\hide the slicers pane
j. DISCUSSIONS – show\hide the discussion pane
k. SCRAPBOOK – show\hide the scrapbook pane
l. VIEW_DESIGN – enables\disables the user’s ability to enter view design mode
m. WBDESIGN – enables\disables the user’s ability to enter the WorkBoard design mode
n. NEW_VIEW_WIZARD – enables\disables the user’s ability to enter the new view wizard and create new views
TaskPane
1. "CLOSE" - the task pane is closed on Necto start
2. "PANE_SLICER_MAIN" - open task pane and show slicers
3. "PROPERTIES_MAIN" - open task pane and show properties
4. "WORKBOARDS" - open task pane and show workboards tree
5. "DISCUSSIONS" - open task pane and show discussions
6. "PANE_SCRAPBOOK" - open task pane and show scrapbook
Menus, if you use Panconsole you can identify their ID’s or in the lang_en.hlp file
Before debugging, you might be prompted to add debugging to the web.config file, allow VS to do this for you, but remember to edit back to false after debugging.