Need help on NXSD creation.

Guys
I have a scenario for NXSD translation. I tried multiple ways , but no luck.. Can any one help me out in getting/ guiding me to create NXSD for this simple layout..
Would be much thankful if you can help me on this..
Sesha|23|33,34|CoS
Raju|24|35,36,37|FTA
Rajan|22|38|FLA<newlinechar>
*<emptynewline>*
XML Expected to look similiar to below one ::
<Employees xmlns="http://TargetNamespace.com/InboundService">
<Employee>
<name>Sesha</name>
<age>23</age>
<Id>
<val>33</val>
<val>34</val>
</Id>
<company>CoS</company>
</Employee>
<Employee>
<name>Raju</name>
<age>24</age>
<Id>
<val>35</val>
<val>36</val>
<val>37</val>
</Id>
<company>FTA</company>
</Employee
<Employee>
<name>Rajan</name>
<age>22</age>
<Id>
<val>38</val>
</Id>
<company>FLA</company>
</Employee>
</Employees>

With your Suggestion Vlad, I have changed the NXSD and tried to execute.
SOURCE TEXT
Sesha|23|33,34|CoS
Raju|24|35,36,37|FTA
Rajan|22|38,39|FLA
NXSD:
     <xsd:element name="Employees">
     <xsd:complexType>
     <xsd:sequence>
<xsd:element name="Employee" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Name" type="xsd:string" minOccurs="0"
nxsd:style="terminated"
nxsd:terminatedBy="|" />
<xsd:element name="Age" type="xsd:string" minOccurs="0"
nxsd:style="terminated"
nxsd:terminatedBy="|" />
<xsd:element name="id">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="val" type="xsd:string" minOccurs="0" maxOccurs="unbounded"
nxsd:style="array"
nxsd:cellSeparatedBy=","
nxsd:arrayTerminatedBy="|"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Company" type="xsd:string" minOccurs="0"
nxsd:style="terminated"
nxsd:terminatedBy="${eol}"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
     </xsd:sequence>
     </xsd:complexType>
     </xsd:element>
The result is as below.
The first row got converted as expected. But the subsequent rows got into misplacement of data.
<Employees xmlns="http://TargetNamespace.com/ada">
<Employee>
<Name>Sesha</Name>
<Age>23</Age>
*<id>*
*<val>33</val>*
*<val>34</val>*
*</id>*
<Company>CoS</Company>
</Employee>
<Employee>
<Name>Raju</Name>
<Age>24</Age>
*<id>*
*<val>35</val>*
*</id>*
*<Company>36,37|FTA</Company>*
</Employee>
<Employee>
<Name>Rajan</Name>
<Age>22</Age>
*<id>*
*<val>38</val>*
*</id>*
*<Company>39|FLA</Company>*
</Employee>
</Employees>
Any clue on what could be causing this issue..
Thanks
Sesha
Edited by: Sesha on Aug 10, 2012 8:41 PM

