Call subtemplate if the corresponding node exists in the XML

Hi,
I have a requirement to call the sub template if the corresponding exists in the XML file. For example if the invoice node and the corresponding details are present in the XML file then i have to call the invoice sub template. Can any one suggest me how to check if the node exists or not in the XML file. Is there any specific command for this.
Thanks

Hi,
Thanks a lot..it is working now as per ur suggestions..but am facing another problem here. Am calling the sub template from a main template. Headers and footers for both main and sub templates are different. So for calling the sub template i did section break (Insert -->Break , In section break-->New page) so that the header and footer of the main template wll not be repeated in the sub template. So in the new page am checking if the node exists or not the XML. If so then call the XML. If the node exists then sub template is called successfully. But if the node does not exists then a blank page is displayed for this since the call stmt is in the new page.
So can you please suggest me how to suppress the blank page if the node does not exist.
Thanks.

Similar Messages

  • Problem calling subtemplate outside the catlog

    Hi
    I am trying to call subtemplate thats is outside the catlog and on different server
    i am using the following syntax but when when i run the report i am getting blank page
    <?import:http//db01:8012/home/reports/faces/images/subtemplate.rtf?>
    is the abover syntax is correct or what is the procedure i have to follow i have seen the documentation too .
    Thanks in Advance.

    Hi All,
    I am also facing the issue with sub template calling, my problem is i have two Templates and both are registered in the XML Publisher, like Template1(Main Template) and Template2(Sub Template) but while the report main template not pulling the sub template, pls check the below syntax
    Main Template:Template1
    in this template i am using the below code.
    <?import:xdo:// VEL.TESTPOXPRPOP.en.US?>
    <?call-template: VCANXXPOXPRPOP?>
    <?import:xdo:// VEL.TESTPOXPRPOP.en.US?>
    VEL - CustomTOP
    TESTPOXPRPOP - Shortcode of Template
    en - language
    US- Teritory
    <?call-template: VCANXXPOXPRPOP?>
    from the above syntax i am calling the Subtemplate inner data, please see the sub template details below
    Sub Temlplate: Template2
    in this template i am using the below code.
    <?template: VCANXXPOXPRPOP?>
    Hello Welcome to Oracle World
    <?end template?>
    Please advice me whether i am going on right way are not that syntax everything correct or not.
    Thanks in Advance.

  • Creation of the rss xml feed url and the xml itself

    Hello all.
    I know this question has been answered before I think and I get most of the answer, BUT
    I want to put my podcasts on the itunes lib and know that I have to submit the rss xml.
    My issue is that I don't know where I put it physically.
    I publish a web site thru iweb, no problem. If I add a blank page to the site and call the page "rss.xml", then add a text box to the page, then place the xml for the podcast in it. Will that work if i submit the entire URL to itunes?
    I created the blank page and called the page rss.xml, then navigated to the page and in the address bar the last part of the URL was".html". That does not seem correct, but I am pretty much new to this so I am not sure.
    Please help if you can.
    Here is my website:
    http://web.mac.com/davescida/iWeb/Early_riser/rss.xml.html
    I just don't know what I am doing wrong and I don't think it should be this hard...
    Thanks much
    Dave

    I'm quite new to the whole podcast thing and it took me a while to wrap my head around exactly what and RSS feed is, how it works and what you do with it. I'm still learning.
    However, here's what I do now: the XML file is like its own web page. You can't create a blank HTML document and just name it RSS feed or whatever. You need to either hand code the file or use an RSS feed creator program. There are some shareware programs that do that, but I am having difficulty with them. Think of the XML file as the exact same thing as an HTML file (web page). So you need to place the file on your web site or web srever that is hosting your podcast. For example, my podcast audio file is located inside a folder on my web site called "podcast". The XML file (RSS feed file) is also located inside that folder. Therefore the web address is: http://www.mysite.com/podcast/mypodcast.xml
    That is what gets submitted to podcast directories and to iTunes. If it is created correctly, that XML document will contain ALL of the information needed to tell everyone about your podcast (description, etc.) and where the audio file actualy is so it can be downloaded automatically by iTunes.
    I hope this makes sense.

  • For existing data in BI, client need to take a call to park the same from s

    hi,
    friends,
    For existing data in BI, client need to take a call to park the same from safety point view by copying the existing ODS  
    is it possible?if it is possible give me details.
    thanks&regurds
    sivaji

    hi,
    well when you copy an ODS only the structure is copied. to load the data you might need to create transformation and DTp to load data in the new ODS.
    You need to load data manually. Copying the ODS will only copy the structure.
    Regds,
    Shashank

  • 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

  • Caller identification with the existing landline in the UK

    Can I set up caller identification with the regular landline in the UK? I've tried it and It says it's sending me an SMS but then nothing happens

    Hi, coachrw, and welcome to the Community, Not that I am aware of.  Caller ID numbers on Skype can be either a Skype Number or a verified mobile number, such verification process for a mobile number requiring an SMS message.  Please contact Skype Customer Service if you still do not receive the SMS verification to your mobile number. Regards,Elaine

  • Unable to call subtemplate (24 pages) in EBS

    Hi All,
    I have a big template with 26 pages and size is 45MB. First i tried to load this template into EBS template but got error. Then i created two template from this, one main template with first two pages and other subtemplate with rest of 24 pages.
    I successfully loaded main template into EBS and moved subtemplate into EBS unix box.
    Now i am calling subtemplate into main template using import command.
    <?import:http://myserver:8006/xmlptemp/xml_WelPkg_SubTemplate.rtf?>
    <?call:SubTemplate?>
    <?end call?>
    Then i am getting error:
    java.lang.NullPointerException at oracle.apps.xdo.oa.util.CoreHelper.escapeBrackets(CoreHelper.java:549) at oracle.apps.xdo.oa.util.CoreHelper.getExceptionXML(CoreHelper.java:580) at oracle.apps.xdo.oa.util.CoreHelper.writeExceptionDocument(CoreHelper.java:661) at oracle.apps.xdo.oa.util.CoreHelper.writeExceptionDocument(CoreHelper.java:637) at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:6205) at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3555) at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3614) at oracle.apps.xdo.oa.template.server.TemplatesAMImpl.processTemplate(TemplatesAMImpl.java:2135) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:189) at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:152) at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:721) at oracle.apps.xdo.oa.template.webui.TemplateGeneralCO.previewTemplate(TemplateGeneralCO.java:741) at oracle.apps.xdo.oa.template.webui.TemplateGeneralCO.processRequest(TemplateGeneralCO.java:158) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:581) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247) at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1095) at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:932) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:899) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247) at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:932) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:899) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247) at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353) at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2298) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1711) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418) at oa_html._OA._jspService(_OA.java:88) at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119) at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417) at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267) at oracle.jsp.JspServlet.internalService(JspServlet.java:186) at oracle.jsp.JspServlet.service(JspServlet.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162) at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187) at oa_html._OA._jspService(_OA.java:98) at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119) at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417) at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267) at oracle.jsp.JspServlet.internalService(JspServlet.java:186) at oracle.jsp.JspServlet.service(JspServlet.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456) at org.apache.jserv.JServConnection.run(JServConnection.java:294) at java.lang.Thread.run(Thread.java:534)
    If i ran same main template from my PC using MS word template builder then i am getting report output without any error.
    If i remove 23 pages from the subtemplate and keep 1 or 2 pages, move into EBS unix box then i am getting report output from EBS.
    This is a service contract welcome package report so i can not reduce number of pages.
    I am using 5.6.2 version on EBS
    Could any one tell me solution for this.
    Thanks
    Ravi
    null

    Hi Tim,
    Thanks for quick responce.
    I am trying to send you zip file (4 MB) but every time i am getting back with error (I'm afraid I wasn't able to deliver your message to the following
    addresses.
    This is a permanent error; I've given up. Sorry it didn't work out)
    Could you please tell me other way?
    Thanks
    Ravi

  • My iphone 5 went into search mode and I can't place or receive calls or use the internet but my text messages work. Sprint had me do a master reset and my phone doesn't work at all now I can't get it past the activation. Will I have to pay in store?

    My iphone 5 went into search mode and I can't place or receive calls or use the internet but my text messages work. Sprint had me do a master reset and my phone doesn't work at all now I can't get it past the activation. Will I have to pay for repairs in store because I didnt get the Apple care plan when I purchased it. Sprint said it may be a phone problem not sure if I should take it to Sprint or Apple...I just need my phone

    I'm sorry to learn that you are not able to make/receive calls chelseabee! (ticket number removed) results indicate that there is no issues with the network or account provisioning. Since you have already done a hard reset http://vz.to/1gBkSJc (as per your post), I recommend exploring replacement options. If your phone is within the one year manufacturers' warranty we can provide a Certified Like New replacement http://vz.to/uyYF0o as long as no physical/liquid damage exist. If your phone has sustained physical/water damage and you have insurance, you can submit a claim to the insurance company online at this link http://bit.ly/07CrqPK
    AntonioC_VZW Follow us on Twitter at www.twitter.com/VZWSupport
    >> Edited to comply with the Verizon Wireless Terms of Service <<
    Edited by:  Verizon Moderator

  • Calling a form on HTree Node Click

    i need a help on calling a form on HTree Node Click.
    the details as follows
    ### THIS IS MY TABLE ###
    SQL> DESC MENU_OPTION
    Name Null? Type
    NAME_CODE NOT NULL VARCHAR2(20)
    OPTION_NAME NOT NULL VARCHAR2(50)
    LINK_NAME_CODE NOT NULL VARCHAR2(20)
    MAIN_OPTION VARCHAR2(20)
    DATAID NOT NULL NUMBER
    FORM_NAME VARCHAR2(50)
    ### THIS IS MY TREE ###
    DECLARE
    htree ITEM;
    v_ignore NUMBER;
    rg_emps RECORDGROUP;
    BEGIN
    htree := Find_Item('tree_block.htree4');
    rg_emps := Find_Group('emps');
    IF NOT Id_Null(rg_emps) THEN
    DELETE_GROUP(rg_emps);
    END IF;
    rg_emps := Create_Group_From_Query('rg_emps',
    'select -1, level, OPTION_NAME, NULL, to_char(NAME_CODE) ' ||
    'from MENU_OPTION '||'connect by prior NAME_CODE = LINK_NAME_CODE '||
    'start with MAIN_OPTION = ''TOP_MENU''');
    v_ignore := Populate_Group(rg_emps);
    Ftree.Set_Tree_Property(htree, Ftree.RECORD_GROUP, rg_emps);
    END;
    ### WHAT I WANT IS ####
    The Tree is working fine
    when i click on the node i want to call_form where
    FORM_NAME matches with the OPTION_NAME
    I Tried below code.. but i don't know how to call_form
    WHEN-TREE-NODE-ACTIVATED
    Declare
    LN$I Pls_integer ;
    LC$Node Varchar2(60);
    Begin     
    IF :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' THEN
         LC$Node := FTREE.GET_TREE_NODE_PROPERTY('TREE_BLOCK.HTREE4', :SYSTEM.TRIGGER_NODE, FTREE.NODE_VALUE);
    -- how to call the form????? .....
    End if ;
    End;
    Anyone can help

    Dear Sis,
    I'm posting the code again
    ### THIS IS MY TABLE ###
    SQL> DESC MENU_OPTION
    Name Null? Type
    NAME_CODE        NOT NULL VARCHAR2(20)
    OPTION_NAME      NOT NULL VARCHAR2(50)
    LINK_NAME_CODE   NOT NULL VARCHAR2(20)
    MAIN_OPTION               VARCHAR2(20)
    DATAID           NOT NULL NUMBER
    FORM_NAME                 VARCHAR2(50)### THIS IS MY TREE ###
    DECLARE
    htree ITEM;
    v_ignore NUMBER;
    rg_emps RECORDGROUP;
    BEGIN
    htree := Find_Item('tree_block.htree4');
    rg_emps := Find_Group('emps');
    IF NOT Id_Null(rg_emps) THEN
    DELETE_GROUP(rg_emps);
    END IF;
    rg_emps := Create_Group_From_Query('rg_emps',
    'select -1, level, OPTION_NAME, NULL, to_char(NAME_CODE) ' ||
    'from MENU_OPTION '||'connect by prior NAME_CODE = LINK_NAME_CODE '||
    'start with MAIN_OPTION = ''TOP_MENU''');
    v_ignore := Populate_Group(rg_emps);
    Ftree.Set_Tree_Property(htree, Ftree.RECORD_GROUP, rg_emps);
    END;### WHAT I WANT IS ####
    The Tree is working fine
    when i click on the node i want to call_form where
    FORM_NAME matches with the OPTION_NAME
    I Tried below code.. but i don't know how to call_form
    WHEN-TREE-NODE-ACTIVATED
    Declare
    LN$I Pls_integer ;
    LC$Node Varchar2(60);
    Begin
    IF :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' THEN
    LC$Node := FTREE.GET_TREE_NODE_PROPERTY('TREE_BLOCK.HTREE4', :SYSTEM.TRIGGER_NODE, FTREE.NODE_VALUE);
    -- how to call the form????? .....
    End if ;
    End;

  • IXML - Checking if a specific node exists in XML data

    Hi,
    I´m reading XML data by using iXML classes. One XML file I´m reading contains header and
    item data.
    Right now I´m starting with reading the header attributes and then read all nested nodes and their attribute data. That works all fine, but now I had the error, that the XML file wrongly didn´t contain the items.
    My XML reading method then ended up in a dump because the node was null:
    l_node = l_iterator->get_next( ).
    Can anybody give me an advice, how to check at the beginning of reading my xml data, if a specific node (in my case the node for items) exists in the XML data? If not, I want to stop with an error message. I want to check that at the beginning, before reading all element data, to keep my method structured.
    Thank you very much!

    Hi,
    You can create a filter and set that filter to the iterator. If this is done the iterator returns you only the node with a specific node name or node ID.
    You can also check the parsing in the following WIKI code gallery
    https://wiki.sdn.sap.com/wiki/x/JoDmAQ
    Subroutines create_set_filter_attribute and parse_xml_file would be helpful.

  • Making an RFC call from within the VM container

    Hi all,
    since a long time I am searching for information on how to implement an RFC call from within the VMC. The problem is that we have implemented several (p)functions in ABAP and we need to implement them in JAVA.
    Now I am searching for a way how to just call the already existing pfunctions???
    Is it possible to read CRM DB tables too?
    Thank you in advance
    Boris

    Hi Freeto,
    This may be due to the Network Failures.
    If you have triggered a job then because of the Network fluctuations the system may not respond properly and cannot execute the job.
    So, this is the cause for the failure.
    Hope you understood.
    With Regards,
    Ravi Kanth

  • My daughter is going to Canada for a week and i would like to know if it will cost extra for her to text and/or call someone in the United States?

    My daughter is going to Canada for a week and i would like to know if it will cost extra for her to text and/or call someone in the United States?

    http://businessportals.verizonwireless.com/international/traveling_to/North_America/Canada.html
    69 cents a minute for calls, texts covered under an existing texting plan or the standard pay per text rate if you don't have one.
    If you're traveling in Canada, contact Customer Service at 800-922-0204 from any landline phone.
    Global Picture and Video Messages are billed at the same per-message rate as though they were sent from the U.S. Accordingly, you can send/receive Picture and Video Messages with customers of:
    Verizon Wireless (domestic rates/bundles apply)
    Other domestic carriers (domestic rates/bundles apply)
    Canadian, Mexican and Puerto Rican carriers (domestic rates/bundles apply)
    Select International carriers (global rates apply) 
    When sending or receiving there's an additional data transport charge billed at the destination's Data Pay per Use Rate multiplied by the size of the Picture or Video, which can vary greatly.
    A data network is required to send picture or video outside the U.S. See the Data Roaming List for eligible destinations.
    Attempts to send Pictures or Videos are charged, even if the delivery fails.
    Text Messages sent or received while in Canada, Puerto Rico and the U.S. Virgin Islands are billed as though you were in the U.S.
    Check out our Nationwide plus Canada plans if you frequently call or travel to Canada.

  • Calling subtemplate.rtf in maintemplate.rtf in XML Publisher reports

    Hi,
    I am working on XML Publisher Reports. I have two subtemplate.rtf; based on condition in the maintemplate.rtf, i have to call either of the subtemplate.rtf.
    Doubts:
    1. Do i need to register both subtemplate.rtf in oracle applications? If yes, what could be 'CODE' while registering in oracle applications.
    2. How to use subtemplate.rtf based on condition in the maintemplate.rtf?
    Could i expect a complete process of using subtemplate in main template.
    I am profoundly thankful to any help in advance.
    Thanks.

    Hi ,
    Check the following link may be help ful for u
    http://blogs.oracle.com/xmlpublisher/2008/07/conditional_templates.html
    Thanks,
    Ananth

  • FABridge - Error: You are trying to call recursively into the Flash Player [...]

    I'm using FABridge to communicate between JS (and GWT) and a flex component I've written, but I've run into a strange error:
    You are trying to call recursively into the Flash Player which is not allowed. In most cases the JavaScript setTimeout function, can be used as a workaround.
    I know what the error means, but what I don't understand is why I'm only receiving this error when I run the application locally (127.0.0.1) in this one webapp.
    Once I upload the app to the remote testing server, the error goes away and the app functions as it should.  I've tried to use setTimeout without any luck.
    I thought this might be a crossdomain problem so I set Security.allowDomain("*") in flex and the same on the testing server via a crossdomain.xml file but this did nothing.
    The function that is being called takes a parameter (image or an image wrapped in swf file) via the querystring and adds it to the stage.  The files all exist on the remote server.
    Another strange part is that when I run the flex app via Flash Builder it behaves fine. Also, I've run the component as part of a separate project locally without issue.
    The problem only exists when I run the component as part of the this project, when I'm working on it locally.  I even have another local app using the same component that works fine.
    I'm at a loss.  Any ideas?

    Ok, I was excited when I noticed I didn't change allowscriptaccess, but that didn't work. 
    Just to recap:
    -I have Security.allowDomain("*") as the first line in the init() (creationComplete) function
    -I have a crossdomain.xml file located on the remote server that allows="*" and ports="*" (because gwt debugs through :8888)
    -allowscriptaccess is set to always
    -I am using FABridge to communicate between JS and the swf.  Calling the function directly from Firebug causes the same error. 
    Even trying to call a function that is completely unrelated to the remote domain produces the same error.  For example, getAppHeight().  So at second glance, this doesn't seem to be a security issue?
    The only post (Google Cache) about the error suggests I use FABridge.MethodsToCallLater which doesn't seem to exist anymore in the version of FABridge that I downloaded.  The copy of FABridge I have doesn't have any version information in the file, but I believe I pulled it from the Flex 3 SDK. 
    Can anyone tell me if that feature has been removed/added in recent versions?  Or any other insights into my current situation?  Thanks for looking!

  • How to identify if a data node exist?

    Hi,
    If a form is binded to a schema, and when the xml is supplied to the form how to identify an optional node in the xml is available or not.
    for example if I have a XML input like below
    <root>
         <childTable>         
              <childRow>
                   <child1>
                   <child2>
              </childRow>
              <childRow>
                   <child1>
                   <child2>
              </childRow>
         </childTable>
    </root>
    is it possible to identify if the childTable node is present in the xml input.
    The code xfa.datasets.data.root.childTable if used fails when the childTable is not present in the input xml?
    Please let me know if there is a way to identify if the input xml has  a specified node. Assuming that we know the path of the node in the xml structure.
    Regards -
    Ashok Deivaisgamani

    Hi Ashok,
    Could you please try this?
    var nodeCheck = xfa.resolveNode("$record.childTable");
    if(nodeCheck != null)
         app.alert("Node Exists");
    else
         app.alert("Node Not Avaliable");
    Thanks,
    VJ

Maybe you are looking for