Selecting names starting with a particular character

Hi All,
I want to select names from my XML strating with Character 'A'.is there any logical operator which helps me to do that,something like in SQl.
e.g:
<Rowset>
<Row>
<Name>Annie</Name>
<Class>VIP</Class>
</Row>
<Row>
<Name>jenson</Name>
<Class>Business</Class>
</Row>
<Row>
<Name>Sutil</Name>
<Class>Business</Class>
</Row>
</Rowset>
Can I write sa condition like:
./Name is like 'A%'
Please advice .
Thanks!!

Thanks for your response!!
I have one more question.Can we combine differernt condition with logical operators .
e.g :
{substring(Name,1)='A' or susbstring(Name,1)='B' and Class='VIP'}
(Replace curly brackets by Sqaure brackets)
Is combining 'and' and 'or' operator is allowed.I am getting syntax error.
Thanks!!
Edited by: rick_me on Jun 23, 2009 1:56 AM

Similar Messages

  • Poplist behavior for selecting value starting with a letter

    Hi
    I have got a poplist in a control block in my form. This is a database item and is populated fine.
    Now, the problem is if I want to select one record in the poplist starting with a particular letter, in-one-go, it is not possible..
    For example, I know that the value in the poplist I want, starts with the letter 'D'
    There are 10 values in the poplist that starts with the letter 'D' and I want to select the 6th value that starts with 'D'.What I want is, when I type in 'D', the poplist should pass controlto the (i.e. select) first element in the list, which starts with 'D'...then it should still remain as popped.The user should be allowed to navigate to all "D's" either using up arrow, down arrow or by typing in the letter D itself..
    Now what happens is, if I type in 'D' in the keyboard, the first value among the list that starts with 'D' is selected by the poplist and the records corresponding to this value is displayed.
    The up arrow/down arrow works fine in the following case now - If I click on the poplist, but do not actually select any item and just use up arrow, downarrow, it works...
    But the real requirement is when typing in any letter, any value in the poplist need not get selected ,but the poplist values should popped up so that the user can browse on it, and then select the required value.
    I will be grateful if somebody gives me the code for this and also tell me which trigger to put in the code?Any property needs to be changed?
    At the moment , my when-list-changed trigger is as follows..Also want to know, if this need to be changed at all?
    go_block('MY_DATABLOCK');
    clear_block(no_validate) ;
    execute_query;Edited by: Krithi on 12-Aug-2009 04:12

    Krithi wrote:
    You have moved far away from what I really need
    I DO NOT use a webform and I dont need to use Javabean in my form!You never mentioned anywhere that YOU DO NOT use a webform. One more reason why you should mention your forms version when you post some questions ;-) which would help others to respond with relevant answer.
    Its just the normal form.
    I said I have just seen examples in web forms but I believe it is do-able in normal forms too..Pls help someone?I am afraid you do not have much choice in client server.
    -Arun

  • Migrating from Sql Server tables with column name starting with integer

    hi,
    i'm trying to migrate a database from sqlserver but there are a lot of tables with column names starting with integer ex: *8420_SubsStatusPolicy*
    i want to make an offline migration so when i create the scripts these column are created with the same name.
    can we create rules, so when a column like this is going to be migrated, to append a character in front of it?
    when i use Copy to Oracle option it renames it by default to A8420_SubsStatusPolicy
    Edited by: user8999602 on Apr 20, 2012 1:05 PM

    Hi,
    Oracle doesn't allow object names to start with an integer. I'll check to see what happens during a migration about changing names as I haven't come across this before.
    Regards,
    Mike

  • In the lefthand sidebar of Finder, under 'Shared', I encounter in addition my TC, another computer, identified by a long name starting with 'hp'. I don't have another computer. What could this be? And how to get rid of it?

    In the Finder sidebar, under 'Shared', I encounter my TC, as well as another item with a long name starting with 'hp'. 'Get info' shows it to be a 'PC'. However, I don't have a PC. It cannot be my printer (HP), since that has anoter name.
    I can not access the item, which has me a 'guest'.
    What could this item be? And how to get rid of it?
    Many thanks in advance for your help.
    DB

    It's almost certainly your hp printer and is showing the WiFi adapter MAC address after the HP.
    To verify, look at the printer configuration page via Bonjour in Safari.  The settings tab shows the Mac address in the bottom left hand corner for my model of HP printer.
    I'm sorry but I can't explain why that would show up in the finder.

  • Program  with a name starting with '!'

    Hi,
    I have a problem with a progam. In fact, I want to delete an include but this include is used in a program with a name starting with '!' like
    !ZMM_PR_TEST.
    I can't open this program or delete it.
    What can I do ?
    Must I delete this "strange" program or not ?
    Thanks in advance for your help...
    Best regards

    Hi Carl,
    If you want to delete the program in Any way.. Delete it from the TADIR table...
    the symbol " ! " may be some customer name space... Hope you cross check about that name space and
    go ahead deleting it from a program accessing the record from TADIR table and modifying the TADIR table.
    If something is not happening directly then there is almost a chance to delete the record from the table through a zprogram..
    Hope this would help you.
    Any question please revert back
    Good luck
    Narin.

  • Is it Possible to create a Report Name starting with M.

    HI ,
        Just Now I have created a report naming with MYreport. I have expected that system will ask the Access Key since starting letter is M . But  System allowed me to create the Report MYREPORT.
        As per My Knowledge, Only Y and Z letters for Report. But now how system allowed me to create a report starting With M without access key.
    With Regards,
    Neptune.M

    Hi,
    You can name a program with 'MZ' or 'MY'. Infact all the includes of custom module program will be having names starting with 'MZ' or 'MY'.  Try creating a program with other than these combination, the system will surely check.
    Addendum:
    For example if you create a module pool program with name
    SAPMZTEST, then the include names will be
    MZTEST_TOP, MZTEST_O01, MZTEST_I01, MZTEST_F01 and so on..
    Similarly, for Z function group sap creates dynamically creates the following programs:
    SAPLZTEST - Main program
    LZTESTTOP
    LZTESTO01
    LZTESTI01
    LZTESTUXX where X containing includes LZTESTU01,LZTESTU02 stands for 01, 02 and corresponds to function module under the function group.
    Thanks and regards,
    S. Chandramouli.
    Edited by: Chandramouli Subburathinam on May 5, 2008 2:35 PM
    Edited by: Chandramouli Subburathinam on May 5, 2008 2:42 PM

  • SAXException: PI names starting with 'xml' are reserved.

    Has anyone run across a problem trying to parse an xml instance (in this case it's an XSL style sheet) using Oracle's parsers? I'm getting the following sax error message:
    SAXException : oracle.xml.parser.v2.XMLParseException: PI names starting with 'xml' are reserved. detailed SAX exception message: PI names starting with 'xml' are reserved.
    The code generating this error is:
    XMLDocument xml = ParseDocument(xmlDoc, parser);
    private static XMLDocument ParseDocument(String documentStream,
    DOMParser parser)
    XMLDocument returnXML = null;
    try
    parser.parse(new InputSource(new ByteArrayInputStream(documentStream.getBytes())));
    returnXML = parser.getDocument();
    catch (SAXException saxE)
    System.err.println("SAXException : " + saxE + " detailed SAX exception message: " + saxE.getMessage()); // this is the statement generating the error message
    catch (IOException e)
    System.err.println("IOEx, Parse failed : " + e);
    catch (Exception e)
    System.err.println("Ex, Parse failed : " + e);
    return returnXML;
    Thanks in advance for any help you can provide.
    Sincerely,
    Tim

    lv_clob is invalid, there are two
    <?xml version="1.0" encoding="UTF-8"?> elements, remove one of them.
    SQL> DECLARE
      2  lv_clob CLOB:=EMPTY_CLOB();
      3  ignore boolean;
      4  BEGIN
      5  lv_clob := '<?xml version="1.0" encoding="UTF-8"?>
      6  <!ELEMENT firstname (#PCDATA)* >
      7
      8  <!-- Element function -->
      9   <!ELEMENT function (#PCDATA | noteref)* >
    10   <!ATTLIST function xml:lang (de | en | fr | la | nl) #IMPLIED >
    11
    12   <!-- Element initials -->
    13   <!ELEMENT initials (#PCDATA)* >
    14
    15   <!-- Element lastname -->
    16   <!ELEMENT lastname (#PCDATA)* >
    17
    18   <!-- Element structured-author -->
    19   <!ELEMENT structured-author ( (firstname, initials? , lastname , function*) ) >
    20   <!ATTLIST structured-author ID ID #IMPLIED anchor:name CDATA #IMPLIED > ';
    21  
    22   ignore := dbms_xdb.createResource(abspath => '/structured-author.dtd',data => lv_clob);
    23
    24  commit;
    25  END;
    26  /
    PL/SQL procedure successfully completed.
    SQL> INSERT INTO xml_tst VALUES ('<?xml version="1.0" encoding="utf-8"?>
      2   <!--ArborText, Inc., 1988-2002, v.4002-->
      3   <!DOCTYPE structured-author PUBLIC "-//WKB//DTD SL author//EN" "structured-author.dtd" [
      4   ]>
      5   <structured-author ID="SL3654393">
      6   <?Pub Caret1?>
      7   <firstname>firstname</firstname>
      8   <initials>initial</initials>
      9  <lastname>lastname</lastname>
    10   <function xml:lang="nl">function description in dutch</function>
    11   <function xml:lang="fr">function description in french</function>
    12   </structured-author>');
    1 row created.
    SQL> spool off;

  • Only save queries if name starts with Y

    Hello,
    How can security be configured so that users can only save queries whose Technical names start with Y?
    What authorizations are required and what values should be assigned?
    Thanks,
    Nick

    Hello Jin,
    We are on BW 3.5.
    Here is the complete set of authorizations assigned to my test user.  What I want is for this user to only be able to create queries if they choose to save them with a name starting with Y. 
    Currently (with the authorization specified below) they can save queries that start with <i>any</i> letter.  When I save a query with the description and Technical name of: DELETE_VG15 it gives me two messages for "Authorization check".  The first says "You do not have authorization for change" and the second message says: "Query (InfoCube ) was saved"  So it does end up saving even though the name provided doesn't conform to what I want in the authorizations.
    Hopefully you can help me fill in what is wrong, maybe copy what i have and repost with the values you are using.
    <b>S_RFC</b>
    Activity: 16
    Name of RFC to be protected: *
    Type of RFC to be protected: *
    <b>S_RS_COMP</b>
    Activity: 01
    InfoArea: *
    InfoCube: *
    Name (ID) of a reporting component: Y*
    Type of a reporting component: QVW, REP
    <b>S_RS_COMP1</b>
    Activity: 02
    Name (ID) of a reporting Component: Y*
    Type of a reporting component: QVW, REP
    Owner (Person Responsible) for: *
    <b>S_RS_ICUBE</b>
    Activity: 03
    InfoCube SubObject: *
    InfoArea: *
    InfoCube: *
    I Just found this one as well, and it may be the problem:
    <b>S_RS_COMP</b>
    Activity: *
    InfoArea: *
    InfoCube: Z_COPA
    Name (ID) of a reporting Component: *
    Type of a reporting component: QVW, REP
    Thanks!
    Nick
    Message was edited by:
            Nick Bertz

  • Trouble when a project name starts with ´@´.

    I have a trouble when a project name starts with ´@´. I can´t watch any photo into the aperture browser.
    Is that a bug? Any help please?
    Thanks in advance.

    I have a trouble when a project name starts with ´@´. I can´t watch any photo into the aperture browser.
    What is your Aperture 3 version? Are you using the latest version? For me projects with '@' in the name can be viewed in the browser; I'd need more information to reproduce that problem on my system.
    But I would refrain from using such characters in filenames and library items, like projects and folders anyway.
    All characters, that have a special meaning in the Mac OS X unix shell, like '@', '|', '~', '.', `/` may cause trouble when exporting or sharing the files.
    Regards
    Léonie

  • PowerShell add Printer Permissions where the printer name starts with...

    I have a printer server that has printers for multiple buildings. All the buildings have abbreviations like "BLD" for example, so my printers start with the same building abbreviations
    like “BLD-Printer1”. Is there a quick an easy way to set permissions on printers where the name starts with something like BLD?
    I'm a total noob with PS .<o:p></o:p>

    Just wanted to point out that in addition to using .NET/WMI to enumerate the printers, Windows 8 has a native PowerShell implementation you could use. It supports remote management, so you can even use it from a Windows 8 client to target your Windows Server
    2008 R2 instance. 
    $printers = Get-Printer -ComputerName $printServerName -Name bld*
    foreach ($printer in $printers) {
    Set-Printer -ComputerName $printServerName -Name $printer.Name -PermissionSDDL #fill in your permissions here
    Full description of these cmdlets: http://technet.microsoft.com/en-us/library/hh918357.aspx
    Excellent - Just fill in the SDDL.
    Does this work on WS2008R2 PrintManager Queues?  I find no -SDDL except on WS2012.  WS8 is missing this parameter. Is it only available on WS8 Enterprise?
    WS2008R2 also does not seem to support this.
    Get-Printer and its cousins are wrappers around The Q functions posted above.  The API has no security bits before WS2012.  Look at the MSDN and Technet articles for this CmdLet and the other "Printer" CmdLets.
    ¯\_(ツ)_/¯

  • OLEDB parameter names starting with an @ sign

    Hi guys,
    I am using ORACLE.OleDB provider from .Net to execute parameterized queries for example
    select * form :1;
    What I want to achieve is to name my parameters to start with an @ sign for example:
    select * from :@1;
    I know that there must be a way since the following:
    select * from "@tablename"; works just fine.
    does anybody know how to do that ?
    In case you wander why do I need this, I need it because I am using a SQL Factory which has generic methods and I support both SQL Server and Oracle so I want to be able to do:
    cmd.parameters["@param"].Value = "somevalue";
    instead of
    if(Oracle)
    cmd.parameters["param"].Value = "somevalue";
    } else if(SQL Server)
    cmd.parameters["@param"].Value = "somevalue";
    Thank you in advance.
    Kostadin

    To answer myself:
    I discovered that I can write queries like the following:
    SELECT * FROM TABLE WHERE TABLE_ID = :TableID
    And then in OleDb be able to access the query parameter with "@TableID".
    So only the query is different but how I access the parameter is the same in Oracle and in SQL Server which is what I wanted.
    Kos

  • Can we create the Application name starting with Numerics

    Hi All,
    can we create an application name stating with number like 1234Samsung.
    Also can we use the special characters between them.
    Also are there any rules for creating database names other than maximum 8 characters limit.
    Regards

    Hi,
    1. You can create starting with numerics, 123samsu.
    2. samsung cannot complete ,the know reason is exceeding 8
    Sandeep Reddy Enti
    HCC
    http://hyperionconsultancy.com/

  • If the user name start with stmgr6001..............stmgr6250

    Hi Gurus,
    if the uername start with stmgr6001
                                            stmgr6002
                                            stmgr6003.........................stmgr6250 then select the last 4characters append into the selection screen field and disable that field and proceed other wise stop the program.
    kindly help me for this how to write code ................
    regards
    dk

    Use event At selection screen output en de system variable SY-UNAME.
    if sy-uname(5) = 'stmrg'
      if sy-uname+5(40 >= 6001
      and sy-uname+5(40 <= 6250.
           The select-options are of type range table.
            create a work area type select-option to be filled and fill the variables with the last Sy-uname+5(4).
    append to select-option
      endif.
    endif
    This is basic stuff

  • SPC Chart and Tag Name starting with a Number

    On a 11.5.3 (latest build) install, we've found that SPC Charts don't like tag names that start with numeric characters.  The data points just don't plot.  I can right click and get the data, but there are no points on the chart.  All other applets work fine with the same tags.  Has anyone else seen this?

    Hey Rick,
    We did try that and it worked.  Also when creating the tags in the UDS Admin, I don't believe the UDS Admin will allow for this scenario (along with funky characters like pipes "|").  However, we are using an alias file (export from Historian into Excel, into SQL, and tweaked via Xacute) where the UDS Admin rules aren't enforced, which might be the inherent problem here. 
    I just thought that if the applets allowed it, the iSPCChart should also. 
    Thanks.
    Edited by: Ryan Miller on Feb 19, 2008 10:04 AM
    I'll leave this thread unanswered for a bit to see if anyone else cares to comment.

  • Select everything starting with first char

    Hi,
    I have a simple question and forgot how to do this. I need to do a select statement and select everything from the table for a field i.e. WERKS starting with 'D'. Any help would be greatly appreciated and rewarded.
    Thanks,
    -David.

    If you simply put your cursor on a SELECT statement and press F!, you'll get your answer very quickly.
    Rob

Maybe you are looking for