Substring based on start and end characters

All
I want to perform susbstring of a string based on start character and end character
Please look at the below example:
str = "john$peter$rahul;
In this string i need to fetch charcters between $ i.e. defg
I cant use startindex and endindex as string may vary.
Can anybody help?

praveen.kb wrote:
Thanks for the reply...
But i need string between 2 $ that is
peter only.. The string may contain any number of $.
This is the example:
str = "Prepared BY: $NAME$                                                          ENTITY:$ENT$";I need only NAME and ENT. How can i do this?In your first example, you just wanted the middle word. Now you skip the String
"$                                                          ENTITY:$"which is also between two $ signs.
You need to explain yourself a bit more.

Similar Messages

  • Hyperion Planning dynamic forms based on start and end date across years

    Hi All,
    I have a requirement where i need to be able to view a form showing periods across years that are dynamically built depending on the start and end dates. If i have a start date of 01/11/2009 and an end date of 31/7/2013 i want to be able to view a form that shows all of the periods (Jan,Feb etc) in a form that is driven by these dates, in addition it will need to show the actual scenario up to the current month and the forecast from the current month to the end date. So basically if a user inputs the start and end dates the form will display the relevant periods driven by these dates.
    Any tips very much appreciated!

    Hello,
    This is difficult to realize, but you can get quite far with a workaround. The first question is, where do you want to input your selection of time periods? Assuming you have a webform with the complete timeline in months and years and you type in the start period and end period.
    Webforms have the option to suppress rows and columns.
    This can be extended with option of empty cells or not empty cells.
    You will need to apply your creativity on this.
    Put every month-year combination in a column and add the suppression.
    Calculate the timeline between start period and end period with a dummy member, so data exists for these and columns will show.
    Maybe you will need to copy the required timeline into a separate version for this, to avoid having periods which were outside the selection and still have data.
    I hope these hints help a bit in this challenge.
    Regards,
    Philip Hulsebosch
    www.trexco.nl

  • Prorating Wage Type in IT0014 based on start and end dates

    Hi experts
    I have a scenario wherein I want to prorate a Wage type according to the start and end dates in Infotype 0014. I have tried setting the Processing Class 10 to 1. When I do this, the system prorates according to the start date. Example:
    If the start and the end dates for wagetype 4000 are: 24.05.2014 to 31.12.9999, amount is 1000 and the payroll period is May'2014, then amount calculated is 258.06, which is correct.
    If however, the start and the end dates for wagetype 4000 are: 01.05.2014 to 24.05.2014, amount is 1000 and the payroll period is May'2014, the system generates the amount 1000, which is incorrect.
    How can we handle this? Please help.
    Regards
    Divya Tiwari

    Hi Divya,
    Please check the below mentioned pcr's in your system.
    UW14 and X011
    Check above mentioned pcrs in subschemas INBD,ZNAP and share me the existing pcr's screenshot in your system.
    Regards,
    Haranath

  • Grouping based on Start and End Year

    Hello everyone,
    Need your help in solving one SQL query
    My data look like this
    cid rid year title
    52     1000     2001     1
    52     1000     2002     1
    52     1000     2003     6
    52     1000     2004     6
    52     1000     2005     6
    52     1000     2007     1
    52     1001     2003     1
    52     1001     2004     1
    52     1001     2005     1
    52     1001     2006     3
    52     1001     2007     3
    output I am required to produce is
    CID          RID          START-END     TITLE
    52          1000     2001-2002     1
    52          1000     2003-2005     6
    52          1000     2007-2007     1
    52          1001     2003-2005     1
    52          1001     2006-2007     3
    here is script for table and data
    create table T (
    cid NUMBER,
    rid NUMBER,
    start_year NUMBER,
    title NUMBER
    insert into t (cid, rid, start_year, title) values (52, 1000, 2001, 1);
    insert into t (cid, rid, start_year, title) values (52, 1000, 2002, 1);
    insert into t (cid, rid, start_year, title) values (52, 1001, 2003, 1);
    insert into t (cid, rid, start_year, title) values (52, 1000, 2003, 6);
    insert into t (cid, rid, start_year, title) values (52, 1001, 2004, 1);
    insert into t (cid, rid, start_year, title) values (52, 1000, 2004, 6);
    insert into t (cid, rid, start_year, title) values (52, 1001, 2005, 1);
    insert into t (cid, rid, start_year, title) values (52, 1000, 2005, 6);
    insert into t (cid, rid, start_year, title) values (52, 1001, 2006, 3);
    insert into t (cid, rid, start_year, title) values (52, 1001, 2007, 3);
    insert into t (cid, rid, start_year, title) values (52, 1000, 2007, 1);
    commit;
    I was able to go this far (some what close to what I need but not exactly what I need)
    select cid, rid, min(year2), max(year1), title
    from (
    select tc.cid, tc.rid, tc.title, tc.start_year year1, tp.start_year year2, decode (tc.title, tp.title, 'N', 'Y') gap
    from t tc,
    t tp
    where tc.start_year -1 = tp.start_year
    and tc.cid = tp.cid
    and tc.rid = tp.rid
    group by cid, rid, title, gap
    Thanks for considering
    Naseer,
    Houston-TX

    I'm not sure how elegant this is, but the following tweak to your query solved the problem I posed above:
    WITH      got_grp_id     AS
         SELECT     cid, rid, start_year, title
         ,     ROW_NUMBER () OVER ( PARTITION BY  cid, rid
                                   ORDER BY          start_year
               -     ROW_NUMBER () OVER ( PARTITION BY  cid, rid, title
                                 ORDER BY          start_year
                  + NVL(LAG(start_year,1) OVER(PARTITION BY cid,rid,title
                                           ORDER BY cid,rid,title),start_year - 1
                                       ) + 1 - start_year        AS grp_id
         FROM    t
    SELECT       cid
    ,       rid
    ,       MIN (start_year) || '-'
                            || MAX (start_year)     AS start_end
    ,       title
    FROM       got_grp_id
    GROUP BY  cid, rid, title, grp_id
    ORDER BY  cid, rid, start_end
    CID  RID  START_END  TITLE 
    52  1000  2001-2002  1 
    52  1000  2007-2007  1 
    52  1001  2003-2005  1 
    52  1001  2006-2007  3 

  • Summarise the results based on start and end dates

    Hi All,
    Can some body tells how to summarise a table results like in the below example?
    I need help to get results as poc_dates_result from poc_dates table.
    The data is supplied below to create the above tables.
    Please provide the queries to convert poc_dates to poc_dates_result?
    DROP TABLE poc_dates;
    create table poc_dates
    pid number
    ,start_dte date
    ,end_dte date
    ,prod char(3)
    insert into poc_dates values(1,'01-JAN-2000','01-FEB-2000','PD1');
    insert into poc_dates values(1,'02-FEB-2000','01-MAR-2000','PD1');
    insert into poc_dates values(1,'02-MAR-2000','01-APR-2000','PD1');
    insert into poc_dates values(1,'02-APR-2000','15-APR-2000','PD2');
    insert into poc_dates values(1,'16-APR-2000','24-APR-2000','PD2');
    insert into poc_dates values(1,'25-APR-2000','01-MAY-2000','PD3');
    insert into poc_dates values(1,'02-MAY-2000','16-MAY-2000','PD3');
    insert into poc_dates values(1,'17-MAY-2000','18-MAY-2000','PD1');
    insert into poc_dates values(1,'19-MAY-2000','25-MAY-2000','PD1');
    insert into poc_dates values(2,'01-JAN-2000','01-FEB-2000','PD1');
    insert into poc_dates values(2,'02-FEB-2000','01-MAR-2000','PD1');
    insert into poc_dates values(2,'02-MAR-2000','01-APR-2000','PD2');
    insert into poc_dates values(2,'02-APR-2000','15-APR-2000','PD1');
    insert into poc_dates values(2,'16-APR-2000','25-APR-2000','PD3');
    insert into poc_dates values(3,'01-JAN-2000','01-FEB-2000','PD1');
    insert into poc_dates values(3,'02-FEB-2000','01-MAR-2000','PD1');
    insert into poc_dates values(3,'02-MAR-2000','01-APR-2000','PD2');
    insert into poc_dates values(4,'01-JAN-2000','01-FEB-2000','PD1');
    insert into poc_dates values(4,'02-FEB-2000','01-MAR-2000','PD2');
    insert into poc_dates values(5,'01-JAN-2000','01-FEB-2000','PD1');
    commit;
    drop table poc_dates_result;
    create table poc_dates_result
    pid number
    ,start_dte date
    ,end_dte date
    ,prod char(3)
    insert into poc_dates_result values(1,'01-JAN-2000','01-APR-2000','PD1');
    insert into poc_dates_result values(1,'02-APR-2000','24-APR-2000','PD2');
    insert into poc_dates_result values(1,'25-APR-2000','16-MAY-2000','PD3');
    insert into poc_dates_result values(1,'17-MAY-2000','25-MAY-2000','PD1');
    insert into poc_dates_result values(2,'01-JAN-2000','01-MAR-2000','PD1');
    insert into poc_dates_result values(2,'02-MAR-2000','01-APR-2000','PD2');
    insert into poc_dates_result values(2,'02-APR-2000','15-APR-2000','PD1');
    insert into poc_dates_result values(2,'16-APR-2000','25-APR-2000','PD3');
    insert into poc_dates_result values(3,'01-JAN-2000','01-MAR-2000','PD1');
    insert into poc_dates_result values(3,'02-MAR-2000','01-APR-2000','PD2');
    insert into poc_dates_result values(4,'01-JAN-2000','01-FEB-2000','PD1');
    insert into poc_dates_result values(4,'02-FEB-2000','01-MAR-2000','PD2');
    insert into poc_dates_result values(5,'01-JAN-2000','01-FEB-2000','PD1');
    commit;
    select * from poc_dates;
    PID     START_DTE END_DTE     PROD
    1     1/01/2000     1/02/2000     PD1
    1     2/02/2000     1/03/2000     PD1
    1     2/03/2000     1/04/2000     PD1
    1     2/04/2000     15/04/2000     PD2
    1     16/04/2000 24/04/2000     PD2
    1     25/04/2000 1/05/2000     PD3
    1     2/05/2000     16/05/2000     PD3
    1     17/05/2000 18/05/2000     PD1
    1     19/05/2000 25/05/2000     PD1
    2     1/01/2000     1/02/2000     PD1
    2     2/02/2000     1/03/2000     PD1
    2     2/03/2000     1/04/2000     PD2
    2     2/04/2000     15/04/2000     PD1
    2     16/04/2000 25/04/2000     PD3
    3     1/01/2000     1/02/2000     PD1
    3     2/02/2000     1/03/2000     PD1
    3     2/03/2000     1/04/2000     PD2
    4     1/01/2000     1/02/2000     PD1
    4     2/02/2000     1/03/2000     PD2
    5     1/01/2000 1/02/2000     PD1
    select * from poc_dates_result;
    PID     START_DTE END_DTE PROD
    1     1/01/2000     1/04/2000     PD1
    1     2/04/2000     24/04/2000     PD2
    1     25/04/2000 16/05/2000     PD3
    1     17/05/2000 25/05/2000     PD1
    2     1/01/2000     1/03/2000     PD1
    2     2/03/2000     1/04/2000     PD2
    2     2/04/2000     15/04/2000     PD1
    2     16/04/2000 25/04/2000     PD3
    3     1/01/2000     1/03/2000     PD1
    3     2/03/2000     1/04/2000     PD2
    4     1/01/2000     1/02/2000     PD1
    4     2/02/2000     1/03/2000     PD2
    5     1/01/2000     1/02/2000     PD1
    Thanks,
    CD
    Edited by: cdprasad on Jul 15, 2010 10:52 AM

    I'm sure there is simplest way to achieve this, but here below a try :
    SQL> select pid,min(start_dte),max(end_dte),prod
      2  from   (select pid,start_dte,end_dte,prod,sum(flg) over (order by pid,prod,start_dte) sm
      3          from   (select pid,start_dte,end_dte,prod,
      4                         decode(start_dte-1,lag(end_dte) over (partition by pid,prod order by start_dte),0,1) flg
      5                  from   poc_dates))
      6  group by pid,prod,sm
      7* order by 1,4,2
    SQL> /
           PID MIN(START_DTE)  MAX(END_DTE)    PRO
             1 01-JAN-00       01-APR-00       PD1
             1 17-MAY-00       25-MAY-00       PD1
             1 02-APR-00       24-APR-00       PD2
             1 25-APR-00       16-MAY-00       PD3
             2 01-JAN-00       01-MAR-00       PD1
             2 02-APR-00       15-APR-00       PD1
             2 02-MAR-00       01-APR-00       PD2
             2 16-APR-00       25-APR-00       PD3
             3 01-JAN-00       01-MAR-00       PD1
             3 02-MAR-00       01-APR-00       PD2
             4 01-JAN-00       01-FEB-00       PD1
             4 02-FEB-00       01-MAR-00       PD2
             5 01-JAN-00       01-FEB-00       PD1
    13 rows selected.Nicolas.

  • Scanning an ascii string for a start and end character

    I would like to watch data lines on a com port and pick off a part of a
    line that starts with a "$" and ends with a CR. I would like the
    felxibility to select different start and end characters also. Is this
    doable with LabView? I have the com port monitoring done I need to
    separate incoming strings. I can't count chacters because the data
    lines varies in length each time the data line comes in. Thanks in
    advance fir the help.
    [email protected]

    If you don't want to mess with having to decide whether or not you need to pre-pend a "\" to the character you are feeding into the match-pattern function then you could just do it all with byte arrays like in the attached example. The example also shows various ways that ASCII controls & indicators can be configured to allow you to more easily handle non-visible characters (just right-click on the front panel control/indicator and select normal, \ codes, hex or password).
    As far as your question about the error code meaning, you can right-click on a front-panel error cluster and select the "explain error" option to see all the known causes of the error. You have to then interpret this in the context of what you were doing. When I drop an error cluster on a front panel, set status to Error and code to 85, I can right click on it, select "explain error" and get this:
    "Error 85 occurred at an unidentified location
    Possible reason(s):
    LabVIEW:  Scan failed."
     ...and that sounds to me like (as a WAG) you might be trying to use the Scan From String function with input data that does not match the format string.
    Attachments:
    String Subset.vi ‏53 KB

  • SSRS Bar Chart grouping date series into Months, setting scaler start and end ranges

    I've been trying to solve this issue for a few days now without writing a sql script to create a "blank" for all of missing data points so that I get a bar for each month.  I have date series (by day) data points grouped by two items
    that creates a set of bar charts.  EG:  one chart per product in the tablix detail grouped to site level.
    My issue is I would like the start and end of the charts to be the same for all charts and the only way I get it to work is with a chart that continues to show each date on the chart. 
    EG:
    I have the graph start and end points set and scaling by month as I would like but each bar is a day instead of aggregating to a month level.   My issue I hope to find a workaround for is if I go to Category Groups and define the grouping
    to group with a year and month function the series is no longer treated as date data and I cannot control scaling.  It works fine if all months have activity, but I can't figure out how to always have all charts start at "May 2012" in this example. 
    The only start and end point that I've been able to get to work once doing this are integer based, eg normal start would be 1 for each graph, but 1 doesn't equate to the same month from chart to chart.
    I hope SSRS can provide the solution.  I do know I can write a query that creates a ZERO value for each month/product/site but I don't want to leave the client with a query like that to support.
    -cybertosis

    Hi cybertosis,
    If I understand correctly, you want to display all month category label in the X-Axis. You have configure the Scalar Axis, however, it cannot display the requirement format.
    In your case, if we want the specific data format, we can configure Number property to set the corresponding Category data format. Please refer to the following steps:
    Right click the X-Axis, select Horizontal Axis Properties.
    Click Number in the left pane. Click Date option in the Category dialog box.
    Then, select Jan 2000 option.
    Please refer to the following screenshot below:
    If there are any misunderstanding, please feel free to let me know.
    Regards,
    Alisa Tang
    If you have any feedback on our support, please click
    here.
    Alisa Tang
    TechNet Community Support

  • SNP Planned order start and end dates are not calculated correctly

    Hello SNP Guru's
    The SNP planned orders generated after the Heuristics run, have a start and end date based on the Activity Duration (Fixed), while the resource consumption is based on the Bucket Consumption (Variable), which is correct.
    The Activity Duration (Fixed) is based on the BOM Base Quantity. So if the Activity Duration = 1 day, and if the order quantity is more than a day, the start and end dates, still shows as 1 day. So no matter what is the order quantity, the start and end dates is always = 1 day.
    Does anyone have any experience in implementing any code to change the start and end dates on SNP Planned Order?
    Seems like it should work as standard.
    Am i missing something?
    Thanks,
    Mangesh

    Dear Mangesh,
    SNP is a infinite planning tool. If you have defined fixed duration to be 1 DAY in the activity, no matter how many quantity you input for your planned order, the order will last for one day. If the resourced is overloaded, you then run capacity levelling to
    banlance the capacity. What your expected beahavior happens in PPDS planning.
    Claire

  • Contract Start and End Dates in Sales Order

    Hi
    I have a situation where a service item is bundled with a deliverable item. The order is as follows
    Line Item    Mat                                                                 Qty            Higher Level Item               
    10              Item No.1 (Physical Item)                                  1             
    20              Item No.2 (Service Item)                                    1               10
    For the deliverable item 10 , Revenue is recognized immediately. For the Service item no.20 , revenue needs to be recognized over a period of 1 Year (It is a 1 year service contract).
    The whole order is created via BAPI from an external 3rd party order capture system.
    In order to do revenue recognition properly for service items , SAP I believe has 2 options
    1. Based on Billing plan dates
    2. Based on contract start dates
    Since order with both the line items need to produce 1 invoice, I cannot use billing plan . The only other option is to use contract start and end dates. I have enabled contract data at the sales order level. So when I enter the contract start and end dates manually at the line item level and set the item category to recognize revenue based on contract start and end dates based on time-based revenue recognition it is working fine.
    But I need a way to automate the population of contract start and end dates at the line item level. My ABAP guy is not able to find a user exit that can change the XVEDA or any VEDA structure in any of the user exits.
    I guess the SAP SD gurus out there would have definitely dealt with a situation of product bundling (Service and non-service items in the same sales order with one billing document , but seperate revenue recognition for service and non-service items)
    Please help.
    Thnx
    Siva

    Hi Siva,
    Kindly let me know what criteria you want to give for automatic population of start date of contract...
    Standard SAP comes with a few baseline dates for contract start date and we can control this from customization itself. 
    01     Today's date
    02     Contract start date
    04     Acceptance date
    05     Installation date
    06     Date contract signed
    07     Billing date/Invoice date
    08     CntrctStDate+contract duration
    09     Contract end date
    If you have some criteria which is not covered here, then let me know and i will try to provide some help then.
    Thanks
    Kapil Sharma

  • XML document structures must start and end within the same entity

    Hi there,
    I'm working with a client/server application and using SaxParser for reading in xml. I get the SaxParserException: XML document structures must start and end within the same entity. I understand what that means, but it isn't applicable! The xml data being used is well-formed. I checked the well-formedness with Stylus Studio to make sure. Here's the data:
    <?xml version='1.0' encoding='UTF-8'?>
    <vcmessage>
         <vcsource>3</vcsource>
         <processevent>16</processevent>
         <shape>
              <llindex>0</llindex>
              <shapetype>9</shapetype>
              <shapeproperties>
                   <shapelocation>
                        <xcoord>54</xcoord>
                        <ycoord>184</ycoord>
                   </shapelocation>
                   <bounds>
                        <width>24</width>
                        <height>24</height>
                   </bounds>
                   <fgcolor>
                        <fgred>0</fgred>
                        <fggreen>0</fggreen>
                        <fgblue>0</fgblue>
                   </fgcolor>
                   <bgcolor>
                        <bgred>255</bgred>
                        <bggreen>255</bggreen>
                        <bgblue>255</bgblue>
                   </bgcolor>
                   <thickness>1</thickness>
                   <isfilled>false</isfilled>
              </shapeproperties>
         </shape>
    </vcmessage>The parser generally stops around the </bgcolor> tag.
    I'm using Eclypse as my IDE. I'm wondering if there's something wrong with it? Or maybe there's something wrong with the class I'm using for reading in the XML? Followng is the class.
    Please advise,
    Alan
    package vcclient;
    import java.io.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
    import javax.xml.parsers.*;
    public class XMLDocumentReader extends DefaultHandler
      private VCClient client = null;
      private Writer out;
      private String lineEnd =  System.getProperty("line.separator");
      private boolean haveSourceType = false;
      private boolean haveUserName = false;
      private boolean haveMessage = false;
      private boolean haveProcessEvent = false;
      private boolean haveLinkedListIndex = false;
      private boolean haveOpeningShapePropertiesTag = false;
      private boolean haveShapeType = false;
      private boolean haveOpeningShapeLocationTag = false;
      private boolean haveShapeLocation = false;
      private boolean haveOpeningXCoordTag = false;
      private boolean haveOpeningYCoordTag = false;
      private boolean haveOpeningBoundsTag = false;
      private boolean haveBoundsWidth = false;
      private boolean haveBoundsHeight = false;
      private boolean haveOpeningFGColorTag = false;
      private boolean haveOpeningBGColorTag = false;
      private boolean haveOpeningThicknessTag = false;
      private boolean haveOpeningIsFilledTag = false;
      private boolean haveOpeningImageDataTag = false;
      private boolean haveOpeningTextDataTag = false;
      private boolean haveFGRed = false;
      private boolean haveFGGreen = false;
      private boolean haveFGBlue = false;
      private boolean haveBGRed = false;
      private boolean haveBGGreen = false;
      private boolean haveBGBlue = false;
      private boolean haveThickness = false;
      private boolean haveIsFilled = false;
      private boolean haveImageData = false;
      private boolean haveTextData = false;
      private VCMessage vcmessage = null;
      public XMLDocumentReader(VCClient value)
           client = value;
           vcmessage = new VCMessage();
      public VCMessage getVCMessage()
           return vcmessage;
      public boolean haveSourceType()
         return haveSourceType; 
      public boolean ParseXML(InputStream stream)
         boolean success = false;
         // Use the default (non-validating) parser
        SAXParserFactory factory = SAXParserFactory.newInstance();
        try
             // Set up output stream
            out = new OutputStreamWriter(System.out, "UTF-8");
            // Parse the input
            SAXParser saxParser = factory.newSAXParser();
            saxParser.parse( stream, this );
            success = true;
        catch (SAXParseException spe)
            // Error generated by the parser
            System.out.println("\n** Parsing error"
               + ", line " + spe.getLineNumber()
               + ", uri " + spe.getSystemId());
            System.out.println("   " + spe.getMessage() );
            // Unpack the delivered exception to get the exception it contains
            Exception  x = spe;
            if (spe.getException() != null)
                x = spe.getException();
            x.printStackTrace();
            return success;
        catch (SAXException sxe)
             // Error generated by this application
             // (or a parser-initialization error)
             Exception  x = sxe;
             if (sxe.getException() != null)
                 x = sxe.getException();
             x.printStackTrace();
             return success;
        catch (ParserConfigurationException pce)
            // Parser with specified options can't be built
            pce.printStackTrace();
            return success;
        catch (Throwable t)
             t.printStackTrace();
             return success;
        return success;
      public void startDocument()throws SAXException
          emit("<?xml version='1.0' encoding='UTF-8'?>");
          nl();
      public void endDocument()throws SAXException
          try {
              nl();
              out.flush();
          } catch (IOException e) {
              throw new SAXException("I/O error", e);
      public void startElement(String namespaceURI,
                               String lName, // local name
                               String qName, // qualified name
                               Attributes attrs)throws SAXException
          String eName = lName; // element name
          if (eName.equals(""))
             eName = qName; // namespaceAware = false
          emit("<"+eName);
          if (attrs != null) {
              for (int i = 0; i < attrs.getLength(); i++) {
                  String aName = attrs.getLocalName(i); // Attr name
                  if (aName.equals("")) aName = attrs.getQName(i);
                  emit(" ");
                  emit(aName + "=\"" + attrs.getValue(i) + "\"");
          emit(">");
          if(makeStartTag(eName).equals(Constants.OPENING_SHAPEPROPERTIES))
                haveOpeningShapePropertiesTag = true;
          else if(makeStartTag(eName).equals(Constants.OPENING_SHAPELOCATION))
              haveOpeningShapeLocationTag = true;
          else if(makeStartTag(eName).equals(Constants.OPENING_BOUNDS))
                haveOpeningBoundsTag = true;
          else if(makeStartTag(eName).equals(Constants.OPENING_FGCOLOR))
                 haveOpeningFGColorTag = true;
          else if(makeStartTag(eName).equals(Constants.OPENING_BGCOLOR))
              haveOpeningBGColorTag = true;
          else if(makeStartTag(eName).equals(Constants.OPENING_BGGREEN))
               System.out.println("See BGGreen");
          else if(makeStartTag(eName).equals(Constants.OPENING_BGBLUE))
               System.out.println("See BGBlue");
          else if(makeStartTag(eName).equals(Constants.OPENING_THICKNESS))
              haveOpeningThicknessTag = true;
          else if(makeStartTag(eName).equals(Constants.OPENING_ISFILLED))
              haveOpeningIsFilledTag = true;
          else if(makeStartTag(eName).equals(Constants.OPENING_IMAGEDATA))
              haveOpeningImageDataTag = true;
          else if(makeStartTag(eName).equals(Constants.OPENING_TEXTDATA))
              haveOpeningTextDataTag = true;
      public void endElement(String namespaceURI,
                             String sName, // simple name
                             String qName  // qualified name
                            )throws SAXException
           if(sName.equals("") && !qName.equals(""))
              sName = qName;
              emit("</"+sName+">");
           else
              emit("</"+sName+">");
           if(makeEndTag(sName).equals(Constants.CLOSING_SOURCE_TYPE))
              haveSourceType = true;
           else if(makeEndTag(sName).equals(Constants.CLOSING_USER))
              haveUserName = true;
           else if(makeEndTag(sName).equals(Constants.CLOSING_MESSAGE))
              haveMessage = true;
           else if(makeEndTag(sName).equals(Constants.CLOSING_PROCESSEVENT))
               haveProcessEvent = true;
           else if(makeEndTag(sName).equals(Constants.CLOSING_LINKEDLISTINDEX))
               haveLinkedListIndex = true;
           else if(makeEndTag(sName).equals(Constants.CLOSING_SHAPETYPE))
               haveShapeType = true;
           else if(makeEndTag(sName).equals(Constants.CLOSING_SHAPELOCATION))
                haveOpeningShapeLocationTag = false;
           else if(makeEndTag(sName).equals(Constants.CLOSING_WIDTH))
               haveBoundsWidth = true;
           else if(makeEndTag(sName).equals(Constants.CLOSING_HEIGHT))
               haveBoundsHeight = true;
           else if(makeEndTag(sName).equals(Constants.CLOSING_BOUNDS))
                haveOpeningBoundsTag = false;
           else if(makeEndTag(sName).equals(Constants.CLOSING_FGRED))
               haveFGRed = true;
           else if(makeEndTag(sName).equals(Constants.CLOSING_FGGREEN))
               haveFGGreen = true;
           else if(makeEndTag(sName).equals(Constants.CLOSING_FGBLUE))
               haveFGBlue = true;
           else if(makeEndTag(sName).equals(Constants.CLOSING_FGCOLOR))
                haveOpeningFGColorTag = false;
           else if(makeEndTag(sName).equals(Constants.CLOSING_BGRED))
               haveBGRed = true;
           else if(makeEndTag(sName).equals(Constants.CLOSING_BGGREEN))
             haveBGGreen = true;
           else if(makeEndTag(sName).equals(Constants.CLOSING_BGBLUE))
               System.out.println("See closing BGBlue");
               haveBGBlue = true;
           else if(makeEndTag(sName).equals(Constants.CLOSING_BGCOLOR))
                haveOpeningBGColorTag = false;
           else if(makeEndTag(sName).equals(Constants.CLOSING_THICKNESS))
               System.out.println("XMLDocumentReader: Step2");
                haveOpeningThicknessTag = false;
           else if(makeEndTag(sName).equals(Constants.CLOSING_ISFILLED))
               haveOpeningIsFilledTag = false;
           else if(makeEndTag(sName).equals(Constants.CLOSING_IMAGEDATA))
               haveOpeningImageDataTag = false;
           else if(makeEndTag(sName).equals(Constants.CLOSING_TEXTDATA))
               haveOpeningTextDataTag = false;
      private String makeStartTag(String tag_name)
           String start = "<";
           String end = ">";
           return start.concat(tag_name).concat(end);
      private String makeEndTag(String tag_name)
           String start = "</";
           String end = ">";
           return start.concat(tag_name).concat(end);
      public void characters(char buf[], int offset, int len)throws SAXException
           String s = new String(buf, offset, len);
          if(haveSourceType == false)
               if(vcmessage.getSourceType() == null)
                  try
                    if(s.equals(""))return;
                   int sourcetype = Integer.parseInt(s);
                   vcmessage.setSourceType(sourcetype);                            
                  catch(NumberFormatException nfe){}
          else if(vcmessage.getSourceType() == SourceType.CHAT_SOURCE)
            if(vcmessage.getSourceType() == SourceType.CHAT_SOURCE && haveUserName == false)
                 vcmessage.setUserName(s);          
            else if(vcmessage.getSourceType() == SourceType.CHAT_SOURCE && haveMessage == false)
               //When the parser encounters interpreted characters like: & or <,
               //then this method gets invoked more than once for the whole message.
               //Therefore, we need to concatonate each portion of the message.  The
               //following method call automatically concatonates.
               vcmessage.concatMessage(s);                    
          else if(vcmessage.getSourceType() == SourceType.WHITEBOARD_SOURCE)
               if(haveProcessEvent == false)
                 try
                   vcmessage.setProcessEvent(Integer.parseInt(s));
                 catch(NumberFormatException nfe){}
               else if(haveLinkedListIndex == false)
                    try
                       vcmessage.setLinkedListIndex(Integer.parseInt(s));
                     catch(NumberFormatException nfe){}
               else if(haveShapeType == false)
                    try
                       vcmessage.setShapeType(Integer.parseInt(s));
                     catch(NumberFormatException nfe){}
               if(haveOpeningShapePropertiesTag)
                    if(haveOpeningShapeLocationTag)
                         if(haveOpeningXCoordTag)
                              try
                                vcmessage.setXCoordinate(Integer.parseInt(s));
                              catch(NumberFormatException nfe){}
                         else if(haveOpeningYCoordTag)
                              try
                                vcmessage.setYCoordinate(Integer.parseInt(s));
                                //reset all flags for ShapeLocation, X and Y coordinates
                                haveOpeningXCoordTag = false;
                                haveOpeningYCoordTag = false;
                                //haveOpeningShapeLocationTag = false;
                              catch(NumberFormatException nfe){}
                    else if(haveOpeningBoundsTag)
                         if(haveBoundsWidth == false)
                              try
                                vcmessage.setBoundsWidth(Integer.parseInt(s));
                              catch(NumberFormatException nfe){}
                         else if(haveBoundsHeight == false)
                              try
                                vcmessage.setBoundsHeight(Integer.parseInt(s));
                                //reset flag
                                //haveOpeningBoundsTag = false;
                              catch(NumberFormatException nfe){}
                    else if(haveOpeningFGColorTag)
                         if(haveFGRed == false)
                              try
                                vcmessage.setFGRed(Integer.parseInt(s));                           
                              catch(NumberFormatException nfe){}
                         else if(haveFGGreen == false)
                              try
                                vcmessage.setFGGreen(Integer.parseInt(s));                           
                              catch(NumberFormatException nfe){}
                         else if(haveFGBlue == false)
                              try
                                vcmessage.setFGBlue(Integer.parseInt(s));
                                //reset flag
                                //haveOpeningFGColorTag = false;
                              catch(NumberFormatException nfe){}
                    else if(haveOpeningBGColorTag)
                         if(haveBGRed == false)
                              try
                                vcmessage.setBGRed(Integer.parseInt(s));                           
                              catch(NumberFormatException nfe){}
                         else if(haveBGGreen == false)
                              try
                                vcmessage.setBGGreen(Integer.parseInt(s));                           
                              catch(NumberFormatException nfe){}
                         else if(haveBGBlue == false)
                         {   System.out.println("getting BGBlue data");
                              try
                                vcmessage.setBGBlue(Integer.parseInt(s));
                                //reset flag
                                //haveOpeningBGColorTag = false;
                              catch(NumberFormatException nfe){}
                    else if(haveOpeningThicknessTag)
                         try
                            vcmessage.setThickness(Integer.parseInt(s));                       
                          catch(NumberFormatException nfe){}
                    else if(haveOpeningIsFilledTag)
                         vcmessage.setIsFilled(s);
                    else if(haveOpeningImageDataTag && vcmessage.getProcessEvent() == org.jcanvas.comm.ProcessEvent.MODIFY)
                         vcmessage.setBase64ImageData(s);                    
                    else if(haveOpeningTextDataTag && vcmessage.getProcessEvent() == org.jcanvas.comm.ProcessEvent.MODIFY)
                         vcmessage.setTextData(s);
                    //reset
                    haveOpeningShapePropertiesTag = false;
          emit(s);
      //===========================================================
      // Utility Methods ...
      //===========================================================
      // Wrap I/O exceptions in SAX exceptions, to
      // suit handler signature requirements
      private void emit(String s)throws SAXException
          try {
              out.write(s);
              out.flush();
          } catch (IOException e) {
              throw new SAXException("I/O error", e);
      // Start a new line
      private void nl()throws SAXException
          try {
              out.write(lineEnd);
          } catch (IOException e) {
              throw new SAXException("I/O error", e);
      //treat validation errors as fatal
      public void error(SAXParseException e)
      throws SAXParseException
        throw e;
      // dump warnings too
      public void warning(SAXParseException err)
      throws SAXParseException
        System.out.println("** Warning"
            + ", line " + err.getLineNumber()
            + ", uri " + err.getSystemId());
        System.out.println("   " + err.getMessage());
    }

    Just out of curiosity what happens if you append a space to the end of the XML document?

  • Changing Media Start and End of Logged Clips

    This should be really simple, and I'm sure I'm just overlooking something. I am trying to recapture some clips in Final Cut Pro and it was fine until I came to a clip that gave me the "timecode error - pre roll, post roll, etc" message. The Media Start on the problematic clip is at 00:00:01:04 - I want to manually change this time to allow pre-roll. The timecode in the "In" and "Out" sections isn't making a difference and seems unrelated - no matter what I put it to.
    So I just want to edit the Media Start time as I'm sure this would remedy my timecode error when trying to capture... but I can't edit that field. What am I doing wrong? How do I change the Media Start time?
    I could recapture the whole tape independently but I already have sequences edited based on my previously logged clip. Any help would be greatly appreciated. Thanks!

    If you are re-capturing then you must have used Capture Now to get the clip first time round or you would have run into the same trouble with pre-roll. You'll have to capture the clip again using the same method. Of course, the chances of getting the same start and end code using Capture Now are slim, but if you can get in earlier and out later then you should be able to manually re-connect the clip.
    rh

  • Report execution start and end date/time

    Hi All,
    How can one find execution start and end date/times for all reports? Basically I am looking to see what reports were run on a day, when and how long it took for each to complete.
    Thank you.
    Denis

    Hi,
    The "eul5_batch_reports" holds the data about the scheduled report and if you don't have any so you will not have any data.
    Take a look at "EUL5_QPP_STATS"
    for example:
    select
    qpp.qs_doc_name,
    qpp.qs_doc_details,
    fu.user_name Ran_by,
    qpp.qs_created_date Start_run,
    qpp.qs_doc_owner Doc_owner,
    qpp.qs_num_rows rows_fetch,
    qpp.qs_est_elap_time estimated_time,
    qpp.qs_act_elap_time Run_time,
    qpp.qs_act_cpu_time Cpu_time
    from eul_us.EUL5_QPP_STATS qpp,
    fnd_user fu
    where substr(qpp.qs_created_by,2,10)=fu.user_id
    order by qs_created_date

  • Schedule type LineChart with clients and unavailable start and end dates

    I have been working on trying to get something in flex which will display a list of clients and their unavailability start and end dates.   I have attempted the line chart and the HLOC chart but have not seen success.  I do have the H or V grids working fine.  But getting the data to display in a line graph based upon start date and end date has been my challenge.  any suggestions
    Current Code:
        <s:Label x="0" y="5" text="Min Date" height="24" fontFamily="Times New Roman" verticalAlign="middle"/>
        <mx:DateField id="minDateField"
                      x="50" y="5"
                      formatString="MM-DD-YYYY"
                      selectedDate="{minDate}"
                      change="minDatefield_changeHandler(event)"/>
        <s:Label x="150"  y="5" text="Max Date" height="24" fontFamily="Times New Roman" verticalAlign="middle"/>
        <mx:DateField id="maxDateField"
                      x="200" y="5"
                      formatString="MM-DD-YYYY"
                      selectedDate="{maxDate}"
                      change="maxDatefield_changeHandler(event)"/>
        <mx:LineChart id="nonAvailsLC" x="0" y="40"
                      showDataTips="true"
                      dataProvider="{getNonAvailsResult.lastResult}"
                      creationComplete="nonAvailsLC_creationCompleteHandler(event)"
                      width="890" height="550">
            <mx:backgroundElements>
                <mx:GridLines gridDirection="both"/>
            </mx:backgroundElements>
            <mx:horizontalAxis>
                <mx:DateTimeAxis dataUnits="days" minimum="{minDate}" maximum="{maxDate}"
                                 labelUnits="days"/>
            </mx:horizontalAxis>       
            <mx:verticalAxis>
                <mx:CategoryAxis categoryField="user" labelFunction="getName"/>
            </mx:verticalAxis>       
            <mx:series>
                <mx:LineSeries xField="startDate" yField="user"
                               form="horizontal"/>
            </mx:series>
        </mx:LineChart>

    I guess I still have lots to learn about Flex and Renderers. I downloaded a Gantt chart with Code and they used the AdvancedDataGrid with renderers and such.  I modified the code to work for me. but if I had to create it myself right now, I would be in trouble.  Lots more to learn.

  • How to make start and end curve pieces of selected tab transparent in custom theme in FF33?

    I created my own theme using a background image but it seems I cannot code it right in browser.css to make the start and end curve pieces of selected tab transparent. They remain colored, I guess using the operating system's (which is Win XP) dialog color. The middle piece is fine, though, as well as the hovering.
    I built my theme based on https://developer.mozilla.org/en-US/docs/Building_a_Theme but customised it.
    Your answer would be highly appreciated!
    Best regards,
    Chaperon

    There is a Theme Development forum over here - http://forums.mozillazine.org/viewforum.php?f=18&sid=8c2f1ca97805f897689772e80e351023
    You'll need to register and login to that website, which isn't part of Mozilla Support, but far more theme developers hang out over there then what we get here.

  • Calculate the working days having the start and end dates only

    Hi,
    Can BIP be able to calculate the working days having the start and end dates only? It is like the NETWORKDAYS function in Excel. (i.e. excluding weekends and holidays).
    Thanks.

    Not out of the box.
    But You could extend your BIP functions
    Look at here:
    http://blogs.oracle.com/xmlpublisher/2009/05/bip_by_extension.html
    Based on that what you need is similar to the following Java code:
    http://objectlabkit.sourceforge.net/
    regards
    Jorge A.

Maybe you are looking for

  • Benchmarking Battery life of MacBook Pro 17"

    Hey guys, I tried to calculate the battery life of my 3/4 months old 17" book. This is how i conducted my test: 1) caliberated my battery, followed all 6 steps 2) turn off all the programs, including the ones in the task bar. 3) set the sleep timers

  • Oracle Express Workshop or Seminar

    We just installed Oracle Express Version 2.0. Do you of any Oracle Express Workshops or Seminars coming up soon on the East Coast?

  • Network Carrier of Iphone 4...??

    Hi i got a iphone4 by my Friend's help from UK, Now I want to Know the Network carrier of my iphone 4 to get it unlocked. IMEI NO:- 13*************88. <Edited By Host>

  • Phone stuck in recovery mode- Itunes not recognizing phone so cant' restore

    Please help. Im snowed in with no phone. I accidentally tried to update my 3gs to the latest software before updating my itunes. Now it is stuck in "recovery mode" showing the itunes logo and cord icon. So I successfully updated itunes but it does no

  • Can't delete tabs from Firefox on my iPhone

    How can I delete tabs from Firefox on my iPhone? I'm using Firefox Sync and the number of tabs keep getting bigger. I'm up to 48. PS: I've tried the iPhone forum but no one replies. It's looking like there is no support for Sync??????