Forms Developer 10g Release 2 - new features?

Hi,
Does anybody know if Forms Developer 10g Release 2 (10.1.2) is any different from Forms Developer 10g (9.0.4)?
I wasn't able to find a document with new features.

<p>I am sure the link was under your eyes ;o)
<br>
http://www.oracle.com/technology/products/forms/techlisting10gR2.html<br>
Oracle Forms 10g Technical Overview</p>

Similar Messages

  • Unable to run forms in oracle forms developer 10g

    I am using oracle forms developer 10g on oracle application Release 12.
    When i run form i am getting error that weblistener is not running on default port 8888. Then i changed it to 8000. But still i am not able to run the forms.

    Nivas,
    In addition to running OC4J, you must also have your browser configured to use a Java Runtime Environment. The easiest - and preferred - method is to install the Oracle JInitiator as there is not configuration needed other than the installation. You can also use Sun's JRE, but you would have to research how to configure your PC correctly. The other option is to change your FormsWeb.cfg file to use the Browser Native JRE. Edit the formsweb.cfg file and find the IE= directive. The Default is IE=jinitiator. Change this to IE=Native, save your changes and you are done. This is not the preferred solution, but it does work.
    Craig...

  • Oracle Forms Developer 6i Release 2 for NT

    Hello,
    I have a couple of questions. I just downloaded the Oracle9iAS
    Forms Services and Oracle Forms Developer 6i Release 2 for NT.
    Is it a trial version? Does it expire after a certain time. Or
    is it a limited feature version. I couldn't find any info about
    this on the Oracle website.
    Regards,
    Tam

    AS with all the downloads on otn this is a full version with no
    time limit. But you are under the OTN license which says that
    you have to purchase the product if you are developing
    production applications with it. Its free for evaluation and
    personal education purposes.

  • Oracle Forms Builder 10g release 2 documentation?

    I'm trying to locate a book about Oracle Forms Builder 10g release 2. I'm needing a beginner's guide. I've seen the advanced techniques one, but I can't seem to find one for someone that is just starting out. Does anyone have any suggestions?

    There are a couple of books by Albert Lulushi that will give you the basics you can build upon. These are older books, but the concepts they present are still valid.
    <ul>
    <li>Developing Oracle Forms Applications (Aug 1996)
    <li>Oracle Forms Developer's Handbook (Dec 2000)
    </ul>
    Probably more helpful would be some online tutorials. Again, some of these are a little old, but the concepts are still valid for Forms 10g and 11g.
    Although a few of the following links are for older Forms versions, the concepts are still valid across all Forms versions.
    <ul>
    <li>A Tutorial on Oracle9i Forms and Reports
    <li>Tutorial for Oracle10g Forms / Reports
    <li>iSelfSchooling - Basic Introduction to Forms
    <li>Oracle Forms 10g: Demos, Tips and Techniques
    </ul>
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Blank browser when run oracle form developer 10g

    Hi, all
    I'm newbie on oracle developer.
    I'm using oracle form developer 10g, database also 10g and default browser firefox.
    I made a form n give EMPLOYEE_MDL for the name.
    I got problem when i try to run form, first time shown "*ORACLE FORMS.*" on browser and then the browser getting blank(just white space), the url is:
    http://red-erie:8889/forms/frmservlet
    Hope you can help me.
    Regards n Thanks
    eRie

    It worked for me in Windows 7 Home premium, both in 32 and 64 bit operating systems...
    What I did was,
    After successful instalaltion of developer suite, I've installed latest JRE from www.java.com and configured formsweb.cfg and default.env file.
    I've used IE8 only. I haven't tested on any other browsers.
    Do modify these lines to configure formsweb.cfg to change to JRE from Jinitiator (As said by CraigB )
    # Page displayed to users to allow them to download Sun's Java Plugin.
    # Sun's Java Plugin is typically used for non-Windows clients.
    # (NOTE: you should check this page and possibly change the settings)
    ### Original
    #jpi_download_page=http://java.sun.com/products/archive/j2se/1.4.2_06/index.html
    ### New
    jpi_download_page=http://www.oracle.com/technetwork/java/javase/downloads/index.html
    # Parameter related to the version of the Java Plugin
    ### Original
    #jpi_classid=clsid:CAFEEFAC-0014-0002-0006-ABCDEFFEDCBA
    ### New
    jpi_classid=clsid:CAFEEFAC-0016-0000-0024-ABCDEFFEDCBA
    # Parameter related to the version of the Java Plugin
    ### Original
    #jpi_codebase=http://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows-i586.cab#Version=1,4,2,06
    ### New
    jpi_codebase=http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#Version=1,6,0,24
    # Parameter related to the version of the Java Plugin
    ### Original
    #jpi_mimetype=application/x-java-applet;jpi-version=1.4.2_06
    ### New
    jpi_mimetype=application/x-java-applet;jpi-version=1.6.0_24I also recommend you change the following variable as well.
    # System parameter: base HTML file for use with JInitiator client
    #baseHTMLjinitiator=basejini.htm
    baseHTMLjinitiator=basejpi.htmEdited by: Charan on Jul 1, 2011 8:46 AM

  • IZo-045 Oracle Database 10g DBA New Features for Oracle8i OCPs exam

    I am preparing for IZO-045 Oracle Database 10g DBA New Features for Oracle8i OCPs exam, wanted to know in order to pass the exam,
    Is it enough to read the exam topics mentioned on the following webpage.
    http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&p_exam_id=1Z0_045
    I really apreciate if someone who already passed this test like to share his/her experience.
    Regards
    Muhammad Ali

    muhammadali wrote:
    I am preparing for IZO-045 Oracle Database 10g DBA New Features for Oracle8i OCPs exam, wanted to know in order to pass the exam,
    Is it enough to read the exam topics mentioned on the following webpage.
    http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&p_exam_id=1Z0_045
    I really apreciate if someone who already passed this test like to share his/her experience.
    Regards
    Muhammad AliOkay I've haven't done 1z0-045 ... but I at one point I was considering 1z0-050 so I'm willing to share my views on an upgrade exam and exams in general.
    Remember Oracle are trying to ensure that a DBA who was tested at 8i DBA OCP has nw
    It depends on your definition of read the topics. If you mean literally just read the topics then that will result in a failure. If you mean study research practice and fully understand the topics that should lead to a pass.
    Bear in mind that Oracle would expect a competent 8i DBA attending the 5 day training course Oracle Database 10g: New Features for Oracle8i DBAs [http://education.oracle.com/web_prod-plq-dad/plsql/show_desc.redirect?dc=D17389GC10&p_org_id=&lang=&source_call=] to be able pass the exam with perhaps 2 to 4 weeks further study, revision and practice.
    Interestingly this particular exam has a relatively high pass mark (73%) ... one implication of that is that it is prudent to be comfortable with all topics.
    Generally an upgrade exam will cover topics beyond that of the straight OCA/OCP exams. The questions will obviously be at OCP level.
    It is possilble the Sybex book Oracle 10g New Features for Administrators Study Guide (Certification Study Guide) ISBN-13: 978-0782143553 which although for 1z0-040 may have some relevance for some of your topics. If you choose to purchase it that is your choice. (It seems to have good amazon reviews ... though all of these books can contain errors, it may or may not be updated for 10gR2, and some Sybex Oracle books are sometimes OTT in some areas IMHO, but that wouldn't stop me using one).

  • WHEN-MOUSE-ENTER ? Developer 10g release 2

    Developer 2.1
    WHEN-MOUSE-ENTER
    but developer 10g release 2 not exists this trigger
    ?

    Hi!
    Can somebody tell me why triggers WHEN MOUSE LEAVE and WHEN MOUSE ENTER don't execute on web?
    What shall I use instead?
    null

  • Run form developer 10g

    Hi, i installed forms developer 10g and when i try tu run a form, open de browser but inmediatly appears a message 'internet explorer not working' and close the internet explorer.
    I setted the application server URL and
    web browser location
    check the port 8899
    How can i do ?
    Regards

    OC4J in Developer Suite is started manually. On Windows installation, a shortcut is created for you. It will appear as "Start OC4J Instance" with the other shortcuts used for Forms, for example the one used to start the Builder. When you start OC4J a DOS window will appear. Do NOT terminate this window or OC4J will be terminated.
    Typically, there is no reason to change anything after the installation has been completed. The only settings which need to be made are those on the RUNTIME tab in the Builder, but this has nothing to do with actually running the form from the Builder. These settings simply determine how to pass the necessary URL from the Builder to a browser in order to start a form.

  • New REACh Release - new features and ramp up

    Hi, when is the next release of REACh available and what are the new features? When does ramp up begin?

    Michael,
    thanks for rising this questions here since this thread/forum is a good way to discuss product requirements in a broader community so that we can consider meanings/ideas from a broader group of stakeholders. And i think that your points require a broader discussion in order to find the right answer at the end. Let me therefore comment as follows on your remarks hoping that others will join this discussion:
    1. Legal entitiy specific uses: It is clear that uses might be different across legal entities and registrations of each legal entities might refer to different uses. Nevertheless the idea of SAP REACH Compliance is to collect uses centrally and to let the registrant decide to pick up those uses for the registration which seems to be relevant for the Legal entitiy he or she is responsible for. The REACH coverage check we provide in our solution refers to coverage of endpoints - not to coverage of uses which is at the end as said a decision made by the registrant based on a complete inventory of known uses. Therefore we didn´t saw the need to maintain the relationship of use and legal entity in SAP REACH Compliance so far but before considering this for the product roadmap I would like to get opinions from other companies as well since this would be a major investment/enhancement of the solution. So anyone else reading this poste pleas feel free to comment here - highly appreciated.
    2. Exposure scenarios in SAP REACH Compliance: First of all it is important to understand what SAP REACH Compliance is and what is not. The main objectiv of our solution is to fill white gaps and giving support to areas which are not covered by other applications whether they come from ECHA (like IUCLID5) or from industry organizations like CEFIC (REACHsief). To make it more concrete: IUCLID5 was designed for the authorities to receive technical registration dossier to ease correctness check and dossier evaluation. But IUCLID5 does not give management support to those who has to gather data and ellaborate dossiers. That is what SAP´s solution does complementary to IUCLID5. The same shall apply for Exposure scenarios, Chemical Saftey Assessessments and Chemical Safety Reports. ECHA has announced to provide a CSA/CSR tool - so it makes no sense to to this in SAP but to use our application complimentary to that compared to IUCLID5. And Exporsure scenarios? The issue here is that not all guidance documents are released or even published or finalized. So we would shoot here on a moving target which makes no sense. But beside of that there are already scientific tools in place (like ECETOC TRA) that are specialized in calculation of exposures (scenarios) independent of REACH and in most cases already used in tox departments and which compliments therefore our solution as well. Is it really useful that a business software company provides scientific tools like that or isn´t it  better to build our solution complimentary to those? Consequence: REACh guidance documents propose mass communication on use descritpor model with many customers and suppliers. This is what we provide in our solution based on beneficial integration into SAP ERP with all its business partner contact data and sales and purchasing related information like purchase info records. But mass mailings based on "descriptor models for exposure scenario" are unlikely to happen and most likely not to be manageable. With regards to ES I see more a case to case communication for unusual uses or with key customers only which is more document driven than structured like the use descriptor model. And that is what you can do with SAP REACH Compliance - assigning documents describing an ES to uses and sending this to business partners. Remains the question whether it is useful at all to maintain ES in SAP (except from assigning document based ES to uses). The point is that ES are work center specific but not susbtance specific. So it might make sense to maintain ES in SAP EH&S component for industry health & safety (IHS) in order to become aware of own Exposure scenarios. But at the end you will define ES that are as much as possible generic covering as many uses as possible and providing this via a document asking for approval by your business partners. And run calculations and risk assessemtns a said in scientific tools from niche vendors specialising in toxicological applications.
    Gladly feedback / comments from the community whether this is a correct perception.
    Kind rgds Marko

  • Issues in calling Sql Loader through forms developer (10g)

    Hi,
    I am developing a form(in 10g) ,in which I am calling sql loader for loading data onto a oracle database table from external source (e.g. data file is a .CSV file).
    But , somehow the sql loader is not getting executed.
    Here , I am giving the environment settings , approach i am taking;
    This is a distributed system , both the application server,and database server are mounted on two different servers.
    The form is delpoyed on the application server.
    The database table , and the sql loader are configured on the databse side.
    I am using host(<sql loader command>) command to invoke the Operating System command through forms.
    The sql loader is working ok , and the data is getting loaded successfully onto the required database table when I am executing the sql loader command on Unix prompt , but through the forms , it's not working.
    Do I need to change some environmental setting to make this work...
    Any quick help in this regard is highly appreciated.
    Thanks.

    Hi Craig,
    I have already tried out the option of calling sql loader through stored procedure,but this is not working ...
    could you please share any examples to do so ...
    code snippet i am using in forms:
    declare
    usid get_application_property(userid);
    pwd get_application_property(password);
    db get_application_property(host);
    msqlldr varchar2(250);
    begin
    msqlldr:='/u01/oracle/formss/bin/sqlldr' username=<uid/pwd@db> control=<control file name> data=<data file name> log=<log file name>
    hosts(msqlldr);
    end;
    Note that sqlldr command ,for that matter any unix shell command is not working through the hosts() command ...
    could you please suggest any way out ...
    Thanks.

  • Oracle Form Developer 10G Version ?

    Could you please let me know which version is realsed for Form develper 10G and from where i can get its user/developer guide.

    Also check metalink for updates. There is a 10gR1 Forms Builder technical version 9.0.4 and there is a 10gR2 Forms Builder technical version 10.1.2.0.2. For both versions there are updates available.

  • LR beta released - new features for ACR 7

    I was just reading about the LR beta for version 4: http://www.dpreview.com/articles/7481161037/lightroom-4-public-beta-whats-new
    Although I'm not a LR user, I was excited to see the new editing features, as they will be essentially the same as the next version of ACR that will be part of PS CS6 (all guesswork on my part of course, but as Adobe has always done this previoulsy I don't think it's much of a leap of faith to make). A few features and changes that stood out for me:
    They've re-vamped the basic tools, and have a new Process Version 2012;
    Localised adjustments now allow you to adjust white balance and noise reduction;
    Curves tool allows you to work on individual RGB channels.
    This looks set to be a major upgrade IMHO.
    M

    I've been testing new features for a while
    I'm quite satisfied with a new automatic recovery procedure. Just that ... it will probably raise new posts about mismatching between camera profiles and in-camera jpegs, because when a photo has blown parts, recovery kicks in automatically. Also, in some (rare) cases I would just want to have it off ... so maybe having a whites slider with 'auto' check box or something similar would be a better solution ... Anyway, finally I can say that dealing with highlights is now even better than in Canon cameras / software, which have similar solution for at least 5 years ...
    Since R and B channel, that can be blown by WB, are now also recovered, resulting hue of blown parts is now different than with PV2003/2010. If G and B are blown, resulting hue is around 200 deg (instead 180 previously), which looks more natural for parts of blown sky. If R and G are blown, resulting hue is around 40-50 (instead 60 previously), which is ok for blown areas around sun in sunset photos etc but ... in some rare cases there can be blown foliage colors and it doesn't look particularly good when blown green turns light brown ... So a slider to deal with hue in blown parts for brush tool would be fine somewhere in the future, because painting that areas with some color doesn't produce desired result ...
    Getting rid of defaults from the past (brightness +50, contrast +25, blacks 5,. medium-contrast curve) is also nice, as it didn't make any sense with camera profiles
    I'm also glad that clarity is now usable for me, so I don't have to apply wide radius USM in PS anymore ... The same with highlight & shadows tool, that is now implemented here ... etc ...

  • Greek (alfa) character in forms developer 10g

    Hi everyone,
    I'm trying to assign the first letter of the Greek alphabet to a text_item, but I don't know how to get it. I get no problem when trying to show ß using chr(223) or µ using chr(181) but no idea how to write the alfa char.
    By the way, registry/server/client settings cannot be modified in the environment, so the solution should be done inside forms developer, as in this case is a "developer problem" ( mine's :( ).
    Any idea?
    Thanx in advance.
    Regards

    Hi,
    May be this link will help
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/sql_elements002.htm#g195937
    declare
    i number := 1;
    res varchar(10);
    begin
    loop
    select chr(i) into res from dual;
    dbms_output.put_line(i||' , '||res);
    i := i+1;
    exit when i=255;
    end loop;
    end;

  • Weight scale input into oracle forms developer 10g

    Dear All Experts
    it is request to you kindly guide me full code and description of
    weight scale device input in oracle form show digits continuously in form 10g kindly proved me data device connect through port so plz help me

    Make a PJC (plugable java component) and look at RXTX library for java...
    I have done a PJC  to use a POS terminal over RS232 from oracle forms..
    It's not complicated..
    here is my example for POS terminal and RXTX library (JControl)
    [code]
    package in2.pos;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Arrays;
    import java.util.Enumeration;
    import java.util.Properties;
    import java.util.ResourceBundle;
    import java.util.StringTokenizer;
    import javax.swing.JOptionPane;
    import oracle.forms.handler.IHandler;
    import oracle.forms.properties.ID;
    import oracle.forms.ui.CustomEvent;
    import oracle.forms.ui.VBean;
    import gnu.io.*;
    * PosTerminalPjc, PJC component for Hypercom POS terminal data exchange
    * @author Peter Valencic, [email protected]
    public class PosTerminalPjc extends VBean {
      private static final long serialVersionUID = -8814623494538014849L;
      Properties res = new Properties();
      SerialPort serialPort;
      OutputStream os;
      InputStream is;
      CommPortIdentifier portId;
      Enumeration portList;
      IHandler mHandler;
      char STX = (char) 0x02;
      char ETX = (char) 0x03;
      char EOT = 4;
      char ACK = 6;
      char NAK = 15;
      char FS = 28;
      private static final ID COMPORT = ID.registerProperty("COMPORT"); // serial
      // port
      // (COM1,COM2,COM3,...)
      private static final ID AMOUNT = ID.registerProperty("AMOUNT"); // amount of
      // the
      // transaction
      // (12)
      private static final ID TRANSACTIONTYPE = ID
      .registerProperty("TRANSACTIONTYPE"); // 01-sale, 05-refund, 13
      // ticket duplicate
      private static final ID AMOUNTCURRENCY = ID
      .registerProperty("AMOUNTCURRENCY"); // ISO currency code
      private static final ID TRANSACTIONNUMBER = ID
      .registerProperty("TRANSACTIONNUMBER"); // transaction number
      private static final ID EVT_OK = ID.registerProperty("EVT_OK"); //custom event if all ok
        private static final ID EVT_ERR = ID.registerProperty("EVT_ERR"); //custom event if error occured
      // state machine variables
      long l_timeout;
      long l_wait_for = 5000; // pos terminal wait for command (5 seconds)
      long l_wait_for_transaction = 62000 * 2; // pos terminal timeout
      long l_second = 1000; // one second
      byte b_retry = 0;
      String dataValue = "";
        byte[] readBuffer = new byte[2000]; //2000 bytes buffer to read rs232 stream
      String comPort = ""; // local variable to store com port name
      // (COM1,COM2,...)
      String transactionType = "SALE"; // type of transaction to be executed (SALE
      // or REFUND) default SALE
      String amount = "0"; // default amount value is set to 0
      String transactionNumber =""; //store a transaction number from POS trminal
      String transactionProcessed;
        String transactionFlag;
        String transactionDate;
        String transactionTime;
        String transactionBatchNumber;
        String terminalTid;
        String terminalCard;
        String errDesc;
        public PosTerminalPjc() {
      super();
      System.out.println("============================");
      System.out.println("== State machine POS v1.0 ==");
      System.out.println("== Peter Valencic (c)     ==");
      System.out.println("== 03.04.2012             ==");
      System.out.println("============================");
      try {
      res.load(this.getClass().getResourceAsStream(
      "/res/language.properties")); // load language file
      } catch (Exception ex) {
      System.err.println("Err loading language.properties file: "
      + ex.toString());
      private void doTransaction() throws Exception {
      String phase = null; // initial null value for state machine phase
      long l_ack_timeout = 0; //initial value for acknowledge timeout
      // com port check
      if (getComPort().trim().equalsIgnoreCase("")) {
      this.showError(res.getProperty("s_dlg_err_title"),
      res.getProperty("s_com_invalid"));
      return;
      // transaction type chek
      System.out.println(this.getTransactionType());
      if (!getTransactionType().equalsIgnoreCase("REFUND")
      & !getTransactionType().equalsIgnoreCase("SALE")) {
      this.showError(res.getProperty("s_dlg_err_title"),
      res.getProperty("s_tran_invalid_type"));
      return;
      portList = portId.getPortIdentifiers();
      while (portList.hasMoreElements()) {
      portId = (CommPortIdentifier) portList.nextElement();
      if (portId.getName().equalsIgnoreCase(this.getComPort())) {
      System.out.println("Port is used : "
      + portId.isCurrentlyOwned());
      serialPort = (SerialPort) portId.open("ComDriver", 2000);
      serialPort.setSerialPortParams(9600, SerialPort.DATABITS_7,
      SerialPort.STOPBITS_1, SerialPort.PARITY_EVEN);
      // serialPort.addEventListener(this);
      serialPort.notifyOnDataAvailable(true);
      serialPort.notifyOnOutputEmpty(true);
      os = serialPort.getOutputStream();
      is = serialPort.getInputStream();
      break;
      if (portId == null) {
      throw new Exception(res.getProperty("s_com_not_found")
      + this.getComPort() + "\n");
      // state machine infinite loop
      while (true) {
      // SEND DATA TO POS TERMINAL
      if (phase == null) {
      System.out.println("start phase");
      byte[] req = null;
      //verify transaction type to be SALE or REFUND
      //if REFUND then transaction number must be specified
      if (getTransactionType().equalsIgnoreCase("SALE")) {
      System.out.println("--> SALE send message to the pos terminal");
      System.out.println("--> amount: " + amount);
      req = protocolStream("000000123401100" + FS + amount + FS
      + FS + "+0" + FS + "978" + FS + FS + FS + FS + FS
      + FS + FS + ETX);
      else if (getTransactionType().equalsIgnoreCase("REFUND")) {
      System.out.println("--> REFUND send message to the pos terminal");
      System.out.println("--> amount: " + amount);
      System.out.println("--> transaction number: " + getTransactionNumber());
      req = protocolStream("000000123405100" + getTransactionNumber() + FS + amount
      + FS + FS + "+0" + FS + "978" + FS + FS + FS + FS
      + FS + FS + FS + ETX);
      } else {
      // maybe VOID in the future..
      os.write(req);
      os.flush();
      l_ack_timeout = System.currentTimeMillis() + 1500;
      //wait for half second
      try {
      Thread.sleep(500);
      } catch (Exception ee) {
      l_timeout = System.currentTimeMillis() + l_wait_for; //add some time for timeout
      phase = "TO_POS_ACK";
      System.out.println("phase: " + phase);
      }//phase null
      //CHECK IF THE TIMEOUT OCCURED
                if (phase.equalsIgnoreCase("TO_POS_ACK") &
                        (l_timeout < System.currentTimeMillis()) & (b_retry < 4)) {
                    b_retry += 1;
                    System.out.println("TIMEOUT: " + b_retry);
                    l_timeout = System.currentTimeMillis() + l_wait_for;
                    if (b_retry >= 4) {
                        System.out.println("Timeout occured");
                        try {
                            serialPort.close();
                            is.close();
                            os.close();
                        } catch (Exception ee) {
                        //Timeout occured show error
                        //s_timeout
                        this.showError(res.getProperty("s_dlg_err_title"),
            res.getProperty("s_timeout"));
                        break;
              //CHECK FOR THE ACKNOWLEDGE (FIRST RESPONSE FROM POS TERMINAL)
                if (phase.equalsIgnoreCase("TO_POS_ACK") &
                        (l_ack_timeout < System.currentTimeMillis())) {
                    try {
                        int numBytes = 0;
                        dataValue = "";
                        while ((numBytes = is.read(readBuffer)) > 0) {
                            dataValue += new String(readBuffer, 0, numBytes, "ASCII");
                        if (dataValue.getBytes().length > 0) {
                            System.out.println("->first byte: " +
                                dataValue.getBytes()[0]);
                            System.out.println("total length: " +
                                dataValue.getBytes().length);
                            //check for ack byte
                            if (dataValue.getBytes()[0] == 6) {
                                System.out.println(
                                    "<--ACKNOWLEDGE received from pos terminal");
                                phase = "WAIT_FOR_TRANSACTION";
                                l_timeout = System.currentTimeMillis() +
                                    l_wait_for_transaction;
                    } catch (IOException ev) {
              //WAIT FOR TIMEOUT ON MESSAGE
                if (phase.equalsIgnoreCase("WAIT_FOR_TRANSACTION") &
                        (l_timeout < System.currentTimeMillis())) {
                    System.out.println(
                        "Error receiving response from pos terminal!!!");
                    try {
                        serialPort.close();
                        is.close();
                        os.close();
                    } catch (Exception ee) {
                    this.showError(res.getProperty("s_dlg_err_title"),
        res.getProperty("s_response_error"));
                    break;
              //WAIT FOR SOME DATA TO COME FROM POS TERMINAL OVER RS232
                if (phase.equalsIgnoreCase("WAIT_FOR_TRANSACTION")) {
                    try {
                        int numBytes = 0;
                        dataValue = "";
                        while ((numBytes = is.read(readBuffer)) > 0) {
                            dataValue += new String(readBuffer, 0, numBytes, "ASCII");
                        if (dataValue.getBytes().length > 0) {
                            System.out.println("->first byte: " +
                                dataValue.getBytes()[0] + "|" +
                                dataValue.getBytes()[1]);
                            System.out.println("->ascii: " + dataValue);
                            System.out.println("total length: " +
                                dataValue.getBytes().length);
                            if (dataValue.indexOf("PREKINIL UPORABNIK") != -1) {
                                System.out.println(
                                    "Uporabnik je prekinil povezavo!");
                                try {
                                    serialPort.close();
                                    is.close();
                                    os.close();
                                } catch (Exception ee) {
                                //transaction cancelled by user s_user_cancel
                                this.showError(res.getProperty("s_dlg_err_title"),
                    res.getProperty("s_user_cancel"));
                                break;
                            if (dataValue.indexOf("NAPACEN VNOS") != -1) {
                                System.out.println("Napačen vnos");
                                try {
                                    serialPort.close();
                                    is.close();
                                    os.close();
                                } catch (Exception ee) {
                                //invalid user entry
                                this.showError(res.getProperty("s_dlg_err_title"),
                    res.getProperty("s_user_invalid_entry"));
                                break;
                            if (dataValue.indexOf("PROSIM POCAKAJ") != -1) {
                                System.out.println("<-- PROSIM POCAKAJ");
                                continue;
                            //preberemo podatke iz stringe terminala
                            if (dataValue.indexOf("SPREJETO") != -1) {
                                try {
                                    serialPort.close();
                                    is.close();
                                    os.close();
                                } catch (Exception ee) {
                                System.out.println("<-- TRANSAKCIJA SPREJETA");
                                System.out.println(dataValue);
                                System.out.println("Prožimo event v formse");
                                this.transactionProcessed = dataValue.substring(1, 3); //podatek mora biti 10
                                this.transactionFlag = dataValue.substring(13, 15);
                                this.transactionNumber = dataValue.substring(16, 21);
                                System.out.println("transaction number: " + this.transactionNumber);
                                this.transactionDate = dataValue.substring(25, 31);
                                this.transactionTime = dataValue.substring(31, 37);
                                this.transactionBatchNumber = dataValue.substring(21, 25);
                                StringTokenizer st = new StringTokenizer(dataValue, "" + FS);
                                System.out.println(st.nextToken());
                                System.out.println(st.nextToken());
                                System.out.println(st.nextToken());
                                System.out.println(st.nextToken());
                                System.out.println(st.nextToken());
                                System.out.println(st.nextToken());
                                this.terminalTid = st.nextToken();
                                System.out.println(st.nextToken());
                                System.out.println(st.nextToken());
                                System.out.println(st.nextToken());
                                this.terminalCard = st.nextToken();
                                if (transactionProcessed.equalsIgnoreCase("10")) {
                                else
                                    CustomEvent ce = new CustomEvent(mHandler,
                                            EVT_ERR);
                                    if (transactionProcessed.equalsIgnoreCase("00")) {
                                        System.out.println(
                                            "Error in the format of the request message");
                                        this.errDesc = res.getProperty("s_tf_00");
                                    } else if (transactionProcessed.equalsIgnoreCase(
                                                "01")) {
                                        System.out.println(
                                            "Transaction accepted without authorization code");
                                        this.errDesc = res.getProperty("s_tf_01");
                                    } else if (transactionProcessed.equalsIgnoreCase(
                                                "02")) {
                                        System.out.println(
                                            "Transaction accepted with authorization code");
                                        this.errDesc = res.getProperty("s_tf_02");
                                    } else if (transactionProcessed.equalsIgnoreCase(
                                                "03")) {
                                        System.out.println("Needs voice referall");
                                        this.errDesc = res.getProperty("s_tf_03");
                                    } else if (transactionProcessed.equalsIgnoreCase(
                                                "04")) {
                                        System.out.println("Transaction refused");
                                        this.errDesc = res.getProperty("s_tf_04");
                                    } else if (transactionProcessed.equalsIgnoreCase(
                                                "05")) {
                                        System.out.println(
                                            "Needs manual card data entry");
                                        this.errDesc = res.getProperty("s_tf_05");
                                    } else if (transactionProcessed.equalsIgnoreCase(
                                                "06")) {
                                        System.out.println(
                                            "Authorization call failure");
                                        this.errDesc = res.getProperty("s_tf_06");
                                    dispatchCustomEvent(ce);
                                    return;
                                //če gre skozi potem je vse ok
                                CustomEvent ce = new CustomEvent(mHandler, EVT_OK);
                                dispatchCustomEvent(ce);
                                return;
                    } catch (IOException ev) {
                //wait 200 ms
                try {
                    Thread.sleep(200);
                } catch (InterruptedException ex) {
                    ex.printStackTrace();
                System.out.print('*');
      }//end state machine loop
      * protocolStream prepare the stream to be send over RS232 to POS terminal
      * with LRC cheksum control
      * @param data
      * @return byte[]
      private byte[] protocolStream(String data) {
      char STX = (char) 0x02;
      String tmp = "" + STX + STX + data + "" + getLRC(data);
      System.out.println("PStream: " + tmp);
      for (int i = 0; i < tmp.getBytes().length; i++) {
      System.out.print(tmp.getBytes()[i] + ":");
      // System.out.println("čeksum: " + chksm);
      return tmp.getBytes();
      * Longitudinal Redundancy Check (LRC)
      * @param packet
      * @return String
      private String getLRC(String packet) {
      char[] splitPacket = packet.toCharArray();
      char lrc = 0x00;
      for (int x = 0; x < splitPacket.length; x++) {
      lrc = (char) (lrc ^ splitPacket[x]);
      return "" + (char) lrc;
      private String paddingString(String s, int n, char c, boolean paddingLeft) {
      if (s == null) {
      return s;
      int add = n - s.length(); // may overflow int size... should not be a
      if (add <= 0) {
      return s;
      StringBuffer str = new StringBuffer(s);
      char[] ch = new char[add];
      Arrays.fill(ch, c);
      if (paddingLeft) {
      str.insert(0, ch);
      } else {
      str.append(ch);
      return str.toString();
      * Display error message inside oracle form
      * @param title
      * @param exceptionString
      private void showError(String title, String exceptionString) {
      JOptionPane.showMessageDialog(this, exceptionString, title, 0);
      public String getComPort() {
      return comPort;
      public void setComPort(String comPort) {
      this.comPort = comPort;
      public String getTransactionType() {
      return transactionType;
      public void setTransactionType(String transactionType) {
      this.transactionType = transactionType;
      public String getAmount() {
      return amount;
      public void setAmount(String amount) {
      this.amount = amount;
      public String getTransactionNumber() {
      return transactionNumber;
      public void setTransactionNumber(String transactionNumber) {
      this.transactionNumber = transactionNumber;
      public static void main(String[] args) {
      PosTerminalPjc pjc = new PosTerminalPjc();
      pjc.setComPort("COM1");
      pjc.setTransactionType("SALE");
      pjc.setAmount("1000");
      try
      pjc.doTransaction();
      catch(Exception ex)
      System.err.println(ex.toString());
    [/code]

  • Forms developer 10g and video file

    hi,
    using developer forms 10g,
    when user press play button, any video file is played that i want. is it possible ? any idea ? how can i do ?
    thanks..

    In order to play a video from a Forms you have at least two options:
    1. Create a custom java bean. This could give you the ability to play the video directly in the form. This code would be completely custom, so remember that Oracle Support won't be able to assist you with it. Java bean examples can be found in the Forms Demo set or on the following third party web site:
    http://forms.pjc.bean.over-blog.com/
    2. If the video is accessible via a URL, you can call it from a form using WEB.SHOW_DOCUMENT and display it in a browser. You can also load it in a frame of the same browser hosting the form assuming you prepared for it before the form started.
    3. If the video file is on the local machine, you can use WEBUTIL to call and open it. If the file is not on the local machine and you would prefer that it was rather than playing over the network, you could also use WEBUTIL to download the file locally, play it, they if desired, delete it.

Maybe you are looking for

  • PVCS/Headstart revision substitution not working

    We've been following the instructions on p95 of the Headstart documentation, using a string of $Revision::xxxxxxxxxxx$ to get PVCS revision number substitution on our modules. This doesn't seem to be working correctly - sometimes the substitution tak

  • Color spaces in AWT and JAI

    Hi, I am trying to build a image editing application that supports color management. I am using Swing, AWT, and JAI 1.1.2. Unfortunately, the most recent tutorial I could find is about JAI 1.0.1, and a bit outdated. Does anybody know where I can find

  • Issues in Recording working time

    Hi experts! I have a problem in Recording working time. It display "The attendance/absence type 99/0800 does not exist on 01.01.2009". Help me! Regards Huy!

  • Faulty internal DVD drive causing other issues

    I have an Intel iMac running 10.6.8, with a Matshita UJ-875 DVD/CD drive.  A few days ago, the DVD drive crapped out, or so I think.  Wouldn't recognize a CD...just spit it out after some whirring. When I came to work this morning, all I got was the

  • Rate limit the internet Bandwidth/Speed

    Hello , In ASA 5510. How I can limit the users in (VLAN 20) to use the internet with a limited Bandwidth/speed with 3 mbps upload and 5 mbps download? In case the outside interface (Native vlan) which is connected to the ISP and have a bandwidth/spee