Calling Subtemplate with passed in variable

Just wondering how to call a subtemplate with a parameter that is passed in to the rtf, like this:
main template:
<?param@begin:P_ORG_ID?>
This is my main template. I have stuff here....
Call subtemplate:
<?call@inlines:Header?>
<?with-param:Org;$P_ORG_ID?>
<?end call?>
Question is how to pass the P_ORG_ID to the subtemplate. The way I have listed above does not work, its blank in the subtemplate.

Passing parameter to a subtemplate
Above link has all the info.

Similar Messages

  • Calling subtemplate with parameters in footer

    Hi,
    I have the following syntax that calls a conditional footer depending on orgid and country:
    <xsl:call-template name="Super"><xsl:with-param name="organiz"select="ORG"/>
    <xsl:with-param name="country" select="BILL_COUNTRY_DESCRIPTION"/></xsl:call-template>
    This works great if I call it from a form-field but if I paste this code into the footer it does'nt get interpreted as xsl-code.
    Is there any way to work around this?
    Rg. Daniel

    By the way - you can call subtemplates with parameters using the short <??> notation in the real header.
    Edward our local guru gave me syntax:
    HEADER:
    <?call@inlines:aaa?><?with-param:name;string(‘edward’)?><?end call?>
    BODY:
    <?template:aaa?>
    <?param:name;string(‘Default Value’)?>
    Name: <?string($name)?>
    <?end template?>

  • Open a crystal report from WAD with passing  the variables values

    Hi,
    I need to know is there any way to link SAP WAD to crystal reports (open a crystal report from WAD)and pass the values of the variables which are entered in the Web App. (e.g. Customer id,year) should be passed to the Crystal Report.
    Maybe we need to pass parameter by WAD URL but this is just my assumption and have no idea how to do this with passing variable values.
    right now I know the method of how Bex queries which are used as data source for crystal reports but in my current scenario we have the structure like this that bex queries link with WAD and then WAD is linked with crystal reports.
    No doubt that Crystal report is target option in RRI but there the source is Bex Query only but in current scenario we are looking  WAD (web template) as a source to crystal report or crystal report called in WAD.
    Please suggest something on same.
    Thanks
    Take care
    Vishal sharma

    Hello Vishal.
    Did you find a solution for this problem?
    I'm facing right now the same problem, I need a way to link SAP WAD to crystal reports (open a crystal report from WAD) and pass the values of the variables which are entered in the Web App. (e.g. Customer id,year) should be passed to the Crystal Report.
    Have found an answer to this issue? If yes, please kindly inform how have you solved this.
    Best Regars
    Armando Santos

  • Need help with passing a variable in a function

    Hello. I am working on a Flash app that needs to play videos. I have code using netstream that works great for one movie. The problem is I have 3 movies I want to play and I need to figure out how to replace the string variable with the correct path info depending on what button is pushed. I'm thinking this needs to be an array which I have coded but it is not working. Here is the code:
    var buttonArray:Array = [chamber.btnV01,chamber.btnV02];
    var strSource:Array = ["HiFlow_Conventional_4.mp4","Tool_Less_5.mp4"];
    trace (buttonArray)
    for (var i:int = 0; i < buttonArray.length; i++) {
    buttonArray[i].addEventListener(MouseEvent.CLICK, playClicked);
    function playClicked(e:MouseEvent):void {
    // check's, if the flv has already begun
    // to download. if so, resume playback, else
    // load the file
    if(!bolLoaded) {
    var clickedIndex:int = buttonArray.indexOf(event.currentTarget);
    nsStream.play(strSource[clickedIndex]);
    bolLoaded = true;
    trace (strSource)
    else{
    nsStream.resume();
    This is just set for two buttons for testing. I keep getting the "1120: Access of undefined property event." right at the "nsStream.play(strSource[clickedIndex]);" line. The variable strSource is what I am trying to pass different movie paths into, but I am having no luck. Am setting this up right or is there another way to do this? Any help would be much appreciated. Thanks.
    -Shawn

    use:
    var buttonArray:Array = [chamber.btnV01,chamber.btnV02];
    var strSource:Array = ["HiFlow_Conventional_4.mp4","Tool_Less_5.mp4"];
    trace (buttonArray)
    for (var i:int = 0; i < buttonArray.length; i++) {
    buttonArray[i].addEventListener(MouseEvent.CLICK, playClicked);
    function playClicked(e:MouseEvent):void {
    // check's, if the flv has already begun
    // to download. if so, resume playback, else
    // load the file
    if(!bolLoaded) {
    var clickedIndex:int = buttonArray.indexOf(e.currentTarget);
    nsStream.play(strSource[clickedIndex]);
    bolLoaded = true;
    trace (strSource)
    else{
    nsStream.resume();

  • How to call subtemplate based on the variable

    I need to call different section of the subtemplate based on the value in the variable (or tag value in the XML data).
    Trying to do like this:
    <?call-template:xdoxslt:get_variable($_XDOCTX, 'v_subtemplate')?> where v_subtemplate variable containd the proper name
    Not working for me.
    Am i using correct syntax or need to go different route ?
    THANKS in advance for ANY suggestions.
    -- Greg

    I need to call different section of the subtemplate based on the value in the variable (or tag value in the XML data).
    Trying to do like this:
    <?call-template:xdoxslt:get_variable($_XDOCTX, 'v_subtemplate')?> where v_subtemplate variable containd the proper name
    Not working for me.
    Am i using correct syntax or need to go different route ?
    THANKS in advance for ANY suggestions.
    -- Greg

  • Run Report with Pass Number and Varchar Lexical Parameter values

    Dear Sir/Madam
    Due to an urgent change required to a report I would most appreciate it if you can please advise me if it is possible to get this report working by either passing in multiple lexical parameters or one signle lexical parameter when calling the SRW.RUN_REPORT command with the following methods:
    Firstly: When calling report with a run_no and spr_cd passed in through one lexical:
    cmd_line: REPORT=D:\DEV\REMITTANCE.rdf BACKGROUND=YES BATCH=NO DESFORMAT=PDF DESTYPE=FILE DESNAME=D:\DEV\REMITTANCE.pdf
    CP_L_PARAM=RUN_NO=TO_NUMBER(28) AND SPR_CD=SUPP1
    Both with a TO_NUMBER and without, whereby I attempt to do a SUBSTR within the query of the called report to derive the RUN_NO Oracle Reports fails to accept the SUBSTR.
    Secondly: I am now trying to call the with passing two lexical parameters into the report as follows:
    cmd_line: REPORT=D:\DEV\REMITTANCE.rdf BACKGROUND=YES BATCH=NO DESFORMAT=PDF DESTYPE=FILE DESNAME=D:\DEV\REMITTANCE.pdf
    CP_L_RUN_NO=||TO_CHAR(lv_run_no)|| CP_L_SPR_CD=||lv_spr_cd;          
    NOTE: The above is an output of the actual command line and not what is passed into the command line, thus the quotes are missing. Please also note that the report is running fine with the only a hard coded RUN_NO value PASSED without the SPR_CD.
    Unfortunately this is also causing issues as the RUN_NO is a number and as you know you can only pass in strings.
    Your urgent help is required on this matter please as our client is expecting a solution this afternoon.
    Hope to hear form you soon.
    Kind regards
    Andrew Mason

    Dont Worry I've worked it out...

  • How to pass session variable value with GO URL to override session value

    Hi Gurus,
    We have below requirement.Please help us at the earliest.
    How to pass session variable value with GO URL to override session value. ( It is not working after making changes to authentication xml file session init block creation as explained by oracle (Bug No14372679 : which they claim it is fixed in 1.7 version  Ref No :Bug 14372679 : REQUEST VARIABLE NOT OVERRIDING SESSION VARIABLE RUNNING THRU A GO URL )
    Please provide step by step solution.No vague answers.
    I followed below steps mentioned.
    RPD:
    ****-> Created a session variable called STATUS
    -> Create Session Init block called Init_Status with SQL
        select 'ACTIVE' from dual;
    -> Assigned the session variable STATUS to Init block Init_Status
    authenticationschemas.xml:
    Added
    <RequestVariable source="url" type="informational"
    nameInSource="RE_CODE" biVariableName="NQ_SESSION.STATUS"/>
    Report
    Edit column "Contract Status" and added session variable as
    VALUEOF(NQ_SESSION.STATUS)
    URL:
    http://localhost:9704/analytics/saw.dll?PortalGo&Action=prompt&path=%2Fshared%2FQAV%2FTest_Report_By%20Contract%20Status&RE_CODE='EXPIRED'
    Issue:
    When  I run the URL above with parameter EXPIRED, the report still shows for  ACTIVE only. The URL is not making any difference with report.
    Report is picking the default value from RPD session variable init query.
    could you please let me know if I am missing something.

    Hi,
    Check those links might help you.
    Integrating Oracle OBIEE Content using GO URL
    How to set session variables using url variables | OBIEE Blog
    OBIEE 10G - How to set a request/session variable using the Saw Url (Go/Dashboard) | GerardNico.com (BI, OBIEE, O…
    Thanks,
    Satya

  • Calling ASP script from APEX button passing Bind variable

    I am looking for some examples or best form for calling asp script from apex button that will pass apex bind variable to asp script to process.
    Thanks,s
    Bob

    I am surprised by the degree of no replies. I have solved this by using asp redirects such as:
    Response.Redirect("test.aspx?UserName="&user)
    My formulated solution contains a page with a manually built interactive report. I have a number of bind variables at the top of the reoprt where users can query the information they want based on desginated database columns for this particular report. Once they have the "manual" interactive report displaying what they want, they click a button where a asp script is called with parameters passed that calls a Java based Crystal Reports plugin with the called correspnding report displayed with passed parameters.
    Works like a charm!
    This solves our reporting needs without having to resort to Bi Publisher (much too expensive) and other third party applications that kinda indicate it can work with apex but provide limited help or best form for doing so.
    Bob

  • Having an issue with passing the text of a link to a session variable.

    I am having an issue with passing the text from a link to a session variable. I am adding this html as a literal for each item in the list that i have populated with a query.
    List<Literal> lit = new List<Literal>();
    for (int i = 0; i < posts.Count; i+=4)
    Literal someLit = new Literal();
    someLit.Text=
    @"<div class='row'>" +
    "<div class='col-md-12'>" +
    "<div class='panel'>" +
    " <div class='panel-body'>" +
    " <!--/stories-->" +
    " <div class='row'> " +
    " <br>" +
    "<div class='col-md-2 col-sm-3 text-center' id='javascript'> <h3>" +
    " <a href='#' runat='server' onserverclick='UserProfile_Click'>" + posts[i + 3] + " </a>" +
    "</h3>" +
    " </div>" +
    " <div class='col-md-10 col-sm-9'>" +
    "<h3><a href='Thread.aspx' runat='server' onserverclick='MyFuncion_Click'> " + posts[i] + " </a></h3>" +
    " <div class='row'>" +
    " <div class='col-xs-9'> " +
    posts[i + 1] +
    " </div>" +
    "<div class='col-xs-3'></div>" +
    posts[i + 2] +
    " </div>" +
    "<br><br>" +
    " </div>" +
    " </div>" +
    " <!--/stories-->" +
    " </div>" +
    " </div>" +
    " </div><!--/col-12-->" +
    " </div>" +
    "</div>";
    lit.Add(someLit);
    for(int i=0; i<lit.Count; i++)
    this.Controls.Add(lit[i]);
    I use one of the list positions as the text for a link in two different spots. For now, lets only talk about the line:
    <a href='#' runat='server' onserverclick='UserProfile_Click'>" + posts[i + 3] + " </a>
    Since I am generating these controls at pageLoad, I can't make them <asp:Linkbutton>s. And since they are anchor elements, I don't have access to an onCommand attribute or onservercommand attribute.
    All I want to do is access the content from inside the specific link tags that I generate on link click and set it as a session variable. That's what I would like my UserProfile_Click function to do. I cant commandargs it in like i can with a linkbutton's
    OnCommnad attribute, however.
    My fear is that the onserverclick attribute resolves so something else on pageLoad normally and since I am generating it the way I am similar to the way a <asp:linkButton> resolves to a generated JavaScript.
    Any help?

    @Brunellus
    For questions related to ASP.NET use the ASP.NET forum http://forums.asp.net     
    You should get more, better and faster answers on the other forum.  Thanks, ahead of time.
    Best Regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Issue with passing schema name as variable to sql file

    Hi,
    I have a scenario wherein from SYS a Java process (Process_1) is invoking SQL files and executing the same in SQLPLUS mode.
    DB: Oracle 11.2.3.0
    Platform: Oracle Linux 5 (64-bit)
    Call_1.sql is being invoked by Java which contains the below content:-
    ALTER SESSION SET CURRENT_SCHEMA=&&1;
    UPDATE <table1> SET <Column1> = &&1;
    COMMIT;
    @Filename_1.sql
    Another process (Process_2) again from SYS user is also accessing Filename_1.sql.
    The content of Filename_1.sql is:-
    DECLARE
    cnt NUMBER := 0;
    BEGIN
      SELECT COUNT(1) INTO cnt FROM all_tables WHERE table_name = 'TEST' AND owner = '&Schema_name';
      IF cnt = 1 THEN
      BEGIN
        EXECUTE IMMEDIATE 'DROP TABLE TEST';
        dbms_output.put_line('Table dropped with success');
      END;
      END IF;
      SELECT COUNT(1) INTO cnt FROM all_tables WHERE table_name = 'TEST' AND owner = '&Schema_name';
      IF cnt = 0 THEN
      BEGIN
        EXECUTE IMMEDIATE 'CREATE TABLE TEST (name VARCHAR2(100) , ID NUMBER)';
        dbms_output.put_line('Table created with success');
      END;
      END IF;
    End;
    Process_2 uses "&Schema_Name" identifier to populate the owner name in Filename_1.sql. But Process_1 needs to use "&&1" to populate the owner name. This is where I am looking a way to modify Call_1.sql file so that it can accommodate both "&&1"  to populate owner name values in Filename_1.sql (with avoiding making any changes to Filename_1.sql).
    Any help would be appreciated.
    Thanks.

    Bad day for good code. Have yet to spot any posted today... Sadly, yours is just another ugly hack.
    The appropriate method for using SQL*Plus substitution variables (in an automated fashion), is as command line parameters. Not as static/global variables defined by some other script ran prior.
    So if a script is, for example, to create a schema, it should look something as follows:
    -- usage: create-schema.sql <schema_name>
    set verify off
    set define on
    create user &1 identified by .. default tablespace .. quota ... ;
    grant ... to &1;
    --eof
    If script 1 wants to call it direct then:
    -- script 1
    @create-schema SCOTT
    If script 2 want to call it using an existing variable:
    -- script 2
    @create-schema &SCHEMA
    Please - when hacking in this fashion, make an attempt to understand why the hack is needed and how it works. (and yes, the majority of SQL*Plus scripts fall into the CLI hack category). There's nothing simple, beautiful, or elegant about SQL*Plus scripts and their mainframe roots.

  • How to pass presentation variable with enclosing single quotes

    HI All,
    As all of you know in 11g, Presentation variable can hold more than one value.So we can pass multiple values to the report through presentation variable.
    If we select x,y,z values from prompt drop down,then those values will be stored like x,y,z in the presentation variable.
    but I would like to store these values with enclosing single quotes like 'x,y,z'
    The reason is I need to pass this variable value as input to BI Publisher sql dataset query where clause.
    Please share your Ideas.
    Thanks,
    Aravind

    Aravind,
    Check this
    Predefined Presentation Variables in OBIEE 11G | Praveen&amp;#039;s Blog

  • [MVC] Call controller with Javascript - How to pass model?

    Hi,
    In one of my requirement, I have to pass the main model to a controller that I simply create through Javascript (let's say I call it with : window.open( 'http://.../popup.do '); )
    How sould I proceed to set an existing model to this controller?
    Many thanks in advance.
    Best regards,
    Guillaume

    Hi
    u might be having  a model class for your model,
    just insert that model class in the attributes and then u can use that model class for your controller.
    a easy example of creating it is as in this link...
    [creating controllers with model|http://wiki.sdn.sap.com/wiki/x/-YL8B ]
    Give the page attributes of the view. in the page attribute define the model class there that u have created.
    in the view u can use the model class as...
    SELECT_model is the name of the object refering to the model class.
    i_vbak have been defined in the attributes of the model class.
    we are accessing it here in teh view calling it as below.
    and in the model we had fetched the data for the below fields .
      <htmlb:tableView id="TV_VBAK" table="//SELECT_model/I_VBAK">
    <htmlb:tableViewColumn columnName="vbeln"></htmlb:tableViewColumn>
    <htmlb:tableViewColumn columnName="ERDAT"></htmlb:tableViewColumn>
    <htmlb:tableViewColumn columnName="ERZET"></htmlb:tableViewColumn>
    <htmlb:tableViewColumn columnName="ERNAM"></htmlb:tableViewColumn>
    <htmlb:tableViewColumn columnName="ANGDT"></htmlb:tableViewColumn>  
      </htmlb:tableView>
    i hope it is clear.
    Thanks
    kalyan

  • Sequence call with Pass/Fail Test always returns Passed result

    In TestStand 2.0, I use Sequence Adapter with Pass/Fail Test step to call a subsequence, I always receive a Passed result, even as I force fail a step in the subsequence and enabled the Step Failure Causes Sequence Failure option.
    Attachments:
    Example1.seq ‏17 KB

    Tan -
    The status expression for the Pass/Fail step type does not look to see if the status has been previously set by the code module in this case the sequence call.
    Step.DataSource != "Step.Result.PassFail" ?
    Step.Result.PassFail = Evaluate(Step.DataSource) :
    False, Step.Result.PassFail ? "Passed" : "Failed"
    It just set it to Passed or Failed even if the status is already "Failed".
    You could either,
    1) Change the Pass/Fail expression to the following for the step,
    Step.Result.Status == "Done"? Step.Result.PassFail : False
    or
    2) Use two steps, a Sequence Call and a Pass/Fail that uses the None Adapter. The Pass/Fail could operate on the previous step if necessary.
    Scott Richardson - NI"
    Scott Richardson
    National Instruments

  • Iphone is locked with pass code but still we can make a call using voice control

    If our iphone is locked with pass code we can make a call using voice control.
    Press and Hold the Home button then you will get the Voice Control Menu.
    Choose Dial or Call then you can make call.
    Is it IOS Bugs or...

    It is a feature.
    You can disable it at Settings > General > Passcode > Voice Dial if you wish.

  • Passing a variable from one thread to another

    Hi. I'm trying to produce a chat program in Java but need to pass a variable between two threads. I have included a snipet of the code.
    import java.io.*;
    import java.net.*;
    class IndividualConnection extends Thread
         public Socket clientSocket;
         String userName = "";
         public IndividualConnection(Socket connectingSocket)
              clientSocket = connectingSocket;
    public login(String name)
    userName = name;
         public void messageUser(Socket socket, String msg)
              try
                   Socket newSocket = new Socket("192.168.0.162",5163);     
                   DataOutputStream outToServer = new DataOutputStream(socket.getOutputStream());
                   outToServer.writeBytes(msg + '\n');     
              catch(Exception e)
                   System.out.println("The connection with the client has been closed.");
                   this.stop();
    public void run()
         Socket global = clientSocket;
    // etc etc
    A number of threads are created based on code similar to the above. Each thread communicates to a different client on the chat program. However, I want to be able to send messages between the clients.
    Each thread has a method called messageUser(Socket socket, String msg). I should (hopefully) be able to send a message to anyone using the prog if I can access their socket. The problem is that the socket objects for each client is held in the clients own thread. I have tried writing some code to find the Socket object in another thread but to no success. The code I am trying is shown below.
         public Socket findContact(String name)
              ThreadGroup currentGroup = Thread.currentThread().getThreadGroup();
              int numThreads = currentGroup.activeCount();
              Thread[] listOfThreads = new Thread[numThreads];
              currentGroup.enumerate(listOfThreads);
              for (int i = 0; i < numThreads; i++)
                   String threadName = listOfThreads.getName();
                   if (threadName.compareTo(name) == 0)
                   //     Socket tempSocket = threadName[i].getClass().getField(clientSocket);
              return tempSocket;
    The line I have commented out does not work. Please could someone tell me how to carry out this task. I have spent many hours trying to solve this but am not able to. The chat server is nearly complete now. I just need to find a way of obtaining another threads socket.
    I hope the problem is comprehensible. I have found it difficult to explain clearly. Many thanks.

    Really simple, inelegant solution:
    class MyThread extends Thread {
    Socket socket;
    MyThread( Socket s ) { socket = s; }
    public Socket getSocket() { return socket; }
    }Better: create a master object that includes an array
    of sockets. Each time you create a Thread, update the
    master object's list of sockets with a reference to
    each Thread's socket. Under the current memory model, the socket field should be declared volatile. The proposed new memory model will guarantee that this will work if the socket field is declared final.
    Sylvia.

Maybe you are looking for

  • Report for last date of an activity

    I'm running Crystal Server / Designer 2008 in conjunction with SAP Business One.  I'm trying to create a report that will list all of my customers that have not been seen in the past 90 days.  I have two tables that this report needs to be generated

  • Inserted CD is not shown in Finder, neither possible to load nor to get it out... Any idea?

    Inserted CD is not shown in Finder, neither possible to load nor to get it out again... Restart with pressed left Mouse button or Reset didn't help... Any idea? Thx

  • Changing View Options for only 1 folder

    I tried changing the View Options for Documents so that I can see which ones were modified recently, however it applies the Date Modified option to every single folder, including my home folder. Is there anyway to just change the View Option to a sin

  • Question about my code.

    I am rather new to Java but am quite fluent with C, C++ and C#. I have this code with a main menu function and a main function. For whatever reason when I try to change functions/methods I get an error. Below is my pastebin. http://nettworks.pastebin

  • Indesign CS5 and CS5.5 crash on new document / Lion 10.7

    Hello! In our agency we encountered a problem since upgrading to OS X Lion 10.7. Both our Indesign CS5 and CS5.5 keep crashing on us whetver we open an existing document or create a new one. We tried to clean-up our installations, deleted both, insta