Tagged with parameter-passing - Visokio Forums http://forums.visokio.com/discussions/tagged/parameter-passing/feed.rss Mon, 30 Oct 17 14:30:47 -0400 Tagged with parameter-passing - Visokio Forums en-CA Idea: Parameter passing -Dynamic queries for user drilldowns? http://forums.visokio.com/discussion/2813/idea-parameter-passing-dynamic-queries-for-user-drilldownss Thu, 15 Jan 2015 09:41:22 -0500 acohen 2813@/discussions
However a user needs the functionality to be able to see further detail in some instances. If the user could trigger a parametrised SQL query to reload/refresh the data with one or more parameters set, it would enable an additional, more granular and personalised view of that data that would be ideal.

For instance, the user is looking at monthly data of some sort. Daily data would be unmanageable and unnecessary as the dataset would contain tens of millions of rows. The idea is the user can click on a particular record/set a parameter, say the month and then behind the scenes a dynamic query is done to bring up the daily data which can be viewed in a seperate view/file.]]>
Import: SQL view as a parameter in DataManager? http://forums.visokio.com/discussion/2823/import-sql-view-as-a-parameter-in-datamanagers Wed, 21 Jan 2015 07:04:24 -0500 carlosmartinmari 2823@/discussions
I'm trying to introduce a parameter, say "Sqlview" that is being used in the DataManager database source block to call a custom SQL view as follows:

select * from p = {{Sqlview}}

The problem we have is that when you give the variable type to the parameter and set it as text, in DM the variable is automatically written as:

select * from "my_table_name"

which returns an error because it should look like that:

select * from `my_table_name`

Introducing the correct symbols doesn't help (parameter enter as "`my_table_name`").

Is there any way to do that?

Thank you in advance,
Carlos]]>
Parameters: On-demand parametric data set delivery http://forums.visokio.com/discussion/2783/parameters-on-demand-parametric-data-set-delivery Fri, 12 Dec 2014 06:55:27 -0500 Veaceslav 2783@/discussions Generate custom dashboards on demand

Scenario/Problem


You have an Omniscope server (2.9 or higher) installed and publicly available at your-omniscope.your-domain.com

In addition, you have another web server (Apache, Jetty, etc) providing services or any useful information to your customers/users. For the purpose of this post I'll consider that you have an apache web server at your-apache.your-domain.com, even though you can achieve this with most web servers.

On a particular page on your Apache web server you have a list of links that you want to open different dashboards based on some particular parameter (e.g. user id)
A link might look like this: http://your-apache.your-domain.com/users?userid=5

Clicking that link the user should see a dashboard page having data that concerns him/her, the dashboard would be generated on the fly.

You have a dashboard/IOK file configured to load data from a particular SQL database.

You want to load data that matches a parameter for a particular user. E.g.
SELECT * FROM [dbo].[bigtable] WHERE [somefield]={{Userid}}

Solution


IOK File

1. Open the IOK file, DataManager tab and add a parameter. E.g. Name: Userid, Type: Fixed value, Data type: Integer, Value: 3

2. Open database source block and add your custom SQL query. E.g.
SELECT * FROM [dbo].[bigtable] WHERE [Liq Cat]={{Userid}}

3. Save your file

image

Your apache web server

1. Implement a request handler to deal with your special GET requests http://your-apache.your-domain.com/users?userid=5 and read user id value. The server will not send a response unless all next steps finish executing (either successfully or not)

2. Generate an action file (e.g. Action.xml) that:
  • Sets data manager parameter value (for Userid parameter)
  • Refreshes from source, this sub-action will execute the SQL query again and load records matching the new user id
  • Save IOK file to a new unique location in mobile folder. E.g. mobile/custom-dashboards/12345.iok


<?xml version="1.0" encoding="UTF-8"?>
<schedulerFileAction source="/location-of-your-iok-file/file.iok" logTimings="false">
<subActions>
<schedulerFileActionSetDataManagerParameterValue parameterName="Userid">
<binding>
<manualparambinding type="INTEGER" publishedPublicly="false">
<values>
<e>
<v type="java.lang.Long" value="5" />
</e>
</values>
</manualparambinding>
</binding>
</schedulerFileActionSetDataManagerParameterValue>
<schedulerFileActionRefreshFromSource clearCacheBefore="true" clearCacheAfter="true" failOnError="false" />
<schedulerFileActionSaveIok location="/location-of-our-new-dashboard/12345.iok" />
</subActions>
</schedulerFileAction>


3. Execute the new action
E.g. On windows (same parameters on Linux -executeAction /some-path/Action.xml)
OmniscopeEnterprise.exe -executeAction "some-path\Action.xml"

4. Once the scheduler action is executed successfully, your Apache web server will return a redirect response to the client

The client/browser will be redirected to your-omniscope.your-domain.com/custom-dashboards/12345.iok

You may want to set up a proper back-end configuration, hardware load balancer + software load balancer, caching requests, etc. Also, you may want to make sure your paths are randomly generated, to prevent other users from viewing other dashboards.
]]>
Idea: Passing Parameters/Variables inside URLs? http://forums.visokio.com/discussion/2375/idea-passing-parametersvariables-inside-urlss Mon, 14 Oct 2013 06:40:54 -0400 bfromson1 2375@/discussions
At the moment we have implemented our first web report with a link to Microsoft SQL reporting services - we use the Omniscope report for top level view of a group of accounts then a linked field on the user account number to allow direct access to the SRSS report which shows all transactions on the account going back up to 10 years. Embedding report parameters in the URL effectively makes all data linkable within the scope of the designers imagination!]]>
Parameters: Passing values between files http://forums.visokio.com/discussion/529/parameters-passing-values-between-files Tue, 30 Nov 2010 11:17:07 -0500 aknotts 529@/discussions
I have an IOK file with aggregated data in it (due to file size/RAM limits). I have created a local link to another Omniscope IOK file which contains the details that I might need to see. Is there a way to configure the local link to pass a query to the other Omniscope file e.g. [Vendor Name] = 'Boots'

If this isn't possible on the link is there a way to do it?

Am interested to know the answer for both v2.5 and also v2.6 (as most of my customers are on 2.5 at the moment).

Many thanks

Andy]]>
Filtering: Import with parametric custom SQL queries? http://forums.visokio.com/discussion/1318/filtering-import-with-parametric-custom-sql-queriess Fri, 17 Feb 2012 00:21:06 -0500 farboud 1318@/discussions
However, I am not certain what is the best way to provide the parameter values that can change dynamically from, say, within the DataExplorer. Otherwise I will have to import millions of data rows which is not practical. What is the best way to handle this situation? Are parameters useful here? Can parameters be seen from the DataExplorer?

Thanks, Kaveh]]>
Parameters: Passing in external query parameters inside the link URL? http://forums.visokio.com/discussion/2744/parameters-passing-in-external-query-parameters-inside-the-link-urls Tue, 14 Oct 2014 09:53:52 -0400 TomRiggs 2744@/discussions