Guide Oracle Reports Developer 10g: Build Reports

Hello ...
I'm doing the guide Oracle Reports Developer 10g: Build Reports
and practices begin cuando not find files like ("p2q2.jsp, p2q3.rdf, p2q4.jsp, p2q5.jsp, p2q6.rdf, p2q7.rdf")
Can someone help me and tell me where I can find them ...
Sorry for my English poor quality ......
thanks hope prompt response ....
Edited by: 991659 on 4/03/2013 07:58 AM
Edited by: 991659 on 4/03/2013 08:04 AM

Hello,
summit database files
Regards

Similar Messages

  • Oracle Reports Developer 10g schema missing

    Hi All:
    I took the course for "Oracle Reports Developer 10g" but I didn't copy the schema when I took the course.
    Now,I have the book "Oracle Reports Developer 10g: Build Reports Student Guide" but I look over the internet and I can't find the schema for this course.
    I needed the schemas for the following tables:
    CUSTOMERS
    ORDERS
    ORDER_ITEMS
    WAREHOUSES
    INVENTORIES
    PRODUCT_INFORMATION
    PRODUCT_DESCRIPTIONS
    ONLINE_MEDIA
    PRINT_MEDIA
    Any help or hint where I can find the sql scripts for this schema is greatly appreciated it.
    Yours,
    Frustrated.

    Hello,
    summit database files
    Regards

  • Schema for Oracle Report Developer 10G Course

    Hi All:
    I took the course for "Oracle Reports Developer 10g" but I didn't copy the schema when I took the course.
    Now,I have the book "Oracle Reports Developer 10g: Build Reports Student Guide" but I look over the internet and I can't find the schema for this course.
    I needed the schemas for the following tables:
    CUSTOMERS
    ORDERS
    ORDER_ITEMS
    WAREHOUSES
    INVENTORIES
    PRODUCT_INFORMATION
    PRODUCT_DESCRIPTIONS
    ONLINE_MEDIA
    PRINT_MEDIA
    Any help or hint where I can find the sql scripts for this schema is greatly appreciated it.
    Yours,
    Frustrated.

    duplicate post. Also, check your post in the Reports-forum, there is already an answer.

  • Calling a Web Service in Oracle Report Developer 10g?

    Hello,
    Does Oracle Report Developer 10g supports Web Services (calls) or XML files as a Data Source?
    If yes. From what version?
    Thanks.

    ok, so you have at least 2 solutions:
    1. you get the data into a loop through your Java array.
    2. you use the EXEC_SQL package function to create a dynamic SQL cursor
       Select ... from the_table where code in ('c1', ..., 'cn')Francois

  • Report Developer 10g

    Is it possible to fetch data from CSV's using report developer 10g as development tool?

    Hello,
    ...yes ..
    http://download-uk.oracle.com/docs/cd/B14099_17/bi.1012/b13895/orbr_text.htm#g1011004
    45 Building a Report with a Text Pluggable Data Source
    Regards

  • How to install database 10g and forms&reports developer 10g?

    hi
    how to install database 10g and forms & reports developer 10g on windows xp 32 bit? and which one is to install first? how to connect them together? where can i find complete guide

    Gul wrote:
    hi
    how to install database 10g and forms & reports developer 10g on windows xp 32 bit? and which one is to install first? how to connect them together? where can i find complete guideThis link will help you http://tahiti.oracle.com/

  • "Oracle SQL Developer Data Modeler reporting repository required"

    Hi all,
    Trying to make use of Data Modeler Reports from within SQL Dev EA 2.1, but every time I try to connect to a DB I get the following message "Oracle SQL Developer Data Modeler reporting repository required."
    Any idea how to go about sorting this out?
    Thanks

    Hi i have the Oracle SQL Developer Data Modeler version 2.0.0 installed.
    When i try to export one diagram to the reporting schema, i get the following error : "Error occurred while exporting to Reporting Schema.See the log file for details".
    The log file has no errors.
    The repository owner is DBA.
    The connection is ok.
    Can you help me?
    Thanks in advance
    Paolo.

  • 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...

  • 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

  • Run a report developed on Crystal Reports XI from java

    Hi,
    I am trying to run a report developed on Crystal reports XI from my Java Web Project.
    I used the configuration specified in:
    http://businessobjects.com/pdf/dev_zone/crxi_java_startup_guide.pdf
    but I am getting the error:
    "com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: There is no server specified.---- Error code:-2147217390 Error code name:serverNotFound"
    when the code reaches the line: oReportClientDocument.open(reportName, 0)
    I am using Eclipse as SDK and Tomcat as Webserver.
    Thanks for the help.

    can i use it In J2SE
    if yes where i download it.also some link for reading

  • Report Developer 10g won't run

    I wan't to run Report Developer, but when I start it only appears Reports logo: Oracle Reports Builder 10g and nothing else.
    In the task manager there is the rwbuilder.exe.
    What can I do?
    please Help!!!!
    Thanks in advance.
    Regards

    the other products had functioned normally. Only the Reports presented this behavior. <<u never know until u get to spefifics. Usually products are certified to run on specific jvm versions.
    That means it is fully qa tested on that jvm.
    It doesnt necessarily mean it wont run in previous jvm version, or that it will run for all cases for a previous jvm version.

  • Font Issue in Reports Developer 10g Linux

    Dear Members,
    I am facing a problem while migrating the reports from 6i to 10g Linux. When I migrate any report in 10g Linux, I have to set the format and font name along with its size.
    Is there any way to have the same font and size after migrating?
    I have to migrate more than 300 reports and it will take so much time to set the formatting once again.
    Please send me the steps to configure the font in Linux or send me any meta-link note #
    With kind regards,
    Muhammad Yousuf.

    hello,
    You have to check first the fonts you are using in your reports and from there you can either install them on your AS or make your reports compatible with your deployment platform etc...
    Please check www.degenio.com as I have documented the problems we had when deploying our reports on UNIX.
    Thanks

  • Reports developer 10g

    Hi All,
    I have 3 questions regaring reports:
    1)
    I have report that shows 2 colomns col1 and col2.
    Col1 Col2
    a 1
    a 22
    a 232
    b 7
    b 8
    I want the duplicate values supressed like:
    a 1
    22
    232
    b 7
    8
    2)
    Also i want de query what gives these results be ordered thru a parameter. So when the parameter is Y than the orderby must be: order by 1,2 else order by 2,1.
    3)
    I have 2 columns col1 and col2, i can supress thru a formatting trigger the display of col1. But what i want is that col2, which is on the right side of col1, moves up to take the position of col 1.
    Can anybody help please?
    Regards
    Snoesky

    Hi Snoesky,
    Welcome
    Snoesky wrote:
    Hi All,
    I have 3 questions regaring reports:
    1)
    I have report that shows 2 colomns col1 and col2.
    Col1 Col2
    a 1
    a 22
    a 232
    b 7
    b 8
    I want the duplicate values supressed like:
    a 1
    22
    232
    b 7
    8For the above reports layout, you can make a group above report. where 'a' and 'b' are group and col2 value will display as data respective of group.
    2)
    Also i want de query what gives these results be ordered thru a parameter. So when the parameter is Y than the orderby must be: order by 1,2 else order by 2,1.For this, you have to pass lexical parameter and through this parameter pass the statement and append with the query.
    3)
    I have 2 columns col1 and col2, i can supress thru a formatting trigger the display of col1. But what i want is that col2, which is on the right side of col1, moves up to take the position of col 1.
    I'm cont clear with this point. Hope it will clear if you done 1st point.
    Hope this helps
    Hamid
    Mark correct/helpful to help others to get right answer(s).*

  • 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.

  • 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]

