Passing parameters from iViews to WAD Templates

All,
I'm a .Net developer new to the SAP world, so excuse me if I say anything ignorant about SAP.
I want to pass some parameters from an iView to a Web Application Template. Then I want to be able to reference those variables in the Template and pass them to another Template. I know in the ASP world, I can refer to the Request object in the code behind. I do not know how to reference the request variables in the Template.
Here's what I've tried with no luck (I want to be able to reference the variable "QueryName" in the Template):
BEx Web Application Query String: cmd=ldoc&template_id=XROMO_IVIEW_PARM&QueryName=WhatDoYouKnow
Web Application Template:
<script language="javascript">
function WindowOnload() {
frmApp.romo1.value = '<Request.QueryName>';
frmApp.romo2.value = "Request.QueryName";
</script>
</HEAD>
<BODY onload="WindowOnload();">
<form id="frmApp">
Passed Query Name <input type="text" name="romo" value="<request.QueryName>">
<br><hr>
Passed Query Name <input type="text" name="romo1" value="">
<br><hr>
Test Parm Set <input type="text" name="romo2" value="">
</form>
Any help provided would be greatly appreciated.
Thanks,
ROMO

To get the value of a parameter in the URL...
Get the URL string and parse it.
<script language="javascript">
function WindowOnload() {
var url = location.href;
var i = url.indexOf("QueryName=") + 10;
frmApp.romo1.value = url.substr(i,8);
</script>
-OR-
Second option is to use the Text Elements web item to get the technical name of the query.

Similar Messages

  • Passing parameters from an URL to a WAD Web Template 7.0

    Hi guys, I need to pass parameters from an URL to a web template created with WAD 7.0. We need to open a template with certain filters starting from a link button located on an Xcelsius Dashboard. Our customer wants a web template to be opened with the filters defined within the Xcelsius
    The idea is to run the template with the filters defined in the URL. I know this was incredibly easy with WAD 3.x, but I didn't find any suitable solutions to use with WAD 7.0.
    What is the easiest way to do this with WAD 7.0?
    Thanks in advance and regards.
    Fabio Cristi

    Hi,
    It is possible in 7.0, but unfortunately it is a lot more complicated than i 3.x. There are quite a few examples here:
    http://help.sap.com/saphelp_nw70/helpdata/en/43/ef05462480025ae10000000a1553f7/content.htm
    I used it in a case where I wanted to embed a Web template in a BPS application and pass characteristic filters from the BPS application to the web template - similar to your requirements. Basically you need the following just to restrict one characteristic :o(
    &BI_COMMAND_1-BI_COMMAND_TYPE=SET_SELECTION_STATE
    &BI_COMMAND_1-TARGET_DATA_PROVIDER_REF_LIST-TARGET_DATA_PROVIDER_REF_1=DP_1
    &BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS-SELECTION_1=SELECTION_INPUT_STRING
    &BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS-SELECTION_1-SELECTION_INPUT_STRING=PDS06
    &BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-CHARACTERISTIC=0D_PH2
    I could only get it to work with one characteristic and I suspect, that the reason is that the URL simply gets to long (very quickly). You have to repeat the above for every characterstic you want to use :o(
    Hth,
    Jacob

  • Pass parameters to iView (VC Model) from Portal

    Hello All,
    In VC, we have a model that has a start point as input with few input parameters.
    As per the WIKI note https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/passing%2bvalues%2bvia%2burl
    We were able to make the VC model read the parameters from the URL. Once we got this working, we created a new page in Portal and we added the VC model as an iview to the page.
    Is there a way i could add the parameters as a part of configuration of the page or the iview in the portal?
    I would like to know if it's possible to pass the value of InputParameter to iView from portal ?
    We tried setting the isolation of the iview to URL, to utilize the parameters property. But we are not able to figure out how to pass parameters from here
    Any help would be highly appreciated!
    THanks,
    Naveen

    I am using a scenario where a VC form on the front page of our portal sends values to a separate page where the search results are displayed. The url is made up of the PCD id and the neccessary parameters. The target page is displayed as a popup. This works fine. The url looks like this:
    http://server:50000/irj/servlet/prt/portal/prteventname/Navigate/prtroot/pcd!3aportal_content!2fint.agra.f0000!2fint.agra.f0060!2fd0001!2fframeworkPages!2fint.agra.p0100!2fcom.sap.portal.innerpage!2fcom.sap.portal.contentarea?NavigationTarget=navurl%3A%2F%2F9c506d0cfa29ad6f8d27790117c4c622&_paramsXmlStr_=<Params><Row%20FSTNAME_M='henning'%20LASTNAME_M='strand'></Params>;
    Does this describe a similar scenario as you want?
    Henning Strand

  • Passing parameters from URL to multiple iViews on a page.

    Hi Everyone,
    Could you please point me to a guide or howto, which explains on passing parameters from URL to multiple iViews on a page. I already know how to pass parameters from URL to a single iView (wiki).
    Thanks!
    Indy

    Hi Indy,
    Currently, passing parameters to the page which contains VC iViews is not supported, only directly in the iView's URL.
    Regards,
    Natty

  • Pass parameters from JSP Dyn Page to WDJ Application

    Hi,
    I am trying to pass parameters from my JSPDyn Page to WDJ Application.
    I am using NWDS 7.1 EHP1
    My code is :
    function to_WEBDYNHK()
          EPCM.relaxDocumentDomain();
          EPCM.doNavigate
        ('ROLES://pcd:portal_content/Himanshu.Himanshu/TestDynUIApp?DynamicParameter="hkparam%3Dqwertyuio"');
    This method is being called on click of a button.
    hkparam is the parameter in question.
    The JSPDyn page is an iView and the WDJ application is a page and both have been assigned to a role.
    In the properties of the WDJ Page, I have removed DymanicParameter from "Do not Forward These Parameters To Web Dynpro" property.
    However I am getting null as the value of hkparam in my WDJ application.
    The code used is :
    IWDRequest request = WDProtocolAdapter.getProtocolAdapter().getRequestObject();
           String param1= request.getParameter("hkparam");
    What seems to be missing here.
    Please help.
    I went through the documentation on SDN but it does not seem to help.
    TIA,
    Himanshu

    Hi Himanshu,
    Try this code.
    EPCM.doNavigate("ROLES:portal_content/Himanshu.Himanshu/TestDynUIApp?hkparam=Dmypass1123")
    if the parameter is hkparam and the value to be passed is Dmypass1123. You need not change any design time property of the WD page, and WDProtocolAdapter should retrive the parameter.
    Regards,
    Vishweshwara P.K.M.

  • Passing parameters in iviews

    Hi all,
    I want to know is there any way to pass parameters from one URLiview to another URLiview in the portal without coding in webdynpro java. Can we declare this parameters anywhere in the portal?
    Thanks in advance,
    Bhaskar.

    Hi jitender,
    Thank you for your reply. But, after i have created an URLiview in the portal, there is a property called 'Parameters to Pass from Page Request(for URL isolation )'. I suppose this is the property to be used to pass parameters to another iview. But i want to know how to access this parameter from second iview.
    My requirement is how to pass a parameter(suppose a string) from iview1 to iview2 in poratal without using 'programming portal eventing' or EPCM in webdynpro java.

  • Passing parameter from Iview to SAP WD ABAP application

    Hi All,
    Can we pass single / multiple parameter(s) from the Iview to the Webdynpro Component ? I mean we are calling a WD Component by executing its application from the Iview. In that process, is there a way we can send some parameters to the WD component from the Iview ?  If yes, please let me know how.
    Thanks and Regards,
    Sayan Ghosh

    Hi Sayan,
    It is possible to pass parameters from portal Iview to WD component. For that there is one property of Iview called
    Application Parameters
    You can pass value like this:
    parameter1=value1 &parameter2=value2
    Regards,
    Vikrant Trivedi

  • Passing parameters from shell script to OWB process flow

    Hi all,
    I am running OWB process flow (using the template script provided by oracle) and i want to pass two date parameters as shown below:
    sqlplus -s $SQL_USER/$SQL_PWD@$ORACLE_SID @$HOME_DIR/src/vmc_oem_exec_script.sql OWB_OWNER VMC_POST_DW_PF_LOC_SIT PROCESS VMC_NM1_PORT_MAIN "," "P_DATE_FROM=$DATE_FROM,P_DATE_TO=$DATE_TO"
    How do i catch those values in process flow and pass those to mappings in Process flow?
    Do i need to create PF variables with same names or any name will do?
    Thanks in advance

    This document is explaining how to pass data between activities in process flow.
    I am passing parameters from a shell script.
    Any ideas,how to pass parameters from shell script and then initialize the process flow variables based on those values and then pass them further to mappings.
    Thanks

  • Pass parameters from hbj link

    Hi,
        I want to pass parameters from hbj link to the component where the event method is going to be called. And also when I click the event how it is going to redirect other jsp.
    Regards,
    Suresh.B

    Hello Reinuka,
    It is possible to send parameter to Web Dynpro iview.
    In the iview application parameters add Param1 =.
    Place this code wherever  you want to call that iview.
    WDPortalNavigation.navigateAbsolute("ROLES:"+iview,WDPortalNavigationMode.SHOW_INPLACE,(String) null, (String) null, WDPortalNavigationHistoryMode.NO_DUPLICATIONS,(String) null,(String) null,"Param1 = ");
    "ROLES:"+iview=Iview Path
    "Param=Paramvalue"=Parameter and its value
    Youcan receive the value as
    String parmvalue=WDWebContextAdapter.getWebContextAdapter().getRequestParameter("Param");
    Regards,
    Sridhar

  • Passing  parameters from  BSP to BW report

    How to pass parameters from a BSP application to BW in order to execute the BW report

    In BW template
    a different URL is generated for selection made in each input field.
    I have 4 different URL's now.
    and when I push the Execute button a URL is generated which looks incomplete and it does not show all the parameters(  lot of things are happeninng inside like authorizatins, session handling etc).
    The URLS are shown below
    URL genarated when the query is executed in the browser:
    http://coles33.co.lsil.com:1080/SAP/BW/BEX?variable_screen=X&template_id=0QUERY_TEMPLATE&INFOCUBE=ZAMOEMP1&QUERY=ZAIMREP1
    After selecting Location:
    http://coles33.co.lsil.com:1080/SAP/BW/BEX?SAP-LANGUAGE=E&PAGENO=1&CMD_ID=1&REQUEST_NO=0&VAR_VALUE_EXT_2=CA01&F4CMD=FINISHED
    After selecting org:
    http://coles33.co.lsil.com:1080/SAP/BW/BEX?SAP-LANGUAGE=E&PAGENO=1&CMD=PROCESS_VARIABLES&INDEX=3&VAR_VALUE_HELP_SET_LINE=3&REQUEST_NO=0&VAR_VALUE_HELP_SET_5=5
    After pushing Insert:
    http://coles33.co.lsil.com:1080/SAP/BW/BEX?SAP-LANGUAGE=E&PAGENO=1&CMD=PROCESS_VARIABLES&REQUEST_NO=0&CMD=PROCESS_VARIABLES&SUBCMD=VAR_NEW_LINES&VARID=WNTEST1%200001
    After making second selection for org:
    http://coles33.co.lsil.com:1080/SAP/BW/BEX?SAP-LANGUAGE=E&PAGENO=1&CMD=PROCESS_VARIABLES&INDEX=4&VAR_VALUE_HELP_SET_LINE=4&REQUEST_NO=0&VAR_VALUE_HELP_SET_15=15
    After selecting FLSA:
    http://coles33.co.lsil.com:1080/SAP/BW/BEX?SAP-LANGUAGE=E&PAGENO=1&CMD_ID=2&REQUEST_NO=0&VAR_VALUE_EXT_5=EX&F4CMD=FINISHED
    after selecting date:
    NO URL GENERATED
    After pushing Execute:
    http://coles33.co.lsil.com:1080/SAP/BW/BEX?SAP-LANGUAGE=E&PAGENO=1&CMD=PROCESS_VARIABLES&REQUEST_NO=0&CMD=PROCESS_VARIABLES&SUBCMD=VAR_SUBMIT&VARID=
    I am not able to understand how to call this url from BSP page.( I also have multi-selection for location and org)
    regards
    Aditya

  • Passing Parameters to iView

    Hello Experts,
    I want to pass a simple parameter from one iView to another. How do i pass it using EPCM.doNavigate? my code in asp is
    Response.Redirect("url to navigate" + "?ID=V")
    Request.QueryString\["ID"\] == "V"
    I do some validations based on this querystring.
    I need an equivalent for this in portal. I skimmed through many earlier posts but din't get a proper solution. Could you plz help me out with the simplest possible way ASAP.
    Regards,
    Madhesh
    Edited by: Madhesh P on Jan 7, 2008 5:21 AM

    Hi Madesh,
    You can use custom events for passing parameters from one iView to Other. 
    Or
    If the parameters are to be used in more than one iView you can use session variables.
    Regards,
    Ashutosh

  • How can I pass parameters from one process flow to another process flow?

    How can I pass parameters from one process flow to another process flow (sub process) in warehouse builder? let me know the steps I have to do in warehouse builder.
    Thanks in advance,
    Kishan

    Hi Kishan,
    Please post this question to the Warehouse Builder forum:
    Warehouse Builder
    Thanks, Mark

  • Passing Parameters from One Screen to Another Screen

    Hi All,
    I need to Pass Parameters from one Module Pool Screen to Another Screen.
    I have two Parameters in First screen. I don't want to use <b>Export and Import</b>
    The first screen record should sit in the Second Screen as it is.
    Please suggest me.
    Thanks and Regards,
    Prabhakar Dharmala

    An Idea,
    Create a function group, in that define global variables. Then create two function module. Pass variable from one function module and get in the another one.
    Hope this will help you to solve. If you need further help I will create and sent you a test code.
    Darshan.
    <i><b>Pl. Reward points to the helpful answer, it motivates us to answer more </b></i>

  • Passing parameters from a browser URL to Flash

    Flash CS3, AS3
    Is there any way to pass parameters from the URL line in a
    web browser to actionscript?
    ie. so if you had something like the following URL link in
    the browser...
    http://www.somedomain.com/someswf.swf?var1=10&var2=false
    ...it would pass var1 and var2 to someswf.swf.
    (Hypothetically, of course - I'm unsure as to the necessary syntax)
    Is this possible? Or would I need some intermediary software?
    Thanks
    Rick

    i answered a very similar forum query a few days ago
    here
    You need to look into loaderInfo.parameters.

  • Automatically Pass Parameters From Crystal To SAP B1

    So, I've searched extensively, and haven't been able to find an answer to my unique issue.
    This question pertains to linking a Crystal Report by parameter values to the OWOR table in SAP B1, and automatically passing those parameter values from the active record in SAP. Several other tables are used in sql joins, but the report is generated from an OWOR production order. I should start by stating that the report works great when manually populating the parameter fields when SAP calls for them.
    Overview:
    I've written a report in Crystal that contains several sub reports, some of which are looking to the DocEntry field as the parameter (DocKey@) and others that do not look to the DocEntry field at all - but rather use another field on the form to pull up information that spans more than just that one production order. I've chosen to upload as a layout in SAP (as that is all I've worked with up to this point, and it seems it needs to be to automate from a production order); but as I continue to research, it appears DocKey@ is mandatory when uploading as a layout, and in order to view the report from the actively selected production order, it must be a layout. Does that mean the parameter is required in all sub reports? Is it required in any sub report?
    I have two main issues that I need to hurdle for this report to work how I would like it to:
    1. Three of the eight Commands (one main command and seven sub-report commands) use the DocKey@ as the parameter to pass from SAP back to Crystal. The main report command, as well as four of the sub reports/commands are looking to another field in the OWOR record - which happens to be a re-seller defined field (UDF). For all intensive purposes, let's call this field BatchID. I'm assuming the sub report commands run in succession, one after the next. The reason I need to use BatchID as the parameter to pull from the record, rather than DocEntry, is there are other records that contain the same BatchID, and I want all of the info pertaining to that BatchID to populate on the report.
    Q1: The first command containing DocKey@ is automatically populated by SAP, and the user does not have to key that one in. However, the next two DocKey@ parameters do not automatically populate, and the user is asked for those values. How can I fix this?
    Q2: How can I automate the passing of BatchID so the user does not have to fill it in 5 times when they wish to preview the report(layout)? Can I link ObjectID@ to any field in OWOR? Is there any other way like creating a stored procedure or something , to automate the passing of that variable from the SAP active record to the crystal report - so the user doesn't have to key it in several times just to pull up the report?
    Thank you so much for even reading, let alone helping me with this issue!!
    Cheers,
    Nick

              Hi
              I had the same problem. Take a look at this newsgroup article on the businessobjects
              website :
              http://support.businessobjects.com/library/kbase/articles/c2015264.asp
              Grieg
              "Rada Pickens" <[email protected]> wrote:
              >
              >Hi,
              >
              >I'm getting the same error message, I was wondering if you fixed the
              >problem.
              > I'm stumped, can you help?
              >
              >Rada
              >
              >
              >"JAI" <[email protected]> wrote:
              >>
              >>I am passing parameters, from the JSP page to Crystal Report, i took
              >>the code from
              >>the below mentioned url, i dont know, it is something wrong with the
              >>jsp page
              >>or crystal report.
              >>i have created parameter field in crystal report to receive the value
              >>from the
              >>jsp page.
              >>If u r not clear with the error, please reply to me.
              >>
              >>i took the code from the below mentioned page
              >>
              >>reference page:
              >>----------------------
              >>http://dev2dev.bea.com/trainingevents/webinars/012804_faq.jsp
              >>parameterFieldsViewReport.jsp
              >>
              >>
              >>error displaying in the jsp page
              >>-----------------------------------
              >>com.crystaldecisions.report.web.viewer.CrystalReportViewer
              >>Some parameters are missing values
              >
              

Maybe you are looking for

  • Selecting with a special character

    Hi, I have a table in which an user can query via a sql prompt (accept) for a text he wants to search for. This search string can contain special characters like @,$,& etc but nog on a specific position. Sometimes they search for bbbb.hhhh_23, the ne

  • Foldingathome doesnt work

    Hi, foldingathome doesnt work. the file /opt/fah/FAH502-Linux.exe wont execute. anyone having same issue?

  • OSB Console - Order by num messages not ordering correctly

    I am a consultant with experience in SOA Suite 11g, but I don't know much about OSB. I have a customer who is complaining that in OSB console he cannot sort by the number of messages received. There is a view with a table in the admin console webapp

  • Agents Duplicate entry on Historical Reports in UCCX

    Hi, I have an IP Telephony setup in UCCX 9.1 .I am getting duplicate entries in Historical reports.The attached image is the error we are getting .(Actually is not exactly from my site but the error is same duplicate entry ) I searched in the CUCM fo

  • Issue Relating to Power Cost in Daily Product Costing

    Hi, We are doing daily product costing. Here we want to allocate the power units of service to production cost centers proportionately on daily basis. Can anyone tell me is there any option in SAP and we need to go for development.