Break a string like this 06-26-002-30-1 within a view?

Hello,
I have been trying to do this for a while with no luck. Is there a way to break a string like this 06-26-002-30-1 within a view?
Thank you

BTW. What happened to "-26-"?I missed it.
I post it again anyway
Processing ...
WITH t AS (
     SELECT '06-26-002-30-1'||'-' col1
     FROM dual
select substr(
          t.col1,
          decode(
               level,
               1,
               1,
               instr(t.col1,'-',1,level-1)+1
          instr(t.col1,'-',1,level)-decode(
               level,
               1,
               1,
               instr(t.col1,'-',1,level-1)+1
from t
connect by instr(t.col1,'-',1,level) <>0
Query finished, retrieving results...
SUBSTR(T.COL1,DECODE(LEVEL,1,1,INSTR(T.COL1,'-',1,LEVEL-1)+1),INSTR(T.COL1,'-',1
06                                                                              
26                                                                              
002                                                                             
30                                                                              
1                                                                               
5 row(s) retrievedBye Alessandro

Similar Messages

  • How can i generate xml like this?

    Hi all,
    How can i generate xml like this & i need to send it to via HTTP :
    <mms>
                 <subject>message subject</subject>
                 <url_image>http://image_url</url_image>
                 <url_sound>http://sound_url</url_sound>
                 <url_video>http://video_url</url_video>
                 <text>message text</text>
                 <msisdn_sender>6281XYYYYYY</msisdn_sender>
                 <msisdn_receipient>6281XYYYYYY</msisdn_receipient>
                 <sid>to be define later</sid>
                 <trx_id>Unique number</trx_id>
                 <trx_date>yyyyMMddHHmmss</trx_date>
                 <contentid>see note</contentid>
    </mms>& how can i get the value of the sid (for example)?
    I hav tried to generate that xml by using StringBuffer & append, but it's not what i mean...
    Anyone can help me?

    Ok...i got it. But i still hav some problems.
    This is the sample code that i used :
    public class XMLCreator {
         //No generics
         List myData;
         Document dom;
            Element rootEle, mmsEle, mmsE;
            StringWriter stringOut;
            mms mms;
         public XMLCreator(String subject, String image, String sound,
                    String video, String text, String sender, String recipient,
                    int id, String date, String contentid) {
              mms = new mms(subject, image, sound, video, text, sender,
                            recipient, id, contentid, date);
                    createDocument();
         public void run(){
              createDOMTree();
              print();
         private void createDocument() {
              //get an instance of factory
              DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
              try {
              //get an instance of builder
              DocumentBuilder db = dbf.newDocumentBuilder();
              //create an instance of DOM
              dom = db.newDocument();
              }catch(ParserConfigurationException pce) {
                   //dump it
                   System.out.println("Error while trying to instantiate DocumentBuilder " + pce);
         private void createDOMTree(){
              //create the root element <Mms>
              rootEle = dom.createElement("mms");
              dom.appendChild(rootEle);
              createMmsElement(mms);
         private Element createMmsElement(mms b){
              Element subjectEle = dom.createElement("subject");
              Text subjectText = dom.createTextNode(b.getSubject());
              subjectEle.appendChild(subjectText);
              rootEle.appendChild(subjectEle);
              //create url_image element and author text node and attach it to mmsElement
              Element imageEle = dom.createElement("url_image");
              Text imageText = dom.createTextNode(b.getUrl_image());
              imageEle.appendChild(imageText);
              rootEle.appendChild(imageEle);
              // & etc....
              return rootEle;
          * This method uses Xerces specific classes
          * prints the XML document to file.
         private void print(){
              try
                   //print
                   OutputFormat format = new OutputFormat(dom);
                   format.setIndenting(true);
                            stringOut = new StringWriter();
                   //to generate output to console use this serializer
                   XMLSerializer serializer = new XMLSerializer(stringOut, format);
                   //to generate a file output use fileoutputstream instead of system.out
                   //XMLSerializer serializer = new XMLSerializer(
                   //new FileOutputStream(new File("mms.xml")), format);
                   serializer.serialize(dom);
              } catch(IOException ie) {
                  ie.printStackTrace();
            public String getStringOut() {
                return stringOut.toString();
    }when i tried to show the stringOut.toString() in my jsp, it's only showed string like this :
    The Lords Of The Ring http://localhost:8084/movie/lotr.3gp 6281321488448 6281321488448 123 0 20070220114851 LOTR.
    1. Why this is happen?i want to generate xml which its format is like above.
    2. How can i send this xml (put in msg parameter) using jsp (via web) without creating the mms.xml?
    3. if i want to set the msg parameter equal to mms.xml - means that msg = mms.xml, what is the data type for msg? is it an object or anything else?
    Thx b4 in advance...

  • Continued : How are PHP pages created like this ...

    First off - thanks to every who had replied earlier, you guys
    solved my
    _initial_ question. I've come across another ...
    I'm going to be inserting code that I wanted echo'ed
    (printed) like so -
    if ($var == 10) {
    echo ....
    However, when I insert the code there - any apostrophes or
    quotes inside the
    code throws it in the crapper and chops up everything. I also
    tried passing
    it as a string and still the same thing.
    Inside the code I wanted printed I use a <?php .... ?>
    section also, which
    shouldn't matter if I'm printing this stuff correctly. What's
    the work
    around for this?
    Examples of errors:
    echo "<p style="example"> This is an example
    </p>"
    ---------------^^^^^^
    $test = '<p style="font-size: 10px">This apostrophe in
    can't breaks the
    string</p>';
    Thanks for your time, guys.
    Shane H
    [email protected]
    http://www.avenuedesigners.com

    Here is the PHP code that is inside the string I'm creating
    and echo'ing
    that is supposed to print errors when the form has been
    submitted, which is
    obvsiouly printing stuff too soon on that example page:
    <?php
    if(isset($Errors) && is_array($Errors) &&
    count($Errors)) {
    echo \'<p class="required" style="font-style: italic;
    font-weight:
    bold">The following required fields are missing:
    </p>\'."\n";
    echo \'<p class="required">\'."\n";
    foreach($Errors as $Error) echo \'*
    \'.$Error.\'<br>\'."\n";
    echo \'</p>\'."\n";
    if(isset($MailSuccess)) {
    if(!$MailSuccess) {
    echo \'<p class="required">There was an unexpected
    error. Please try
    later</p>\'."\n";
    ?>
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    "Shane H" <[email protected]> wrote in
    message
    news:[email protected]...
    > Seb - great I really like that way. The only thing that
    is throwing me
    > trouble now is that I'm using <?php ... ?> inside
    of the string I'm
    > creating then echo'ing - here is an example page:
    >
    >
    http://www.avenuedesigners.com/about2.php?id=10
    >
    > Inside those forms, the values are getting PHP
    statements, example like:
    > value="<?php ... ?>".
    >
    > Also, before the form, I'm using a PHP statement to
    check for errors,
    > again like: <?php ... ?>.
    >
    > Help?
    >
    > --
    > Shane H
    > [email protected]
    >
    http://www.avenuedesigners.com
    >
    >
    > "(_seb_)" <[email protected]> wrote in message
    > news:[email protected]...
    >> Murray *ACE* wrote:
    >>>>echo "<p style="example"> This is an
    example </p>"
    >>>
    >>>
    >>> echo "<p style=".'"example">This is an
    example</p>';
    >>>
    >>>
    >>>>$test = '<p style="font-size:
    10px">This apostrophe in can't breaks the
    >>>>string</p>';
    >>>
    >>>
    >>> $test = '<p style="font-size: 10px">This
    apostrophe in can'."'t breaks
    >>> the
    >>> string</p>";
    >>>
    >>
    >> a less confusing solution IMHO, use single quotes
    for your PHP strings,
    >> so all the html double quotes will be safe, and you
    only need to escape
    >> the single quotes in your html/text:
    >>
    >> echo '<p style="example">it\'s way
    easier</p>';
    >>
    >> depending on the situation, you can also use the
    addslashes() and
    >> stripslashes() PHP functions:
    >>
    >>
    http://us3.php.net/manual/en/function.addslashes.php
    >>
    http://us3.php.net/manual/en/function.stripslashes.php
    >>
    >>
    >>
    >> --
    >> seb ( [email protected])
    >>
    http://webtrans1.com | high-end web
    design
    >> Downloads: Slide Show, Directory Browser, Mailing
    List
    >
    >

  • How to get each value from a parameter passed like this '(25,23,35,1)'

    Hi
    One of the parameter passed to the function is
    FUNCTION f_main_facility(pi_flag_codes VARCHAR2) return gc_result_set AS
    pi_flag_codes will be passed a value in this way '(25,23,35,1)'
    How to get each value from the string
    like 25 first time
    23 second time
    35 third time
    1 fourth time
    I need to build a select query with each value as shown below:-
    (SELECT t2.org_id, t4.description
    from org_name t2, ref_org_name t3, code_table t4
    where t2.att_data = t4.code
    and t3.ref_code = t2.att_type
    and t2.att_type = 25 and t3.code_type = t4.code_type
    and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date) q1,
    (SELECT t2.org_id, t4.description
    from org_name t2, ref_org_name t3,code_table t4
    where t2.att_data = t4.code
    and t3.ref_code = t2.att_type
    and t2.att_type = 23 and t3.code_type = t4.code_type
    and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date) q2,
    (SELECT t2.org_id, RTRIM(xmlagg(xmlelement(e, t4.description || ';')
    ORDER BY t4.description).EXTRACT('//text()'), ';') AS DESCRIPTION
    from org_name t2, ref_org_name t3,code_table t4
    where t2.att_data = t4.code
    and t3.ref_code = t2.att_type
    and t2.att_type = 35 and t3.code_type = t4.code_type
    and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date
    group by t2.org_id) q3,
    (SELECT t2.org_id, t4.description
    from org_name t2, ref_org_name t3, code_table t4
    where t2.att_data = t4.code
    and t3.ref_code = t2.att_type
    and t2.att_type = 1 and t3.code_type = t4.code_type
    and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date) q4
    Please help me with extracting each alue from the parm '(25,23,35,1)' for the above purpose. Thank You.

    chris227 wrote:
    I would propose the usage of regexp for readibiliy purposes and only in the case if this doesnt perform well, look at solutions using substr etc.
    select
    regexp_substr( '(25,23,35,1)', '\d+', 1, 1) s1
    ,regexp_substr( '(25,23,35,1)', '\d+', 1, 2) s2
    ,regexp_substr( '(25,23,35,1)', '\d+', 1, 3) s3
    ,regexp_substr( '(25,23,35,1)', '\d+', 1, 4) s4
    from dual 
    S1     S2     S3     S4
    "25"     "23"     "35"     "1"In pl/sql you do something like l_val:= regexp_substr( '(25,23,35,1)', '\d+', 1, 1);
    If t2.att_type is type of number you will do:
    t2.att_type= to_number(regexp_substr( '(25,23,35,1)', '\d+', 1, 1))Edited by: chris227 on 01.03.2013 08:00Sir,
    I am using oracle 10g.
    In the process of getting each number from the parm '(25,23,35,1)' , I also need the position of the number
    say 25 is at 1 position.
    23 is at 2
    35 is at 3
    1 is at 4.
    the reason I need that is when I build seperate select for each value, I need to add the query number at the end of the select query.
    Please see the code I wrote for it, But the select query is having error:-
    BEGIN
    IF(pi_flag_codes IS NOT NULL) THEN
    SELECT length(V_CNT) - length(replace(V_CNT,',','')) FROM+ ----> the compiler gives an error for this select query : PLS-00428:
    *(SELECT '(25,23,35,1)' V_CNT  FROM dual);*
    DBMS_OUTPUT.PUT_LINE(V_CNT);
    -- V_CNT := 3;
    FOR L_CNT IN 0..V_CNT LOOP
    if L_CNT=0 then
    V_S_POS:=1;
    V_E_POS:=instr(pi_flag_codes, ',', 1, 1)-1;
    else
    V_S_POS:=instr(pi_flag_codes,',',1,L_CNT)+1;
    V_E_POS:=instr(pi_flag_codes, ',', 1, L_CNT+1)-V_S_POS;
    end if;
    if L_CNT=V_CNT then
    V_ID:=TO_NUMBER(substr(pi_flag_codes,V_S_POS));
    else
    V_ID:=TO_NUMBER(substr(pi_flag_codes,V_S_POS,V_E_POS));
    end if;
    VN_ATYPE := ' t2.att_type = ' || V_ID;
    rec_count := rec_count +1;
    query_no := 'Q' || rec_count;
    Pls help me with fetching each value to build the where cond of the select query along with the query number.
    Thank You.

  • How can I implement a check constraint like this

    A column can have this values: first 3 letters can be �ing� �fig� �erd� then it can either have �1,2,4,5� and then 3 more numbers.
    Like this: ing1003 or fig2432 etc.
    I have tried this:
    columnName LIKE �[ing-fig-erd][1-2-4-5][0-9][0-9][0-9]�
    But it doesn�t work. I have been looking around and haven�t found anything that can help me with this.
    Anyone got any suggesting?
    Cheers
    envida

    CHECK(code LIKE '[ing,fig,erd,][1,2,3,4,5][0-9][0-9][0-9]'))This is a regular expression. Oracle database does not yet support regular expressoions (10g will). So what it is actually doing is apllying the whole string as a literal. Because there are no wild cards, any row where code literally does not equal '[ing,fig,erd,][1,2,3,4,5][0-9][0-9][0-9]' will fail i.e. all of them.
    If you really want to use regular expressions either have a look at the PL/SQL package OWA_PATTERN or consider importing the Java Regexp package and implementing some Java Stored Procedures. Alternatively you can could cook up something using translate or replace.
    Cheers, APC

  • Why can I no longer use an image for my signature on forms?  The only option I have now is "use a certificate".  It was never like this until today.

    Why can I no longer use an image for my signature on forms?  The only option I have now is "use a certificate".  It was never like this until today.

    Hi,
    I had never heard of someone using the iPhone Number as the ID in the iMessages account in the Mac version.
    i.e without adding an Apple ID
    iMessages does allow iPhone numbers and mine lists mine.
    I would try this.
    Sign Out of the iMessages account and Quit Messages
    On the iPhone in Settings > Messages remove the Apple ID
    Set the iPhone to Airplane mode for a few minutes (to break with the  Server)
    On starting the phone up again check the iPhone Number  is ticked for iMessages.
    If it is add the Apple ID
    On the Mac restart Messages
    Add the Apple ID
    At this point you should get a pop up or two saying the iPhone is using the Number and Apple ID.
    Accept these and they get added to the Receive At list and Send From drop down.
    9:41 pm      Monday; October 28, 2013
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • How can I search for a string like a partial IP address in the global search

    When searching for a string like "10.255." the global search finds messages containing "255" or "10" and both.
    This happens no matter whether quotation is used or not.
    When quotation is used it probably will match on the given order as well, but beeing in the timezone '+0100' the string "10" is always found first (in the email headers...).
    Is there a way to tell the global search not to use '.' or any other character as whitespace?

    When searching for a string like "10.255." the global search finds messages containing "255" or "10" and both.
    This happens no matter whether quotation is used or not.
    When quotation is used it probably will match on the given order as well, but beeing in the timezone '+0100' the string "10" is always found first (in the email headers...).
    Is there a way to tell the global search not to use '.' or any other character as whitespace?

  • Why is my text formatting like this?

    Hi
    I've set up my .css so that the <H2> is big and bold,
    and that my <p> text is smaller and normal. The problem is
    that I'm getting a line break gap between the two even when there's
    not one in the HTML. There should be a space between the <p>
    and <H2> (padding of 5), but not the <H2> and
    <p>. The HTML is:
    <h2>Designers - </h2>
    <p>enter your designs</p>
    <h2>Everyone -</h2>
    <p>vote for your fav designs<br />
    Here's the .ccs:
    h2 {
    font: Verdana, Arial, Helvetica, sans-serif;
    color: #69DB33;
    font-size:18px;
    font-weight: bold;
    text-align: center;
    padding-top: 5px;
    p {
    text-align: center;
    FONT-SIZE: 13px;
    COLOR: #847d6e;
    FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-style: normal;
    So it kinda looks like this (layout-wise):
    Designers -
    enter your designs
    Everyone -
    vote for your fav designs
    instead of :
    Designers -
    enter your designs
    Everyone -
    vote for your fav designs
    I know I could probably do all the formatting in HTML, but I
    should be able to do it all in .css - can anyone help?
    Cheers
    Shaun

    Your interpretation is correct. Show us the code where it is
    not working
    for you, please.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Reese" <[email protected]> wrote in message
    news:esfsaq$ms9$[email protected]..
    > "Joe Makowiec" <[email protected]> wrote in
    message
    >
    news:[email protected]..
    >> On 04 Mar 2007 in macromedia.dreamweaver,
    celebritymusic wrote:
    >>
    >>> I've set up my .css so that the <H2> is
    big and bold, and that my
    >>> <p> text is smaller and normal. The
    problem is that I'm getting a
    >>> line break gap between the two even when there's
    not one in the
    >>> HTML. There should be a space between the
    <p> and <H2> (padding of
    >>> 5), but not the <H2> and <p>.
    >>
    >> You want margin, not padding. The diagram here might
    make it clearer:
    >>
    >>
    http://www.w3.org/TR/REC-CSS2/box.html
    >
    > According to that graph, if I apply a background on a
    30px wide div and
    > add 10px padding, the text inside will occuppy only 10px
    (30px - (2 x
    > 10px)), but an applied background would fill all 30px.
    But every time I
    > try it, the background image is just as limited as the
    text is. I can't
    > get the background to fill the padded area.
    >
    > How would I tell a DIV to push the text 10px off all
    four sides, but
    > continue to allow the background image to cover the
    entire div?
    >

  • Sorting string like windows file name sorting

    Hi everybody, I have a simple question.
    I was trying to sort some file name in java
    Let say we have a list of string which are :
    1.txt
    a.txt
    2.txt
    11.txt
    a(1).txt
    a(11).txt
    a(2).txt
    If i convert those strings as file names, and sort it by file name in the windows explorer the result is
    1.txt
    2.txt
    11.txt
    a(1).txt
    a(2).txt
    a(11).txt
    a.txt
    But if i enter those strings into an Arraylist and use Arrays.sort or Collections.sort, the result is
    1.txt
    11.txt
    2.txt
    a(1).txt
    a(11).txt
    a(2).txt
    a.txt
    Is there a way to achieve the string sort similar to windows rather than aplhabetically like the default sort of Arrays/Collection.
    I have done some searching but only found problem regarding to different language character sorting which can be achieved using Collator but this was not my case. Has anybody encounter this issue ?
    Any help is greatly appreciated
    regards
    Hendra Effendi

    ballistic_realm wrote:
    Let say we have a list of string which are :
    1.txt
    a.txt
    2.txt
    11.txt
    a(1).txt
    a(11).txt
    a(2).txt
    If i convert those strings as file names, and sort it by file name in the windows explorer the result is
    1.txt
    2.txt
    11.txt
    a(1).txt
    a(2).txt
    a(11).txt
    a.txt
    ...Not sure, but wouldn't Windows sort it like:
    1.txt
    2.txt
    11.txt
    a.txt
    a(1).txt
    a(2).txt
    a(11).txt
    If so, the try something like this (UNTESTED!):
    class WindowsFileNamesComparator implements Comparator<String> {
        public int compare(String a, String b) {
            String[] tokensA = tokenize(withoutExtension(a));
            String[] tokensB = tokenize(withoutExtension(b));
            int max = Math.min(tokensA.length, tokensB.length);
            for(int i = 0; i < max; i++) {
                if(tokensA.equalsIgnoreCase(tokensB[i]))
    continue;
    else if(tokensA[i].matches("\\d+") && tokensB[i].matches("\\D+"))
    return -1;
    else if(tokensA[i].matches("\\D+") && tokensB[i].matches("\\d+"))
    return 1;
    else if(tokensA[i].matches("\\d+") && tokensB[i].matches("\\d+"))
    return Integer.valueOf(tokensA[i])-Integer.valueOf(tokensB[i]);
    else
    return tokensA[i].compareTo(tokensB[i]);
    return tokensA.length - tokensB.length;
    private String[] tokenize(String s) {
    List<String> tokens = new ArrayList<String>();
    Matcher m = Pattern.compile("\\d+|\\D+").matcher(s);
    while(m.find()) {
    tokens.add(m.group());
    return tokens.toArray(new String[]{});
    private String withoutExtension(String s) {
    int lastDot = s.lastIndexOf('.');
    return lastDot < 0 ? s : s.substring(0, lastDot);

  • Waveform chart to looking like this excel format

    hello,
    i am using the DAQ assistant. 
    i configured it to have 9 channels of data.
    can someone guy me into exporting the data to look like this excel file?
    how can i take the data from the waveform chart and input it into the RAWDATA STRING so that it look like the format in the excel sheet?
    thanks!
    Attachments:
    TCs.vi ‏108 KB
    082714.001.csv ‏139 KB

    No need to delete old posts.  It may help someone in the future and if not, it will fall off the main pages and dwell forever in land that time forgot...  Or the NSA will grab it.  
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • In a rich textarea like this i submit now but in CFML 9 , textarea text come to me formatted with ta

    in a rich textarea like this i submit now but in CFML 9 , textarea text come to me formatted with tags ?

    The richText attribute was added to the cftextarea tag in Coldfusion 8. You could use htmlEdtFormat() to escape the tags before storing the string in the database, for example, like this
    <cfif isdefined("form.sbmt")>
    <cfset message = form.msg>
    <cfset msgForDatabase = htmlEditFormat(message)>
    <!--- code to store message in database --->
    </cfif>
    <cfform action="#cgi.SCRIPT_NAME#">
    <cftextarea name="msg" richText="true"></cftextarea>
    <cfinput type="submit" name="sbmt" value="send">
    </cfform>

  • Why filterFunction acts like this?

    I'm using a filter function with my arrayCollection list as this way:
    // attaches filter function
    collection.filterFunction = filterCollection;
    collection.refresh();
    private static function filterCollection( item:Object ) : Boolean {
      return item[_searchField].match( new RegExp(_searchString, "i") );
    This usually makes sense of "search any character". So what should expected to get in a search when I search something with a quoted string like: "my some string". But by adding quotes filter function returns nothing; but when I removes the quotes from that string it returns the proper result. If the said regExp makes the concept of "Search any character", then why not the result also come up even when I add quotes.
    And if possibly how should I get rid of this - getting the result even its added with quotes.

    Quotes in a search string affect what will be searched for.  This sounds
    more like a RegExp question than a filter function question.
    Run some tests with RegExp and look at the doc and examples for how it
    works.

  • Has anyone received an error in Flash Builder like this?

    access of undefined property variable01.
    access of undefined property pattern.
    I don't see a problem with the code, yet the error persists.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx"
                   creationComplete="init(event);"
                   minWidth="955" minHeight="600" backgroundColor="#cbd8e6">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
            var variable01:String;
            variable01 = "1";
            var pattern:RegExp;
            pattern = /^[0-9]{1,3}$/;
            pattern.test(variable01);
            ]]>
        </fx:Script>
    </s:Application>

    When using Flex you can't just put code in a script tag like this. While declarations (public var etc) can be in this scope, logic must be inside an event handler.
    See my answer in this thread:
    http://forums.adobe.com/thread/980259

  • How encode unicode string like that?

    Hi there, i have a problem about encode unicode string:
    - The browser encode unicode string "&#432;?&#7855;?&#7891;" like that:
    %c6%b0%c3%a0%e1%ba%af%c3%a2%e1%bb%93
    - I try but i can't find the way to do like this in Java
    - Anyone know how do that? Thanks.

    Have a look at the URLEncoder class.

  • Smartview VBA function for launch calc-scripts as strings. like EsbCalc ???

    We have used an Excel VBA which launch an calculation script from a STRING using the VBA Add-In function "EsbCalc".
    We would like to migrate to Smartview VBA functions.....
    The calc-script string has "parameters" which are modified at run-time...
    I have found the function HypExecuteCalcScript - but seems that use as parameters ONLY the calc-script name...
    Is it any VBA function in SmartView which launch a calc-script string (not a calc-script name) ?
    We are using EPM 11.2
    Thanks...

    A tip I just learned at Kaleidoscope 2010* is that one can create a calc script consisting entirely of a substitution variable. In other words, a calc script can look like this:
    &Calc
    Smart View VBA does have a function for changing or creating substitution variables (HypSetSubstitutionVariable). You could create a calc script and subvar in your database as above. Then, at run time, set that subvar to your calc string with HypSetSubstitutionVariable and execute the calc script with HypExecuteCalcScript.
    Quick test (11.1.1.3) shows that this really works.
    I can't remember privileges required to create or set subvars vs execute calc strings off the top of my head - might be an issue (I ran as an admin). Also this approach doesn't support concurrent users, unless they each have a calc script and subvar to themselves. Still, depending on your exact situation, this might be a feasible workaround.
    *I won't credit the presenter solely because the tip came from a presentation which he specifically declined to make public domain.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • How to monitor DML acticity in a database

    Besides logminer and fine grain auditing; is there any other functionality in oracle that can be use to capture DML activities for a given table in a given time? What I am trying to accomplish is to create a matrix on daily basis of all the DML opera

  • Query Regarding no of records in open items.

    hi,      I am extracting open items monthly . but for this month the no. of records i am getting  is very large.even for different areas the no. of records are coming nearly same and in crores but last month it was in lakhs.in this month it is coming

  • Code page

    hello! can anyone please explain what is code page? I came across a problem, while opening dataset in text mode, i use the command transfer few times, but instead of getting few lines in the file i get a string of all the lines. I was told to use cod

  • Can't load Aperture from my purchase list

    Hi, tried to download the last update of Aperture 3.6 from the App Store. I see it in my list and can klick "update" - but nothing will happen :-/ Any help here? Thanx & Regards Ralle

  • Mac Mail deleting trash emails

    My preferences are saved to NEVER delete sent/ junk/ trash emails. Although I have a historic list of sent items, my emails in trash only display the last 7 days worth. Any ideas why this might be? I like to use the trash folder as my place to store