Similar Messages

  • Need help with Catalog creation

    I have a catalog of 500 item I would like to sell over the
    web . This catalog is in a PDF format with graphics and text . How
    can I get into contribute and add the paypal cart buttons. I am
    trying to eliminate the need of recreating the catalog when it is
    all already created and shoud be able to convert for use in
    contribute. any help would be appreciated . If contribute is not
    the product for me let me know that as well. The catalog was
    created in illustrator and saved as a PDF file (if this
    helps)

    If you have the source design in Illustrator - you might want
    to use Dreamweaver or GoLive instead, so that you can insert your
    graphics and text elements using layers and hotslices. Contribute
    can then be used to manage your site content. For a simple site
    design, you can incorporate existing sample templates in
    Contribute, and then add the paypal shopping object to them. Since
    you have the graphical mockup in Illustrator this should be two
    ways to approach your catalog to web design.

  • Noob needs help with site creation -- interactive?

    I want to make a site where people can post and/or reply to other posts.
    I've used iWeb for a couple years so I'm good with "static" sites but how can I make one where people can post to the site themselves?
    For example, I write ::"what is your favorite rum when making a hurricane":: and a list of users/responses follows?
    Is that even possible?
    I'm using iWeb '09.
    Thanks,
    Jay

    Jay ~ Welcome to the discussions. You could link to a free forum you've set up here:
    http://www.lefora.com
    And to link to an external forum from iWeb's navigation bar:
    Link it to a blank internal page titled "Forum" (actually you can name the page whatever you want.) Then in that Forum page add an HTML Snippet with the following code:
    <script type="text/javascript">
    parent.window.location = "http://www.yourforumname.lefora.com"; // change this to your own URL
    </script>
    ...Once published, clicking on the Forum page in the navbar will immediately redirect to your external Forum page. (Thanks to Cyclosaurus for the code).
    Ning, the free "social networking" site, includes a forum:
    Add a rich single or multi-threaded discussion forum with categories, photos and attachments to your Ning Network. Limit forum topic creation to you or open it up to all of your members.
    http://about.ning.com/product.php

  • Need help in IDOC Creation

    Hi Guys,
    I need to create a Vendor Master using LSMW via IDOC Process..What are all the points needs to consider..
    Thanks
    Prabhu

    In LSMW object attributes... give like this..
    Message Type         CREMAS                      Vendor master data distri
    Basic Type           CREMAS04                    Vendor master data distri
    Enhancement
    after that continue normal LSMW procedure.

  • Need help with Maze creation

    Hi everyone!
    I'm currently trying to make a maze creator program. My problem is that it's not functioning properly, though i can't find any problems in the theory. since the program is not 10 lines long i don't want to post the whole program here, so i would like to ask if anyone can help me. If somebody wants some challenge, please answer to this post, and i can send the program in private.
    Aeren

    import java.io.*;
    import java.util.*;
    public class Maze {
    private int width, height;
    public int [][] mazeJoUt;
    public boolean [][] mazeBejart;
    public String [][] mazeHonnan;
    public boolean [][][] mazeFalak;
    public Maze(int height, int width) {
         this.height = height;
         this.width = width;
         mazeJoUt = new int[width][height];
         mazeHonnan = new String[width][height];                                             // Alapb�l semmi, ez jelzi, hogy m�g nincs bej�rva
         mazeFalak = new boolean[width][height][4];                                        // 0.�szak 1.nyugat 2.d�l 3.kelet
    public int getWidth() {
         return width;
    public int getHeight() {
         return height;
    public void init() {
         int i, j, k;
         for (i = 0; i < height; i++) for (j = 0; j < width; j++) mazeJoUt[j] = 0;
         for (i = 0; i < height; i++) for (j = 0; j < width; j++) mazeHonnan[j][i] = "Semmi";
         for (i = 0; i < height; i++) for (j = 0; j < width; j++) for (k = 0; k < 4; k++)mazeFalak[j][i][k] = true;
         mazeJoUt[0][0] = 1;
         mazeHonnan[0][0] = "Nyugat";
         mazeFalak[0][0][3] = false;
    public void createRoad() {
         int coordX = 0, coordY = 0;
         int szam;
         int sor = 3;                                                                           // sor a j� �t k�vet�s�re
         boolean ok = true;
         boolean kesz = false;
         Random randi = new Random();
         szam = randi.nextInt(2);                                                            // Az els&#337; utat a cikluson k�v�l kell meghat�rozni
         if (szam == 0) {                                                                                          // 0 eset�n d�lnek indulunk
         mazeFalak[0][0][2] = false;
         mazeFalak[0][1][0] = false;
         coordY++;
         mazeHonnan[0][1] = "Eszak";
         mazeJoUt[0][1] = 2;
         } else {                                                                                                    // 1 eset�n pedig keletnek
         mazeFalak[0][0][1] = false;
         mazeFalak[1][0][3] = false;
         coordX++;
         mazeHonnan[1][0] = "Nyugat";
         mazeJoUt[1][0] = 2;
         while(ok){
         int i,j;
         System.out.println("("+coordX+","+coordY+")");
         System.out.println(mazeHonnan[coordX][coordY]);
         for (j = 0; j < getHeight(); j++) {
              for (i = 0; i < getWidth(); i++) System.out.print(mazeJoUt[i][j]);
              System.out.println();
         System.out.println();
         if (coordX == getWidth()-1 && coordY == 0) for (j = 0; j < getHeight(); j++) {
              for (i = 0; i < getWidth(); i++) System.out.print(mazeHonnan[i][j]+ " ");
              System.out.println();
         int tempX = coordX, tempY = coordY;
         boolean eszak = true, del = true, kelet = true, nyugat = true;
         if (tempX == 0) nyugat = false; else
         if (tempX > 0 && !mazeHonnan[tempX-1][tempY].equals("Semmi")) nyugat = false;
         if (tempX == getWidth()-1) kelet = false; else
         if (tempX < getWidth()-1 && !mazeHonnan[tempX+1][tempY].equals("Semmi")) kelet = false;
         if (tempY == 0) eszak = false; else
         if (tempY > 0 && !mazeHonnan[tempX][tempY-1].equals("Semmi")) eszak = false;
         if (tempY == getHeight()-1) del = false; else
         if (tempX < getHeight()-1 && !mazeHonnan[tempX][tempY+1].equals("Semmi")) del = false;
         if (!(eszak || del || kelet || nyugat)) {
              System.out.println("Beragadtam!");
              if (!kesz) mazeJoUt[tempX][tempY] = 0;                                                                 // Beragadtunk, teh�t t�r�lj�k mint j� utat
              sor--;
              if (sor == 0) sor = 9;
              if (mazeHonnan[tempX][tempY].equals("Eszak")) tempY--;
                   else if (mazeHonnan[tempX][tempY].equals("Kelet")) tempX++;
                   else if (mazeHonnan[tempX][tempY].equals("Del")) tempY++;
                   else if (mazeHonnan[tempX][tempY].equals("Nyugat")) tempX--;
         }     else {                                                                                                         // beragad�s v�ge
              boolean joszam = false;                                                                      // Ha nem ragadtunk be, akkor keres�nk egy ir�nyt
              while (!joszam) {
              szam = randi.nextInt(4);
              //System.out.println(szam);
              switch (szam) {
                   case 0 : if (tempY > 0) { if (mazeHonnan[tempX][tempY-1].equals("Semmi")) {
                   mazeFalak[tempX][tempY][szam] = false; tempY--;                              // Ki�tj�k az adott ir�nyba a falat
                   mazeHonnan[tempX][tempY] = "Del";                                                  // Az �J helyen be�ll�tjuk, hogy honnan j�tt�nk
                   mazeFalak[tempX][tempY][2] = false; joszam = true;                         // Az �j helyen is ki�tj�k ugyanazt a falat
                   }} break;
                   case 1 : if (tempX < getWidth()-1) { if (mazeHonnan[tempX+1][tempY].equals("Semmi")) {
                   mazeFalak[tempX][tempY][szam] = false; tempX++;
                   mazeHonnan[tempX][tempY] = "Nyugat";
                   mazeFalak[tempX][tempY][3] = false; joszam = true;
                   }} break;
                   case 2 : if (tempY < getHeight()-1) { if (mazeHonnan[tempX][tempY+1].equals("Semmi")) {
                   mazeFalak[tempX][tempY][szam] = false; tempY++;
                   mazeHonnan[tempX][tempY] = "Eszak";
                   mazeFalak[tempX][tempY][0] = false; joszam = true;
                   }} break;
                   case 3 : if (tempX > 0) { if (mazeHonnan[tempX-1][tempY].equals("Semmi")) {
                   mazeFalak[tempX][tempY][szam] = false; tempX--;
                   mazeHonnan[tempX][tempY] = "Kelet";
                   mazeFalak[tempX][tempY][1] = false; joszam = true;
                   }} break;
              }                         //while joszam v�ge
              System.out.println("Haladunk");
              if (!kesz) mazeJoUt[tempX][tempY] = sor;                                             // Felt�telezz�k, hogy j� uton j�runk, ha nem ld. fenn
              if (tempX == getWidth()-1 && tempY == getHeight()-1) kesz = true;
              sor++;
              if (sor == 10) sor = 1;
         }                    // nem beragadt v�ge
              coordX = tempX;
              coordY = tempY;
              if (coordX == 0 && coordY == 0) ok = false;                                                  // Ha visszajutunk a starthelyhez, k�sz vagyunk
         }                    // while v�ge
         System.out.println("A ciklusnak vege");
    }                         // createRoad v�ge
    public static void main(String argv[]) {
         BufferedReader beolvas = new BufferedReader(new InputStreamReader(System.in));
         boolean ok = false;
         int magas = 0, hosszu = 0;
         while (!ok) {
         try {
              System.out.print("Please type in the height: ");
              magas = Integer.parseInt(beolvas.readLine());
              ok = true;
         } catch (Exception e) {System.out.println("Wrong format!");}
         ok = false;
         while (!ok) {
         try {
              System.out.print("Please type in the width: ");
              hosszu = Integer.parseInt(beolvas.readLine());
              ok = true;
         } catch (Exception e) {System.out.println("Wrong format!");}
         Maze myMaze = new Maze(magas, hosszu);
         myMaze.init();
         myMaze.createRoad();

  • Need help troubleshooting Index creation..

    Hi,
    I'm using RH8, Webhelp, working locally.
    I've tried several times to create an index, but each time it crashes.
    The first few times, I manually accepted the index keywords.....I'd spend about 25 minutes or so working on it, then RH would freeze on random files (different each time), causing me to reboot RH.  I've lost the entire index because it never completed.
    Now, I thought I would test it by just automatically adding the index keywords.......and after about 3-4 minutes of it working through the files, it froze. I can't even minimize the RH window, I have to reboot again.
    I've created an index for a previous project with no errors......but this is not the case with this project.
    Does anyone have any advice on what could be wrong?  Anything errors I can eliminate? files to test? review? anything?  I don't even know where to begin to troubleshoot this problem.......
    Thanks!

    HI,
    Just following up....
    1 - Yes, I have successfully created an index on a completely different project.
    2 - Windows xp, 32.
    I need to revisit this issue in a couple of months, I have other things to tend to.  I'll post back my "next attempts" on creating an index.
    but, if there's someone out there with an answer, by all means.........please share!
    Thanks!

  • Need help on chatroom creation

    I am preparing a multi user chat application using FMS and flash. In which the Users can able to chat with each other based on the selected chat room.
    For example, my chatroom will be created with below method.
    My chat application ‘main.asc’ was in FMS application folder  chat/
    To create a chat room, I will create the application instance by chat/chatroom. For now my chat application is working fine.
    Now I want to prepare a admin page, the admin can able to see all user chat history and he can also send message to all the chat users, irrespective of chat room. i think the admin should create common application instance.
    I am not sure how to done this. Any suggestion or guidelines please.

    thanks for your reply, manish
    I have modified the program, now my multi room chat application is working fine. i am not using shared object here.
    Let me explain my chatroom creation logic.
    Please read the logic below and confirm, whether I am in the correct path.
    Previously I have created my application instance (rtmp://myserver/chat/chatroom) along with chat room. Now I am creating a common application instance for all users even admin user. Desired chat room will passed as a parameter during onconnect() itself.
    I have added a condition in my server script for broadcasting a message. Whenever the condition receives the message it will broadcast that message to all the clients, who has logged in same chat room and admin too.
    For now the admin user can able to see all the chat history of the connected client. Actually I want to save all my chat history in a database. I am working on websevice to save this.
    Thanks again

  • Need help for database creation

    Hi all
    i am new to oracle and in learning stage.
    Date: 01-Jan-2006 shift: Morning/noon/night
    alert name resolved escalated
    cpu 4 0
    disk 2 0
    memory 1 0
    i want to store all these values into database. any help please....
    thanks

    i will be getting a file like this each day.
    Date: 01-Jan-2006
    shift: Morning/noon/night
    alert name resolved escalated
    cpu 4 0
    disk 2 0
    memory 1 0
    at present i am storing on excel sheet. but now i want to store it in a database. I created just two tables but i don't know whether they are correct or not
    resolved_tab
    alert_date_res date,
    alert_shift_res varchar2(10),
    alert_cpu_res number(10),
    alert_disk_res number(10),
    alert_memory_res number(10)
    same way i created eslalated_tab with _esc as extension to all fields. is it corret approach what i am following?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Need Help Re: Forms Creation Make Text Appear or Disappear?

    Hello,
    I am assisting in the creation of a form that will be used by support personnel to send to clients.
    I would like to know if it is possible to make a form where if the user clicks, let's say the check box, 3 or 4 sentences pre-defined are displayed.  If the box is not checked, I do not want those sentences displayed.  Thank you!

    I would like to know if it is possible to make a form where if the user
    clicks, let's say the check box, 3 or 4 sentences pre-defined are
    displayed.  If the box is not checked, I do not want those sentences
    displayed.  Thank you!
    Yes, this is possible.

  • Need help with complex column creation command

    Hello, all
    I need help with a complex column creation command and SQL anywhere help is not sufficient for it.
    Here is the situation:
    I need to write a generic DDL "alter table" command, which can add/modify columns without knowing in advance if they already exist in the destination table.
    Is there a command, which looks like:
    alter table "table1" add (on existing modify) column1 <datatype> <default> ?
    Thank you,
    Arcady

    Hi.
    I don't think this is supported in alter table command. But you can code that inside an if statement which queries systables & syscolumns. Your code should be something like that:
    if (select count(*) from sysobjects, syscolumns where sysobjects.id = syscolumns.id and sysobjects.name = 'some_table' and syscolumns.name = 'some_column') < 1
    begin
        alter table some_table add some_column numeric(12) not null
    end
    This is an example..
    Andreas.

  • Need help in identifying fields of sd report creation

    Hi Experts,
    I need to create report in sd from manual report .The fileds in report are taken from Quickbooks.so inorder to create report in sap I need to identify fields  in sap first.we dont had functional guy so i need help in identifying fields in sap for below mentioned report.
    Report: invoice distribution report-service billing for all states.
    Fields:customer number,customer name,city state,SAP Document number,Invoice date,period(month,year)invoice number,invoice type,currency,invoice amount in usd.
    Please help me in suggesting tcodes or table names from where i can fetch these fields.
    Thanking you in advance.
    Regards,
    narasimha.

    Hi Experts,
    Finally with all above suggestions i have chosen tables vbrk(billing document header data),kna1(customer header),vbrp.
    1.I created view to find the output of report with conditions as follows:
    tables:vbrk,kna1,vbrp
    vbrk-vbeln(invoice number)
    vbrk-fkart(invoice type)
    vbrk-fkdat(invoice date)
    vbrk-waerk(currency)
    vbrk-netwr(netvalue)
    vbrk-kunag(customer number)
    kna1-name1(customer name)
    kna1-ort01(customer city)
    kna1-regio(customer state)
    join condition:
    kna1-mandt=vbrk-mandt
    kna1-kunnr=vbrk-kunag.
    when i execute the report i am getting same value for lot of times.
    i am confused how to include sales document number.I hope sales document number and invoice are different.
    2.i have also added vbrp-aubel and join condition as
    vbrk-mandt = vbrp-mandt
    vbrk-vbeln = vbrp-vbeln.
    but when i execute the report i am getting lot of duplicated with same value and unknown invoice numbers.
    please let me know where i went wrong.
    is  there any standard adhoc report so that i can manipulate it with above requirement.
    vf05n is somewhat useful .is it possible to add  customer details in this??
    Thanks&Regards,
    narasimha.

  • Need help in Custom component creation with cq

    Hi,
    I have created my own component in adobe cQ and able to drag an drop in any page. for each instance I am seeing the copy of
    component under node /content/mypage/commoncomp. If I edit the properties using design dialog  I can able to store values as
    expected.
    Need help in
    1) When I drag and drop the component it shows null for the property by deafult if I click save on edit dialog then the
    value is showing. The default value is not shown by default while drag and drop my component it requires atleast one time to
    click save from dialog using design mode
    2) I need to use the default properties of the orginal components which is root and use the duplicated properties if incase user edit the properties of duplicated component. This may be too messy.... to be more clear
    I want to use a common component in many pages but the properties of the components should be updated only when user edit it in design dialog utill then I need the page to use properties of root component.
    Thanks

    You just need to create your own version of PlumtreeTopBarView (original in com.plumtree.common.uiparts), and use CustomActivitySpace.xml to override that view with your own view. Your version would use some kidn fo logic to determine whether or not to display certain elements. TheUI Customization Guide should help quite a bit, and we have several quickstarts for overriding views you can start from.
    Is there some Help file in PT that I can reference that will enable me to find what namespace does GetRequestURL() belongs to?I would simply do a string compare. Tokenize the URL into the base address / control arguments, perhaps splitting on the "?" symbol; then tokenize the base address on the ".". You'll end up with three strings. For portal.plumtree.com, the three strings would portal, plumtree, and com. You can then use those string in the logig you add to PlumtreeTopBarView.
    David Phipps
    Plumtree Software

  • Need help with project

    Hi all I'm working on a project and need help.
    I want the "New" button to clear all the fields.
    Any help?
    =======================================================
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Message extends JFrame implements ActionListener {
         public Message() {
         super("Write a Message - by Kieran Hannigan");
         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         setSize(370,270);
         FlowLayout flo = new FlowLayout(FlowLayout.RIGHT);
         setLayout(flo);
         //Make the bar
         JMenuBar bar = new JMenuBar();
         //Make "File" on Menu
         JMenu File = new JMenu("File");
         JMenuItem f1 = new JMenuItem("New");
         JMenuItem f2 = new JMenuItem("Open");
         JMenuItem f3 = new JMenuItem("Save");
         JMenuItem f4 = new JMenuItem("Save As");
         JMenuItem f5 = new JMenuItem("Exit");
         File.add(f1);
         File.add(f2);
         File.add(f3);
         File.add(f4);
         File.add(f5);
         bar.add(File);
         //Make "Edit" on menu
         JMenu Edit = new JMenu("Edit");
         JMenuItem e1 = new JMenuItem("Cut");
         JMenuItem e2 = new JMenuItem("Paste");
         JMenuItem e3 = new JMenuItem("Copy");
         JMenuItem e4 = new JMenuItem("Repeat");
         JMenuItem e5 = new JMenuItem("Undo");
         Edit.add(e5);
         Edit.add(e4);
         Edit.add(e1);
         Edit.add(e3);
         Edit.add(e2);
         bar.add(Edit);
         //Make "View" on menu
         JMenu View = new JMenu("View");
         JMenuItem v1 = new JMenuItem("Bold");
         JMenuItem v2 = new JMenuItem("Italic");
         JMenuItem v3 = new JMenuItem("Normal");
         JMenuItem v4 = new JMenuItem("Bold-Italic");
         View.add(v1);
         View.add(v2);
         View.add(v3);
         View.addSeparator();
         View.add(v4);
         bar.add(View);
         //Make "Help" on menu
         JMenu Help = new JMenu("Help");
         JMenuItem h1 = new JMenuItem("Help Online");
         JMenuItem h2 = new JMenuItem("E-mail Programmer");
         Help.add(h1);
         Help.add(h2);
         bar.add(Help);
         setJMenuBar(bar);
         //Make Contents of window.
         //Make "Subject" text field
         JPanel row2 = new JPanel();
         JLabel sublabel = new JLabel("Subject:");
         row2.add(sublabel);
         JTextField text2 = new JTextField("RE:",24);
         row2.add(text2);
         //Make "To" text field
         JPanel row1 = new JPanel();
         JLabel tolabel = new JLabel("To:");
         row1.add(tolabel);
         JTextField text1 = new JTextField(24);
         row1.add(text1);
         //Make "Message" text area
         JPanel row3 = new JPanel();
         JLabel Meslabel = new JLabel("Message:");
         row3.add(Meslabel);
         JTextArea text3 = new JTextArea(6,22);
         messagearea.setLineWrap(true);
         messagearea.setWrapStyleWord(true);
         JScrollPane scroll = new JScrollPane(text3,
                                  JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
                                  JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
         row3.add(scroll);
         add(row1);
         add(row2);
         add(row3);
         setVisible(true);
         public static void main(String[] arguments)  {
         Message Message = new Message();
    }

    Ok, given that I may have not been the kindest to you on the other thread (and I'm still annoyed that you went and cross-posted this), and that you did actually use code tags, I'm going to post some code here:
    Please take the following advice onboard though.
    1. When you are naming your artifacts, please use the java coding standard as your guide. So if you are naming a class you use a capital letter first, and use camel case thereafter. All method names begin with a lower case letter, and all variable names begin with a lower case letter (and again camel case after that)
    2. Please use self explanitory names (for everything), so no more row1, row2, or text1, text2, etc.
    3. The example I am giving below makes use of a single class to handle all actions, this is not really the best way to do this, and a better way would be to have a class to handle each action (that would remove the massive if() else if() in the action handler class.
    4. When you are using class variables they should be private (no exceptions, ever!), if you need to access them from other classes use accessors (eclipse and other IDE tools can generate these methods for you in seconds)
    5. Notice the naming convention for my constants (final statics), they are all upper case (again from the java coding standards document, which you are going to look for with google right?)
    6. I have hived some of the creation work to helper methods (the getSubjectTextField() etc), although it isn't advisable to be calling other methods from the constructor, since this is a GUI, and you want it to appear as soon as you create the class, we won't worry about this, but perhaps as an execrise you could work out a better way to do this?
    7. Personally, I don't like classes that implement listeners, unless they are specifically designed to do that job. So a Frame that is set up as an action listener is fine, provided the actions it listens for are associated with the frame, not its contents. If the actions are related to its contents, then a dedicated class is better.
    8. Another personal opinion, but I feel it makes code clearer, but others may disagree. If you are creating a variable solely to hold the result of a calculation, to be passed to a method in the very next line, then don't create the variable, just pass the method as the argument to the method (feel free to ignore this advice if the method call is extremely long, and a local would make it easier to read)
    Anyway, here is the code. I have removed most of the menu items, and leave this as an exercise for you. Also I have only created 2 methods (new and exit), I'll again leave it as an exercise for you to complete this.
    package jdc;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import javax.swing.AbstractAction;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JMenu;
    import javax.swing.JMenuBar;
    import javax.swing.JMenuItem;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import javax.swing.JTextField;
    import javax.swing.ScrollPaneConstants;
    public class Message extends JFrame {
        /** Constant for the new action command. */
        private static final String NEW_COMMAND = "New";
        /** Constant for the exit action command. */
        private static final String EXIT_COMMAND = "Exit";
        /** Subject text field. */
        private JTextField subjectTextField;
        /** Recipient text field. */
        private JTextField toTextField;
        /** Message text area. */
        private JTextArea messageTextArea;
        public Message() {
            super("Write a Message - by Kieran Hannigan");
            setSize(370, 270);
            FlowLayout flo = new FlowLayout(FlowLayout.RIGHT);
            setLayout(flo);
            setJMenuBar(createMenuBar());
            // Add "Subject" text field
            JPanel subjectRow = new JPanel();
            subjectRow.add(new JLabel("Subject:"));
            subjectRow.add(getSubjectTextField());
            // Add "To" text field
            JPanel toRow = new JPanel();
            toRow.add(new JLabel("To:"));
            toRow.add(getToTextField());
            // Make "Message" text area
            JPanel messageRow = new JPanel();
            JScrollPane scroll = new JScrollPane(getMessageTextArea(), ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
                    ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
            messageRow.add(scroll);
            add(toRow);
            add(subjectRow);
            add(messageRow);
            setVisible(true);
         * Clear all the fields.
        public void createNewMessage() {
            getSubjectTextField().setText("");
            getToTextField().setText("");
            getMessageTextArea().setText("");
         * Exit the application.
        public void exitApplication() {
            if (JOptionPane.showConfirmDialog(this, "Are you sure you would like to exit now?", "Exit",
                    JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
                System.exit(0);
         * @return The subject text field, (creates a new one if it doesn't already exist)
        private JTextField getSubjectTextField() {
            if (this.subjectTextField == null) {
                this.subjectTextField = new JTextField("RE:", 24);
            return this.subjectTextField;
         * @return The to text field, (creates a new one if it doesn't already exist)
        private JTextField getToTextField() {
            if (this.toTextField == null) {
                this.toTextField = new JTextField(24);
            return this.toTextField;
         * @return The message text area, (creates a new one if it doesn't already exist
        private JTextArea getMessageTextArea() {
            if (this.messageTextArea == null) {
                this.messageTextArea = new JTextArea(6, 22);
                this.messageTextArea.setLineWrap(true);
                this.messageTextArea.setWrapStyleWord(true);
            return this.messageTextArea;
         * Helper method to create the menu bar.
         * @return Menu bar with all menus and menu items added
        private JMenuBar createMenuBar() {
            JMenuBar bar = new JMenuBar();
            JMenu fileMenu = new JMenu("File");
            fileMenu.add(new JMenuItem(new MenuItemAction(this, NEW_COMMAND)));
            fileMenu.add(new JMenuItem(new MenuItemAction(this, EXIT_COMMAND)));
            bar.add(fileMenu);
            // TODO add all other menu's and menu items here....
            return bar;
         * Private static class to handle all menu item actions.
        private static class MenuItemAction extends AbstractAction {
            /** Instance of the message class. */
            private Message message;
             * @param actionName
            public MenuItemAction(Message messageFrame, String actionName) {
                super(actionName);
                this.message = messageFrame;
             * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
            public void actionPerformed(ActionEvent e) {
                if (e.getActionCommand().equals(NEW_COMMAND)) {
                    this.message.createNewMessage();
                } else if (e.getActionCommand().equals(EXIT_COMMAND)) {
                    this.message.exitApplication();
                // TODO Add the other event handlers here
        public static void main(String[] arguments) {
            Message messageFrame = new Message();
            messageFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }If you have any questions, please let me know, as there are a number of new areas introduced that you may not have come across before.

  • Need help to trace the place where error occuring in Web UI of type System

    Hi All,
    Need help to trace the place where error occurring in Web UI of type System error,
    this error coming while saving the corporate account creation,
    error message description : - System error: Interruption in Routine READ TABLE GT_CHAR_VAL, CHAR_NAME = PVTLTD_CLEAN_SEGMENT
    System error: Interruption in Routine READ TABLE GT_CHAR_VAL, CHAR_NAME = PVTLTD_CLEAN_CLASS-CP
    thanking you.
    Best Regards,
    VijHyd

    Hi Nagaraj,
    See that the mandatory SICF setting are enabled or Active in the SICF Services.  Follow the steps as below:-
    Enter the TCode SICF
    Execute the same for Hierarchy Type SICF.
    Check the following SAP Note 1295006.
    If every thing is Active then, the IC Agent role will open.
    Still if it is not opening Let me know.
    regards,
    Sarangamath

  • Need User Exits for Creation of Delivery and for Posting Goods Issue

    Hi,
    I need User Exits for
    Creation of Delivery
    Posting Goods Issue
    I need to make some checks regarding customer license expiration and if checks fail, I need to stop Creation of Delivery and Posting Goods Issue.
    Thanks in advance,
    Will reward,
    Mindaugas

    In the delivery you can use userexit USEREXIT_SAVE_DOCUMENT_PREPARE to make your checks and send an error message to the user in case they fail.
    You can find this user exit (form routine) in include MV50AFZ1.
    Hope that helps,
    Michael

Maybe you are looking for

  • Airport Extreme in Leopard shows up as a Windows Server in Finder sidebar.

    Seriously. I am at a loss here. I have an Airport Extreme connected to two USB drives (with a USB hub) that has worked fine for months. Recently (since upgrading to 10.5.1) the AEBS shows up as a PC server AND an AEBS in the sidebar of my Finder unde

  • What to look for when purchasing iPhone external battery?

    Next month I'll be taking a 5 day trip to NYC and I'll be using my built-in iPhone 4 Google Maps GPS a lot, so I'm in the market to buy an external battery. So with that said, what should I look for when purchasing one? I've noticed a lot of these ad

  • Seeburger ftp adapter issue

    Hi there, We have the following scenario. We want to get EDI 861 via ftp from our partner  to XI to our R3. The challenge we are facing is getting started with seeburger adapters. We looked into seeburger ftp/van adapter. We are not using VAN. Is it

  • Accessing 64-bit Oracle from 32-bit ODBC

    Hi I am installing a software using 32-bit ODBC for connection to Oracle. The server has been installed by our client and has the following specs: - AMD Opteron Processor 280 - Windows server 2003 R2 Standard x64 Edition SP2 - Oracle 10g Release 10.2

  • Problem while using Ajax in APEX.

    Hi All, I am using the this function in my application to overcome the && problem.. here is the query DECLARE l_counter NUMBER; l_o_name VARCHAR2 (2000); BEGIN FOR rec IN (SELECT distinct HTF.ESCAPE_SC (atct_attr_type) a,HTF.ESCAPE_SC (atct_attr_type