Determining web item parameters in JavaScript

Hi there
Is it possible to determine the parameters of a web item using JavaScript?
I know there are commands to SET the parameters in JavaScript, but I need to determine a parameter first, then set it accordingly.
Any ideas?
Cheers,
Andrew

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

Similar Messages

  • 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

  • Modify Web Template Parameters Using API or Javascript

    Hello Experts,
    I am using the Web Application Designer (WAD) to build a template.  We are on BW 7.01 (EHP1).  I am trying to find a way to set a command within the template to change one of the parameters of the Web Template itself.  I am very familar with how to use the SAP provided API Commands to change the Web ITEM parameters (like ANALYSIS item, CHART item, etc), but I do not see an API that will allow me to change the parameters of the Template itself.
    For example, in WAD, on the left hand side, you can select the "Web Template" item and set the properties.  For example:
    Display Variable Screen [VARIABLE_SCREEN]
    Reset Variable Values to Default [CLEAR_VARIABLES]
    Show Personalized Variables [SHOW_PERSONALIZED_VARIABLES]
    I would like to add a button to the template where I can allow the user to change some of these properties, but I don't see a way to do it.  Does anyone have any experience coding this?
    Thanks in advance for your help.
    Jose

    Hi ,
    According to your description, my understanding is that you want to retrieve list item values related to a specific version using JavaScript.
    We can also see the a specific version via the url …/_layouts/15/Versions.aspx?list=GUID….
    We can use the SharePoint List web service that exposes
    Lists.GetVersionCollection Method to return version information for the specified field in a SharePoint list.
    There are some similar posts for your reference:
    https://social.msdn.microsoft.com/Forums/en-US/02d29ce7-1a2b-4e91-9319-6dd43cde0bee/getting-the-version-history-of-a-list-item?forum=sharepointdevelopment
    https://social.technet.microsoft.com/Forums/systemcenter/en-US/4bd80e0e-a605-4c5e-b534-a189c346b978/csom-fetching-list-item-version-history-programmatically?forum=sharepointdevelopment
    (the last reply of Patrick)
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • Reading web items in javascript.

    In a 7.0 template, how can I read the value of a web item using javascript? I want to read a filter value from the info field item, manipulate it and assign the resulting value to an input item. How do I access the value?

    Hello Bharath,
    There is a webitem called Navigation pane in the Standard list, i hope this is what you need.
    Kindly reply again is your problem is not resolved and please assign points if it is :).
    Regards,
    Dennis

  • Pass content from web item single document to javascript

    Hi all,
    does anyone has passed the content from the web item "single document" to a javascript variable? I just want to grab the text.
    Regards,
    Adem

    Hi GOPI,
    i am testing the script but i receive the error that obj.innerHTML is null or not an object.
    <HTML>
    <!-- BW data source object tags -->
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_DATA_PROVIDER"/>
             <param name="NAME" value="DOCUMENT"/>
             <param name="DATA_PROVIDER_ID" value="ZMB_CC_00_DS_01_VIEW_WEB01"/>
             DATA_PROVIDER:             DOCUMENT
    </object>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_DATA_PROVIDER"/>
             <param name="NAME" value="DATAPROVIDER_1"/>
             <param name="DATA_PROVIDER_ID" value=""/>
             DATA_PROVIDER:             DATAPROVIDER_1
    </object>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_PROPERTIES"/>
             <param name="TEMPLATE_ID" value="ZTMP_SOLUTION4"/>
             <param name="DATA_MODE" value="STORED"/>
             TEMPLATE PROPERTIES
    </object>
    <HEAD>
    <META NAME="GENERATOR" Content="Microsoft DHTML Editing Control">
    <TITLE>BW Web Application</TITLE>
          <link href="/sap/bw/Mime/BEx/StyleSheets/BWReports.css" type="text/css" rel="stylesheet"/>
    </HEAD>
    <BODY>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="DOCUMENT_1"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_DOC"/>
             <param name="DATA_PROVIDER" value="DOCUMENT"/>
             <param name="GENERATE_CAPTION" value=""/>
             <param name="BORDER_STYLE" value=""/>
             <param name="WIDTH" value="429"/>
             <param name="DOCUMENT_CLASS" value="TRAN"/>
             ITEM:            DOCUMENT_1
    </object>
    <script type="text/javascript">
    var obj = finddoc("DOCUMENT");
    alert(obj.innerHTML);
    function finddoc( doc_name ){
    var all_tables = document.all;
    for( var i=0;i<all_tables.length;i++ ){
    if (all_tables.name==doc_name)//we have found document
    return all_tables;
    return null;
    </script>
    </BODY></HTML>
    I try to debug.
    Best regards,
    Adem

  • 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

  • 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

  • How to render web items based on the authorisation profile of the user

    Hello,
    Is there any way to render web items based on the authorisation profile of the user. The only way i can think of is:
    - Write ABAP to look up into the security mapping tables.
    - Convert the ABAP report into RFC-Enabled FM. The selection variables will be part of the import/export parameters of FM and table can be used to display the result.
    - Create HTML template using WAD, write Java Script to call the FM and map the import/export parameter. Display the result in Table.
    But i don't know How to use the Java Script to call Function Module (FM) and get back the authorization through parameter.
    Is anyone know about it or is there any other method to do it? I can't find any solution and it is very critical for me.
    Any help is highly appreciated.
    Rajat

    Hi Rajat,
    Do you mean that you want certain users to be able to use only certain web items? I think you can use the libraries for that and assign them to roles:
    http://help.sap.com/saphelp_nw04/helpdata/en/4e/0f813b420ce60ee10000000a114084/content.htm
    Hope this helps...

  • How to design selection screen with WAD 3.x Web Items

    Hi Guruu2019s,
    I have a requirement where I need to design a selection screen by using WAD 3.x web items. In the selection screen we have to include the Query Description - in the left corner of the selection screen, Name of Sales Person u2013 left side of the screen, Date from and Date to u2013 right side of the selection screen, User ID and User Name u2013 on the top right of the selection screen etc., after this on the bottom of the selection screen I have to include the pushbutton RUN REPORT.
    After filling all the above parameters and click on Run Report it has to trigger another URL link which contains consolidated Sales CRM Report.
    Could any one suggest me and provide me the idea on developing the selection screen with WAD 3.x Web items and is there any other interface to trigger the other URL link when I click on Run Report.
    Regards
    Venkat

    no replies. Closing the incident

  • How to create web items with different quantities?

    Hi,
    I have B1 inventory items that are single items but we will be selling them on the web as 'packages' of different quantities.  For example, we would like the user to be able to select the web item, then be presented with a drop down (attribute) of case (10 items), 1/2 pallet (80 items) or full pallet (160 items).  Is it possible to setup a product line master which is a B1 inventory item, then define the child items, non B1 items, and somehow have the proper quantities ordered?  (ie. ordering 2 cases creates a B1 order for our parent item with a quantity of 20)
    If I can do this, I have another concern.  Since we are currently using our test database, if I setup all of these child items and create the parent/child relationships, will these be lost once we swtich the database over to our live/production database?
    Thanks,
    David

    Personally, I would add the javascript to the Item's description with additional drop downs there, upon selecting the drop down, this would populate the QTY field which i would hide via javascript as well, but will be passed on to the Cart/checkout page.
    There is a somewhat similar discussion here:
    [Re: Custom price logic|Re: Custom price logic]
    James

  • How to fix column / row as "header" in WAD (Web item Analysis) ?

    Hi,
    is there a possibility to fix a column or row as "header" in web item analysis? (like freeze panes in excel)
    When scrolling down, the header should always be displayed.
    Thank you very much in advance, best regards
    Frank

    We did a custom proof of concept on this back in 3.5 using CSS and/or javascript. At that time there was no BW solution for this.
    Don't know if 2004s has this ability or not. Here's a link to an example that shows how it can be done using CSS:
    http://home.tampabay.rr.com/bmerkey/examples/locked-column-csv.html

  • Programming Web Item. Problem with URL creating

    Hi,
    I am trying to programm a own Web Item.
    I derived from the class CL_RSR_WWW_ITEM_VIEW.
    Everything is worken fine. I just have a problem with
    the creation of links.
    In the WAD there is the very nice way of using SAP BW URLs
    like:
    <SAP_BW_URL cmd="PROCESS_HELP_WINDOW"
    help_service="ZPRINTING"
    item="TABLE_1"
    suppress_repetition_texts=""
    P_PREVIEW_MODE=" ">
    Is the a method or something similar to do the same with abap?
    Greetings
    Mike

    I found  out mayself!
    You just have to use the object CL_RSR_PARAMETER.
    There you can add parameters.
    Then use the method get_url of the object CL_RSR_WWW_PAGE to make a URL string out of it.
    Mike

  • 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

  • User manipulation of web item properties

    Hi everyone,
    I have a requirement from a client where they want to be able to dynamically manipulate web item properties, more specifally they want to change the number of columns of a report displayed on the web.
    For instance, lets say I have a web template that has a query assigned to it and displays a report. In the bex web designer, you can set the number of columns displayed in the properties section of the web item. I want to be able to change this property directly from the web with the help of a drop down box.
    Is it possible to do this, and if so, how?
    I have tried to search the forums for a similar questions but with no luck.
    Thanks!!
    best regards,
    Dionisios

    Hi,
    Are you referring to the Table item property named DATA_COLUMN_TO? Aren't you able to change it by adding it at the end of your url with the desired value?
    If you need to add a button or a new context menu entry then you will need to add some javascript to your web template.
    Please, check how to guide about adding a new context menu entry (How to enhance context menu).
    Hope it helps,
    David.

  • WAD 7: Hide Web Item depending on variable value

    Hi,
    I have two enterprise reports in a web template. The underlying queries have the same variable (calendar month). I want to achieve the following:
    In case the variable is < 4: Show report A, Hide report B
    In case the variable is >=4: Show report B, Hide report A
    Any idea how to do this?
    Best regards
    Thomas

    You should lookup how to use XPATH and Javascript combination. Xpath will let you query the value of the variable in Javascript and then you can use javascript to set the hidden property for the desired web item.

Maybe you are looking for

  • How can I get the remote directory from an FTPActivationSpec header?

    The header message generated for the oracle.tip.adapter.ftp.inbound.FTPActivationSpec contains the file name, FTP host and FTP port. Is there any way of getting the remote directory as well? <schema attributeFormDefault="qualified" elementFormDefault

  • My imessage is no longer working along with sms

    My friend and i both have iphones and imessage all the time. There is the occasional moment when we send sms because imessage is not avalible. I started getting the messages from his email. I added his email to his contact. His messagess began coming

  • Help With Colouring In Book For Children.

    Hello. I am part of a group of volunteers that give up their time in order to support disabled children. The local centre were we volunteer has recently received a donation of computers specially designed for the children. The team and I were thinkin

  • How to use RM-1500 with a SB Live! USB to control winamp and other ap

    I've been trying several apps (intelliremote, RMX and others) to do this, but no one seems to work properly. Does anyone knows if this is possible? Apparently those apps only work with non-usb sound cards. The remote works, but I only can control the

  • Enter and shift keys

    i can't use my enter key or either of my shift keys. is there something that i could have hit that turned them off or something how do i fix it