Insert/flag data to PV9 (db) with CVP script (Call Studio) and create java class

Hi all,
i already created workflow with CVP script using Call studio, i have a problem how to insert call entered digit to PV9 and check the bill customerID with java class.
The workFlow design:
1. Customer enter the customerID (sessionID from ICM)
2. Play the customerID ---> Insert to PV9 (ex: 12390)
3. Check monthly bill
4. Option enter another customerID
5. Back to step 2 ---> Insert to PV9 (ex:12390,12380)
When we want to create a java class is enough to install default call studio + JDK and create new call studio project? because when i created new call studio project only will be created callflow folder and app.callflow
thx before,
darma

Hi Chintan,
This'is my callflow design with callStudio
i want create java class to get value from REST Url, i already have the script but i'm still confused how to deploy it in call studio, my call studio project is like this
this'is the java source, how to compile and what prerequisites are required?
/*   1:    */ import com.audium.server.AudiumException;
/*   2:    */ import com.audium.server.session.ActionElementData;
/*   3:    */ import com.audium.server.voiceElement.ActionElementBase;
/*   4:    */ import java.io.BufferedReader;
/*   5:    */ import java.io.InputStreamReader;
/*   6:    */ import java.io.PrintStream;
/*   7:    */ import java.net.URL;
/*   8:    */ import java.net.URLConnection;
/*   9:    */ 
/*  10:    */ public class MyBill
/*  11:    */   extends ActionElementBase
/*  12:    */ {
/*  13:    */   static final int PREDICT_THRESHOLD = 3;
/*  14:    */   private static String vBill;
/*  15:    */   
/*  16:    */   public static void GetDataBill(String strDataBill)
/*  17:    */     throws Exception
/*  18:    */   {
/*  19: 23 */     vBill = "0";
/*  20:    */     
/*  21: 25 */     URL strBill = new URL("http://192.168.10.23//wsclient.php?id=" + strDataBill);
/*  22:    */     
/*  23:    */ 
/*  24:    */ 
/*  25: 29 */     URLConnection hpCon = strBill.openConnection();
/*  26: 30 */     int len = hpCon.getContentLength();
/*  27: 32 */     if (len > 0)
/*  28:    */     {
/*  29: 36 */       BufferedReader in = new BufferedReader(
/*  30: 37 */         new InputStreamReader(strBill.openStream()));
/*  31: 38 */       vBill = in.readLine();
/*  32:    */     }
/*  33:    */     else
/*  34:    */     {
/*  35: 45 */       vBill = "0";
/*  36:    */     }
/*  37: 49 */     System.out.println("YourBill : " + vBill);
/*  38:    */   }
/*  39:    */   
/*  40:    */   public void doAction(String name, ActionElementData actionAPI)
/*  41:    */     throws AudiumException
/*  42:    */   {
/*  43: 63 */     String strCustID = (String)actionAPI.getSessionData("QueueIDs");
/*  44:    */     try
/*  45:    */     {
/*  46: 66 */       GetDataBill(strCustID);
/*  47:    */     }
/*  48:    */     catch (Exception e)
/*  49:    */     {
/*  50: 69 */       System.out.println("0");
/*  51:    */     }
/*  52: 74 */     String balance = vBill.trim();
/*  53: 81 */     if (balance == "0")
/*  54:    */     {
/*  55: 83 */       actionAPI.removeAllSessionData();
/*  56: 84 */       actionAPI.setSessionData("balance", balance);
/*  57:    */     }
/*  58:    */     else
/*  59:    */     {
/*  60: 91 */       String strSess = balance.substring(0, 1);
/*  61: 92 */       String strSess2 = balance.substring(1);
/*  62:    */       
/*  63:    */ 
/*  64: 95 */       actionAPI.setSessionData("StsBill", strSess);
/*  65: 96 */       actionAPI.setSessionData("ValBill", strSess2);
/*  66: 99 */       if (strSess > "1")
/*  67:    */       {
/*  68:102 */         actionAPI.setSessionData("StsBill", "1");
/*  69:103 */         actionAPI.setSessionData("balance", strSess2);
/*  70:    */       }
/*  76:110 */       if (strSess == "0")
/*  77:    */       {
/*  78:112 */         actionAPI.setSessionData("StsBill", "0");
/*  79:113 */         actionAPI.setSessionData("balance", strSess2);
/*  80:    */       }
/*  81:115 */       if (strSess == "9")
/*  82:    */       {
/*  83:117 */         actionAPI.setSessionData("StsBill", "9");
/*  84:118 */         actionAPI.setSessionData("balance", "0");
/*  85:    */       }
/*  86:121 */       if (strSess2.trim() == "") {
/*  87:122 */         actionAPI.setSessionData("balance", "0");
/*  88:    */       } else {
/*  89:124 */         actionAPI.setSessionData("balance", strSess2);
/*  90:    */       }
/*  91:    */     }
/*  92:    */   }
/*  93:    */ }
please help Me

