Need to create a GUI

Ok I posted a while back but my code has completely changed.
I need to be able to convert my InvTest into a gui. So that it will do what it does now but in GUI. Is there not an easy way to do this?
Do I need to change or add any code in my Inventory.java or just my in my InvTest?
From my book it seems that JTextField will do what I am trying to accomplish?
Here is my current code.
INVENTORY.JAVA
//The Inventory class
public class Inventory {
     String productnumber;
     String name;
     int numberofunits;
     double priceperunit;
     // Create a new instance of Inventory
     // main constructor for the class
     public Inventory(String Item_Number, String Item_Name, int Items_in_Stock,
               double Item_Price) {
          productnumber = Item_Number;
          name = Item_Name;
          numberofunits = Items_in_Stock;
          priceperunit = Item_Price;
     public void setItemName(String Item_Name)
     // sets the items name
          name = Item_Name;
     public void setItemNumber(String Item_Number) { // Sets the Product =Number
                                                                 // for the item
          productnumber = Item_Number;
     public void setItemsInStock(int Items_in_Stock) { // sets the =number of
                                                                      // units in stock
          numberofunits = Items_in_Stock;
     public void setItemPrice(double Item_Price) { // sets the price of =the
                                                                 // item
          priceperunit = Item_Price;
     public String getItemName() { // returns the Product Name of this item
          return name;
     public String getItemNumber() { // returns the Product Number of the =item
          return productnumber;
     public int getItemsInStock() { // returns how many units are in stock
          return numberofunits;
     public double getItemPrice() { // returns the price of the item
          return priceperunit;
     public double getInventoryValue() { // returns the total value of =the stock
                                                  // for this item
          return priceperunit * numberofunits;
     public static double getTotalValueOfAllInventory(Inventory [] inv)
          double tot = 0.0;
          for(int i = 0; i < inv.length; i++)
               tot += inv.getInventoryValue();
          return tot;
     public String toString()
          StringBuffer sb = new StringBuffer();
          sb.append("DVD Title: \t").append(name).append("\n");
          sb.append("Item #:      \t").append(productnumber).append("\n");
          sb.append("Number in stock:\t").append(numberofunits).append("\n");
          sb.append("Price: \t").append(String.format("$%.2f%n", priceperunit));
          sb.append("Inventory Value:\t").append(String.format("$%.2f%n", this.getInventoryValue()));
          return sb.toString();
DVD.java
public class DVD extends Inventory {
     String genre;                         // Genre of the DVD
     double restockingFee;               // percentage that is added to the base price as a restocking fee
                                             //( actual inventory value will be the base inventory value plus
                                             // the base inventory value times this amount ) (value + (value * restockFee))
     public DVD(String genre, double restockingFee, String Item_Number, String Item_Name, int Items_in_Stock,
               double Item_Price) {
          super(Item_Number, Item_Name, Items_in_Stock, Item_Price);
          this.genre = genre;
          this.restockingFee = restockingFee;
          // TODO Auto-generated constructor stub
     //returns the value of the inventory, plus the restocking fee
     public double getInventoryValue() {
          // TODO Auto-generated method stub
          return  super.getInventoryValue() + (super.getInventoryValue() * restockingFee);
     public String toString()
          StringBuffer sb = new StringBuffer("Genre      \t").append(genre).append("\n");
          sb.append(super.toString());
          return sb.toString();
INVTEST.JAVA
public class InvTest
     public static void main(String args[])
          double restockFee = 0.05;
          // initialize a new inventory object
          DVD[] inventory = new DVD[10];
          inventory[0] = new DVD("Action" ,restockFee, "00623","Lost" , 10, 20.00);
          inventory[1] = new DVD("Action" ,restockFee, "00564","Friends" , 10,  12.00);
          inventory[2] = new DVD("Comedy",restockFee, "00222","Click", 10,  15.00);
          inventory[3] = new DVD("Family",restockFee,"00153","Cinderella" , 10, 18.00);
          inventory[4] = new DVD("Drama", restockFee,"00589","Titanic", 10, 24.00);
          inventory[5] = new DVD("Drama",restockFee,"00662","Summerland" , 10,10.00);
          inventory[6] = new DVD("Family",restockFee,"00558","Cars" ,  10,16.00);
          inventory[7] = new DVD("Action",restockFee,"00789","Batman" ,10, 9.00);
          inventory[8] = new DVD("Action",restockFee,"00987","Superman" ,10,9.00);
          inventory[9] = new DVD("Action",restockFee,"00556","Supergirl" ,10, 9.00);
          DVD temp[] = new DVD[1];
//          sorting the array using Bubble Sort
          for(int j = 0; j < inventory.length - 1; j++)
              for(int k = 0; k < inventory.length - 1; k++)
                  if(inventory[k].getItemName().compareToIgnoreCase(inventory[k+1].getItemName()) > 0)
                      temp[0] = inventory[k];
                      inventory[k] = inventory[k+1];
                      inventory[k+1] = temp[0];
                  }//end if
              }//end for loop
          }//end for loop
          // print the inventory information
          for(int j = 0; j < inventory.length; j++)
               System.out.println(inventory[j].toString());
          System.out.printf("Total value of all inventory = $%.2f" , Inventory.getTotalValueOfAllInventory(inventory));
          return;

textArea.setText(inventory[0].toString());should be
ta.setText(inventory[0].toString());to match the 'ta' of
javax.swing.JTextArea ta = new javax.swing.JTextArea(10,20);in earlier posts i used textArea.setText... just as a descriptive reference
but object references are very basic java - you should really try to understand
the basics before getting into swing.
anyway, here's something else to play around with
(you can put all this into the one .java file)
there's no pre-loaded DVD's, enter the data into the 4 textfields, then click add.
after adding a few titles, click one of the titles in the list.
note: there's no error handling in this
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
class Testing
  java.util.List dvds = new java.util.ArrayList();
  JTextField tfTitle = new JTextField(15);
  JTextField tfProductNumber = new JTextField();
  JTextField tfPrice = new JTextField();
  JTextField tfQuantity = new JTextField();
  DefaultListModel dlm = new DefaultListModel();
  JList list = new JList(dlm);
  public void buildGUI()
    JButton btn = new JButton("Add");
    JPanel p1 = new JPanel(new BorderLayout());
    JPanel p = new JPanel(new GridLayout(4,2));
    p.add(new JLabel("DVD Title: "));
    p.add(tfTitle);
    p.add(new JLabel("Product Number: "));
    p.add(tfProductNumber);
    p.add(new JLabel("Price per Unit: "));
    p.add(tfPrice);
    p.add(new JLabel("Quantity on Hand: "));
    p.add(tfQuantity);
    p1.add(p,BorderLayout.NORTH);
    JPanel p2 = new JPanel();
    p2.add(btn);
    p1.add(p2,BorderLayout.CENTER);
    JFrame f = new JFrame();
    f.getContentPane().add(p1,BorderLayout.NORTH);
    JScrollPane sp = new JScrollPane(list);
    f.getContentPane().add(sp,BorderLayout.CENTER);
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.pack();
    f.setLocationRelativeTo(null);
    f.setVisible(true);
    btn.addActionListener(new ActionListener(){
      public void actionPerformed(ActionEvent ae){
        dvds.add(new DVD(tfTitle.getText(),tfProductNumber.getText(),
                                Double.parseDouble(tfPrice.getText()),
                               Integer.parseInt(tfQuantity.getText())));
        setList();
        clearTextFields();
    list.addListSelectionListener(new ListSelectionListener(){
      public void valueChanged(ListSelectionEvent lse){
        if(lse.getValueIsAdjusting() == false)
          DVD dvd = (DVD)dvds.get(list.getSelectedIndex());
          tfTitle.setText(dvd.title);
          tfProductNumber.setText(dvd.productNumber);
          tfPrice.setText(""+dvd.price);
          tfQuantity.setText(""+dvd.quantity);
  public void setList()
    dlm.clear();
    for(int x = 0, y = dvds.size(); x < y; x++)
      dlm.addElement((DVD)dvds.get(x));
  public void clearTextFields()
    tfTitle.setText("");
    tfProductNumber.setText("");
    tfPrice.setText("");
    tfQuantity.setText("");
    tfTitle.requestFocusInWindow();
  public static void main(String[] args)
    EventQueue.invokeLater(new Runnable(){
      public void run(){
        new Testing().buildGUI();
class DVD
  String title;
  String productNumber;
  double price;
  int quantity;
  public DVD(String t,String pn, double p, int q)
    title = t; productNumber = pn; price = p; quantity = q;
  public String toString(){return title;}
}

Similar Messages

  • Creating a GUI on a remote device.

    I would like to create a GUI on a simple CCD touchscreen.The screen is effectively a dumb terminal that is connected to a pc using a proprietary data interface. The GUI needs to be created and rendered in an off screen buffer on the server with the data that constitutes repaint regions being sent to the LCD display.
    I have thought about overriding the RepaintManagerI but that doesn't work when the display on the sever is not visible. I have thought about creating a custom GraphicsDevice and GraphicsConfiguration but I haven't had any success with this approach.
    Has anyone done anything similar? Could anyone suggest a solution to this problem? I would be grateful for any help.
    Thanks.

    Hi -
    I have a similar problem.
    I have a small LCD controlled via the serial port. I have written a simple Java class to set or clear individual pixels on the display (it makes use of Java COMM to communicate with the hardware).
    How would I go about turning this simple class into something that Java could use to render graphics on?
    Obviously I could start writing a whole set of graphics routines for drawing lines, boxes, glyphs etc myself, but this is clearly wasted effort. How can I make use of the existing code to render graphics on a non-standard display?
    Thanks for any suggestions!

  • When do i need to create SID adm user?

    Hi All,
       I am new to XI.I am trying to install XI on windows 2003 and sqlserver. I am done with the following without any error?
    1. OS and its service packs
    2. Sql Server and patches.
    3.Central instance
    4. DB instance
    5. Installed sap gui.
    I have logged in as administrator and installed the above stuff.
    1. When do i need to create <SID>adm user?
    2. Do i need to use <SID>adm to install the XI?
    3. When i logged in to sapgui, i am getting host name error. Do i need to change hosts file?
    Thank you
    Ganges Leaves
    Message was edited by: Ganges Leaves

    Hi Ganges,
    Pls have a look into this SAP Material
    https://websmp209.sap-ag.de/~sapidb/011000358700009389172004E.PDF
    http://help.sap.com/bp_bpmv130/Documentation/Installation/XI30InstallGuide.pdf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a5550de0-0701-0010-a8b4-9fd433a080f3
    <i>4. When i logged in to sapgui, i am getting host name error. Do i need to change hosts file?</i>
    >>> Just ping the IP address and check that are u able to connect. Also check with Browser .
    Hope this helps,
    Regards,
    Moorthy

  • How to create custom GUI interface for Cisco router?

                       Hello,
    I am working on a Cisco solution and I have my router configured for the solution I need. However, if a non-cisco person needs to use my solution then I think he will need a GUI interface which will have few "buttons" which when clicked will run some Cisco commands on Cisco router to make it work. Is there a way to design such GUI interface which is compatible with Cisco routers? I know Cisco has SDM, but that is too involved and detailed, which is useful only for people who know atleast a little bit about Cisco. Here I am looking at crowd who will have 0 knowledge of Cisco.
    Please let me know if something like this can be done. If yes, how and how easily?
    Thank you.

    There are lots of ways to do this - you can use SNMP or even HTTP to push or pull commands from Cisco devices. How easy it is to create a GUI depends on your programming skills. I would guess a simple web page triggering backend scripts would be the easiest way to do this.

  • Creating a gui with j2me

    Hi, I'm making a midlet, and I want to create a gui. i think the best way for making this is using canvas, but I can't find any tutorial/example. The gui would be something like this:
    http://bladecoder.net/hof/images/sf1.png
    ah, and I cannot use j2mepolish.
    Thanks for your help.

    Please start with the link mentioned above. After discovering the APIs you need you can find numerous examples of custom UIs.
    A couple of years ago there was a great example of creating a a custom UI framework on the web. I cant seem to find it now. The closest thing I could find now is http://www2.sys-con.com/itsg/virtualcd/Java/archives/0606/cordrey/index.html
    Visit the Nokia and SE developer site. SE, especially, always has good examples.
    I use the low level API for all my J2ME work. As an aside, you can look at some of my "weekend" projects. Here are some screenshots.
    http://mobox.cliqcafe.com/files/1439/rim-5.jpg
    http://mobox.cliqcafe.com/files/1831/Screenshot0036.jpg
    http://hostj2me.cliqcafe.com/files/2382/Screenshot0619.jpg
    Grab the source if you like, but learn the basics first. I would not want you to inadvertently pick up any of my "bad habits." If you have time to waste, and dont mind lax production:), you can watch video demo an custom ui here:
    http://hostj2me.cliqcafe.com/files/1877/yipi.wmv

  • Using SWING to create a GUI for PC to Microcontroller connection...

    Hello,
    I am currently undertaking a project task regarding the connection of a microcontroller (uC) to a host pc. Our main task now is to create a GUI that would display information stored on the uC.
    I was just wondering if SWING will be able to accomodate the following:
    1) The uC will be hooked up either through ETHERNET LAN cable or a USB WIFI adapter. The host pc running Java will have a GUI that would be able to locate this IP address of the uC and connect to it.
    2) We have verified that a telnet connection from a pc to the uC works. We could successfully, get the necessary files needed from the uC.
    3) The contents of the files we want are just a bunch of serial numbers. We have uC run a code and store the output into a file. This file would then be transfered to the host pc.
    4) In the end, we want to send this data wirelessly, instead of using the LAN CABLE.
    My question now is would SWING be a good option in implementing this GUI. I have taken a JAVA course a 2 yeasr ago so I am still familiar with some JAVA basics but I have not delved into the networking aspects of JAVA, which I do know it has.
    I await your kind responses,
    thanks.

    Hi,
    By ?C do you mean ?C/OS-II?
    I don't know much about ?C/OS-II, I believe that you could
    make a program for that processor that would listen for connections
    on some ethernet port. Then your java program need to connect to that port
    and fetch the data.
    At the end of this article is a bit of info about sockets in ?C/OS-II.
    http://www.hardware.dibe.unige.it/Software/DynamicC/DynCUsersManual/14ucos.htm
    As pointed earlier, the GUI isn't your biggest problem.
    kari-matti

  • Need to create report query to get latest open and last closed period for given application

    Hi All,
    I need to create a report query to get below result displayed in report output.
    1)   -   Application name
    2)   -    Ledger name
    -o/  -Operating Unit
    3)   -  Last Closed Period
    4)   -  Current Open Period
    5)   -  Date Closed – Last Closed Period
    6)   -  Date Open – Current Open Period
    I tr I tried to create the query below is the same. Please let me know if it looks fine.
    SELECT *
      FROM (SELECT fav.application_name ,
                   hou.name Operating_Unit_Name,
                   gl.name Ledger_name,
                   gl.latest_opened_period_name,
                   gps.period_name Period_Name,
                   DECODE(gps.closing_status, 'O', 'Open', 'C', 'Closed') status,
                   gps.last_update_date Last_status_modified_date
              FROM gl_period_statuses gps,
                   gl_sets_of_books   gsob,
                   fnd_application_vl fav,
                   hr_operating_units hou,
                   gl_ledgers         gl
             WHERE gps.period_name = gps.period_name
               AND gps.closing_status ='C'
               AND fav.application_short_name =
                   NVL('&p_application_short_name', fav.application_short_name)
               AND gps.application_id = fav.application_id
               AND gsob.set_of_books_id = gps.set_of_books_id
               AND hou.set_of_books_id = gps.set_of_books_id
               AND gl.ledger_id = gsob.set_of_books_id
               AND hou.organization_id=NVL('&p_operating_unit',hou.organization_id)
               AND gl.ledger_id=NVL('&p_ledger_id',gl.ledger_id) 
             ORDER BY gps.last_update_date desc )WHERE ROWNUM = 1 
    UNION ALL
    SELECT *
      FROM (SELECT fav.application_name Application_Name,
                   hou.name Operating_Unit_Name,
                   gl.name Ledger_name,
                   gl.latest_opened_period_name,
                   gps.period_name Period_Name,
                   DECODE(gps.closing_status, 'O', 'Open', 'C', 'Closed') status,
                   gps.last_update_date Last_status_modified_date
              FROM gl_period_statuses gps,
                   gl_sets_of_books   gsob,
                   fnd_application_vl fav,
                   hr_operating_units hou,
                   gl_ledgers         gl
             WHERE gps.period_name = gps.period_name
               AND gps.closing_status = 'O'
               AND fav.application_short_name =
                   NVL('&p_application_short_name', fav.application_short_name)
               AND gps.application_id = fav.application_id
               AND gsob.set_of_books_id = gps.set_of_books_id
               AND hou.set_of_books_id = gps.set_of_books_id
               AND gl.ledger_id = gsob.set_of_books_id
               AND hou.organization_id=NVL('&p_operating_unit',hou.organization_id)
               AND gl.ledger_id=NVL('&p_ledger_id',gl.ledger_id) 
             ORDER BY gps.last_update_date desc)
             WHERE ROWNUM = 1

    It is within the table I believe (I'm not a DBA or a developer) since I created a BLOB column and then used the file browse feature to allow users to attach a resume to the table in order to be able to perform a search of the attached documents.
    I'm just having a hard time pointing the link in the search results report to the document in the blob column.
    The information on that page is great if you're trying to create a link to the document on the initial report.
    But I created a query using Oracle Text to run a report that does a boolean search of the attached word documents in the table.
    When it displays the search results, it doesn't create a link to the document and I can't figure out how to do it.
    Here's a link the the instructions I used to create the initial search report with Oracle Text, mind you I only created the index and query, I didn't add in all the link data since they're using documents on websites and I'm using documents in a table.
    http://www.oracle.com/technology/products/database/application_express/pdf/apex_text_application_v1.6.pdf
    If you can help me with this I'd really appreciate it.
    Thanks again.
    Greg
    Edited by: gjones77 on Dec 2, 2008 8:14 AM

  • Help needed to create Quik Time VR movies, step by step

    Hello,
    thank you for your attenction.
    I need to create Quick time vr movies, and I need to know the exact sequance of steeps to do it, and if the starting point I use is correct.
    1) I shooted a sequence of photos with my digital camera (for example: www.stebianchi.com/quicktimevrhelp/still-photo.jpg).
    2) Then, with photoshop (CS4) I choose: Automate/photomerge and I select all them to joint them in a bigger 360° panoramic one (www.stebianchi.com/quicktimevrhelp/pan.jpg). If, untill here, all is correct, the first question: in photoshop Photomerge layout option, do I have to choose one voice "auto, perspective, cylindrical, spherical, etc..." rather than anoter one of these?
    3) from here, I really need your help.
    First of all: the great doubt:
    My photos can not cover a spherical panorama, they're only a "ring" around a center (and not a spherical texture). To cover all the surface (or almost all, ok...) of my ambient, do I have to use a wider lens on my camera or there is a different solution (for ex a vertical photomerge?).
    4) Done this, I think I shuold buy a software like Cubic converter, to set and export the QTVR movie. Right?
    Thanks a lot guys,
    all the best!
    Stefano

    You can call your local apple store(find one on the home page of apple.com) and they will give you instructions how to convert DVD to iPod. That is what they told me, but from what I heard, you may need more than Quicktime Pro. Just call and ask them, because if you make a manual of how to do it, it could help me a lot.
    (I'm looking for a good DVD converter, already know some, beside the internet download ones)

  • Need To Create a table in Sql Server and do some culculation into the table from Oracle and Sql

    Hello All,
    I'm moving a data from Oracle to Sql Server with ETL (80 tables with data) and i want to track the number of records that i moving on the daily basis , so i need to create a table in SQL Server, wilth 4 columns , Table name, OracleRowsCount, SqlRowCount,
    and Diff(OracleRowsCount - SqlRowCount) that will tell me the each table how many rows i have in Oracle, how many rows i have in SQL after ETL load, and different between them, something like that:
    Table Name  OracleRowsCount   SqlRowCount  Diff
    Customer                150                 150            
    0
    Sales                      2000                1998          
    2
    Devisions                 5                       5             
    0
    (I can add alot of SQL Tasks and variables per each table but it not seems logicly to do that, i tryid to find a way to deal with that in vb but i didn't find)
    What the simplest way to do it ?
    Thank you
    Best Regards
    Daniel

    Hi Daniel,
    According to your description, what you want is an indicator to show whether all the rows are inserted to the destination table. To achieve your goal, you can add a Row Count Transformation following the OLE DB Destination, and redirect bad rows to the Row
    Count Transformation. This way, we can get the count of the bad rows without redirecting these rows. Since the row count value is stored in a variable, we can create another string type variable to retrieve the row count value from the variable used by the
    Row Count Transformation, and then use a Send Mail Task to send the row count value in an email message body. You can also insert the row count value to the SQL Server table through Execute SQL Task. Then, you can check whether bad rows were generated in the
    package by querying this table.  
    Regards,
    Mike Yin
    TechNet Community Support

  • I am new to IPAD and I want o use facetime, how can I use it to communicate with my mac at home, do I need to create another account with a different email account

    I am new to IPAD and I want o use facetime, how can I use it to communicate with my mac at home, do I need to create another account with a different email account

    do I need to create another account with a different email account
    Yes, the email addresses need to be unique to each device. You may use the same Apple ID on each device, but the email address used by each device needs to be different.

  • New to applescript. need to create a plist file using applescript

    Needed some help I need on creatinga plist file below using applescript and I can't make it happen needed some hand on this.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Username</key>
    <string>${localAdminUser}</string>
    <key>Password</key>
    <string>${localAdminPassword}</string>
    <key>AdditionalUsers</key>
    <array>
    <dict>
    <key>Username</key>
    <string>${userName}</string>
    <key>Password</key>
    <string>${userPassword}</string>
    </dict>
    </array>
    </dict>
    </plist>
    I have tis code but it doesn't seems to work.
    tell application "System Events"
      -- create an empty property list dictionary item
              set the parent_dictionary to make new property list item with properties {kind:record}
      -- create new property list file using the empty dictionary list item as contents
              set the plistfile_path to "~/Desktop/example.plist"
              set this_plistfile to ¬
      make new property list file with properties {contents:parent_dictionary, name:plistfile_path}
      -- add new property list items of each of the supported types
      make new property list item at end of property list items of contents of this_plistfile ¬
                        with properties {kind:string, name:"Username", value:"${localAdminUser}"}
      make new property list item at end of property list items of contents of this_plistfile ¬
                        with properties {kind:string, name:"Password", value:"${localAdminPassword}"}
      make new property list item at end of property list items of contents of this_plistfile ¬
                        with properties {kind:list, name:"AdditionalUsers"}
      make new property list item at end of property list items of contents of this_plistfile ¬
                        with properties {kind:string, name:"Username", value:"${localAdminUser}"}
      make new property list item at end of property list items of contents of this_plistfile ¬
                        with properties {kind:string, name:"Password", value:"${localAdminPassword}"}
    end tell
    The result of the above code will generate a plist file below
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
              <key>AdditionalUsers</key>
              <array/>
              <key>Password</key>
              <string>${localAdminPassword}</string>
              <key>Username</key>
              <string>${localAdminUser}</string>
    </dict>
    </plist>

    Hello
    You need to create elements at correct container. Like this.
    set plist_file to (path to desktop)'s POSIX path & "example.plist"
    --set plist_file to "~/desktop/example.plist"
    tell application "System Events"
        tell (make new property list file with properties {name:plist_file})
            make new property list item at end with properties {kind:string, name:"Username", value:"${localAdminUser}"}
            make new property list item at end with properties {kind:string, name:"Password", value:"${localAdminPassword}"}
            tell (make new property list item at end with properties {kind:list, name:"AdditionalUsers"})
                tell (make new property list item at end with properties {kind:record})
                    make new property list item at end with properties {kind:string, name:"Username", value:"${localAdminUser}"}
                    make new property list item at end with properties {kind:string, name:"Password", value:"${localAdminPassword}"}
                end tell
            end tell
        end tell
    end tell
    Or you may create a record in AppleScript and set the value of plist file at once. Like this.
    set plist_file to (path to desktop)'s POSIX path & "example.plist"
    --set plist_file to "~/desktop/example.plist"
    set dict to ¬
        {|Username|:"${localAdminUser}", |Password|:"${localAdminPassword}"} & ¬
        {|AdditionalUsers|:{¬
            {|Username|:"${localAdminUser}", |Password|:"${localAdminPassword}"} ¬
    --set dict to {|Username|:"${localAdminUser}", |Password|:"${localAdminPassword}", |AdditionalUsers|:{{|Username|:"${localAdminUser}", |Password|:"${localAdminPassword}"}}}
    tell application "System Events"
        tell (make new property list file with properties {name:plist_file})
            set value to dict
        end tell
    end tell
    Regards,
    H
    Message was edited by: Hiroto (PS. Fixed second script so that it uses the original case (uppercase)  in key string)

  • How many DNS record need to create in Internal & external DNS server for exchange?

    Hi friends,
    I recently installed Exchange Server 2010 in my organization for testing purpose and I've register a pubic ip too for exchange server on godaddy.com. How many
    internal & External DNS records reqired to configure on external & Internal dns server so my all feature like Auto-discover, Activ -sync,& webmail start working perfectly.
    It's my first time configuring exchange for a organization.
    Thanks & Regards,
    Pradeep Chaugule

    Hi,
    Just as what ManU Philip said, you need to create
    Autodiscovery.domaincom and mail.domain.com for external dns server.
    Generally, you configure your Exchange Servers as DNS clients of your internal DNS server.
    Refer from:
    http://technet.microsoft.com/en-us/library/aa996996(v=exchg.65).aspx
    Best Regards.

  • Do I need to create a view for this?

    Hi Ihave got 2 tables emp and project
    In emp tabe:
    emp_no
    family name
    given name
    In porgect table:
    emp_no
    status(assigned,unassigned)
    start_date
    end_date
    emp_no Family_name given_name
    1 Smith John
    In project table same employee can have many assigement eg
    emp_no status start_date end_date
    1 assigned 01-may-08 01-july-08
    1 assigned 01-sep-08 01-july-09
    1 unassigned 01-july-09 01-oct-09
    In the form:
    there are 2 querable fields "project ends between field1(date) and field2(date)" which is used to
    retrive records which have end date between field1 and field2.
    The following fields are needed to get from database:
    emp.family_name emp.given_name project.start_date project.end_date No.of time assigned
    Requirements:
    1. project.start_date and project.end_date must be the latest project_end_date for the same emp
    so in the above sample date
    2. No. of time assigned is a count of total of number records which have status='assign'
    So for the given sample data the record expected after query would be(field1=01-jun-08 field2=02-july-09)
    emp.family_name emp.given_name project.start_date project.end_date No.of time assigned
    Smith John 01-sep-08 01-july-09 2
    What is the best approach to get:
    1 The lastest project(latest end_date) for the emp
    2. get No.of time assigned.
    Do I need to create a view for this? If yes, any sample sql code this this?
    Thanks for your help

    Hi W1zard,
    Thanks for your reply. Could you clarify the following points for me:
    1.) you could create a master block basing on your emp table and a detail block basing on your project table with the relation over emp_no. set the default_where clause of your detail block programmatically using
    set_block_property('project', default_where, 'status = ''assigned'' and <your_date_criteria>');
    Q1: where I pit this code? in pre-query trigger in detail block?
    2.) Of course you could create a view to join both of your tables if you don't want to use master detail blocks; Also do the join over emp_no
    create or replace force view v_emp as
    select emp.family_name, emp.given_name, project.start_date, project.end_date
    from emp, project
    where emp.emp_no = project.emp_no
    Q2 As I mentioned before, there are multipal entries for the same emp in project table and we only need the maching record from project table which has latest end_date. So I think I need something like
    max(project.end_date) somewhere in create view to make sure only one record for one employee.
    Also is there possible to include the no. of assigned field(select count(*) from project where status='assigned' and emp=emp_no) into the view as well?
    Q3 All the fields mentioned above are diaplay-only. So Can I create a control block which has all the fields from emp and project. Then populate them with my sql. The question is
    where I put this customerised sql so when user click excute query. My sql will run and display one the form?
    REally appreciated your help!
    Michael

  • I Need to Create a report for batch jobs Based on Subject Area.

    Hi SAP Guru's,
    I need to create a report , that it must show the status of batch jobs Completion Times based on Subject area(SD,MM,FI).
    Please help me in this issue ASAP.
    Thanks in Advance.
    Krishna.

    You may need to activate some additional business content if not already installed but there are a lot BI statistics you can report on. Have a look at this:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/46/f9bd5b0d40537de10000000a1553f6/frameset.htm

  • Need to Create delivery on the basis of sales order and schedule line

    Hi,
    I need to create delivery on for sales order which is splitted in schedule line number (ETENR).
    I am using FM RV_DELIVERY_CREATE and passing sales order number with single line item at a time for different (schedule line) VBEP-ETENR. but it is creating the delivery for all schedule line  items in first time only and in second loop it is not returing any thing even error. can any one please suggest me  urgently what can I do for it.

    Hi Ankit,
    You will have to create your own program to do this.
    There is no standard way todo this.
    Best regards,
    Ramki

Maybe you are looking for

  • Why move to creative cloud?

    I still don't understand why Adobe forcing us to move to Creative Cloud? All those "benefits" that Adobe served us, is just a marketing trick. Adobe said something like this: "All the newest updates and features are immediately available to the Creat

  • Macbook running Windows 7 - How do I revert?

    Alright, so I'll just tell you the story from the beginning. My neighbor got a new computer, so she decided to give me her old Macbook. I decided to install Windows 7 on there because I am more comfortable with Windows than Mac. Unfortunately, I didn

  • Adapters -Qos

    hi all, please look at the following link . http://help.sap.com/saphelp_nw04/helpdata/en/ae/d03341771b4c0de10000000a1550b0/content.htm this is my question, the quality of service for FILE adapter type is given as  BE,EO,EOIO . Is it possible to defin

  • Registration key by instalation of oracle 10g

    Hello I buy book with instalation cd of oracle. When i try to install it i need a registration key. Where can I get this key. Thanks Stan

  • Alv in basic list?

    we can display a classical report as a basic list. can we display an alv as the secondary list for that classical report?