Maybe you are looking for

  • 2nd gen touch not playing in car

    I just recently upgraded to a 2nd gen ipod touch after my 1st gen died. I've been using an Alpine M-bus to iPod cable in my car to play, and it worked great with my 1st gen. However, it wasn't working with my new one and so I bought the Scosche Passp

  • Problem in creating Purchase order Using BAPI

    Dear ABAPers,          I am creating the Purchase order Using BAPI_PO_CREATE1. In that the Purchase order Line item i am giving the Net Price for the Material.But While creating the purchase order the system creates the puchase order with the net pri

  • 1_4_2_05 VM's crashing unexpectedly on RedHat AS3.0

    Hi. I'm new to this forum so forgive me for any bad posting practices. We are running java 1.4.2_05 on RedHat Advance Server 3.0 2.4.21-20.ELsmp Over the last few weeks ( and possibly longer) individual VMs seem to be falling over in circumstances we

  • Cannot sync photos-says cannot find file, will not sync

    eveytime I try to sync, when it gets to photos, iTunes has an error window with no code that says "Cannot find file, cannot sync" Everthing else backs up and syncs except photos. My husband uses the same mac and he can sync just fine, no errors.

  • My mozilla window is not openning please give me solution

    when i click on mozilla icon anothing happen . even i uninstall the mozilla software than i download new mozilla software but when when i click on install file it also not open please give me solution for it