Similar Messages

  • CVP call studio and default audio

    Not sure if this should get posted here or on the development forum but it's getting posted here anyways...
    We have 4 combo boxes in our CVP deployment so we have 4 media servers. I'm trying to figure out what to configure for the Default Audio Path URI in Call Studio when creating a project .It appears that I have to specify either a single media server to pull the audio from or pull it from flash.
    I know our gateways will pull down the wav files from the media servers but if I specify flash in the studio application, do I need to load the wav file directly onto flash on the router or can it access the media servers and pull it down? We run most of our ICM scripts off of microapps, not custom vxml apps. Most of the documentation and the partner class I took doesn't look at multi server deployments and combo boxes like as most standard deployments are like this now. I don'ts ee anything in the Cisco docs for CVP that specify this information. Any help would be appreciated.
    We are using SIP and CSS if that makes a difference.
    ICM 7.5.9
    CVP 7.0.2
    UCM 7.1.3
    thanks
    Paul

    The normal way is to use the VIP you built on your CSS. Let's say this is a.b.c.d and it manages the IP address of the media servers as a "service", providing load balancing and resilience.
    For each application in Studio you should make a matching default audio path and put all the media files under that. Makes it easy - even if there is repetition of system files (1.wav, 2.wav etc). You can control the lifetime (expiration) on IIS more easily.
    Let's assume your application is called "foobar" and your locale is "en-us".
    So set the path to
    http://a.b.c.d/en-us/app/foobar/
    Don't forget the trailing slash. As you go through the Studio program, you just need to specify an audio item as "mywavefile.wav" and that makes it really easy to look at the Prompt Dictionary, as they have simple wav file names and no path information.
    Others may have different views, of course. I'm prepared to vigorously defend mine.
    On IIS you will have wwwroot\en-us\app\foobar with a bunch of files.
    Regards,
    Geoff

  • Could not create Java class: associated with region:

    Hi All,
    I am extending the standard controller oracle.apps.pos.supplier.webui.SuppSummCO
    With a custom controller xxmycomp.oracle.apps.pos.supplier.webui.XXSuppSummCO
    I have built the project in my local JDEV,
    Compiled the custom controller and put it under $JAVA_TOP
    I have verified the same by ls -l $JAVA_TOP/xxmycomp/oracle/apps/pos/supplier/webui/XXSuppSummCO.class
    I have given full permission to xxmycomp folder under $JAVA_TOP (chmod -R 777 xxmycomp)
    I have done the OC4J core bounce
    After setting the custom controller at site level by personalizing the Region,
    When I am returning to the application I am getting the following error
    oracle.apps.fnd.framework.OAException: Could not create Java class: (xxmycomp.oracle.apps.pos.supplier.webui.XXSuppSummCO) associated with region: (PageLayoutRN). This is probably because the class name is wrong or not included in project.
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1247)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2559)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1894)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:538)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:426)
         at OA.jspService(_OA.java:212)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
         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.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
         at RF.jspService(_RF.java:225)
    The custom controller is for testing only and has only the following code
    public void processRequest(OAPageContext oapagecontext,
    OAWebBean oawebbean)
    super.processRequest(oapagecontext, oawebbean);
    public void processFormRequest(OAPageContext oapagecontext,
    OAWebBean oawebbean)
    super.processFormRequest(oapagecontext, oawebbean);
    I have created the directory xxmycomp under $JAVA_TOP
    I have read only access to other directories under $JAVA_TOP apart from xxmycomp.
    Can anybody help me resolve this error?
    I am doing the same steps in another instance where it is working fine.
    Regards,
    Gourab

    Hi Gourab,
    Double check the the page.xml has referring to the correct CO. Open the page.xml and see which controller is attached to it.
    Also attach the extended controller through personalization to the page/Region.
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to integrate Oracle Right Now with our application Calling Button and Chat Button  Application is on WebCenter  Sites

    How to integrate Oracle Right Now with our application Calling Button and Chat Button. Application is on WebCenter  Sites

    Thanks handar. As per your instructions I have tried OAM authorization policy and its working fine. But we also wants to check the same with OES also. Currently I have configure weblogic SM and created domain. In same domain I have deployed my application also. I have created application, resources and authorization policy to authorize /myfolder/index.jsp if user has some specific role. Now if I try to access my web application using http://host:8001/CONTEXT/myfolder/index.jsp, it doesn't check if user is authorized or not. I guess my application is not related to the resource I have created. Please help me with this. Also, let me know if we can retirive logged in user from session and use for authorization.

  • I have an iphone 3GS while on itunes it asked me if I wanted an update,it downloaded and then asked me if I wanted to remove my old data to replace it with the new.I agreed and it removed everything and left me with nothing all.What to do??

    How do I get my data back off my computer into my iphone?And how do I find it?I'm technologically deficient!!

    Restore from the backup created when the upgrade took place.  This should have been part of the upgrade process.
    Did the upgrade actually complete?
    Sounds like you simply restored as "new" when you should have been restoring from your backup.

  • Having Problem With "static" When Running a Stand Alone Java Class

    I have a Java class that recursively builds a 'tree' . This Java class works as I expected without problem. I am able to write out this 'tree" to the console "line by line" with proper indentation.
    The problem occurs when I try to iterate through this 'tree' in the public static void main(String[] arg) method -- Each line in the tree is an Array. And I have to declare this Array (called titleArray in my code) non-static; otherwise, I end up with picking up the very last line of my hard-coded data.
    Besides, I also have to declare the List (called recursiveTextArray in my code) non-static; otherwise, I end up with picking up the first Array that I ever build and run into endless iterations till the heap size is exhausted. Note that each element of that List is an Array object.
    Then, this non-static Array and this non-static List cannot be accessed in the public static void main(String[] arg) method.
    What should I do?
    Here is my code that works without problem (the one I do not access the 'titleArray' in the main(String[] arg) method):
    import java.util.Iterator;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Date;
    import java.awt.Color;
    import com.aspose.words.*;
    public class OplanPhase
         public static void main( String[] args)
              OplanPhase root = new OplanPhase( "", "Oplan 50XX - Phase I" );
              OplanPhase objective1 = new OplanPhase( "OO-3.1", "Destroy enemy conventional ground forces" );
              OplanPhase objective2 = new OplanPhase( "OO-3.2", "Destroy enemy conventional air forces" );          
              OplanPhase objective3 = new OplanPhase( "OO-3.3", "Destroy enemy conventional naval forces" );
              OplanPhase objective4 = new OplanPhase( "OO-3.4", "Influence opposition groups within enemy areas to support friendly forces" );
              OplanPhase effect1 = new OplanPhase( "TgtObj-3.1", "Locate, identify, and destroy key enemy C2 nodes" );
              OplanPhase effect2 = new OplanPhase( "TgtObj-3.2", "Locate, identify, and destroy key enemy C2 nodes" );          
              OplanPhase effect3 = new OplanPhase( "CFSOCC-3.2", "influence enemy opposition groups to support friendly forces campaign objectives" );
              OplanPhase effect4 = new OplanPhase( "JFMECC-3.3", "Destroy SLOC interdiction vessels" );
              OplanPhase effect5 = new OplanPhase( "CFSOCC-3.4", "Influence enemy opposition groups to support friendly forces campaign objectives" );     
              OplanPhase moe1 = new OplanPhase( "MOE-TO-3.1", "Conduct surveillance to locate and identify key enemy C2 nodes" );
              OplanPhase moe2 = new OplanPhase( "MOE-JFSOC-3.1", "Degree of cooperative effort with area opposition groups" );
              OplanPhase moe3 = new OplanPhase( "MOE-JFSOC-3.2", "Number of combined missions successfully completed with opposition groups" );
              OplanPhase moe4 = new OplanPhase( "MOE-JFSOC-3.3", "Number of combined missions successfully completed with opposition groups" );
              OplanPhase task1 = new OplanPhase( "TASK-TO-3.1", "Destroy key enemy C2 nodes" );
              OplanPhase task2 = new OplanPhase( "TASK-TO-3.2", "Conduct surveillance to locate and identify key enemy C2 nodes" );
              OplanPhase task3 = new OplanPhase( "TASK-TO-3.3", "Destroy key enemy C2 nodes" );
              OplanPhase task4 = new OplanPhase( "TASK-JFSOC-3.1", "Degree of cooperative effort with area opposition groups" );
              root.addSubLevel( objective1 );
              root.addSubLevel( objective2 );
              root.addSubLevel( objective3 );
              root.addSubLevel( objective4 );
              objective1.addSubLevel( effect1 );
              objective2.addSubLevel( effect2 );
              objective2.addSubLevel( effect3 );
              objective3.addSubLevel( effect4 );
              objective4.addSubLevel( effect5 );
              effect1.addSubLevel( moe1 );
              effect1.addSubLevel( task1 );
              effect2.addSubLevel( task2 );
              effect2.addSubLevel( task3 );
              effect3.addSubLevel( moe2 );
              effect3.addSubLevel( moe3 );
              effect5.addSubLevel( task4 );
              effect5.addSubLevel( moe4 );
              root.outputAllWithIndentation( 0 );
         private String[] titleArray = { "", "", "" };
         private int indentation = 0;
         private List<OplanPhase> subLevels = new ArrayList<OplanPhase>();
         private List recursiveTextArray = new ArrayList();
         public OplanPhase( String foo, String bar )
              titleArray[1] = foo;
              titleArray[2] = bar;
         public void addSubLevel( OplanPhase op )
              subLevels.add( op );
         public void outputAllWithIndentation( int level )
              indentation = level;
              titleArray[0] = indentString( indentation );
             System.out.println( titleArray[0] + "[" + titleArray[1] + "] " + titleArray[2] );
             recursiveTextArray.add( titleArray );
              for ( int i = 0; i < subLevels.size(); i++ )
                   ( ( OplanPhase )subLevels.get( i ) ).outputAllWithIndentation( level + 1 );
         private static String indentString( int count )
              String blank = "";
              for ( int i = 0; i < count; i++ )
                   blank = blank.concat( "   " );
              return blank;
    }And the code below gives me the static and non-static problem:
    import java.util.Iterator;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Date;
    import java.awt.Color;
    import com.aspose.words.*;
    public class OplanPhase
         public static void main( String[] args)
              OplanPhase root = new OplanPhase( "", "Oplan 50XX - Phase I" );
              OplanPhase objective1 = new OplanPhase( "OO-3.1", "Destroy enemy conventional ground forces" );
              OplanPhase objective2 = new OplanPhase( "OO-3.2", "Destroy enemy conventional air forces" );          
              OplanPhase objective3 = new OplanPhase( "OO-3.3", "Destroy enemy conventional naval forces" );
              OplanPhase objective4 = new OplanPhase( "OO-3.4", "Influence opposition groups within enemy areas to support friendly forces" );
              OplanPhase effect1 = new OplanPhase( "TgtObj-3.1", "Locate, identify, and destroy key enemy C2 nodes" );
              OplanPhase effect2 = new OplanPhase( "TgtObj-3.2", "Locate, identify, and destroy key enemy C2 nodes" );          
              OplanPhase effect3 = new OplanPhase( "CFSOCC-3.2", "influence enemy opposition groups to support friendly forces campaign objectives" );
              OplanPhase effect4 = new OplanPhase( "JFMECC-3.3", "Destroy SLOC interdiction vessels" );
              OplanPhase effect5 = new OplanPhase( "CFSOCC-3.4", "Influence enemy opposition groups to support friendly forces campaign objectives" );     
              OplanPhase moe1 = new OplanPhase( "MOE-TO-3.1", "Conduct surveillance to locate and identify key enemy C2 nodes" );
              OplanPhase moe2 = new OplanPhase( "MOE-JFSOC-3.1", "Degree of cooperative effort with area opposition groups" );
              OplanPhase moe3 = new OplanPhase( "MOE-JFSOC-3.2", "Number of combined missions successfully completed with opposition groups" );
              OplanPhase moe4 = new OplanPhase( "MOE-JFSOC-3.3", "Number of combined missions successfully completed with opposition groups" );
              OplanPhase task1 = new OplanPhase( "TASK-TO-3.1", "Destroy key enemy C2 nodes" );
              OplanPhase task2 = new OplanPhase( "TASK-TO-3.2", "Conduct surveillance to locate and identify key enemy C2 nodes" );
              OplanPhase task3 = new OplanPhase( "TASK-TO-3.3", "Destroy key enemy C2 nodes" );
              OplanPhase task4 = new OplanPhase( "TASK-JFSOC-3.1", "Degree of cooperative effort with area opposition groups" );
              root.addSubLevel( objective1 );
              root.addSubLevel( objective2 );
              root.addSubLevel( objective3 );
              root.addSubLevel( objective4 );
              objective1.addSubLevel( effect1 );
              objective2.addSubLevel( effect2 );
              objective2.addSubLevel( effect3 );
              objective3.addSubLevel( effect4 );
              objective4.addSubLevel( effect5 );
              effect1.addSubLevel( moe1 );
              effect1.addSubLevel( task1 );
              effect2.addSubLevel( task2 );
              effect2.addSubLevel( task3 );
              effect3.addSubLevel( moe2 );
              effect3.addSubLevel( moe3 );
              effect5.addSubLevel( task4 );
              effect5.addSubLevel( moe4 );
              root.outputAllWithIndentation( 0 );
              try
                  Iterator it = recursiveTextArray.iterator(); //compilation error
                  while ( it.hasNext() )
                       for ( int i=0; i<titleArray.length; i++ ) //compilation error
                            if ( i == 0 )
                                 System.out.println( titleArray[0] ); //compilation error
                            } else if ( i == 1 )
                                 System.out.println( "[" + titleArray[1] + "] " ); //compilation error                             
                            } else if ( i == 2 )
                                 System.out.println( titleArray[2] ); //compilation error
              } catch (Exception e)
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         private String[] titleArray = { "", "", "" };
         private int indentation = 0;
         private List<OplanPhase> subLevels = new ArrayList<OplanPhase>();
         private List recursiveTextArray = new ArrayList();
         public OplanPhase( String foo, String bar )
              titleArray[1] = foo;
              titleArray[2] = bar;
         public void addSubLevel( OplanPhase op )
              subLevels.add( op );
         public void outputAllWithIndentation( int level )
              indentation = level;
              titleArray[0] = indentString( indentation );
             System.out.println( titleArray[0] + "[" + titleArray[1] + "] " + titleArray[2] );
             recursiveTextArray.add( titleArray );
              for ( int i = 0; i < subLevels.size(); i++ )
                   ( ( OplanPhase )subLevels.get( i ) ).outputAllWithIndentation( level + 1 );
         private static String indentString( int count )
              String blank = "";
              for ( int i = 0; i < count; i++ )
                   blank = blank.concat( "   " );
              return blank;
    }

    What should I do?If you feel you need to cross-post, you should have the courtesy to provide a
    link to the other post/s.
    http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=1&t=016129

  • How to create java classes when multiple xsd files with same root element

    Hi,
    I got below error
    12/08/09 16:26:38 BST: [ERROR] Error while parsing schema(s).Location []. 'resultClass' is already defined
    12/08/09 16:26:38 BST: [ERROR] Error while parsing schema(s).Location []. (related to above error) the first definition appears here
    12/08/09 16:26:38 BST: Build errors for viafrance; org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.7.1:generate': Mojo execution failed.
    I tried genarate java classes from multiple xsd files, but getting above error, here in .xsd file i have the <xe: element="resultClass"> in all .xsd files.
    So I removed all .xsd files accept one, now genarated java classes correctly. but i want to genarte the java classes with diffrent names with out changing .xsd
    Can you please tell me any one how to resolve this one......
    regards
    prasad.nadendla

    Gregory:
    If you want to upload several Java classes in one script the solution is .sql file, for example:
    set define ?
    create or replace and compile java source named "my.Sleep" as
    package my;
    import java.lang.Thread;
    public class Sleep {
    public static void main(String []args) throws java.lang.InterruptedException {
    if (args != null && args.length>0) {
    int s = Integer.parseInt(args[0]);
    Thread.sleep(s*1000);
    } else
    Thread.sleep(1000);
    create or replace and compile java source named "my.App" as
    package my;
    public class App {
    public static void main(String []args) throws java.lang.InterruptedException {
    System.out.println(args[0]);
    exit
    Then the .sql file can be parsed using the SQLPlus, JDeveloper or SQLDeveloper tools.
    HTH, Marcelo.

  • Need help with tomcat 5.5 and using java classes

    hey there,
    i am trying to set up tomcat 5.5 on my computer at home and have sucessfully done so. i have been trying to use Java classes inside my JSP files however tomcat thows an internal servlet error as follows:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 144 in the jsp file: /order.jsp
    Generated servlet error:
    ProductList cannot be resolved to a type
    An error occurred at line: 144 in the jsp file: /order.jsp
    Generated servlet error:
    ProductList cannot be resolved to a type
    An error occurred at line: 144 in the jsp file: /order.jsp
    Generated servlet error:
    Product cannot be resolved to a type
    i have the classes located as the setup tutorial recommends (root/WEB-INF/classes/) and still nothing works. i would appreciate any help anyone can give.
    thanks,

    Which tutorial are you following?
    As of java1.4, all classes must be in packages for them to work in Tomcat. This means your beans and servlets too.
    Put your beans in a package, and then recompile them, and put them in the right place.
    eg
    package com.mypackage
    public class MyClass ...
    once compiled would go into WEB-INF/classes/com/mypackage/MyClass.class
    Are you using Product and ProductList classes in scriptlet code?
    Have you imported them with a page directive
    <%@ page import="com.mypackage.Product, com.mypackage.ProductList" %> ?

  • How to insert/update Date field in Oracle with java code

    Dear All
    I have to insert/update a date column while creating a new item, but the problem is i am able to insert/update only date but i need both date and time along with AM/PM.
    By using these 3 lines i am able to insert/update only date.
    java.util.Date date = new java.util.Date();
    long dateLong = date.getTime();
    stmtPrep.setDate(33, new java.sql.Date(dateLong));
    Below code retrives the date exactly what i need but unable to pass in the statement:
    DateFormat formatter = new SimpleDateFormat("dd-MM-yyyy HH:mm:ss a");
    java.util.Date d = (Date) new java.util.Date();
    String stringdate = formatter.format(d);
    String tmpdate = dateFormat();
    stmtPrep.setString(33, tmpdate); -- I tried with setObject as well but same error coming.
    Error is:
    ORA-01830: date format picture ends before converting entire input string
    Can u guide me how to get full date time with AM/PM?

    sasikrishna wrote:
    Dear All
    I have to insert/update a date column while creating a new item, but the problem is i am able to insert/update only date but i need both date and time along with AM/PM.
    By using these 3 lines i am able to insert/update only date.
    java.util.Date date = new java.util.Date();
    long dateLong = date.getTime();
    stmtPrep.setDate(33, new java.sql.Date(dateLong));That's by design. A java.sql.Date object matches an SQL DATE column (which doesn't include a time component). If you want something which matches an SQL TIMESTAMP colum (which includes both date and time components) then you should use a java.sql.Timestamp object.

  • FR Studio - Is there a workaround for the issue with referencing data from a grid with a different DB connection and different # of dimensions?

    Hi,
    I am trying to reference a column in a different grid with a different database connection. I did some research in the forums, and it seems like this is a known issue with FR Studio. The issue is that if the 2 different database connections have different # of dimensions, then the reference will throw an error.
    For example, what I'm trying to do is below:
    In grid2.column[A], I have the following formula:
    grid1.column[A]
    The result is an error.
    The ultimate goal is to have a basic variance formula in the grid between grid1 and grid2, which have different database connections with a different # of dimensions. Is there a workaround at all to this bug? The example of the basic formula is below:
    grid1.column[A] - grid2.column[A] 
    Any help is much appreciated!
    Thanks,
    Tiffany

    Thanks for the detailed response Mike.
    The issue with trying it in Grid1 vs Grid2 is that Grid1's DB connection has more dimensions than Grid2's DB connection. I can't change the DB connection to a database with more dimensions because you have to be able to map all dimensions from the existing DB connection  (Grid1) to the new DB connection (Grid2). This isn't possible, so instead I have to map Grid2 (less dimensions) to Grid1 (more dimensions). It just ignores the extra dimensions from Grid1. Does that make sense?
    Thanks again for your responses. It's very much appreciated.
    Tiffany

  • Recently, whe i upgrade de medatada in my files, when i select about 40.000 Photos, the program created files with 0 bytes of size and created another with extencion .tmp, whtas is the problem, sorry for my english

    Thanks

    Just an update... A rep contacted me and we did a screen share. They were convinced that I wasn't full of <insert proper word here>. They promised to get back to me in a few days, and now? A few months later? Nothing.
    Still no files. Still no correction... Still no nothing from Adobe.
    The person I spoke to was kind, saying he'd make sure I got CC for free for a while...
    Still though, no follow up.
    Adobe, are you going to correct this or just let your customer suffer at your mistakes?

  • Problem with action script from Schewe and Frasier book.

    I am working on a Photoshop CS3 action script to
    open raw files, do a couple of modifications
    in Camera Raw, exit camera raw and save
    the file as a jpeg.
    I think this should work, because I am working
    on an example out of "Camera raw with Adobe
    Photoshop CS3" by Schewe and Frasier which
    shows the step recorded.
    See page 344 of Schewe and Frasier.
    In figure 9-11 you see, after the open
    statement, 10 lines of details like
    "As camera raw"
    "Model:Canon 350d" etc.
    I get the file path and name line, but
    none of the other details reflecting
    actions in Camera Raw.
    The problem is that in setting up the action, none
    of the steps done in camera raw after I do the
    open get recorded.
    And it works in my old CS version !
    Out of frustration I repeated the action
    script creation in my old CS version and
    it worked fine.
    Any idea where I am screwing up ?

    Crappy format justification:
    I sometimes have a day of family
    type pictures that are in raw format
    that I want to put up on the internet
    quickly. I would like to be able to
    apply the "Auto" feature, as in general
    it seems to be pretty good for something
    quick.
    OK, it sorta works in CS, go here
    http://www.angelplace.net/photos/sample.jpg
    It sets up all of the details and gets the
    "As camera raw" but opens the .dng file
    rather than the Camera raw window.
    The point is, these important settings
    seem to be saved, which does not happen
    in CS3.

  • Can anyone help me with a script to pause and restart an application?

    I am setting up a Mini to control a Canon still camera, using Canons EOS utility app to shoot at a certain interval. However I would like to pause the action during the night. In my dreams I also would like to read the countdown of the EOS app to remotely start a timer that starts and stops a spinning glass (rain deflector), via USB?
    I realize that these are two different tasks, but are they possible?
    To break it down:
    1. At a certain time (8pm) to pause the application, so the result is that the camera stops shooting.
    At 7am the action is to resume.
    I would rather not quit the applications since I would loose my settings, interval and camera settings
    2. The EOS app is counting down towards the next shot. The action I would like is that 1 min, prior to the end of countdown a pulse is given (via USB?) to the relay controlling the rain deflector.
    That relay runs it for 2 mins and then powers down.
    I have this set up analog now, with 2 relays and it works fine, however it would be nice to be able to remotely change the interval setting of the camera and the rain deflector would follow suit.
    Any input would be greatly appreciated.

    I can help you for the future.  Regularly back up your computer to an external hard drive (or cloud alternative).  If you have your library backed up, it could be reinstalled on your new computer.  In your current situation, you will have to reload all of your CDs as syncing of non-iTunes purchased music is only one way (Computer to iPod)

  • Problem with afh:script af:selectInputText and af:message

    Hi, I have some weird problem. I want to do some features on my jspx page.
    I have to include javascript file to perform some operation which are in it.
    When I use <script> tag in head section I can't execute <af:selectInputText> to show me popup. I see only one component in my popup which is <af:selectInputText> I clicked.
    When I change <script> tag to <afh:script> problem has gone, but I found other issue.
    <afh:script> makes that I can't show messages added to <af:message> in valueChangeListener. Messages added in bean actions work fine.
    I can't use <script> with <af:selectInputText> .because <af:selectInpuText> doesn't lunch properly
    I can't use <afh:script> with <af:message> becuse I don't see messages added in valueChangeListeners
    How can I fix this problem.

    Hi,
    I have a clue of which JDeveloper version you are using, but then I am not fancying to guess. So can you please provide the release information ?
    Regarding the message not showing in the ValueChangeListener, can you verify this to work under normal conditions?
    thanks
    Frank

  • Issue with Task Control Call back and Event Choice in WLI BPM 8.1

    Hi,
    I am using a Task Control Factory to create Task Control Instances in a loop
    and then
    create tasks and assign them to a predefined group. I have an event choice
    for two events
    waiting for the onTaskCompleted and onTaskAborted event call backs.
    I have two such operations (of task creation) in the same loop. For
    simplicity I have used two separate task factory controls for each of the
    tasks (because I even had worse problems using a single control factory for
    both tasks in the same loop).
    When I instantiate the process, through work list I am able to claim, start
    and complete the first task. When I try the same procedure (claim, start and
    complete) on the second task, the the event choice for the corresponding
    task receives 2 event call backs. First it receives the onTaskCompleted as
    expected, but then it also received another call back of the same type which
    displays the error on the server log as:
    <Sep 24, 2003 9:43:56 AM EDT> <Warning> <WLW> <000000> <on process
    completion, 1 undelivered messages to
    'sampleRequestTaskFactoryCtrl_onTaskCompleted'>
    <Sep 24, 2003 9:43:56 AM EDT> <Warning> <WLW> <000000> <ejbLoad:
    Conversation 1064411008439:null not found>
    <Sep 24, 2003 9:43:56 AM EDT> <Warning> <WLW> <000000> <A message was unable
    to be delivered from a WLW Message Queue. Attempting to deliver the
    onAsyncFailure event>
    <Sep 24, 2003 9:43:56 AM EDT> <Warning> <WLW> <000000> <ejbLoad:
    Conversation 1064411008439:null not found>
    Does anybody know why two events are fired for the same work list action?
    Thanks in advance.
    Henry M

    Henry,
    Please post this question on the weblogic.developer.interest.integration
    newsgroup.
    Regards,
    Raj Alagumalai
    Backline Workshop Support
    "Henry Mugasha" <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    I am using a Task Control Factory to create Task Control Instances in aloop
    and then
    create tasks and assign them to a predefined group. I have an event choice
    for two events
    waiting for the onTaskCompleted and onTaskAborted event call backs.
    I have two such operations (of task creation) in the same loop. For
    simplicity I have used two separate task factory controls for each of the
    tasks (because I even had worse problems using a single control factoryfor
    both tasks in the same loop).
    When I instantiate the process, through work list I am able to claim,start
    and complete the first task. When I try the same procedure (claim, startand
    complete) on the second task, the the event choice for the corresponding
    task receives 2 event call backs. First it receives the onTaskCompleted as
    expected, but then it also received another call back of the same typewhich
    displays the error on the server log as:
    <Sep 24, 2003 9:43:56 AM EDT> <Warning> <WLW> <000000> <on process
    completion, 1 undelivered messages to
    'sampleRequestTaskFactoryCtrl_onTaskCompleted'>
    <Sep 24, 2003 9:43:56 AM EDT> <Warning> <WLW> <000000> <ejbLoad:
    Conversation 1064411008439:null not found>
    <Sep 24, 2003 9:43:56 AM EDT> <Warning> <WLW> <000000> <A message wasunable
    to be delivered from a WLW Message Queue. Attempting to deliver the
    onAsyncFailure event>
    <Sep 24, 2003 9:43:56 AM EDT> <Warning> <WLW> <000000> <ejbLoad:
    Conversation 1064411008439:null not found>
    Does anybody know why two events are fired for the same work list action?
    Thanks in advance.
    Henry M

Maybe you are looking for