Problem retrieving a list of values with XPATH

Hi,
I am trying to get a list of all 'Fields' (under the SubscriptionList -> EconomicIndicator -> Code) which have 'Provider' =DJ.
I am using the below xpath expression. But It is not working. I tried other variations but none of them return mulitple items.
Can some one please tell me if Iam missing something.
               XPathExpression xPathExpression= xpath.compile("/SubscriptionList/EconomicIndicator[*]/Code[Provider=DJ]/Fields");
               NodeList result = (NodeList)xPathExpression.evaluate(doc, XPathConstants.NODESET);
          for (int i = 0; i < result.getLength(); i++) {
               Element element = (Element)result.item(i);
          System.out.println(element.getNodeValue());
<?xml version="1.0" encoding="UTF-8"?>
<SubscriptionList>
<DefaultEconomicIndicatorName>US ADP Employment Change</DefaultEconomicIndicatorName>
<!--GE IFO - Business Climate-->
<EconomicIndicator>
<Name>GE IFO - Business Climate</Name>
<Active>0</Active>
<OutputFormat></OutputFormat>
<OutputUnits>1</OutputUnits>
<StartDate>2007-06-22T03:50:00</StartDate>
<EndDate>2007-06-22T04:10:00</EndDate>
<Code>
<Provider>BB</Provider>
<Service>Index</Service>
<InstrumentCode>GRIFPBUS</InstrumentCode>
<FID>PX_LAST</FID>
<Units>1</Units>
<Fields></Fields>
</Code>
<Code>
<Provider>BB1</Provider>
<Service>Index</Service>
<InstrumentCode>GRIFPBUS</InstrumentCode>
<FID>PX_LAST</FID>
<Units>1</Units>
<Fields></Fields>
</Code>
<Code>
<Provider>BB2</Provider>
<Service>Index</Service>
<InstrumentCode>GRIFPBUS</InstrumentCode>
<FID>PX_LAST</FID>
<Units>1</Units>
<Fields></Fields>
</Code>
<Code>
<Provider>BB3</Provider>
<Service>Index</Service>
<InstrumentCode>GRIFPBUS</InstrumentCode>
<FID>PX_LAST</FID>
<Units>1</Units>
<Fields></Fields>
</Code>
<Code>
<Provider>RFA</Provider>
<Service>IDN_SELECTFEED</Service>
<InstrumentCode>DEBUSS=ECI</InstrumentCode>
<FID>356</FID>
<Units>1</Units>
<Fields></Fields>
</Code>
<Code>
<Provider>DJ</Provider>
<Service></Service>
<InstrumentCode>GM_IFO</InstrumentCode>
<FID></FID>
<Units>1</Units>
<Fields>GM_IFO_BUSSENTIMENT_Cur</Fields>
</Code>
<Code>
<Provider>DJS</Provider>
<Service></Service>
<InstrumentCode>GM_IFO</InstrumentCode>
<FID></FID>
<Units>1</Units>
<Fields>GM_IFO_BUSSENTIMENT_Cur</Fields>
</Code>
</EconomicIndicator>
<!--GE Producer Prices (MoM)-->
<EconomicIndicator>
<Name>GE Producer Prices (MoM)</Name>
<Active>0</Active>
<OutputFormat></OutputFormat>
<OutputUnits>1</OutputUnits>
<StartDate>2007-06-20T01:50:00</StartDate>
<EndDate>2007-06-20T02:10:00</EndDate>
<Code>
<Provider>BB</Provider>
<Service>Index</Service>
<InstrumentCode>GRPFIMOM</InstrumentCode>
<FID>PX_LAST</FID>
<Units>1</Units>
<Fields></Fields>
</Code>
<Code>
<Provider>BB1</Provider>
<Service>Index</Service>
<InstrumentCode>GRPFIMOM</InstrumentCode>
<FID>PX_LAST</FID>
<Units>1</Units>
<Fields></Fields>
</Code>
<Code>
<Provider>BB2</Provider>
<Service>Index</Service>
<InstrumentCode>GRPFIMOM</InstrumentCode>
<FID>PX_LAST</FID>
<Units>1</Units>
<Fields></Fields>
</Code>
<Code>
<Provider>BB3</Provider>
<Service>Index</Service>
<InstrumentCode>GRPFIMOM</InstrumentCode>
<FID>PX_LAST</FID>
<Units>1</Units>
<Fields></Fields>
</Code>
<Code>
<Provider>RFA</Provider>
<Service>IDN_SELECTFEED</Service>
<InstrumentCode>DEPPI=ECI</InstrumentCode>
<FID>356</FID>
<Units>1</Units>
<Fields></Fields>
</Code>
</EconomicIndicator>
<!--UK CBI Industrial Trend-->
<EconomicIndicator>
<Name>UK CBI Trends - Orders</Name>
<Active>0</Active>
<OutputFormat></OutputFormat>
<OutputUnits>1</OutputUnits>
<StartDate>2007-06-21T05:50:00</StartDate>
<EndDate>2007-06-21T06:10:00</EndDate>
<Code>
<Provider>RFA</Provider>
<Service>IDN_SELECTFEED</Service>
<InstrumentCode>GBCBIO=ECI</InstrumentCode>
<FID>356</FID>
<Units>1</Units>
<Fields></Fields>
</Code>
</EconomicIndicator>
<!--UK CBI Industrial Trend-->
<EconomicIndicator>
<Name>UK CBI Distributive - Trades</Name>
<Active>0</Active>
<OutputFormat></OutputFormat>
<OutputUnits>1</OutputUnits>
<StartDate>2007-06-21T05:50:00</StartDate>
<EndDate>2007-06-21T06:10:00</EndDate>
<Code>
<Provider>RFA</Provider>
<Service>IDN_SELECTFEED</Service>
<InstrumentCode>GBCBIS=ECI</InstrumentCode>
<FID>356</FID>
<Units>1</Units>
<Fields></Fields>
</Code>
</EconomicIndicator>
<!--US Unit Labor Costs-->
<EconomicIndicator>
<Name>US Unit Labor Costs</Name>
<Active>0</Active>
<OutputFormat></OutputFormat>
<OutputUnits>1</OutputUnits>
<StartDate>2007-09-06T08:20:00</StartDate>
<EndDate>2007-09-06T08:40:00</EndDate>
<Code>
<Provider>BB</Provider>
<Service>Index</Service>
<InstrumentCode>COSTNFR%</InstrumentCode>
<FID>PX_LAST</FID>
<Units>1</Units>
<Fields></Fields>
</Code>
<Code>
<Provider>BB1</Provider>
<Service>Index</Service>
<InstrumentCode>COSTNFR%</InstrumentCode>
<FID>PX_LAST</FID>
<Units>1</Units>
<Fields></Fields>
</Code>
<Code>
<Provider>BB2</Provider>
<Service>Index</Service>
<InstrumentCode>COSTNFR%</InstrumentCode>
<FID>PX_LAST</FID>
<Units>1</Units>
<Fields></Fields>
</Code>
<Code>
<Provider>BB3</Provider>
<Service>Index</Service>
<InstrumentCode>COSTNFR%</InstrumentCode>
<FID>PX_LAST</FID>
<Units>1</Units>
<Fields></Fields>
</Code>
<Code>
<Provider>RFA</Provider>
<Service>IDN_SELECTFEED</Service>
<InstrumentCode>USLCTS=ECI</InstrumentCode>
<FID>356</FID>
<Units>1</Units>
<Fields></Fields>
</Code>
<Code>
<Provider>DJ</Provider>
<Service></Service>
<InstrumentCode>US_PROD2_REV</InstrumentCode>
<FID></FID>
<Units>1</Units>
<Fields>US_PROD2_REV_UNITLABORCOST_CurQChgPct</Fields>
</Code>
<Code>
<Provider>DJS</Provider>
<Service></Service>
<InstrumentCode>US_PROD2_REV</InstrumentCode>
<FID></FID>
<Units>1</Units>
<Fields>US_PROD2_REV_UNITLABORCOST_CurQChgPct</Fields>
</Code>
</EconomicIndicator>
</SubscriptionList>

Hi DrClap,
I have a similar problem again. This time I am trying to extract a list of values from a xsd. Below is the code that I am using.
          try{
               djxsd = new FileInputStream("djei-3.1.xsd");
               XPathFactory factory = XPathFactory.newInstance();
               XPath xpath = factory.newXPath();
               SimpleNamespaceContext nsContext = new SimpleNamespaceContext();
               xpath.setNamespaceContext(nsContext);
               nsContext.addNamespace("xs", "http://www.w3.org/2001/XMLSchema");
               nsContext.addNamespace("xsi","http://www.w3.org/2001/XMLSchema-instance");
               +//String exp = "//xs:element/@name/text()";+               
String exp = "/xs:schema/xs:group/xs:sequence/xs:element";
               XPathExpression xPathExpression= xpath.compile(exp);
               NodeList result = (NodeList)xPathExpression.evaluate(doc, XPathConstants.NODESET);
               FileOutputStream outputfile = new FileOutputStream("log.txt");
          for (int i = 0; i < result.getLength(); i++) {
               Element element = (Element)result.item(i);
               String output = element.getTextContent().trim();
               if(output.length() > 0)
                    outputfile.write(output.getBytes());
                    //System.out.println(output);
Highlighted in Itlalics is the actual expression that I want to use. For some reason this is not working .. it returns nothing.
The other expression works. Please let me know if there is anything wrong with the expression.
THE XSD FILE
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" elementFormDefault="qualified">
     <xs:element name="DJEconomicIndicator">
          <xs:complexType>
               <xs:sequence minOccurs="0" maxOccurs="unbounded">
                    <xs:group ref="allgroup"/>
               </xs:sequence>
               <xs:attributeGroup ref="TopGrp-Attributes"/>
          </xs:complexType>
     </xs:element>
     <xs:group name="allgroup">
          <xs:sequence>
               <!-- ==================== CPI ========================== -->
               <xs:element name="US_CPI_CurMonChgPct" minOccurs="0">
                    <xs:annotation>
                         <xs:documentation> US Consumer Price Index </xs:documentation>
                         <xs:appinfo> CPI </xs:appinfo>
                    </xs:annotation>
                    <xs:complexType>
                         <xs:annotation>
                              <xs:appinfo> MoM Pct Change (Current Period) </xs:appinfo>
                         </xs:annotation>
                         <xs:simpleContent>
                              <xs:extension base="xs:double">
                                   <xs:attributeGroup ref="common-month"/>
                                   <xs:attributeGroup ref="common-attributes"/>
                              </xs:extension>
                         </xs:simpleContent>
                    </xs:complexType>
               </xs:element>
               <xs:element name="US_CPI_ExpMonChgPct" minOccurs="0">
                    <xs:annotation>
                         <xs:documentation> US Consumer Price Index </xs:documentation>
                         <xs:appinfo> CPI </xs:appinfo>
                    </xs:annotation>
                    <xs:complexType>
                         <xs:annotation>
                              <xs:appinfo> Forecast MoM Pct Change (Current Period) </xs:appinfo>
                         </xs:annotation>
                         <xs:simpleContent>
                              <xs:extension base="xs:double">
                                   <xs:attributeGroup ref="common-month"/>
                                   <xs:attributeGroup ref="common-attributes"/>
                              </xs:extension>
                         </xs:simpleContent>
                    </xs:complexType>
               </xs:element>
               <!-- ==================CPI Unrounded==================== -->
               <xs:element name="US_CPI_Unrounded_CurMonChgPct" minOccurs="0">
                    <xs:annotation>
                         <xs:documentation> US Consumer Price Index </xs:documentation>
                         <xs:appinfo> CPI UnRounded</xs:appinfo>
                    </xs:annotation>
                    <xs:complexType>
                         <xs:annotation>
                              <xs:appinfo> MoM Pct Change (Current Period) </xs:appinfo>
                         </xs:annotation>
                         <xs:simpleContent>
                              <xs:extension base="xs:double">
                                   <xs:attributeGroup ref="common-month"/>
                                   <xs:attributeGroup ref="common-attributes"/>
                              </xs:extension>
                         </xs:simpleContent>
                    </xs:complexType>
               </xs:element>
               <!-- ==================CPI Core Index==================== -->
               <xs:element name="US_CPI_Core_CurMonChgPct" minOccurs="0">
                    <xs:annotation>
                         <xs:documentation> US Consumer Price Index </xs:documentation>
                         <xs:appinfo> CPI Core </xs:appinfo>
                    </xs:annotation>
                    <xs:complexType>
                         <xs:annotation>
                              <xs:appinfo> MoM Pct Change (Current Period) </xs:appinfo>
                         </xs:annotation>
                         <xs:simpleContent>
                              <xs:extension base="xs:double">
                                   <xs:attributeGroup ref="common-month"/>
                                   <xs:attributeGroup ref="common-attributes"/>
                              </xs:extension>
                         </xs:simpleContent>
                    </xs:complexType>
               </xs:element>
               <xs:element name="US_CPI_Core_ExpMonChgPct" minOccurs="0">
                    <xs:annotation>
                         <xs:documentation> US Consumer Price Index </xs:documentation>
                         <xs:appinfo> CPI Core </xs:appinfo>
                    </xs:annotation>
                    <xs:complexType>
                         <xs:annotation>
                              <xs:appinfo> Forecast MoM Pct Change (Current Period) </xs:appinfo>
                         </xs:annotation>
                         <xs:simpleContent>
                              <xs:extension base="xs:double">
                                   <xs:attributeGroup ref="common-month"/>
                                   <xs:attributeGroup ref="common-attributes"/>
                              </xs:extension>
                         </xs:simpleContent>
                    </xs:complexType>
               </xs:element>

Similar Messages

  • How to use List of values with bind variables on item?

    Hi
    I made a dynamic list of values with a bind variable as a provider. I tried to run the list, and it worked fine - i filled inn the bind variable when asked for, and i got a list of values to choose from.
    I would very much like to use this list of values as an attribute on a custom made item. My wish is that when creating the item you someplace write the bind variable, and the list will then turn up as wanted. (I could f.ex add the variable as an attribute on the page type)
    I tried to create a custom attribute and assign the list of values to it. It created an error when I then tried to add the attribute to the item.
    Does anyone have any idea on how to solve this?
    Any help appreciated!
    Maja R. Anjer

    Hi
    i am getting error as
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT meaning, lookup_code,lookup_type
    FROM fnd_lookup_values
    WHERE view_application_id = 200) QRSLT WHERE (lookup_type=:1 AND ( UPPER(MEANING) like :2 AND (MEANING like :3 OR MEANING like :4 OR MEANING like :5 OR MEANING like :6)))
    Thanks
    Mateti

  • How to implement list of values with bind parameters

    Hi All,
    Please give me details about how to implement list of values with bind parameters.
    I have implemented with below things.
    1) created lov view object with query like select meaning, lookup_code from fnd_lookup_values where lookup_type=:1;
    2) The above vo added to applicationa module.
    3) created Controller class in the co class written code in processRequest();
    String vLookupType=pageContext.getParameter("LookupType");
    Serializable params={vLookupType};
    am.invokemethod("Initialize",params);
    4) In AM Impl Class invoke the VO
    5) In VO Impl class executed the query..
    But the above process working fine but when i give the value in lov text field like 'C' then press tab button the result will not showing instead of that i am getting error message, i want to implement standard lov functionality while implementing query with bind parameter.
    any thing reqired to add the code to controller for search criteria..
    Thanks
    Mateti

    Hi
    i am getting error as
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT meaning, lookup_code,lookup_type
    FROM fnd_lookup_values
    WHERE view_application_id = 200) QRSLT WHERE (lookup_type=:1 AND ( UPPER(MEANING) like :2 AND (MEANING like :3 OR MEANING like :4 OR MEANING like :5 OR MEANING like :6)))
    Thanks
    Mateti

  • How can I retrieve a List of BAPIs with JCO?

    Hello!
    I want to retrieve a list of BAPIs in Java. Does anyone have a code sample how to do this with JCO and SWO_QUERY_API_METHODS?
    Regards,
    Jan

    Hi Diana,
    I've written a small example here (refresh my rusty JCo!) which returns just the function names in a Vector.
    Hope this helps,
    Gregor
    * Fetch a list of BAPIs
    * @author Gregor Brett
    import com.sap.mw.jco.*;
    import java.util.*;
    public class GetBapis
       private JCO.Client client;     
       private JCO.Repository repository;
       private Vector bapis;
       public GetBapis()
          try
             client = JCO.createClient("CLIENT","USERNAME","PASSWORD","EN","SERVERNAME","00");
             client.connect();
             repository = new JCO.Repository("Gregor", client);
               IFunctionTemplate ftemplate = repository.getFunctionTemplate("SWO_QUERY_API_METHODS");
               JCO.Function function = ftemplate.getFunction();
               client.execute(function);
                JCO.Table table = function.getTableParameterList().getTable("API_METHODS");
                bapis = new Vector();
             do
                JCO.Field functionName = table.getField("FUNCTION");
                   bapis.add(functionName.getString());
               while(table.nextRow());
          catch(Exception e)
             System.out.println("Error: " + e.getMessage());
             e.printStackTrace();
       public Vector getBapiList()
               return bapis;
       public static void main(String[] args)
               GetBapis gb = new GetBapis();
               Vector v = gb.getBapiList();
               System.out.println("Fetched " + v.size() + " BAPIs.");

  • XMLSearch / case in-sensitive search in a text node value with XPATH

    Hi everyone,
    I was aggregating some XML files and queries for a search
    engine. It is pretty easy with coldfusion XML functions BUT ....
    I was looking around XMLSearch to do a simple text search
    into nodes and I am stuck with it.
    with something like that :
    selectedElements = XmlSearch(myxmldoc,
    '(/directory/user[contains(.,"#form.firstName#")])');
    Without loop all the XML elements, I cannot put firstName
    text nodes to lower-case, do a simple search into the directory and
    get user entries.
    Is it possible to do with XPATH something like that :
    selectedElements = XmlSearch(myxmldoc,
    '(/directory/user[contains(lower-case(.),lower-case("#form.firstName#"))])');
    Thanks for your help.

    When Do you think coldfusion will implement Xpath functions
    as
    http://www.w3schools.com/xpath/xpath_functions.asp
    ????

  • Retrieve SharePoint List Item version with few columns only

    How to retrieve the version history of the list item in just a few columns just like what we can do with viewfields in spquery which return list item?
    Having performance problem when using splistitem.versions in a big list. When I show only the latest version, the page load much faster.
    teikboon

    Hi,
    According to your post, my understanding is that you had an issue about the version history.
    I couldn’t reproduce the issue in my environment, and I don’t think it’s a known issue.
    Per my knowledge, the version history contains information about when the item or file was changed, who changed it, and information about what was changed. In libraries, the version history might also contain comments written by the people who made changes.
    As you had said, you had seen an update to the value of the new column, did you see who changed it ? Maybe some had changed it.
    Could you reproduce the issue use the other lists? You can check with other lists to see whether it works.
    To quickly and accurately find the issue, I recommend you check with the ULS log to see if anything unexpected occurred.
    For SharePoint 2013, by default, ULS log is at
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS
    Thanks,
    Jason
    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]
    Jason Guo
    TechNet Community Support

  • Set value with XPath dynamically #2

    I am running into a similar problem as
    http://forums.adobe.com/message/2953296#2953296
    .but instead of constructing a string from xpath expressions, I'm trying to store a value into a Location based on a concatenated xpath expression.
    Here is what I'd like to do but it doesn't work:
    /process_data/@Approver_index = 1
    Location:/process_data/formData_flat/xdp/datasets/data/TDCR/RoutingName_[number(/process_data/@Approver_index)]
    Expression: 'Bob'
    This works if you were to put the string into the Location but Workbench won't accept this as a Location.  How can I dynamically apply a template xpath expression?  Any help would be great.

    Thanks for responding Gil.  This article is the basics of how to use the ExecuteScript service.  I'm familiar with this service.  Specifically, I'm trying to dynamically generate an XPATH location to store data.  Since I don't have a background as a java developer, I'm having trouble figuring out the method to accomplish this.
    The link I originally quoted was helpful because it outlined how to dynimcally build the Expression (which I also need ...and actually got working) but it doesn't mention how to build the XPATH location.  For this operation, I need to dynamically build both the Expression and the Location.  I'm halfway there.

  • Set value with XPath dynamically

    Dear All,
    I am wonder if the following is possiable with Set Value service using XPath, any *simple* workaround is also welcome too.
    If I have a variable myXML =
    <root>
    <item region="One">1</item>
    <item region="Two">2</item>
    </root>
    I can reference to /root/item[1] by:
    set /process/@myNum = 1
    set /process/@dummy  = /process_data/myXml/root/item[number(\process\@myNum)]
    But how can I access /root/item[@region="One"] ?
    I tried the following but all failed:
    1)
    set /process/@myString = @region="One"
    set /process/@dummy  = /process_data/myXml/root/item[string(\process\@myString)]
    2)
    set /process/@myString = One
    set /process/@dummy  = /process_data/myXml/root/item[@region='string(\process\@myString)']
    And are there any way to set a variable using template string? (i.e. You name is {$/process/@yourName$} )
    Regards
    Bill

    Bill,
    As the nature of dynamic xPath statements is very use-case dependant, there is not much in the way of documentation. However, I will forward this thread to the documentation team to see if there is anything that can be added in the future to make these types of questions covered in the docs.
    As for setting a variable by using a template, there is no way to do this in setValue service unfortunately. However, you can use the executeScript service in LC ES. This service allows you to write java code and have access to the LC ES APIs while in context of your process. If you go to http://help.adobe.com/en_US/livecycle/9.0/workbenchHelp/help.htm and look under Creating Processes Using LiveCycle Workbench ES2 / Service Reference / Execute Script you will find documentation about how ot use this service.
    http://help.adobe.com/en_US/livecycle/9.0/workbenchHelp/000580.html
    There is a method called replacePathExpressions(String aString) that is exposed by the patExecContext object. this method takes in a template like you are looking to use. Basically a string that contains some xPath expressions wrapped in {$ $}. I created a sample process (attached to this post) that has a process variable called templateString. I used a setValue service to set it's value to:
    "Your name is {$/process_data/@name$} and your address is {$/process_data/@address$}."
    Of course, I also have variables called "name" and "address" that I have tagged as input variables. Then I have the executeScript service with the following code (basically 3 lines of code with alot of comments):
    //Get the templateString process variable value.
    String template = patExecContext.getProcessDataStringValue("/process_data/@templateString");
    // Call the replacePathExpressions() method.
    // It is a built-in method that will look for all {$ $} variable text and process each xPath expression and replace them in the text.
    String result = patExecContext.replacePathExpressions(template);
    // Now, the result string contains all of the resolved xPath statements.
    // Let's set the process variable that will hold the result.
    patExecContext.setProcessDataStringValue("/process_data/@resultString",result);
    Now you can dynamically construct responses using template variables.
    Also, thanks to Florentin Wandeler for the tip on the replacePathExpressions() method.

  • Reading more than one value with XPath and java 1.5

    Hello, I'm using XPath with Java 1.5 and I've some problems.
    I do these things:
    File xmlDocument = new File("c:/test.xml");
    InputSource inputSource = new InputSource(new FileInputStream(xmlDocument));
    XPathFactory factory = XPathFactory.newInstance();
    XPath xPath = factory.newXPath();
    int replication = Integer.parseInt(xPath.evaluate("/simulation/setup/replication", inputSource));
    System.out.println(replication); // THIS WORKS!
    warmuptime = Integer.parseInt(xPath.evaluate("/simulation/setup/warmuptime", inputSource));
    System.out.println(warmuptime); // THIS DON'T WORK: javax.xml.xpath.XPathExpressionException
    As I had written in the comments, the first time I call ".evaluate", it works, the second time it raises an exception.
    The Xml is correct! The string "/simulation/setup/warmuptime" is correct!
    I tryed to place a:
    xPath.reset()
    between the two "evaluate", but still doesn't work.
    Can you give me an help? or suggest me an url where these things are explained in a simple way?
    I just need to get some data from an XML file and XPath seems to be the quickest and easiest way.
    Thanks for the help.

    Are all the files in one directory? If so you can make a File object of the directory, get an array of all files in that directory (File has a method to do this). Then loop over your array and call a method that reads the File that you pass as a parameter.

  • Selecting attribute values with XPath?

    Dear all,
    Is it possible to retrieve the value of a certain attribute in an XML document using an XPath expression? For instance, if I have the following doc:
    <someTag>
       <anotherTag attr="123" />
    </someTag>Is there one XPath expression that will return the value of the attribute attr of the element anotherTag, i.e. "123"?
    Cheers,
    N.

    I think /anotherTag/@attr/text() does the job.

  • Retrieving contacts list from backup with blackberry

    Blackberry stolen need to retrieve contacts from latest backup without use of blackberry

    For such cases you can anytime give it a try to recover your data with the BlackBerry Backup Extractor. It will work like a charm for your situation.

  • Generating LOV's (List of Values) with Wizard

    Are possible generate UIXML LOV's with wizard ? Similary to the generate Forms Browse/Edit in :
    Projetct
    New->Web Tier->UIXML for Business Components
    If no, how better way to generate Business Components and Web Tier for LOV Windows ?
    thanks,
    Danilo

    i recommend you to create your uiXML client by wizard and then to replace the "messageInput" tags in the created components with the corresponding LOV inputs.
    trevi

  • Create Custom List Of Values in Universe

    Hi
    For those BW variables which appear as prompts in Webi reports, displays the List of values with both the Key and Text.
    But if we try to include a dimension object or a detail object in filter panel of a webi report, the list of values shows only either the key or text but not both.
    Some end users remember by key and some remember by text. In case there is a confusion in texts they cannot select by key nor vice versa.
    Also, just for getting the combination list of values in BO, an end user can't add a variable in SAP BW each time and refresh the universe to get the list of values.
    Is there a way or work around to meet such common customer requirement.
    Regards.
    Naresh

    Hi,
    right now you can not build list of values with 2 columns unless you create the variable in the BW query and then build the universe.
    Ingo

  • How do I bind variables in a List of value

    I'm using jdev 11g. I have an updatable view object for which I want to use a list of values on a few fields. I have defined a read-only view object that query a table that contains several list of values based on a column call domain. How do I narrow the returned list of values with a bind variable. Or do I need to define a view object for each domain?

    Hi Frank,
    Thanks for your reply. After playing with different options with the list of values, I came to the conclusion that this functionality has been added to 11g to replicate Form's LOV functionality. However, if I select a radio group as the default list type, the filter option is grayed out. Also, i'm not sure i understand the relationship between the default list type and the control type on a page. I tried to define a default list type as Input Text with List of Values which let me add a filter, and on my page I dropped the field as a single selection radio group. In this case the filter does not work. Only if i drop a List of Value the filter will work but i don't want this king of interface.
    The way i did this with 10g was to define a view object with bindings and set the bind variable value on the binding page using a invokeAction. Is it still the way to do this in 11g?

  • Attaching a form component value with the link

    Help! Desperate!
    How do I attach list box value with the link. This is part of my code. I am struggling with the <a href part of the code. When the user clicks one of the options from the list box, that value should be attached to the link.
    private String getWageFooter(String rate)
    StringBuffer sb1 = new StringBuffer();
    String typerate=rate;
    sb1.append("<hr size=\"3\" width=\"550\">");
    sb1.append("<table width=\"950\"><tr><td align=\"center\">");
    sb1.append(" To change the Rate Type view");
    sb1.append("<p>Click on a Rate Type in this list and click the<I><b>");
    sb1.append("<font color=\"blue\">GO</font></b></I> button");
    sb1.append("<br><select name=\"ratetype\"><option value=\"\">Select One");
    sb1.append("<option value=\"All\">All Rate Types<option value=\"Hourly\">Hourly Wage");
    sb1.append("<option value=\"Annual\">Annual Wage</select>");
    sb1.append("<a href=\"occWageReport.jsp?typerate=");
    sb1.append("<img src=\"../images/go.gif\" border=\"0\"></a>");
    return sb1.toString();
    Sue

    Anybody! Any ideas how to attach the value of the item in the list box with the link as a querystring?
    Sue

Maybe you are looking for