Passing a node as param

Hi
I am trying to send a xml node as a parameter to xsl. The
scenario is like this.
i have 2 xml's xml1 & xml2. The xsl needs both the data to act
upon.
if i give
xsl.setParam("temp","//root/display");
processor.processXSL(xsl,xml1);
where //root/display is part of xml2. So the xsl is not
getting the value i want to pass.
not able to find a way for this. Any help will be appreciated .
Thank u,
Regards
Jayashree

declare function appendLines($node as node()*) as xs:string {
          if(fn:exists($node)) then
               if(fn:string-length(fn:normalize-space($node/text())) > 0) then (     
                    fn:concat($node/text(), " ")
               else (
          else (
It worked with the above function.

Similar Messages

  • Passing hierachy node variable from BW to BO Webi Report in open doc link

    Hello All,
    We are working on BW-BO integration and creating Webi reports based on Bex queries.
    The question is regarding passing of a hierachy node value from BW to BO through open doc link.
    I see that when we pass hierarchy node value, we have to associate that with the corresponding infoobject technical name in the link but not sure in what format it has to be sent.
    For example, if ARM is the node value and 0HIERNODE is the infoobject , how should we send this value to BO.
    Please help.
    Thanks for your help,
    Regards,
    Tangudu S

    You cannot change anything here. You should really find out how the values are retrieved from the database
    THere is another option:
    1) Activate the tracing on your BOBJ server
      Check the following SAP notes (http://service.sap.com/notes) for that:
      Unix: Note 1235111
      Windows: Note 1260004
    2) Run your WebI report from the InfoView by choosing first the desired hierachy node value from the LOV of your prompt.
    3) Extract the MDX statement from the log file. It should contain the value for the hierarchy node. Copy this to the URL
    It is easier to find this out if you have access to a Crystal Reports Designer installation. Do you?
    Regards,
    Stratos

  • Passing a node to Xquery function

    Hi All,
    I have two functions in my xquery. I'm trying to pass a node from one function to another function to check if it exists and do some processing on the text that is present in that node (if exists).
    declare function appendLines($node as element()) as xs:string {
         if(fn:exists($node) and $node/text() ne "") then
              fn:concat($node/text(),", ")
         else (
    appendLines($LINE_ITEM/ns0:STATXT)
    Is the above call to that function is correct?
    Thanks!!!

    declare function appendLines($node as node()*) as xs:string {
              if(fn:exists($node)) then
                   if(fn:string-length(fn:normalize-space($node/text())) > 0) then (     
                        fn:concat($node/text(), " ")
                   else (
              else (
    It worked with the above function.

  • How to pass hierarchy node value to another report using RRI

    hi,
    i want to pass hierarchy node value to another report but i can not able to do this using hierarchy variable so i want solution for this.
    Reply me as soon as possible its very argent.

    Did you wanted to jump from Node to Node ? I guess you cannot do that....did you try ?

  • Is there any way to pass in JVM tunable params to OC4J containers?Ex: -Xmx256 ...

    Is there any way to pass in JVM tunable params to OC4J containers?
    1. Switch to -server rather than -classic
    2. Min/Max Memory configuration
    3. pass in tunable GC params
    Passing parameters to the JVM when executing dcmctl does not pass these variables to the exec-ed java process(OC4J Containers).
    Any help is appreciated.
    Thanks,
    Vamsi Nukala

    Hello
    say I like to pass object I created in one page say :
    MyObject obj = new MyObject("1","2","3");
    via http params (supmit or post ) to other page . and
    use it there can it be done ?No. You can however place them as attributes in scope (application/session/request) and retrieve these attributes in the next page.
    example
    in one page,
    session.setAttribute("obj", obj);
    in another page
    MyObject obj = (MyObject)session.getAttribute("obj");
    ram.

  • How can i pass more than 1 param to servlet to show blob image

    Hi
    my servlet expects 2 param to SELECt an image from a blob column
    public class ImageBlobServlet extends HttpServlet {
    private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    public void doGet(HttpServletRequest request,
    HttpServletResponse response) throws ServletException,
    IOException {
    response.setContentType(CONTENT_TYPE);
    String ImageId = request.getParameter("id");
    String TipImg = request.getParameter("tip");
    OutputStream os = response.getOutputStream();
    Connection conn = null;
    try {
    Context ctx;
    ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup("java:/comp/env/jdbc/rhDS");
    conn = ds.getConnection();
    PreparedStatement statement = conn.prepareStatement("select FIT from " +
    "RHH_FOTOS IMG " +
    "where IMG.IDASSO = ? and IMG.TIM_COA = ?");
    statement.setInt(1, new Integer(ImageId));
    statement.setString(2, TipImg);
    To display the image i tried to use:
    <af:image id="ot1"
    *source="/imageblobservlet?id=#{bindings.Con.inputValue}?tip=#{"EMP"}"*
    shortDesc="Foto"/>
    but i receive all content in the get of first param.
    String ImageId = request.getParameter("id");
    How can i pass one more then 1 param in EL.
    Thanks in advance

    Hello,
    seems to me you're using wrong separator for the second param into your URL:
    <af:image id="ot1" source="/imageblobservlet?id=#{bindings.Con.inputValue}
    tip=#{"EMP"}" shortDesc="Foto"/>
    I think it should be:
    <af:image id="ot1" source="/imageblobservlet?id=#{bindings.Con.inputValue}
    tip=#{"EMP"}" shortDesc="Foto"/>
    Jack

  • How to pass value node attributes to transaction launcher?

    Hallo,
    I want to pass some parameters to transaction launcher.
    Im using a url-transaction.
    My context node is a value node.
    Can i enhance a handler class?

    Hello,
    Did you have a look at this thread ?
    WebClient Transaction Launcher Parameters
    Regards,
    Nicolas.

  • Passing hierarchy node variable in a hyperlink

    Hi,
    We are on XI 3.1 SP3.
    We have a BW summary query with hierarchy active, with hierarchy node variable as "optional" selection variable. Created Universe based on the query and built a WebI report. Have activated "Drill". That way we are able to drill down per the levels. This works fine.
    We have another BW detail query with optional hierarchy node selection. Created a universe and a WebI report for the detail report..
    When we try to create a hyperlink from the summary WebI report to the detail WebI report in "display" mode, creation of Hyperlink is very intutive. We are able to pass parameters.and the hyperlink works fine.
    The only problem occurs when we try to pass the hierarchy node variable value. The value of the hierarchy node gets passed, but the report does not bring over any data,
    Is this a known bug? Is there a workaround.
    Kindly advice.
    Rgds

    Hello,
    Ingo, thanks for your comment Sorry for the delayed response.
    Let me explain my scenario. On my report I have the following:
    1. Sales Hierarchy (5 level hierarchy)
    2. Product Group (Hyperlink created - want to pass Sales Hierarchy node value + Product group to detail report)
    3. Key Figure 1
    4. Key Figure 2
    I have activated drill which allows me to drill down the Sales Hierarchy.
    Scenaio A.  Pass just the Product Group Key. Success
    If I just pass the  "Product Group Key", the detail report shows me the data for the specific Product Group as expected. This is a successful test
    Scenario B -  Pass the Sales Hierarchy Node key and the Product Group Key Fails
    In this case, I am passing the "Product Group key" along with the "L00 Sales Hierarchy key". When I click on the hyperlink, it gives me an empty detail report. I know for sure that values exist for all levels. If I run my detail report stand-alone, I am able to get values for all levels.
    However if I drill down to the last level in the Sales Hierarchy, the detail report shows correct value. For last level, the Sales Hierarchy Node value gets passed correctly along with the Product Group key.
    URL generated is as follows:
    http://<bobj server>:<port number>AnalyticalReporting/WebiView.do?bypassLatestInstance=true&cafWebSesInit=true&appKind=InfoView&service=/InfoViewApp/common/appService.do&loc=en&pvl=en&actId=216&objIds=6933&containerId=6923&bypassLatestInstance=true&lsMProductGroup=11101101&lsSGeoSales+Hierarchy=B01&isApplication=false&pref=maxOpageU%3D10%3BmaxOpageUt%3D200%3BmaxOpageC%3D10%3Btz%3DAmerica%2FDenver%3BmUnit%3Dinch%3BshowFilters%3Dtrue%3BsmtpFrom%3Dtrue%3BpromptForUnsavedData%3Dtrue%3B&sRefresh=N
    In the URL you can see that correct values are getting passed
    Product+Group=11101101
    Sales+Hierarchy=B01
    Do I need to append any value to the "B01" value ?
    I did not understand the part about appending [ ] or 0HIER.
    Can you please explain.
    Thnaks for all your help.
    Rgds

  • How to use $FLEX$ to pass FROM and TO param to another FROM and TO param

    Hello All,
    I have 2 parameters from customer and to customer, both these have same LOV,
    I have to add 2 more parameters from location and to location
    If i use $FLEX$.customer_LOV to pass to the from location LOV how can i use $FLEX$ to pass the TO customer LOV to TO Location LOV.
    As per my knowledge $FLEX$ can be passed from top to bottom in the list of parameters.
    Is there any other way to restrict.
    Regards,
    Sandeep V

    Hi,<br /> I am trying to configure BlazeDS with JBOSS Application Server.<br /> I have downloaded BlazeDS binary version - blazeds_bin_3-0-0-544.zip from Adobe. But in the installation steps, it says that copy blazeds.war, samples.war and console.war into <JBOSS_HOME>/server/default/deploy folder. But in this zip, it contains only blazeds.war file only. I have copied it to <JBOSS_HOME>/server/default/deploy folder.<br /><br />I have restarted JBoss. I didn't get any error. But when i give <br /> http://localhost:8080/blazeds ... i am always getting "Page not found 404" error.<br /><br />Please help me, if you have detailed steps to configure BlazeDS on JBoss.<br /><br />Thanks for your time.

  • How to pass LOV Where clause params from Page CO

    Dear Members,
    I have an OAF Page for which I defined a CO.
    I also have an LOV for which I have two parameters in where clause.
    Now my requirement is to pass the two values to the where clause parameters of LOV from the CO of the respective page.
    Can any one please guide me in achieving this requirement.
    Best Regards,
    Arun Reddy

    Hi Arun
    as gyan, suggested try attching a new controller to lov , or extend its existing controller.
    In the page CO
    store the parameter that needs to be passed to lov in pageContext.putSessionValue(paramName,paramValue)
    In the CO of Lov page , in processrequest
    retrive the stored values using pageContext.getSessionValue(paramName)
    Regards
    Ravi

  • Passing command line JVM params into the code

    I am using a set of APIs that basically make a simple JDBC connection to an Oracle database and extract data out of it. However, the way the API has been written it requires the user to specify the Oracle driver parameter on the commad line...So to run the program you do:
    java -Djdbc.drivers=oracle.jdbc.driver.OracleDriver Test
    Is there any way I could read the -Djdbc.drivers=oracle.jdbc.driver.OracleDriver param into the code without having to include it in the command line? I am planning on making a call to the API via a servlet and not run it from a command line.
    Thank you

    There are two ways:
    1. The simplest one being to hard code the values in some variable in your code. But obviously, this is not the recomended solution since u can change the DB and so the Drivers change.
    2. Use Resource Bundle. Resource Bundle allows u to Pick Data from the Properties File(Any Text File with Name=value Pair named as <filename>.properties. Place your
    jdbc.drivers=oracle.jdbc.driver.OracleDriver
    in this File and then Use the Followint Code
    ResourceBundle resBun = ResourceBundle.getBundle("myapp");
    // Above Code will luk into the CLasspath for a file viz myapp.properties
    // so make sure this Directory where this file exists is within the Classpath.
    if(resBun != null)
    System.out.println("Checking Property: " + resBun.getValue("jdbc.drivers"));
    Hope this Helps.,
    Cheers,
    Manja

  • Sqlldr - passing file as a param

    hi,
    here is what a line in first.sql looks like:
    ho sqlldr userid=usrname/passwd control=file1.ctl log=file2.log direct=true errors=10000
    where file1.ctl looks like:
    LOAD DATA
    INFILE 'file3.txt' "str '\n'"
    INTO TABLE table_name
    FIELDS TERMINATED BY '\t'
    TRAILING NULLCOLS
    (sno char(1000),
    salary INTEGER EXTERNAL)
    Now, if i want to pass file3.txt as a parameter to either first.sql or file1.ctl - how would i do that?
    thanks

    Hi,
    You can save the following sqlldr command in one shell script named first.sh
    sqlldr userid=usrname/passwd file=$1 control=file1.ctl log=file2.log direct=true errors=10000
    Please change your control file as below
    LOAD DATA
    INTO TABLE table_name
    FIELDS TERMINATED BY '\t'
    TRAILING NULLCOLS
    (sno char(1000),
    salary INTEGER EXTERNAL)
    And run the shell script first.sh by passing the source file as argument like below.
    ./first.sh file3.txt
    Note: This is not tested. Please try and let us know if you face any issues.
    Thanks,
    Karthik

  • When passing Node to parse() method get NULL pointer exception.

    All,
    I trying to pass a Node to parse method to get the NodeType object back and getting
    null pointer exception.
    Example
    xml
    <root>
    <Test>
    <someData>ABC</someData>
    </Test>
    </root>
    if pass the Test node to get Test object back I am getting null pointer exception.
    Thanks for all ur help
    Shoeb

    file 2
    ~~~~
    import javax.swing.*;
    public class ExtendedPage extends BasePage
    private JTextField objJTextField = null;
    private JButton objJButtonBrowse = null;
    Change the line in bold to
    private JTextField objJTextField;
    And everything works.

  • Efficiency of passing a member variable as param, versus w/ GetIntField

    Assume that there is a utility method that stores fieldID as a global reference (so no overhead of field ID look-up), and that each native method calls that method to retrieve a per-object integral value (a native pointer). The question is, would it be any more efficient to change method definitions to take that value as an extra param, and pass that param from Java, instead of looking it up from a variable inside JNI?
    More precisely, when we pass in an int param to a Java method, doesn't the native code that executes those instructions call the same GetIntField method?
    I think the answer is yes. I also think the same would hold for jlong-GetLongField, and all other types.
    Thanks.

    "The overhead of field access using the JNI lies in the cost of calling through the JNIEnv. Rather than directly dereferencing objects, the native code has to perform a C function call which in turn dereferences the object. The function call is necessary because it isolates the native code from the internal object representation maintained by the virtual machine implementation. The JNI field access overhead is typically negligible because a function call takes only a few cycles."
    I believe this answers my question as "The 2 approaches are likely to be effectively the same in terms of efficiency, because passing a param would involve an overhead, and especially if the param-ed method is protected, and public interface exposes the same method without param, and calls the protected method, for cleaner interface.":

  • Node data OVS

    Hi, everyone,
    Let's say this is my Custom BO.
       businessobject myBO{
              [alternativeKey] element id:ID;   
                   node item{
                        element itemID:ID;
                        element itemName:Text:
    I want to make an OVS for item node according to the root node id.
    When  I select the root node id, I want to get my OVS to contain only its related node items.
    Regards,
    May T.
    Please explain step by step because I am not familiar with the Query thing in SAP Cloud Application Studio.

    Isn't the traditional approach working?
    Create an OVS with Item level query.
    Get the root_ID from user first.
    Pass root_ID as a param to Item level OVS. It filters data based on the root_ID and so user will be able to select based on that itself provided you maintain root_ID for each item instance..
    If root is mandatory, then you can disable Item till user fills root.
    If you think this is a two step process, then you can even introduce Advanced Search in your OVS pane itself to enable search Items based on root_ID.

Maybe you are looking for

  • Outlook 2003 has stopped working on windows 7

    Hi, so I started to get this error today, yestarday everything was finne: Problem signature:   Problem Event Name: APPCRASH Application Name: OUTLOOK.EXE   Application Version: 11.0.5510.0   Application Timestamp: 3f1380f0 Fault Module Name: StackHas

  • Mic no longer works in Vi

    I have an MSI mobo that has a built in x-fi sound chip. It has worked fine the past 6 months until maybe two weeks ago when i updated the creative driver via Vista. Ever since then I can not get the mic to work at all. It doesnt matter if I plug into

  • The parameter is incorrect Error when browsing by name

    I have a domain setup, When i try to browse my "servername - share" i recieve the following error "servername - share" is not accessible. you might not have permission to use this network resource. Contact the administrator of this server to find out

  • Application does not work properly when I press a CommanButton

    Hi all, I am having a problem with weblogic 10.3.5. It turns out that an application built with JDeveloper 11.1.5, I test it, and everything goes well in the JDeveloper integrated Weblogic. But when deploy in a standalone weblogic 10.3.5 server, the

  • Why do deleted tv shows keep downloading?

    Every time I go to sync my ipad with my itunes, the movies and tv shows I deleted keep downloading. I tried deleting them from purchase and it doesn't work.