Query to reterive the list of parameters and there values for scheduling

I am develeoping a web application using java sdk want to reterive a parameter list for scheduling.
i want a query that will reterive the list of parameters
as we see on the parameters screen in CMC when we schedule the report.

               // Loop through the parameters to get the parameter names and parameter values.
                        for(int i=1;i<=numberPrompts;i++)
                       // Each prompt has the name SI_PROMPT + a digit starting from 1.  For example, if
                       // there are 2 prompts, the first one would be called SI_PROMPT1 and the second
                       // one would be called SI_PROMPT2.
                   IProperties prompt = (IProperties)siPrompts.getProperty("SI_PROMPT"+i).getValue();
                       // Get the parameter name.
                   String promptName = prompt.getProperty("SI_NAME").getValue().toString();
                       // Start displaying a row.
                       out.println("<tr>");
                          // First column in the row is the parameter name.
                   out.println("<td>Parameter Name = "+promptName+"</td><td><table>");
                       // Get the current values property bag.
                   IProperties currentValues = (IProperties)prompt.getProperty("SI_CURRENT_VALUES").getValue();
                       // Get the number of values for this particular parameter.
                       int numberValues = ((Integer)currentValues.getProperty("SI_NUM_VALUES").getValue()).intValue();
                       // Loop through all of the values for this particular parameter.
                       for(int j=1;j<=numberValues;j++)
                           // Print out the values.
                        // Each value has the name SI_VALUE + a digit starting from 1.  For example, if
                        // there are two values, then the first value would be called SI_VALUE1 and the
                        // second value would be called SI_VALUE2.
                    IProperties currentValue = (IProperties)currentValues.getProperty("SI_VALUE"+j).getValue();
                        // Check for the existence of the "SI_MIN" and "SI_MAX" properties.
                        // If it exists, then display the value.
                        if (currentValue.getProperty("SI_MIN") != null && currentValue.getProperty("SI_MAX") != null)
                                 // The SI_MIN and SI_MAX properties exist.
                            if (currentValue.getProperty("SI_MIN").getValue() != null && currentValue.getProperty("SI_MAX").getValue() != null)
                                // The properties have values.
                             // Get the SI_MIN property bag.
                             IProperties minRange = (IProperties)currentValue.getProperty("SI_MIN").getValue();
                             // To store the minimum and maximum values.
                             String minValue = "";
                             String maxValue = "";
                             // Get the SI_DATA property of the SI_MIN property bag.
                             // First verify that SI_DATA exists.
                             if (minRange.getProperty("SI_DATA") != null)
                                            // SI_DATA exists within SI_MIN
                                 if (minRange.getProperty("SI_DATA").getValue() != null)
                                     // SI_DATA has value so set the minValue to this.
                                  minValue = minRange.getProperty("SI_DATA").getValue().toString();
                         // Get the SI_MAX property bag.
                         IProperties maxRange = (IProperties)currentValue.getProperty("SI_MAX").getValue();
                         // Get the SI_DATA property of the SI_MAX property bag.
                         // First verify that SI_DATA exists.
                             if (maxRange.getProperty("SI_DATA") != null)
                                 // SI_DATA exists within SI_MAX
                                 if (maxRange.getProperty("SI_DATA").getValue() != null)
                                     // SI_DATA has value so set the maxValue to this.
                                  maxValue = maxRange.getProperty("SI_DATA").getValue().toString();
                         // Print out the Minimum and Maximum values for the parameter.
                         out.println("<tr><td>Range " + j + " Min Value " + minValue + " Max Value " + maxValue + "</td></tr>");
                            else
                                // The SI_MAX and SI_MIN properties exist, but they don't have values.
                             out.println("<tr><td>The SI_MIN and SI_MAX properties exist, but they don't have any values.</td></tr>");

