Get web item parameter using currentState.getParameter

Hi WAD experts,
how can we get the current parameter status of a web item in JavaScript (WAD in BI 7.0)?
In the code generated by the wizard the currentState.getParameter is mentioned:
<i>Information can be extracted using the parameter 'currentState' and 'defaultCommandSequence'. In either case create your own object of type 'sapbi_CommandSequence' that will be sent to the server. To extract specific values of parameters refer to the following snippet:
<b>var key = currentState.getParameter( PARAM_KEY ).getValue();
alert( "Selected key: " + key );</b></i>
Any idea how to get for example the VISIBILITY status of a chart item in JavaScript?
Thanks for your help!
Regards, Olaf

Does anyone have an answer to this question?  We have an urgent need to "read" the current parameters of a web item and then take an action.
thanks
rodney

Similar Messages

  • Set Web Item parameter HIDDEN = 'X' based on Filter Value(s)

    In a BW3.5 Web Template I want to set a Web Item parameter HIDDEN = 'X' based on a filter value for another Data Provider in the Template.
    In other words I want a Web Item to be hidden if certain Co Codes are used in the Filter for another Data Provider in the template.

    The output of this statement gives the variable value. If using a filter use a Filter Web Item.
    <SPAN id=ZUGJAHR style="DISPLAY: none"><object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="TEXTELEMENTS_2"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="GENERATE_CAPTION" value=""/>
             <param name="ELEMENT_TYPE_1" value="VARIABLE_K"/>
             <param name="ELEMENT_NAME_1" value="ZUGJAHR"/>
             <param name="ONLY_VALUES" value="X"/>
             ITEM:            TEXTELEMENTS_2
    </object></SPAN>

  • How to get web application to use Tuscany without conflicting with SAP SDO

    Hi,
    We are attempting to run a web application on SAP NetWeaver CE 7.1 SP1 which uses Tuscany SDO.  As it now stands We must use Tuscany because the web application will not run with the SAP SDO implementation provided by Netweaver. To ensure that Tuscany is loaded with priority, we have packaged the Tuscany JAR files and their dependencies as a heavy resource, as described here:
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60642a88-95fe-2b10-d387-a245d48fc257?overridelayout=true
    The final check showed that Tuscany was correctly deployed as a heavy resource and included the following JAR files:
    common-2.2.3.jar
    ecore-2.2.3.jar
    ecore-change-2.2.3.jar
    ecore-xmi-2.2.3.jar
    tuscany-sdo-impl-1.1.1.jar
    tuscany-sdo-lib-1.1.1.jar
    tuscany-sdo-tools-1.1.1.jar
    xsd-2.2.3.jar
    We also verified that the web application using Tuscany has a hard reference to the Tuscany heavy resource.
    However, when we try to run the web application, the following error is logged:  java.lang.LinkageError: Class commonj/sdo/DataGraph violates loader constraints
    The issue is definitely due to some kind of classloading conflict with the SAP SDO library, as the application runs normally when SAP SDO is manually removed from the classpath. Doing this on a production system is unfortunately not an option, though.
    So the question is: how to get web application to use Tuscany without conflicting with SAP SDO?

    I took a look at the "printerReady" example.  Looks like I may be able to use the InetPing (...) function to ping through a range of IP addresses looking for a response.
    Any ideas on how to find the MAC address associated with the IP addresses that respond?
    We may have multiple units responding and the MAC address will allow the operator to determing which unit to connect to.
    I'll try the InetPing to see how it works,
    Kirk

  • Get web item parameters with JavaScript

    Hello,
    I have a web template with a button and an analysis item. The button should execute a JavaScript function that checks if the parameter REPEATED_TEXTS_DISPLAYED of the analysis item is set. If yes, the parameter REPEATED_TEXTS_DISPLAYED should be switched off, if not, it should be switched on.
    To implement this I am searching for the JavaScript coding that determines the state of the parameter REPEATED_TEXTS_DISPLAYED of my analysis item.
    Does anyone have an idea?
    Thanks a lot.
    DeGe

    Hi DeGe,
    Yes, you will have only 1 button on/off at any point in time. Plz. proceed as follows. I assume you have 1 ButtonGroup webitem on your template. You would need to add 1 more ButtonGroup webitem to the template such that they are side by side. Name the 1st ButtonGroup webitem's Button as 'Set Repeated Text Display On' & the 2nd ButtonGroup webitem's Button as 'Turn off Repeated Text Display'.
    Now on Action of the 1st ButtonGroup webitem's Button, add following Commands using the Command Wizard:-
    -- Choose 'SET_ITEM_PARAMETERS' from Commands for Web Items. Select your Analysis webitem here & check 'Display Repeated Texts'
    -- Add another Command. Choose 'SET_ITEM_PARAMETERS' from Commands for Web Items. Select ButtonGroup 1 & check 'Visibility' to HIDDEN
    -- Add another Command. Choose 'SET_ITEM_PARAMETERS' from Commands for Web Items. Select ButtonGroup 2 & check 'Visibility' to VISIBLE
    Now on Action of the 2nd ButtonGroup webitem's Button, add following Commands using the Command Wizard:-
    -- Choose 'SET_ITEM_PARAMETERS' from Commands for Web Items. Select your Analysis webitem here & uncheck 'Display Repeated Texts'
    -- Add another Command. Choose 'SET_ITEM_PARAMETERS' from Commands for Web Items. Select ButtonGroup 2 & check 'Visibility' to HIDDEN
    -- Add another Command. Choose 'SET_ITEM_PARAMETERS' from Commands for Web Items. Select ButtonGroup 1 & check 'Visibility' to VISIBLE
    At design time, keep ButtonGroup webitem 1 or 2 HIDDEN depending on what you want the default state to be i.e. repeated text display on or off.
    --Priya

  • Get current item id using JavaScript Client Object Model

    I have a client query that query SharePoint list Items. Lets say it is a document library. I need to get the list item id of each. 
    I can query the Title of the document using this syntax.
    ctx.CurrentItem['Title']
    But when I try 
    ctx.CurrentItem['ID']
    for list item ID, it does not give a value. How can I solve this?

    Hi Malin,
    If you're using the JavaScript Client Object Model, try using the SPListItem.get_item('key') method as in the example below:
    <script>
    ExecuteOrDelayUntilScriptLoaded(function(){
    var arrIds = [];
    var clientContext = new SP.ClientContext();
    var camlQuery = new SP.CamlQuery();
    camlQuery.set_viewXml('<View><Query></Query></View>');
    var items = clientContext.get_web().get_lists().getByTitle("Your List Title Here").getItems(camlQuery);
    clientContext.load(items);
    clientContext.executeQueryAsync(Function.createDelegate(this,function(){
    var itemEnumerator = items.getEnumerator();
    while(itemEnumerator.moveNext()){
    var itemId = itemEnumerator.get_current().get_item('ID');
    arrIds.push(itemId);
    alert(arrIds);
    }), Function.createDelegate(this, function(){
    alert("something went wrong");
    },"SP.js");
    </script>

  • Getting Web Start to use JDK's javaw.exe, not JRE's

    On Windows, I need a Web Started app (actually, my Glossitope desklet) to run with the JDK's javaw.exe, not the JRE's, because I use the Java Compiler API, which is more or less a no-op in the JRE. I've tried using the Java Control Panel to change the Java Application Runtime Settings path to use the JDK path rather than the JRE's, but the change never takes. What, if anything, can I do to get JNLP's to run with the JDK?

    Well, using ToolProvider is exactly what I'm trying to do. The program lets you type some Java code, then compiles it and runs it (with help from a custom class-loader). The problem is that when run from Web Start on Windows, ToolProvider.getSystemJavaCompiler() returns null. I can see from the Control Panel that Web Start's path to Java uses the JRE path, not the JDK, and I suspect that's the reason I'm getting null for the compiler.
    I suspect bundling the tools jar is exactly what I need to do, and I also suspect the license forbids that.
    Works great on the Mac, FWIW.
    Thanks for the reply.
    --Chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to create own Web Items for Web Application Designer

    Hi all,
    is it possible to create own Web Items for the Bex Web Application Designer? Each Web Item has a Master Web Item and a class that is responsible for rendering data. I need a solution to get the Web Item's data - i.e. the content of a table (if Web Item = table). So my approach would be to create an own (Standard) Web Item with an own class. For example I would like to change the table's Web Item parameter <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/> to an own class...
    Is this possible?
    Or ist there any possibility to get the Web Item's data by an interface?
    Any support is welcome...thanks in advance!
    Best regards,
    Dominik

    if you want to create your own webitem check out the link given by other sdner.
    if you want to be able to execute BW query using abap you can check out the following weblog.
    /people/durairaj.athavanraja/blog/2005/12/05/execute-bw-query-using-abap-part-iii
    Regards
    Raja

  • Customize Analysis web item

    Hi All,
    I have to customize the Analysis web item by adding an extra column for user to put in comments for each row and the comments should be saved.
    Is there a way to do this using Modification parameter in the parameters for Analysis web item or using Custom Extension web item ?
    Can you please suggest how it can be done?
    We are on BI 7.0 and we don't have the above mentioned 2 options in our WAD . But read the documentation on the help portal and thought there is way to do it. Our basis team is working on it to get those 2 options available in WAD.
    Please let me know the steps to achieve it.
    Thanks,
    Prasad

    Hi
    Also chk these links whether this could be of any help :
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/d8/f3a83adae1a010e10000000a11402f/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/b3/f4b1406fecef0fe10000000a1550b0/content.htm
    Regards

  • Restful sample with Java for getting WebI report info in 4.1

    Hi All
    Can anyone give me a sample code in JAVA for getting WebI  report information using Restful services in 4.1 SP1 Version
    Thanks In Advance

    Hi All
    Im unable to execute the below URLs and getting error
    /documents/{documentId}/reports/{reportId}/elements/{elementId}/properties
    /documents/{documentId}/reports/{reportId}/elements/{elementId}/datapaths
    /documents/{documentId}/reports/{reportId}/elements/{elementId}/dataset
    /documents/{documentId}/reports/{reportId}/elements/{elementId}/axes/
    /documents/{documentId}/reports/{reportId}/pages
    /documents/{documentId}/reports/{reportId}/inputcontrols
    /documents/{documentId}/reports/{reportId}/
    Errors:
    Not found. (RWS 00056)
    Not acceptable, (RWS 00058)
    Any Suggestion Please.

  • Still possible to create  custom web items in WAD 7.0?

    Hi,
    in WAD 3.5 I was able to create custom web items and use them in the WAD after making the correct entries in the RSRRENDERER tables. Today I tried to do the same in an 7.0 environment, however, I didn't find my web item in the left hand side in the WAD. Is it still possible to create you own web items in 7.0?
    Kind regards,
    Tom

    Hi,
    Pls chk this;
    [https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/spat/index.htm?sp1=SAPKW70012]
    SAPKW70012 - change the last 2digits to the SPlevel you need to see all the included notes in that SP
    Hope this helps,
    regards
    CSM Reddy

  • Parameter REPORT for the Report Web item in the Web template is empty or mi

    Hello,
    I tried to create a Web-Template (WAD). By executing the report, I get the selection screnn, but by confirming the selection I get the following message:
    Web Item Report Error
    Web template error in specifications for the Web item report
    Parameter REPORT for the Report Web item in the Web template is empty or missing
    Use the BEx Web Application Designer to add parameter REPORT to the report Web item in the Web template, and assign a report name to the parameter
    Contact your system administrator. This error was recorded
    What can I do to solve this error?
    Thanks!
    XmchX

    As DP_1 Type Query_view_Data_provider, I have assinged a Query Designer Query wich works fine, if I execute it as QDR.
    The entry Query_view_Data_provider makes sense for me, but what do I need to maintain for the type "Filter"?
    Thanks!
    XmchX

  • Toggle between Web Items using an Image link in WAD 7.0

    Hello,
    i want to toggle between Web items using an image link: e.g. on my template I have a visible table and a hidden chart, now when I click on a small chart image I want the table to get hidden and the chart to get visible. I know that this is possible using a button group, but I need to make this possible using an image.
    My approach is the following:
    1. Using a script item with 2 commands of type SET_ITEM_PARAMETERS from the command wizard, from which one command hides the table and one command makes the chart visible.
    2. Writing a hyperlink which calls up the script using the image as source.
    Now my problem:
    This works only if I'm using ONE command of type SET_ITEM_PARAMETERS in the script function. So I can either make the chart visible or hide the table. When I insert a second command in the java script nothing works anymore. However, I need to use both commands at once in order to make it useful. I don't know how to program in javascript, can you help me out?!
    Thanks,
    Norbert
    PS: I could show you the javascript code which was created automatically by the web application designer including both commands, but as I've just seen it in the preview it looks totally messed up since it doesn't get formatted corrected.

    Hi Norbert,
    There is an easier approach. In the button group item, you can insert an image and a description. Just open the parameters of your button there you will find the parameter 'icon'. Insert an image there and leave the 'caption' empty.
    Best regards,
    Janine

  • Issue using Get-Child-Item

    Have a function that will scan (grep) files in a folder with a certain extension.  For some reason, Get-Child-Item always returns empty / 0 files on my folder even though you can look at the folder and see files of the specified extension (*.config).
     Suspect either I am doing something wrong or permissions are somehow getting in the way.  How do you properly use Get-ChildItem
    in this context?
    function scan-Files
    param(
    [parameter(mandatory=$True)]
    [string]$folder,
    [parameter(mandatory=$True)]
    [string]$filePattern,
    [parameter(mandatory=$False)]
    [bool]$recurse = $False
    Write-Host "Folder = $folder"
    Write-Host "FilePattern = $filePattern"
    $files = Get-ChildItem -Include $filePattern -Path $folder
    #always empty for some reason
    if ($files)
    Write-Host "File count = $($files.Length)"
    }...#Invoke our function$folder = "C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportServer\"
    $filePattern = "*.config"         
    #scan-Files -folder $folder -filePattern $filePattern -recurse:$true
    scan-Files -folder $folder -filePattern $filePattern

    The Gods of the computer demand it.  Without it you are only enumerating a folder item.  With it you are enumerating the contents of the folder.  Include only works on files that have been selected.
    Example:
    dir 'C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportServer\*.txt' -include *.config
    dir 'C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportServer\*.c*' -include *.config
    dir 'C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportServer' -filter *.config
    Try all to see how they work.
    \_(ツ)_/

  • How to get string ("Product # 1") using getParameter("str")

    I'm facing problem. When i requested a page (url+querystring). On requested page when i tried to get the parameter using getParameter() it didn't return me the complete string i supposed to get. e.g
    str = "Product # 2"; // the one i send to requested page
    what i got is : Product // the part "# 2" was missing.
    Note : I tried to encode but when i passed it to javascript it didn't parse #.
    Pls. send me a complete solution. It would be a great favor.
    Thanks.

    I'm invoking javascript function and passing url as parameter. i tried to use escape() of javascript but server respond with" file not found"

  • How to pass parameter values to a customer exit web item (WAD)

    Hi gurus,
    I have a wad with a data provider and a filter panel filtering that dp by using a variable. There is also a customer exit which saves the values of that variable into a z table.
    How can I pass the values of the filter panel to the customer exit web item?
    Thanks in advance,
    Rob

    Can you clarify your scenario? Which is the case you're talking about?
    1) You want to pass a parameter from OmniPortlet to a PL/SQL procedure.
    2) You want to pass a parameter from a PL/SQL procedure to OmniPortlet.
    In both cases the most obvious way of doing it is through request (URL) parameters.
    Render a link in your portlet (either in OmniPortlet or using PL/SQL) that invokes a portal page, containing the other portlet.
    Both OmniPortlet and PL/SQL allow you to wire and access page parameters.
    Take a look at the Using Parameter and Events section of the Portal User's Guide and the Parameters and Events section of the Portal Developer's Guide.
    Hope this helps,
    Peter

Maybe you are looking for

  • I need to transfer all of the data from my old iphone 4s to my new iphone 5

    I need simple help to transfer all of the contents from my old iPhone 4s to my new iPhone 5 The Apple Store was unable to assist due to too much data for icloud.  I have a MacBook and the cables for each device.  Where to start? db

  • Creating Entities for this data model

    Hi guys, I have these 3 tables: create table employee_a ( employee_id int not null primary key ,   first_name varchar(50) not null ,   last_name varchar(50) not null ) create table manager_b ( id int not null primary key ,   manager_employee_id int n

  • HT201406 My touch pad is now in the centre of the screen?

    I am unable to see what I am writing as my touch pad as moved to the centre of the screen.

  • How to set dreamweaver to not use CSS?

    I know it is frowned upon to not use CSS, but, the reason why I want everything done in HTML is because I want to list my page on ebay, and ebay does not support the use of css, or at least it seems that way, everything has to be purely done in HTML,

  • Core data tutorial

    Hi All does any one have a good example of core data tutorial something like Staff / Financial year / Holidays Staff = Staff details Financial Year = 2009/10, 2010/11 etc Holidays takes like... date from 01/05/2009 date to 10/05/2009 Type of holiday