Function to break up a string

Hi ,
Please tell me the function name and its syntax to break a string into number of variables.....
Eg:
Variables: a,b,c
String: Hi,Rahul,ThisSide
The Result should be:
a=Hi
b=Rahul
c=ThisSide
The "," should be the breaking point...
Regards,
Rahul

SQL> create or replace type TStrings as table of varchar2(4000);
2 /
Type created.
SQL>
SQL>
SQL> create or replace function tokenise( cString varchar2, cSeparator varchar2 DEFAULT ',' )
return TStrings AUTHID CURRENT_USER is
2 strList TStrings;
3 str varchar2(4000);
4 i integer;
5 l integer;
6
7 procedure AddString( cLine varchar2 ) is
8 begin
9 strList.Extend(1);
10 strList( strList.Count ) := cLine;
11 end;
12
13 begin
14 strList := new TStrings();
15
16 str := cString;
17 loop
18 l := LENGTH( str );
19 i := INSTR( str, cSeparator );
20
21 if i = 0 then
22 AddString( str );
23 else
24 AddString( SUBSTR( str, 1, i-1 ) );
25 str := SUBSTR( str, i+1 );
26 end if;
27
28 -- if the separator was on the last char of the line, there is
29 -- a trailing null column which we need to add manually
30 if i = l then
31 AddString( null );
32 end if;
33
34 exit when str is NULL;
35 exit when i = 0;
36 end loop;
37
38 return( strList );
39 end;
40 /
Function created.
SQL>
SQL> select * from TABLE( tokenise('Hi,Rahul,ThisSide') );
COLUMN_VALUE
Hi
Rahul
ThisSide
SQL>