Similar Messages

  • Query to find the list of workbooks and worksheets assiciated to those book

    Hi Gurus,
    Could you help me with the tables / Query to fetch the list of workbooks and associated worksheets names as welll.
    Thanks in advance!!
    Rgds,
    Santosh

    Hi Santosh
    The whole point of the STATS table is to allow you to query performance, who did what and when. The database itself does not keep such statistics so if you disable Discoverer's method of capturing these you have no way of knowing who did what and when.
    Without this it is impossible to say. I would strongly recommend you enable the capturing of statistics.
    The reason you cannot directly query a WORKBOOK to determine what WORKSHEETS are associated with it is because that information is stored as binary information and not in SQL format.
    Discoverer 10g has the capability of providing detailed information on the EUL. This feature is not offered "out of the box" but can be easily enabled.
    The EUL Administrator can enable the feature by completing the following steps (see also MOS Note 556932.1):
    1. Log on to SQL*Plus as the Discoverer Administrator on the machine where Discoverer Administration Edition is installed.
    2. Execute the EUL5.SQL script found in the *$ORACLE_HOME\discoverer\util* directory. (This script will create the necessary database objects.)
    NOTE: If you are using an Oracle Applications mode EUL, you must also run the eul5_apps.sql file in the $ORACLE_HOME\discoverer\util directory.   This script must be run as the EUL owner, and not the Oracle Applications SYSADMIN user.
    4. Exit SQL*Plus and log on to the Discoverer Administration Edition product (as the EUL Administrator).
    5. From the menu bar, select File | Import.
    6. Import the EUL5.EEX file from the ORACLE_HOME\discoverer directory. Once the EUL import is complete, a new business area will be created and visible called The Discoverer V5 EUL. This is the business area that provides the details on the EUL.
    EUL Management Workbooks for Discoverer Administrators
    The EUL5.EEX file also imports four pre-built Discoverer workbooks. These workbooks are automatically saved to the database during the EEX import and can be executed in Discoverer Plus, Viewer or Desktop:
    EUL Workbook Management - shows which workbooks are shared with which users. Examine worksheets to find the folders, items, joins and conditions they depend upon.
    EUL Access - This Workbook indicates if a current EUL exists in this users schema. It also displays the EUL's in other user schemas that this user can access.
    EUL Query Statistics - Find out which workbooks and worksheets are being used by whom. Examine users ad-hoc queries.
    Lineage - Hyper Drill from Discoverer to find a folder or Items Lineage in Oracle Warehouse Builder. To enable the Hyper drill, you will first need to run the Lineage.sql script.
    The Discoverer Administrator can use the pre-built workbooks or build their own EUL management workbooks by using the Discoverer V5 EUL business area.
    Best wishes
    Michael

  • Query to get the details of Blocking and deadlock occurred for the Day

    Hi,
       I need a query to get the details of blocking and deadlock occurred for the day.

    You havent specified which version of SQL you are using which makes it difficult to give a solution. Assuming its latest versions , by default SQL Server (in any versions) doesnt track blocking information.
    You need to run some kind of queries/traces to capture blocking. The same goes with Deadlocks where majority of the DBA's enable trace flag 1222/1205 when they suspect deadlocks happening.
    Check this link -
    http://dba.stackexchange.com/questions/10644/deadlock-error-isnt-returning-the-deadlock-sql/10646#10646
    This link gives code to get historic deadlock information. I havent used it , I just googled to get that.
    That being said if you are looking for something to capture for the future check the below links.
    Check these links on how to setup extended events to capture deadlock and blocking.
    http://sqlblog.com/blogs/jonathan_kehayias/archive/2010/12/21/an-xevent-a-day-21-of-31-the-future-tracking-blocking-in-denali.aspx
    http://blogs.msdn.com/b/sqlserverfaq/archive/2013/04/27/an-in-depth-look-at-sql-server-memory-part-2.aspx
    http://blogs.technet.com/b/mspfe/archive/2012/06/28/how_2d00_to_2d00_monitor_2d00_deadlocks_2d00_in_2d00_sql_2d00_server.aspx
    HTH
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Report to generate the list of plants and there addresses

    Hi,
    I have a list of plants uner a particular compnay code.Can I generate a report to that shows all the plants and their addresses?
    Regards,
    Saurav

    HI,
    Please discuss with your technical team to develop a report.
    Regards
    Ram

  • When i open my mail app it appear tp me onlu the list of in and out mail , for each account but I cannot read test an attachmentbecause I n tne right side appear only  the subject not the message. qhat should I do?e

    may I ask if this is aproblen of configuration or simething else?
    I will be grate to whom can give me suffestions
    giofrosr

    See if this helps .... Reset the iPad.
    Hold down on the sleep and home buttons at the same time for about 10 seconds until the Apple logo appears - ignore the red slider bar - let go of the buttons and let the iPad start up. Then check your emails.

  • Query to find the list of users having access to a particular scenario

    Hi,
    I am learning Hyperion Planning 9.2 x version. I wanted to know the query to find the list of users having access to Plan Iteration - 1 scenarion.
    As I am new to Hyperion Essbase and Hyperion Planning, I am assuming these ideas work out to get the desired result.
    1) As Hyperion Planning uses Relational DB to store the User Security information, we can query the list of users who is having access to Plan Iteration - 1 Scenario.
    I am not sure if this solution works. Please correct me If I am wrong.
    2) We can also query from the essbase editor to find out who all having access to this scenario.
    If the above is correct, can you please provide me the query.
    I am really need of this and I will be happy if any one provide the solution.
    Thanks & Regards,
    Upendra. Bestha

    Hi,
    If you are looking for some SQL to retrieve the access rights by member then you can use something like (SQL Server code though can easily be modified for Oracle)
    SELECT usr.object_name as Username,mem.object_name as Member,
    'Access Rights' = CASE acc.access_mode
    WHEN -1 THEN 'None'
    WHEN 1 THEN 'Read'
    WHEN 2 THEN 'Write'
    WHEN 3 THEN 'Write'
    ELSE 'Unknown' END,
    'Relation' = CASE acc.flags
    WHEN 0 THEN 'Member'
    WHEN 5 THEN 'Children'
    WHEN 6 THEN 'Children (inclusive)'
    WHEN 8 THEN 'Descendants'
    WHEN 9 THEN 'Descendants (inclusive)'
    ELSE 'Unknown' END
    FROM
    hsp_access_control acc, hsp_object mem, hsp_object usr
    WHERE acc.object_id = mem.object_id
    AND acc.user_id = usr.object_id
    AND mem.object_name = 'Plan Iteration - 1'
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • SQL query to get the list of approvals

    Hi,
    Could someone let me know the SQL query to get the list of all the pending approvals for a user in OIM 11g R2.
    Thanks

    There are a few ways to do this:
    -  The easiest would be to use a Relationship Query from the CMC. To do this, go to the Universes section on the CMC, right click on the relevant universe, select tools >> Check Relationships.
    - Use Query Builder. You will need more than one query to pull the information you need. You could try something like the below (for Webi)
    SELECT SI_NAME, SI_WEBI, SI_DATACONNECTION FROM CI_APPOBJECTS
    WHERE SI_KIND = 'universe' and SI_NAME = 'Universe Name'
    This will give you a list of Webi Reports by SI_ID.
    You'll need another query to list Webi report names:
    SELECT SI_NAME FROM CI_INFOOBJECTS WHERE SI_ID IN (SI_ID from query above)
    - This is trivial via Auditing / the Activity universe. This of course will only return reports that have already run.
    Best.
    Srinivas

  • Query to find the list of BP without having Particular GL transactions.

    Hi Experts,
    I want the query to find the List of Business partner who is not having Journal entry for Certain General ledger.
    Scenario: we are creating JE for TDS posting.
    so, i want to know the list of BP , who and all not having particular TDS GL for the particular period.
    Thanks in advance,
    Dwarak

    Hi Dwarak,
    Sure, no problem
    DECLARE @AcctCode AS NVARCHAR(100)
    SELECT @AcctCode=T0.AcctCode FROM OACT T0 WHERE T0.AcctCode='[%0]'
    DECLARE @DateFrom AS DATETIME
    SELECT @DateFrom=T1.RefDate FROM JDT1 T1 WHERE T1.RefDate=[%1]
    DECLARE @DateTo AS DATETIME
    SELECT @DateTo=T2.RefDate FROM JDT1 T2 WHERE T2.RefDate=[%2]
    SELECT CardCode FROM OCRD WHERE CardType='S'
    AND CardCode NOT IN(
    SELECT DISTINCT ContraAct FROM JDT1
    WHERE Account=@AcctCode AND RefDate BETWEEN @DateFrom AND @DateTo)
    Ok, now, here's the problem that I just encountered. This query will work, but, no matter how we fill the parameter, it will show you the very same result. To be honest, I don't know what's wrong with this query.
    If you change all the variables ( @AcctCode and @DateFrom and @DateTo ) directly, it will give you the accurate result. Take this as an example:
    SELECT CardCode FROM OCRD WHERE CardType='S'
    AND CardCode NOT IN(
    SELECT DISTINCT ContraAct FROM JDT1
    WHERE Account='10030201' AND RefDate BETWEEN '2011-09-01' AND '2011-09-20')
    I hard-code the account code, date from and date to for selection. System will show you the accurate result, but using parameter as in first query, system show same result no matter how we fill the parameter.
    Sorry, it seems that I could only partially solved your problem here. I already tried to create a stored procedure and executing the stored procedure with parameter, but still, somehow SBO show very same result no matter if we change the parameter.
    So, my solution need user to manually change the parameter in query. I know, this is a stupid solution, I'm afraid I can't help you to achieve perfect solution here. Maybe anyone here in the forum could guide me to fix my mistake in first query and how to rectify it?
    Best Regards,
    Hendry Wijaya

  • When logging in into yahoo mail after typing in password Firefox is adding something, login fails all the time. At yahoo mail Notepad does not work because it is impossible to close the list of items and they cover information, so I have to go to IE.

    When logging in into yahoo mail after typing in password Firefox is adding something, probably remembered password and login fails all the time. At yahoo mail Notepad does not work because it is impossible to close the list of items and they cover information, so I have to go to IE.

    Only when i go to a different browser (like IE) after i clear it , then all that shows up is the pages i visited in IE , that is what bugs me , why is IE browsing history sowing up in Firefox ??
    Basically , i can clear the history in Firefox , and then for a example , go to Craigslist , using IE7 (launching it from a complete different Icon , in other words at that time i never open Firefox) , then after closing out , or even leaving open as it does not seem to matter , i go into Firefox , and hit History , and there is every place i visited in IE7 , on my History in Firefox

  • Is there a way to find the list of PCs and iDevices connected to my Itunes Match?

    Is there a way to find the list of PCs and iDevices connected to my Itunes Match?

    Is there a way to find the list of PCs and iDevices connected to my Itunes Match?

  • When I unplug my headphones my music pauses. But when I plug them back in the controls won't restart the music and I must go to the list of tracks and select a new one to start again

    I have an iPhone 5 with iOS 7.04
    If I am listening to music using my Apple earphones when I pull the earphones out the music pauses as expected. However, when I go back and plug the earphones in and try to play on with the music nothing happens and I have to go back to the list of tracks and select a new one from the start.
    This also is impacting my listening to music from my iPhone on my motorcuycle audio system. The iPhone is plugged into a USB port on the bike and prior to iOS7 always resumed playing music from wherever it was in a track and displayed the music track name on the bike info panel.
    Since upgrading now the music won't start and again I have to pull the iphone out of the glovebox and go back to the list of tracks and select a new track. But the moment the power interrupts or the nav audio cuts in and switches from iPod the music pauses and doen't restart as it always did.
    Apple, what have you done?? You have basically taken the very first App that made the iPod exist and stop it functioning properly. When are you going to fix this or is there already some obscure setting that needs to be changed but that is not prominently displayed in settings anywhere? How can I make my iPhone function as an iPod properly again for my music needs?

    Nothing wrong, no panic. Some general remarks:
    a. the battery will not be charged when over 95% full; a full battery is not charged
    b. it is good for the battery to have it go down to about 50% before recharging, say once a week at least.
    c. never let the battery go down completely, so that it shuts off on its own: that is very bad for a modern smart Li battery.
    d. sometimes the old "battery calibration" procedure is advised, you should not do that.
    trick: when you click the little battery icon in the top menu bar, you also see if there is a heavy energy user running.

  • Query to fetch the list of Journal Entry without cancelled JE.

    Dear All,
    I have tried the following query to get the list of JE without Cancelled JE.
    SELECT T0.[TransId] FROM OJDT T0 WHERE T0.[TransId] NOT  IN  (SELECT T0.[StornoToTr] FROM OJDT T0)
    It is not working . can any one solve this?
    Thanks in advance,
    Dwarak

    Hi,
    Check this :
    SELECT T0.TransId FROM OJDT T0 WHERE T0.TransId NOT IN (SELECT T0.StornoToTr FROM OJDT T0 where t0.stornototr is not NULL)
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • SQL Query, to know the list of Invoices associated with a sales order

    Hello All,
    Can any one let me know the query to know the list of all the invoices associated with a sales order.
    Please do the needful.
    Thanks,

    Hello All,
    Please let me know is this possible to have the list of Invoices for an associated Sales Order.
    Thanks,
    Abdul

  • Where is the list of categories and keys for calling AVAppGetPref?

    I want to obtain parameters in Preferences window by using AVAppGetPrefString() function,
    but I could not find the list of words that is usable for its parameters.
    For example, in order to acquire the value that placed on [Identity]-[Name] in Preference dialog, it should be written as follows?
    AVAppGetPrefString("Identity","Name")

    Conspicuously not documented. Settings appear on WIndows to be stored under HKCU\Software\ADOBE\Adobe Acrobat\version.  Try setting a specific name then search that registry hive for it.
    It appears that we find things like
    AVAppGetPrefInt ( ... "AVDisplay" , "OverprintPreview" ) stored in
    HKCU\Software\ADOBE\Adobe Acrobat\10.0\AVDisplay, key iOverprintPreview
    Do not take this as documentation or authoritative, just the results of 10 minutes poking around.

  • Is there any way to get the list of Essbase and planning users  in excel wi

    Is there any way to get the list of Essbase and planning users in excel with last login details.

    Hi,
    This tool might be of some help to you, 'OlapUnderground Advanced Security Manager'. I havent used it personally but went through its features. Give it a try!
    Thanks,
    Junaid

Maybe you are looking for

  • Ipodservice, ituneshelper and memory???

    Hi all, I'm using Itunes to organize and listen my music, when I run it 2 services are automatically started: ipodservice and ituneshelper. I don't use ipod and then I don't need to use that service. There is a way to stop it? Just stop in services c

  • Descriptions in Web Gallery

    Hi, I've recently updraded to iPhoto8 and am trying to get used to the new Web Gallery way of sharing photos (used to use HomePage). Is there any way of showing a description of the photos?!! It's a bit hopeless to try and fit in the description in t

  • Where is file?

    1. Using iPhoto 5, I import my photos from my Nikon in RAW mode. 2. I create a new album. 3. I double click the image and modify it in Photoshop. 4. I save the image as a JPG. The problem? I cannot locate the JPG image either in my new album or in my

  • UWL Error - Urgent

    Hi After defining the settings of the system,system alias and UWL configuration, whem I tried to "Registration for Item Types of Universal Worklist Webflow" this error ocurrs: uwlExceptionID: 1109700656092 :uwlExceptionID: 1109700656092 JCO Function

  • Why does my keychain close after 1 hour from restart or logout/login

    Why does my keychain close after 1 hour from restart or logout/login.