Similar Messages

  • Standard function to find alphabet in string?

    Is there a standard function to find alphabet in string?
    For example, a variable define as char (10),
    I need a function to find out if this variable contains alphabet.
    Any standard function there?

    hiii
    use following code
    data: wa_str(100) type c.
    data: wa_str1 type string.
    data: wa_str2 type string.
    data: wa_str3 type string.
    data: len type i.
    data: ofset type i.
    wa_str = 'ABCD435hjK'.
    len = strlen( wa_str ).
    TRANSLATE wa_str TO UPPER CASE.
    do.
      if ofset = len.
        exit.
      endif.
    if wa_str+ofset(1) co sy-abcde  .
          concatenate wa_str2 wa_str+ofset(1) into wa_str2.
    else.
        concatenate wa_str3 wa_str+ofset(1) into wa_str3.
      endif.
      ofset = ofset + 1.
    enddo.
    write:/ wa_str.
    write:/ 'alphabatic char', 20 wa_str2.
    here TRANSLATE wa_str TO UPPER CASE.
    statement have added .i hope this will solve your problem.
    regards
    twinkal

  • ALV grid - how to break a long string into several lines?

    I have a ALV grid, where one of the fields contains a textstring that is typically 100 characters long.
    Is it possible to break this long string into shorter strings on multiple rows?
    Kind of like in Excel, when using row break...

    Thats not possible in ALV

  • How to break up a String into multiple array Strings?

    How do I break up a string into a bunch of String arrays after the line ends.
    For example,
    JTextArea area = new JTextArea();
    this is a string that i have entered in the area declared above
    now here is another sting that is in the same string/text area
    this is all being placed in one text field
    Sting input = area.getText();
    now how do I break that up into an array of strings after each line ends?

    Ok I tested it out and it works.
    So for future refrence to those that come by the same problem I had:
    To split up a string when using a textfield or textarea so that you can store seperate sections of the string based on sperate lines, using the following code:
    String text = area.getText() ;
    String[] lines = text.split("\n") ;
    This will store the following
    this is all one
    entered string
    into two arrays
    Cheers{
    Edited by: watwatacrazy on Oct 21, 2008 11:06 AM
    Edited by: watwatacrazy on Oct 21, 2008 11:16 AM
    Edited by: watwatacrazy on Oct 21, 2008 11:16 AM

  • SSHR - Custom function keeps breaking!!

    My Private Vehicle custom functions keep breaking and I don't know why!!!
    When I say "custom", I am simply duplicating PQPVEHINFOPROCESS_MGR_SS and PQPVEHINFOPROCESS_SS and renaming them. I make the necessary amendments to the HTML Call and Parameters and they work perfectly but then when I have revisited the function as part of testing after a few weeks, they error!! This has happened three times now. Each time the solution has been to repeat the whole process.
    We have exclusive use of the environment and no patches/updates have been applied. No changes have been made to config/setup so I cannot understand why this is happening.
    Has anyone come across this before? The error does not occur with the seeded function. What am I doing wrong?

    Error Page
    Exception Details.
    oracle.apps.fnd.framework.OAException: java.lang.NullPointerException
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:912)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:886)
         at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(OAException.java:1009)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:211)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:153)
         at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:762)
         at oracle.apps.pqp.selfservice.vehiclemileage.webui.SSCreatePrivateVehCO.processFormRequest(SSCreatePrivateVehCO.java:183)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:819)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
         at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processFormRequest(OAHeaderBean.java:410)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
         at oracle.apps.fnd.framework.webui.beans.layout.OABorderLayoutBean.processFormRequest(OABorderLayoutBean.java:367)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1206)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2987)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1875)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
         at OA.jspService(_OA.java:212)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:619)
    ## Detail 0 ##
    java.lang.NullPointerException
         at oracle.apps.pqp.selfservice.vehiclemileage.server.AddPrivateVehicleAMImpl.CreatePrivateVehicle(AddPrivateVehicleAMImpl.java:741)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:190)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:153)
         at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:762)
         at oracle.apps.pqp.selfservice.vehiclemileage.webui.SSCreatePrivateVehCO.processFormRequest(SSCreatePrivateVehCO.java:183)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:819)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
         at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processFormRequest(OAHeaderBean.java:410)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
         at oracle.apps.fnd.framework.webui.beans.layout.OABorderLayoutBean.processFormRequest(OABorderLayoutBean.java:367)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1206)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2987)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1875)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
         at OA.jspService(_OA.java:212)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:619)
    java.lang.NullPointerException
         at oracle.apps.pqp.selfservice.vehiclemileage.server.AddPrivateVehicleAMImpl.CreatePrivateVehicle(AddPrivateVehicleAMImpl.java:741)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:190)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:153)
         at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:762)
         at oracle.apps.pqp.selfservice.vehiclemileage.webui.SSCreatePrivateVehCO.processFormRequest(SSCreatePrivateVehCO.java:183)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:819)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
         at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processFormRequest(OAHeaderBean.java:410)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
         at oracle.apps.fnd.framework.webui.beans.layout.OABorderLayoutBean.processFormRequest(OABorderLayoutBean.java:367)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1206)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2987)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1875)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
         at OA.jspService(_OA.java:212)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:619)

  • How do I insert a WAIT or a PAUSE function, followed by a constant string of numbers [international code, country code and the destination phone number].

    I'd like to program a LOCAL ACCESS NUMBER, then insert a WAIT or a PAUSE function, followed by a constant string of numbers [international code, country code and the destination phone number]. Dialing the local, US  access number is not an issue, but I can't find any info in the manual on how to insert a WAIT or PAUSE or how to insert the remaining string of international codes and destination phone number. Any help would be appreciated. Thanks!

    How to Add Pauses when you Dial a Number on the Samsung Galaxy Note 3 - For Dummies
    It is also described on page 42 of your owners manual...

  • ASP Function to break apart string

    I have a number that consists of 2 parts ### - ##. I need to
    get the first three numbers before the dash. Does ASP have anything
    similar to the explode function in PHP. Can anyone give me some
    advice on how to do this?
    Oh and thanks Adobe, for completely changing the web forum!
    Thanks,
    Jeremy

    You have Split(string,delimiter) which results in an array.
    That is,
    MyVar = Split("###-##","-")
    results in
    MyVar(0) = "###"
    MyVar(1) = "##"
    You have Left(string, num. characters) and Right(string, num.
    characters)
    which pull the specified number of characters from the left
    or right of the
    string.
    You have Mid(string, start pos, num characters) which pulls
    out a substring.
    "bigj99012" <[email protected]> wrote in
    message
    news:e356tl$os4$[email protected]..
    >I have a number that consists of 2 parts ### - ##. I need
    to get the first
    > three numbers before the dash. Does ASP have anything
    similar to the
    > explode
    > function in PHP. Can anyone give me some advice on how
    to do this?
    >
    > Oh and thanks Adobe, for completely changing the web
    forum!
    >
    > Thanks,
    > Jeremy
    >

  • Need help on breaking a large string into substringsto fit in a line

    hii,suppose i have i have large string (the content of which is not apparently visible to me)which i want to show in a text area ,,,now how can i break it into multiple lines to be able view the total string...
    i dont want to use horizantal scrollbar...
    here i submit a sample code..and pls show me the neccesary modifications...
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class textarea extends JFrame
    textarea()
    super("Text area length test");
    setSize(640,480);
    Container contentpane=getContentPane();
    JTextArea area=new JTextArea("Split panes allow the user to dynamically change the size of two or more components displayed side-by-side (within a window or another panel). Special dividers can be dragged with the mouse to increase space for one component and decrease the display space for another. Note that the total display area does not change. This gives applications a more modern and sophisticated view. A familiar example is the combination of a tree and a table separated by a horizontal divider (e.g. file explorer-like applications). The Swing framework for split panes consists only of JSplitPane.");
    area.setLayout(new BorderLayout());
    contentpane.add(area);
    setVisible(true);
    class texttest
    public static void main(String args[])
    new textarea();
    In the original code the Stron to be printed is not visible to me...

    Configure the text area so that it uses word wrap (see the javadoc)
    Kaj

  • Oracle Spatial function to find nearest line string based on lat/long

    Hi,
    Here is my scenario. I have a table that contains geometries of type line strings (the roadway network). The line geomteries are of type Ohio state plane south (SRID 41104).
    I have a requirement - given a lat/long, find the line string that snaps to that lat/long or the nearest set of line strings within a distance of 0.02 miles.
    This is a typical example of trying to identify a crash location on our roadway network. The crashes being reported to us in lat/long thru the GPS system.
    How can i acheive this through any spatial functions?
    Thanks for the help in advance.
    thanx,
    L.

    Hi L,
    That is not the way I would do it. I would convert my road segments to LRS data, then you can do all queries on the same data.
    Or, if you do not want to modify your original data, create a copy of your road segments with the same ID's and convert the copy into LRS data. If you keep the ID's identical, you can easily use geometry from one and LRS data from the other - as long as you are sure the ID is the same.
    Which will make the workflow a bit easier:
    1. Use SDO_NN to get the closest segments
    2. Use SDO_LRS.PROJECT_PT to get the projected point
    3. Use SDO_LRS.GET_MEASURE to get the measure
    And most of these you can incorporate into one single query. Now I am writing this of the top of my head (It's been a while since I played with LRS). so this has not been tested, but something like this should work (but could probably be greatly improved - it's getting late for me :-) ):
    SELECT
    SDO_LRS.FIND_MEASURE  --//find_measure needs an LRS segment and a point
        SELECT            --//here we select the LRS segment
          r.geometry 
        FROM
          roadsegments r
        WHERE SDO_NN(r.geometry,    --//based on the given GPS point
                     sdo_geometry(2001, 41104, sdo_point_type(lat,lon,NULL), NULL, NULL), 
                     'sdo_num_res=2 distance=0.02 unit=mile') = 'TRUE'
      SDO_LRS.PROJECT_PT  --//We project the point on the LRS segment
          SELECT         --//here we select the LRS segment (again, which could probably be improved!!)
            r.geometry 
          FROM
            roadsegments r
          WHERE SDO_NN(r.geometry,
                       sdo_geometry(2001, 41104, sdo_point_type(lat,lon,NULL), NULL, NULL), 
                       'sdo_num_res=2 distance=0.02 unit=mile') = 'TRUE'
        sdo_geometry(2001, 41104, sdo_point_type(lat,lon,NULL), NULL, NULL) --//The GPS point again
    AS milemarker from dual;So it is not as complicated as you think, it can easily be done with just one query (SQL can do a lot more than you think ;-) ).
    Good luck,
    Stefan

  • [AS] Add frame break character to string

    I've searched to no avail, looking for examples (there are plenty of JS examples) and unicode things that I can't get to work.
    I need to add a frame break character to the end of a string I am inserting into a text box. How might I do that?
    Current script snippet:
    set townnames to "Lancaster"
    tell text frame "town names box"
    tell insertion point 1
    set point size to 8.5
    set contents to townnames --AND PAGE BREAK CHAR HERE
    end tell
    end tell

    Thanks Shane, ;-)
    so simple yet so hard. I was looking for the "hard way" I guess.
    What I get actually is a column break. Got it working now.
    tell application "Adobe InDesign CS3"
    tell document 1
    tell text frame 2
    get contents -->result is a return, "
    get character -1 -->result is column break
    get character 1 -->result is column break
    end tell
    end tell
    end tell

  • Breaking up a String array

    Hi guys!
    I have been working on this for a while! I have an assignment which requires:
    -take input of a seven digit integer
    - break this number apart and perform calculations in order to "encrypt" the number.
    -etc..
    I thought I should break the string up first, then convert each element to an int for calculations.
    I am sure there is a better way to do this.
    Could I use a String Tokenizer? How would I do that?
    Thanks!!
    Here's what I have so far:
    import javax.swing.*;
    public class Assignment3 {
      public static void main( String args[] ) {
        String choiceString = "",
        output = "",
        stringArray[] = new String[7];
        int intArray[] = new int[7],
        choiceInt;
        while ( choiceString != null ) {
          // prompt user to input a seven digit integer
          choiceString=JOptionPane.showInputDialog("Please     enter the number corresponding to your choice:\n1.Encryption\n2.Decryption\n3.Exit");
          choiceInt = Integer.parseInt( choiceString );
         if( choiceInt != 1 || choiceInt != 2 || choiceInt != 3)
            JOptionPane.showMessageDialog( null, "Invalid selection", "Error",
            JOptionPane.ERROR_MESSAGE );
          // 1=encrypt 2=decrypt 3=exit
          switch ( choiceInt ) {
            case 1:
             stringArray = JOptionPane.showInputDialog( "Please enter a seven digit number:" ) ;
              intArray = convert( stringArray );    // converts string to int
              digitSwap1( intArray );   
              nineModTen( intArray );
              digitSwap2( intArray );
              output += "Original: " + input + "\nOutput: " +  intArray;
              break;
            case 2:
              stringArray = JOptionPane.showInputDialog( "Please enter an encrypted number: " );
              intArray = convert( stringArray );
              digitSwap2( intArray );
              decrypt( intArray );
              digitSwap1( intArray );
              output += "Decrypted: " + input + "\nOutput: " + intArray;
              break;
            case 3:
              output += "Thank you, have a nice day";
              break;
            default:
              JOptionPane.showMessageDialog( null, "Please make a selection", "Error",
              JOptionPane.ERROR_MESSAGE );
              break;
          } // end switch
          JOptionPane.showMessageDialog( null, output, "Results",
          JOptionPane.INFORMATION_MESSAGE );
        } // end loop
        System.exit(0);
      } // end main
      public static void digitSwap1( int array[] )
        int digit1,digit2,digit3,digit4,digit5,digit6,digit7;
        digit1 = array[0];
        digit2 = array[1];
        digit4 = array[3];
        digit5 = array[4];
        digit6 = array[5];
        digit7 = array[6];
        array[0] = digit7;
        array[1] = digit6;
        array[2] = digit5;
        array[4] = digit3;
        array[5] = digit2;
        array[6] = digit1;
        } // end digitSwap1
      public static void nineModTen( int array[] )
        int x = 0;
        while ( x <= 6 ) {
          array[x] = ( array[x] + 9 ) % 10;
          x++;
        } // end loop
      }  // end nineModTen
      public static void digitSwap2( int array[] )
        int digit1,digit2,digit3,digit4,digit5,digit6,digit7;
        digit1 = array[0];
        digit2 = array[1];
        digit3 = array[2];
        digit4 = array[3];
        digit5 = array[4];
        digit6 = array[5];
        array[0] = digit2;
        array[1] = digit1;
        array[2] = digit4;
        array[3] = digit3;
        array[4] = digit6;
        array[5] = digit5;
      }  // end digitSwap2
      public static void decrypt( int array[] )
        int x = 0;
        while ( x <= 6 ) {
          if ( array[x] < 9 )
            array[x] += 1;
          else
            array[x] = 0;
          x++;
        }  // end loop
      } // end decrypt
      public static int[] convert( String array1[] )
        int array2[] = new int[7];   
        int count = 0;
        while ( count <= 6 ) {
          array2[count] = Integer.parseInt( array1[count] );
          count ++;
        } // end loop
        return( array2 );
        } // end convert
    } // end class

    I have solved my problem! The real problem was that I
    was trying to output my resulting int array like this:
    output = "result: " + intArraybut I discovered that when I concatenated each individual
    element in the array, it worked fine:
    output = "result: " + array[0] + array[1] ....Also, I found an easy way to break up the input. Rather
    than use the charAt() method to extract each digit, and
    then convert for calculation, I converted the String to int
    and then, in a loop, extracted each digit from last to
    first by: (array[count] = number% 10), then (number = number / 10).
    Thanks everyone for your help! I hope this will help
    someone else too. Below is the working code.
    ; > -HB
    // this program takes a 7 digit input and "encrypts" it
    // by 1st, swapping some of the digits, 2nd, add nine
    // and mod ten to each digit, 3rd, swapping digits again.
    import javax.swing.*;
    public class Assignment3 {
      public static void main( String args[] ) {
        String choiceString = "",
        output = "",
        input;
        int number;
        int intArray[] = new int[7],
        choiceInt = 0;
        while ( choiceString != null ) {
          // prompt user to choose an option
          choiceString=JOptionPane.showInputDialog("Please enter the number corresponding to your choice:\n1.Encryption\n2.Decryption\n3.Exit");
          choiceInt = Integer.parseInt( choiceString );
          // 1=encrypt 2=decrypt 3=exit
          switch ( choiceInt ) {
              case 1:
              input = JOptionPane.showInputDialog( "Please enter a seven digit number:" );
              number = Integer.parseInt( input );
              intArray = convert( number );    // extract each digit
              intArray = digitSwap1( intArray );   
              nineModTen( intArray );
              intArray = digitSwap2( intArray );
              output = "Original: " + input + "\nOutput: " + intArray[0] +
                       intArray[1] + intArray[2] + intArray[3] +
                       intArray[4] + intArray[5] + intArray[6];
              JOptionPane.showMessageDialog( null, output, "Results",
              JOptionPane.INFORMATION_MESSAGE );
              break;
            case 2:
              input = JOptionPane.showInputDialog( "Please enter an encrypted number: " );
              number = Integer.parseInt( input );
              intArray = convert( number );
              intArray = digitSwap2( intArray );
              decrypt( intArray );
              intArray = digitSwap1( intArray );
              output = "Decrypted: " + input + "\nOutput: " + intArray[0] +
                       intArray[1] + intArray[2] + intArray[3] + intArray[4] +
                       intArray[5] + intArray[6];
              JOptionPane.showMessageDialog( null, output, "Results",
              JOptionPane.INFORMATION_MESSAGE );
              break;
            case 3:
              break;
            default:
              JOptionPane.showMessageDialog( null, "Please make a valid selection", "ERROR", JOptionPane.ERROR_MESSAGE);
              break;
          } // end switch
          if ( choiceInt == 3 )
            break;
          } // end loop
          JOptionPane.showMessageDialog( null, "Thank you, Have a nice day!", "EXIT",
          JOptionPane.PLAIN_MESSAGE );
        System.exit(0);
      } // end main
        public static int[] convert( int num )
          int array[] = new int[7];
          int count = 6;
          while ( count >= 0 ) {
            array[ count ] = num % 10;
            num = num / 10;
            count --;
          return array;
      } // end convert
      public static int[] digitSwap1( int array[] )
        int digit1,digit2,digit3,digit5,digit6,digit7;
        digit1 = array[0];
        digit2 = array[1];
        digit3 = array[2];
        digit5 = array[4];
        digit6 = array[5];
        digit7 = array[6];
        array[0] = digit7;
        array[1] = digit6;
        array[2] = digit5;
        array[4] = digit3;
        array[5] = digit2;
        array[6] = digit1;
        return array;   
      } // end digitSwap1
      public static void nineModTen( int array[] )
        int count = 0;
        while ( count < 7 ) {
          array[count] = ( array[count] + 9 ) % 10;
          count++;
        } // end loop
      }  // end nineModTen
      public static int[] digitSwap2( int array[] )
      int digit1,digit2,digit3,digit4,digit5,digit6;
        digit1 = array[0];
        digit2 = array[1];
        digit3 = array[2];
        digit4 = array[3];
        digit5 = array[4];
        digit6 = array[5];
        array[0] = digit2;
        array[1] = digit1;
        array[2] = digit4;
        array[3] = digit3;
        array[4] = digit6;
        array[5] = digit5;
        return array;
      }  // end digitSwap2
      public static void decrypt( int array[] )
        int count = 0;
        while ( count <= 6 ) {
          if ( array[count] < 9 )
            array[count] += 1;
          else
            array[count] = 0;
          count++;
        }  // end loop
       } // end decrypt
      } // end class

  • Menubar shortcut not functional if focus is on string control

    Dear All,
    I am wondering if this is the expected behavior or if I am doing something wrong:
    On a panel I have a string control; on double clicking I open a file select box to select a file, the file name then is displayed on this string control. After this action, this string control is the active control, indicated by the grey frame.
    I also have a menu bar with some shortcut keys defined, such as F2. It appears that F2 is not functional as long as the  focus is on the string control. This is inconvenient because a typical user action is selecting a file and then pressing Fx. To solve this problem the user needs to click somewhere on the panel to move the focus to another control. Of course this could be done programmatically, but this extra effort is not necessary say for ring controls or numeric controls. Also in numeric controls I can change the numbers, but even if a numeric control is the acitve control because of editing the value F2 immediately works.
    Help is appreciated.
    Thanks,
    Wolfgang
    Solved!
    Go to Solution.

    I just tried in a project of mine and had no problems in calling a menu function with its shortcut key while the focus is on a string control with a callback attached: maybe the problem lies in the string control callback, which is possibly trapping the keypress event before it is sent to the panel.
    I tested both with "regular" shortcut keys (such as Ctrl + P) and with F2 only as the shortcat. My callback is not trapping EVENT_KEYPRESS event.
    EDIT: I tried by swallowing keyboard presses with     if (event == EVENT_KEYPRESS) return 1;  but I am still able to operate on menus with shortcut keys. Seems the reason lies elsewhere: you can try progressively excluding parts of control callback and see when menus return responsive.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How to call plsql procedure or function and getting back the string?

    Hi Everyone,
    i am using Jdev 11.1.1.5.0.
    i have a requirement to call plsql procedure or function from my backing bean java file and get back the returned value from the procedure or function.
    what piece of simple code i need to write in my backing bean?
    please suggest.
    Thanks.

    As always you write the method to call he pl/sql in the application module, expose this method to the client (so you see it in the datacontroll) then create a operation binding to the method and call this operation from the bean. The result you get by operation.getResult();
    You should never call pl/sql from the bean directly!
    The doc shows how to call the procedure from an application module: http://docs.oracle.com/cd/E21764_01/web.1111/b31974/bcadvgen.htm#sm0297
    Timo

  • DRM Function to divide comma delimited string to list value

    Hi
    Any one knows how to seperate comma delimited string into list values.
    Thanks

    Are you wanting to dynamically set the list values for a property? If so there are a couple options:
    1. You can update them via the API.
    2. You can write a sql script to update the table Property_List. This requires an application server restart and generally isn't recommended for support reasons but it makes sense in some instances.
    Edited by: Naren Truelove on 16/02/2011 22:08

  • Instalment functionality and break-up of VAT

    Hello Guys,
    I have an instalment payment term that is active, which breaks down vendor invoice amounts into 'n' number of instalments with different baseline dates.
    However the issue I face is that the VAT amount does not spread in the same proportion above, but gets posted lumpsum.
    To illustrate -
    Current postings -
    Expense Dr                    1000
    Input Sales tax Dr            200
    To Vendor A                         600  
    To Vendor A                         600
    What would be needed is -
    Expense Dr                    1000
    Input Sales tax Dr            100
    Input Sales tax Dr            100
    To Vendor A                         600  
    To Vendor A                         600
    Please advise.

    hi,
    the WIP explanation is not available for the APO scenario. You can only view the summarized WIP values via KKAS or KKBC_PKO
    regs,
    ramesh b

Maybe you are looking for

  • Firefox crashes on my desktop, how can I get on my internet??

    I have tried safe mode and everything else. Can't do much without interenet access. Can I delete firefox and get on my computer??

  • Acrobat X Pro does not print Excel charts from 2010 Word doc to PDF correctly

    Hi, I am trying to create a PDF from Word 2010 using Adobe Acrobat X and preserve hyperlinks but when I go through the PDF maker toolbar, the Excel charts in the Word file do not print correctly. They come up as large white boxes with a small grey ar

  • Graph

    Hi All, In my BSP, I drawn a chart by using HTMLB,but I am unable to show values on the graph(bar graph,line graph) so it is defficult to user to identify its value exactly and also starting value(min value) it is taking from "0" but user neede as pe

  • Warp tool

    So I'm using an HTC evo 4g lte and when I use the warp tool Photoshop touch tends to crash. Is there any way around this? Also as a side note, I would really like to see all of the blending modes in the app. One specifically is the hard light mode. T

  • Can't change payment info, "Please contact iTunes support to complete this transaction."

    Triple checked that everything is correct, always get: "Please contact iTunes support to complete this transaction."