Is my code structure correct.

This is a question about OOPs structure for an AIR
application using flex 3 and actionscript3 without flex builder
(IDE is eclipse with AXDT and ant). I am new to forums so redirect
me if appropriate:
The data maintenance will occur on an infrequent basis. Is
this a good structure to using mxml and AS3?
Note: I know that I can create the data maintenance Panel and
other necessary controls in main.mxml, however I find that a large
mxml file is hard for me to work with.
Thanks in advance for your help and comments.
Dick

no this isn't a good structure. Keeping everything in one
mxml is asking the code maintainer to be "punished".
Do this:
1. separate your states into "views", by creating custom
components to represent each states.
2. set up a blank "home view" state. All other states you
have can then use it as reference.
3. to manage states create a "model" (singleton) to handle
the transition from state to state
4. create as3 files specific to each "view" and reference
them in their respective mxml files.
take a look at this link:
http://beingwicked.com/2008/07/flex-initialize-and-the-hassles-of-changing-state/

Similar Messages

  • Compile class file, check for code structure quality

    now i am trying to develop a system for my college final year project..the main function is to help the lecturer to mark the student java assignment
    any way to compile the java file..just to check for the error? if got error then 0 mark..no error got mark..and then check for the code structure and so...base on that ..to decide the student mark..like if good structure 20 mark..bad? 5 mark and so.
    is it possible to do so?
    Junit?
    any sample?

    Checking for errors is easy, just write a script to check if javac completed successfully. You can use similar approaches (possibly needing to parse the output) for jlint/PMD/whatever to check code structure. If there's any custom checks you want to do, though, I suggest you grab a parser (possibly witgh semantic analysis; I've found the Eclipse one is rather easily extracted and is good for this stuff) and write manual checks. It might be easier to write PMD rules, but you won't have the flexibility.

  • GL code Structure

    Dear gurus
    We are going for upgradation from 4.7E to ECC 6.0, in this we would like to convert GL Code structure(6 digit) to 8 digit Structure.
    Is it possible in ECC 6.0, if so, what r the consequence generally face.
    Can we create new GL Structure and can be transferred from 6 digit structure to 8 digit GL Code strucutre
    regards

    Hi,
    I give below my views :
    The chart of Account will hold upto 10 digits.
    You have to change the interval in OBD4 if you have given only 6 digit for accounts groups.
    The transaction data with old GL account numbers cannot be changed.
    The financial statement version derived so will have two accounts with same description.
    All the automatic account assignment has to be changed with new numbers.
    All the primary cost element numbers and the relative assignments in CO area has to be changed.
    The cut off date can be fixed as 31.03.2010 to enable you to take the balance sheet with old gl
    account numbers and thereafter upload the balances in new version is preferred.
    Regards,
    Sadashivan

  • Determining Code Structure

    Does anybody know if there is a way to determine the code structure (variables, statements, loops) of a pl/sql program unit (package, function, procedure, etc)?
    There are some code editors (e.g. PL/SQL developer) that makes avaliable a code structure window and a conventional code editor window. These windows are usually connected, so when you cilck on an item of the code structure window, the matching lines on the code editor window are highlighted.
    How does those kind of code editors determine the structure of a program unit? Do they have a client-side parser to read and analyze source code. Is there any Oracle API to get this information?
    Edited by: user630459 on 12/05/2009 05:10
    Edited by: user630459 on 12/05/2009 05:13
    Edited by: user630459 on 12/05/2009 06:05
    Edited by: user630459 on 12/05/2009 06:06

    Thanks, but unfortunetaly we use Oracle 10g Release 2. Since there aren't other options, I think I'll have to parse source code. I'm going to use an automatic paser generator (e.g. ANTRL framework) to save me from language processing stuff. Do you kown where I could find the PL/SQL Grammar?
    Edited by: user630459 on 12/05/2009 10:35
    Edited by: user630459 on 12/05/2009 10:36
    Edited by: user630459 on 12/05/2009 12:56
    Edited by: fadc80 on 13/05/2009 04:38
    Edited by: fadc80 on 13/05/2009 04:56

  • HT3702 My Payment Method That Is On Fill Is Correct And My Security Code Is Correct You All Are Telling Me That It Is Invaild And I Can Not Download No Free Apps From The Apps Store!!!!!!!!

    My Payment Method That Is On Fill Is Correct And My Security Code Is Correct You All Are Telling Me That It Is Invaild And I Can Not Download No Free Apps From The Apps Store!!!!!!!!

    The short answer is no.
    Unless you are selling the app via the Enterprise Deployment option, everyone has to download via their own iTunes account ID. Yes, iTunes can be used by multiple IDs but this makes it very messy to resolve later.
    What kind of app is this? Which Expo? If an Expo for selling apps has poor Internet connection I would question the validity of using such an expo in the first place.

  • TS1292 I put the code in correctly but it says, "The Gift certificate or prepaid code has not been properly activated." or "The code you have entered has not been recognized as valid." Help ?

    I put the code in correctly but it says, "The Gift certificate or prepaid code has not been properly activated." or "The code you have entered has not been recognized as valid." Help ?

    You will need to contact the iTunes Store.

  • Problem in retreiving directory structure, code needs correction

    hello there
    I am trying to fetch the directory structure of a particular directory in a way that the structure of subdirectories is also displayed.
    I have the following code:
    CODE:
    import java.io.*;
    public class FetchDir2
    static File dirStruct[][] = new File[300][100]; //stores the directory structure at a particular level
    static Integer pastIndex[] = new Integer[300]; //Stores index upto which a particular level has been scanned
    static String path = "C:/trydir"; //path of user's workspace, change it accordingly
    static int level = 0;
    static int index = 0;
    static int j=0;
    static int i=0;
    public static void main(String s[])
    File fileTry = new File(path);
    for(int i=0;i<300;i++)
         pastIndex=0;
    fetchStr(fileTry);
    public static void fetchStr(File fileTry)
    dirStruct[level] = fileTry.listFiles(); //fetch list of files and directories at this LEVEL
    sort(dirStruct[level]);
    for(i=0;i<dirStruct[level].length;i++) //loop to scan each element at this level
    if(dirStruct[level][i].isFile()) //if file is encountered
    System.out.println("Level:"+level+"\t Index:"+pastIndex[level]+"\t DirStruct.Length:"+dirStruct[level].length);//CHKPOINT
         System.out.println("<file>"+dirStruct[level][i].getName()+"</file>"); //print file element
         pastIndex[level]++; //increase the index at this level by 1
    //     if(dirStruct[level].length==0)
    //     {break;}
    //     else
         if(pastIndex[level]==dirStruct[level].length)
         System.out.println("</directory>");
         pastIndex[level]=0;
    level--;
         if(level==-1)
              break;     
    if(dirStruct[level][i].isDirectory())
    System.out.println("Level:"+level+"\t Index:"+pastIndex[level]+"\t DirStruct.Length:"+dirStruct[level].length);//CHKPOINT
         String path = dirStruct[level][i].getPath();
         File f = new File(path);
         System.out.println("<directory>PATH:"+path);
         pastIndex[level]++;
         if(pastIndex[level]==((dirStruct[level].length)-1))
         pastIndex[level]=0;
         level--;
         System.out.println("</directory>");
         else
         level++;
         //System.out.println("</directory>");
         fetchStr(f);
    public static void sort(File dirStruct[])
    for(i=0;i<dirStruct.length;i++)
    for(j=0;j<i;j++)
         int compare = dirStruct[i].compareTo(dirStruct[j]);
         if(compare>0)
         swap(dirStruct[i],dirStruct[j]);
    public static void swap(File f1,File f2)
    File f3;
    f3=f1;
    f1=f2;
    f2=f3;
    The dirctory structure used for testing is:
    <dir trydir>
    <file>f1</file>
    <file>f2</file>
    <file>f3</file>
    <dir d1>
    <dir d21>
    <file>f</file>
    </dir>
    <dir d22>
    <file>f</file>
    </dir>
    <file> f21</file>
    <file> f22</file>
    </dir>
    OUTPUT:
    Level:0 Index:0 DirStruct.Length:5
    <file>a1.txt</file>
    Level:0 Index:1 DirStruct.Length:5
    <directory>PATH:C:\trydir\d1
    Level:1 Index:0 DirStruct.Length:4
    <directory>PATH:C:\trydir\d1\d21
    Level:2 Index:0 DirStruct.Length:1
    <file>f31.txt</file>
    </directory>
    Level:1 Index:1 DirStruct.Length:4
    <directory>PATH:C:\trydir\d1\d21
    Level:2 Index:0 DirStruct.Length:1
    <file>f31.txt</file>
    </directory>
    Level:1 Index:2 DirStruct.Length:4
    <directory>PATH:C:\trydir\d1\d21
    </directory>
    Level:0 Index:2 DirStruct.Length:1
    <file>f31.txt</file>
    Can some one please correct this code.
    10 dukes are staright yours if you can.

    hi
    here is the code i work for u
    The code is changed and go through it
    import java.io.*;
    public class FetchDir2 {
        final static String path = "C:/web"; //path of user's workspace, change it accordingly
        public static void main(String s[]) {
            File fileTry = new File("c:/web");
            fetchStr(fileTry,0,0);
        public static void fetchStr(File fileTry,int level,int idx) {
            File dirList[]=fileTry.listFiles();
            sort(dirList);
            File f=null;
            System.out.println("Level:" + level+" Index:"+idx +" DirStruct.length:"+dirList.length);
            for(int i=0;i<dirList.length;i++){
                f = dirList;
    System.out.println("Level:"+level+" Index:"+i );
    if(f.isFile()){
    System.out.println("<file>"+ f.getName()+"</file>");
    else{
    System.out.println("<directory> Path:"+fileTry.getPath());
    fetchStr(f,level++,i);
    System.out.println("</directory>");
    public static void sort(File dirStruct[]) {
    int compare=0;
    for(int i=0;i<dirStruct.length-1;i++) {
    for(int j=i+1;j<dirStruct.length;j++) {
    compare= dirStruct[i].compareTo(dirStruct[j]);
    if(compare>0)
    swap(dirStruct[i],dirStruct[j]);
    public static void swap(File f1,File f2) {
    File f3;
    f3=f1;
    f1=f2;
    f2=f3;
    }Hopes it helps you...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Best practice for code structure to control multiple devices in a 2 stage-sequ​ence

    I have a question about code architecture and getting multiple devices controlled and sychronized for one experiment. This is an "architecture"-type inquiry, so I am hoping for some suggestions on how to proceed.
    I run an experiment in which I control 2 NI PCI-6733. I am soon to add a Tektronix AFG 3022B, and have long been putting off an opportunity to rewrite my labview code from the ground up. I inherited it from an earlier research, and while functional, I would like to make it easier to modify and break up into subVi's and such. Link to the current program (labview 8.6.1) is here if you would like to see the code that is currently used, and the subvi's are in a zip file. The current version of the experiment consists of just one stage, all the writing of the data to the PCI cards is saved for the end. I need to change this in my new setup though. 
    The new experiment consists of 2 stages. The first will run (looping an output array to the PCI cards) until it hears a "true" from another computer (connected via TCP). At that point, it should switch to stage 2 and run a sequence (usually 10^5 timeunits in length, where the time unit is 0.1 ms) that outputs to the two PCI cards, the AFG 3022B, and with the flexibility to add more devices in the future.
    Most appreciated would be structural advice. How to arrange the VIs, if it's good to use a "master" VI that would control the two subVi's of stage 1 and 2, etc...  Feel free to ask for more details if it would help clarify my question. Thanks!
    Solved!
    Go to Solution.

    Programs of this type usually use a state machine of some sort.  You can find many tutorials on LabVIEW state machines in these forums or the LAVA forums.  If you are doing a rewrite, I would also recommend you consider LabVIEW classes.  They help modularize your code and make the subparts more reuseable.  You may end up with less to maintain, as a result.
    <shamelessPlug>You may also want to consider TestStand.  It was designed to run sequences of tests, so may make your life easier.  It could also be gross overkill.</shamelessPlug>
    Let us know if you run into issues with state machines or classes.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • When I sign in to my account it's telling me that the security code on my credit card is wrong  and the code is correct could anyone help with this

    When I try to sign in to my account it's telling me my sercurity code on my credit card is wrong but it's not can anyone help I can't download

    Open the iTunes app on your computer and sign into your account to see that everything is correct.

  • Code runs correctly when compiled by SQL developer but not SQL Plus

    I have a rather large package body I need to deploy and compile ... It's big and complex (I inherited the project). Our it dept is huge and scripts are deployed by the dba team and they seem to only use sql plus. My code deploys and runs fine when compiled in sql developer. Once I compile it from SQL plus it stops working. It runs and using debug statements I can see the values are correct but it no longer inserts the data into the proper tables. I get ZERO errors or warnings when this is compiled in SQL Plus and no errors are generated from the code at run time. I've diffed the extracts of the code from the DB after each deployment and the only difference is the blank lines which SQL Plus strips out when you load the file. Has anyone run into anything remotely similar and if so how did you solve it? I've tried modifying the code to no avail, adding in comments to preserve the white space makes no difference. The thing that really kills me is that there is no error at all.

    Ok this is the problem area.... vReplyMessage is a clob. I've replaced it in this section of processing with a varchar2(32000). And now it works. I still would like to know why though. Nothing is changed when I load it though sqlplus or sql developer but this line " update swn_recip_response_t set SWN_RECIP_RESPONSE = vTextReply where notification_id = v_notification_id; " would never execute with the clob. Logging showed that the clob had the correct value though. I am puzzled.
    begin
    call_SWNPost('http://www.sendwordnow.com/usps/getNotificationResults',vMessageText, vReplyMessage, v_status_code, v_status_phrase, '');
    exception
    when others then
    raise eJavaException;
    end;
    vTextReply := dbms_lob.substr( vReplyMessage, 32000, 1 );
    if (vDebug) then
    update PEMS_PROD_2.SWN_POST_LOG set response = 'notif_id == '|| v_notification_id || 'status code == '|| v_status_code|| ' '||vTextReply where log_pk = vLogPK;
    commit;
    end if;
    IF v_status_code = 200 then
    v_has_error := 'N';
    ELSE
    v_has_error := 'Y';
    END IF;
    -- we handle all exceptions below in case something goes wrong here.
    -- this area can die silently.
    vTextReply := replace(vTextReply,'<getNotificationResultsResponse xmlns="http://www.sendwordnow.com/usps">', '<getNotificationResultsResponse xmlns:xyz="http://www.sendwordnow.com/usps">');
    begin
    insert into swn_recip_response_t(notification_id) values (v_notification_id);
    exception
    when others then
    if (vDebug) then
    err_num := SQLCODE;
    err_msg := SUBSTR(SQLERRM, 1, 100);
    insert into PEMS_PROD_2.SWN_POST_LOG (LOG_PK, create_date, REQUEST, notification_id) values(pems_prod_2.swn_post_log_seq.nextval,sysdate,
    'err_num - '||to_char(err_num)|| ' error_msg - '|| err_msg, v_notification_id);
    commit;
    else
    null;
    end if;
    end;
    commit;
    begin
    update swn_recip_response_t
    set SWN_RECIP_RESPONSE = vTextReply
    where notification_id = v_notification_id;
    exception
    when others then
    if (vDebug) then
    err_num := SQLCODE;
    err_msg := SUBSTR(SQLERRM, 1, 100);
    insert into PEMS_PROD_2.SWN_POST_LOG (log_pk, create_date, REQUEST, notification_id) values(pems_prod_2.swn_post_log_seq.nextval,sysdate,
    'err_num - '||to_char(err_num)|| ' error_msg - '|| err_msg, v_notification_id);
    commit;
    else
    null;
    end if;
    end;
    commit;
    -- parse through the XML document and update the notification and recipient records
    -- parse the clob into an xml dom object
    begin
    vReplyMessage := vTextReply;
    ...

  • Best practices code structure for large projects?

    Hi, I come from the Java world where organizing your code is handled conveniently through packages. Is there an equivalent in XCode/Objective C? I'd rather not lump all my observers, entities, controllers, etc in one place under "Classes"...or maybe it doesn't matter...
    If anyone could point me to a document outlining recommended guidelines I'd appreciate it.
    Thanks! Jon

    If you have a small project, you can setup Groups in Xcode to logically organize your files. Those Groups do not necessarily have to correspond to any directory structure. I have all my source files in one directory but organize them into Groups in Xcode.
    If you have a larger project, you can do the same thing, but with code organized into actual directories. Groups can be defined to be relative to a particular directory.
    If really do have a large project, you should organize things the same was as in Java. Your "packages" would just be libraries - either static or dynamic.
    As far as official guidelines go, there really aren't any. It would be best to stick to the Cocoa Model-View-Controller architecture if that is the type of application you are working on. For other software, you can do it however you want, including following something like Sun's guidelines if you want.

  • Code structure

    Hi,
    In my applet code below the section between the two lines of //// in the paint method doesn't need to be re-done every time I redraw just once will do fine. But when I try to move it into the start method it wont complie because the variables are not public/can't be resolved.
    So how do I move this section of code to somewhere more efficent and not get the errors?
    Thanks for any suggestions.
    Ann
    (I trimed a lot of detail out to make it easyer to see the structure I hope)
    public class ArrayExpApplet extends Applet
                           implements ItemListener {
      public void init() {
          System.out.println("initiating...");
          setBackground(new Color(224, 238, 238));;
      public void start() {
          System.out.println("starting...");
              Panel canvasPanel = new Panel();
              Canvas graph = new Canvas();
              JPanel cbp = CheckBoxPanel();
              setLayout(new BorderLayout());
              canvasPanel.setLayout(new BoxLayout(canvasPanel, BoxLayout.LINE_AXIS));
              canvasPanel.add(graph);
              canvasPanel.add(cbp);
              add("East", canvasPanel); 
         public JPanel CheckBoxPanel() {
              //Create the check boxes.
              return (p);
    // add a checkbox listener
         public void itemStateChanged(ItemEvent event) {
              repaint();
         public void paint(Graphics g) {
              System.out.println("Paint");
              double[][] expLevels = new double[4][5];
              String array_str = this.getParameter("array_string");
              System.out.println("array_string "+array_str);
              String[] rows = array_str.split (";");
              for (int k = 0; k < rows.length; k++) {
                   System.out.println("row "+k+" = "+rows[k]);
                   String[] cols = rows[k].split (",");
                   for (int l = 0; l < cols.length; l++) {
                        System.out.println("col "+l+" = "+cols[l]);
                        expLevels[k][l]= Double.parseDouble(cols[l]);
              //find max expression to scale y axis
              double max=0;
              for (int i=0; i<4; i++) {
                   for (int j=0; j<5; j++){
                        if (expLevels[i][j]>max) {max=expLevels[i][j];}
              int originX=100;
              int step=100;  //distance between exposures on x axis
              int height=200;
              int originY=height+(originX/2);
              double scale=height/(double)max;
              //scale=0.5;
              //set up an array of 5 colours
              Color[] EColor = new Color[5];
              EColor[0]= new Color(200,0,255); //magenta
              EColor[1]= new Color(0,0,255);      //green
              EColor[2]= new Color(0,255,0);      //blue
              EColor[3]= new Color(254,190,0); //yellow
              //Draw the data
              int x=originX; int y;
              for (int i=0; i<4; i++) {
                   System.out.println("CheckBox "+i+" is "+checkBoxSetting);
                   if (checkBoxSetting[i]) {
                        g.setColor(EColor[i]);
                        for (int j=0; j<4; j++){
                             y=j+1;
                             g.drawLine(x,originY-(int)(expLevels[i][j]*scale), x+step, originY-(int)(expLevels[i][y]*scale));
                             x=x+step;
                        x=originX;
              //draw axis
              //lable x axis
              //lable y axis
         public Dimension getMinimumSize() {return new Dimension(550,300);}
         public Dimension getPreferredSize() {return getMinimumSize();}
    public void stop() {
    System.out.println("stopping...");
    public void destroy() {
    System.out.println("preparing to unload...");

    This is what init() is for.
    import java.applet.Applet;
    import java.awt.BorderLayout;
    import java.awt.Canvas;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.Panel;
    import java.awt.event.ItemEvent;
    import java.awt.event.ItemListener;
    import javax.swing.BoxLayout;
    import javax.swing.JPanel;
    public class ArrayExpApplet extends Applet
                           implements ItemListener {
      private double[][] expLevels = new double[4][5];
      private Color[] EColor = new Color[5];
      private int originX=100;
      private int step=100;  //distance between exposures on x axis
      private int height=200;
      private int originY=height+(originX/2);
      private double scale=-1;
      public void init() {
          System.out.println("initiating...");
          setBackground(new Color(224, 238, 238));;
              String array_str = this.getParameter("array_string");
              System.out.println("array_string "+array_str);
              String[] rows = array_str.split (";");
              for (int k = 0; k < rows.length; k++) {
                   System.out.println("row "+k+" = "+rows[k]);
                   String[] cols = rows[k].split (",");
                   for (int l = 0; l < cols.length; l++) {
                        System.out.println("col "+l+" = "+cols[l]);
                        expLevels[k][l]= Double.parseDouble(cols[l]);
              //find max expression to scale y axis
              double max=0;
              for (int i=0; i<4; i++) {
                   for (int j=0; j<5; j++){
                        if (expLevels[i][j]>max) {max=expLevels[i][j];}
              scale=height/(double)max;
              //set up an array of 5 colours
              EColor[0]= new Color(200,0,255); //magenta
              EColor[1]= new Color(0,0,255);      //green
              EColor[2]= new Color(0,255,0);      //blue
              EColor[3]= new Color(254,190,0); //yellow
      public void start() {
          System.out.println("starting...");
              Panel canvasPanel = new Panel();
              Canvas graph = new Canvas();
              JPanel cbp = CheckBoxPanel();
              setLayout(new BorderLayout());
              canvasPanel.setLayout(new BoxLayout(canvasPanel, BoxLayout.LINE_AXIS));
              canvasPanel.add(graph);
              canvasPanel.add(cbp);
              add("East", canvasPanel); 
         public JPanel CheckBoxPanel() {
              //Create the check boxes.
              return (p);
    // add a checkbox listener
         public void itemStateChanged(ItemEvent event) {
              repaint();
         public void paint(Graphics g) {
              System.out.println("Paint");
              //Draw the data
              int x=originX; int y;
              for (int i=0; i<4; i++) {
                   System.out.println("CheckBox "+i+" is "+checkBoxSetting);
                   if (checkBoxSetting[i]) {
                        g.setColor(EColor[i]);
                        for (int j=0; j<4; j++){
                             y=j+1;
                             g.drawLine(x,originY-(int)(expLevels[i][j]*scale), x+step, originY-(int)(expLevels[i][y]*scale));
                             x=x+step;
                        x=originX;
              //draw axis
              //lable x axis
              //lable y axis
         public Dimension getMinimumSize() {return new Dimension(550,300);}
         public Dimension getPreferredSize() {return getMinimumSize();}
    public void stop() {
    System.out.println("stopping...");
    public void destroy() {
    System.out.println("preparing to unload...");

  • Cause Code - Structure for Plant Maintenance Notification

    Dear firends,
    I am trying to create cause code group structure for a notification as follows,
    --> Superior Level Cause Code Group ( XXXX)
                        - -> Cause Code Group (XXXX-SUB)
                                       - -> Cause Code ... (1010)
    In standard SAP we can create a Cause code group for a catalog then assign the Cause codes to the Cause code groups then assign to the Catalog profile ...and the structure looks like as follows (AS IS)
            - -> Cause Code Group(XXXX-SUB)
                                       - -> Cause Code ...(1010)
    But in my case i need to add one more level above the "Cause Code Group" as shown below ( TO BE)
    --> Superior Level Cause Code Group ( XXXX)
                        - -> Cause Code Group (XXXX-SUB)
                                       - -> Cause Code ... (1010)
    Please assist me is there any way to accomplish this requirement through user exit or something else.Thanks.
    Regards,
    MJ.
    Edited by: MJ Masi on Sep 23, 2009 10:43 PM

    Babu,
    Do the Divisions have its own Equipment base?          - Ans  : NO
    Do they create Notification for the same Equipment?   - ANS : YES
    So, lets take the case 2 you mentioned ...
    Case2:
    If they are creating notification for a same equipment (EQ01 is common for all Divisions), you can create Defect code group with Division Name CHEMDEF1, CHEMDEF2,... BIODEF1, BIODEF2... etc ...
    User has to select appropriate Defect code group and defect code.... If he enters Def code as Cause code group system will populate caused relevant for particular Def Code ...
    Problem here is lets say the Defect Code Group CHEMDEF1 has two defect code A010 & A020 ,
                                                                                  CHEMDEF2 has three defect code B010, B020 & B030.
    I would like to bring this Defect Code Group CHEMDEF1 & CHEMDEF2 under DIV1 and Defect Code Group BIODEF1 & BIODEF2 under DIV2.
    Example : The structure should look like this ..
                    - DIV1  ( Superior level needs to be added on the Structure)  - Will it be possible ?
                            - CHEMDEF1  ( Defect Code Group)
                                           - A010 ( Defect Code)
                                           - A020( Defect Code)
                            - CHEMDEF2( Defect Code Group)
                                           - B010( Defect Code)
                                           - B020( Defect Code)
                                           - B030( Defect Code)
                    - DIV2 ( Superior level needs to be added on the Structure)  - Will it be possible ?
                            - BIODEF1
                                           - C010
                                           - C020
                            - BIODEF2
                                           - D010
                                           - D020
                                           - D030
    Please let me know.Thanks.
    Regards,
    MJ Masi

  • Company code structure

    Hi, is there any way to see the structure of any company code from company code to sloc level in graphical or tabular form?

    Just go to Tcode: EC01
    you will get a screen " organisational object company code"
    here click on the tab structure..
    then you will get a screen "organisational structure for company code"
    here click on the tab navigation..
    a pop up will come tick on that popup..
    then you will get a screen"objects lists"
    here click on the search tab, a pop-up comes write your company code and press enter..
    another pop-up will come double click on your company code..
    then choose your company code or press F2..

  • Code Structure Problem

    My description really isn't that great, i found it quite difficult to explain so please ask if you have any more questions.
    I have an Abstract class Called Animal, and two subclasses of this (which obviously extend Animal). The animal class implements an actor interface class called Actor in which there are 2 methods defined, one called act and the other called isAlive() .
    My programme does a simulation of wild life, one of the animals kills the other (only 2 at the moment) and this was already implemented by the teacher, our job now is to do a few tasks which i have previously done and now the second to last task is to create a hunter.
    The principle is that this new Hunter must define a new actor, ie an implementation of Actor(which means my new class Hunter has to implement the Actor class?)and must be a non animal, i chose a human, though it could have been the weather or some other scenario.
    I based the new class on that of the hunter of the two animals.This is fine and it works, however i have some serious code duplication between the Hunter class and one of the animal classes of which i can see no solution too, this worries me as code duplication isn't good and i was hoping maybe someone could help me out with some tips for potential changes to the structure.
    Regards

    and must be a non animal, i chose a human, So are you claiming to be a mineral, or a maybe vegetable? Of course humans are Animals! This simple fact of reality invalidates your current model, leading to code duplication.
    I suggest that you chose another scenario... Fire is-a Killer... I suppose one could define Fire in terms of an Actor having methods: act and isAlive ... fires burn and kill, and then they go out.
    Edit:
    Poignant at [the moment|http://images.google.com/images?q=victorian+bushfires].
    could anyone point me to the java tutorials on delegation please?Ummm... I'm unaware of any... but the general idea is certainly explained by many online resources... google for "delegate pattern"... and yes (IMHO) that's a preferable solution your code duplication woes than defining some dodgy abstract super class... because type inheritance (interfaces) is more flexible than implementation inheritance (classes).
    Cheers. Keith.
    Edited by: corlettk on 1/03/2009 22:33 ~~ Typos, and stuff.

Maybe you are looking for

  • No longer offering Java Services to our clients

    http://area51solutions.com/modules.php?name=News&file=article&sid=2 As of July 8th 2008 Area 51 IT Solutions will no longer be supporting Java technologies. Sun Microsystems has failed to keep integrating Java technologies up to date on Windows Serve

  • Runtime error in XML form

    Hi experts, I have created xml form in XML form builder. One of the DataSchema is to browse document from KM Content but i got and error when try to browse the document. The error is: Runtime Error An exception occured while processing the request. A

  • Mapping with Match and Merge operater giving ORA-06550 error while deploy..

    Created a simplet mapping to source from Customer table to tstcustomer table thru' Match and Merge operator. The mapping validated successful but giving ORA-06550 line x column y error while deploying the mapping. It is a simple mapping consisting of

  • Display and Edit Patterns in XML Tags

    Using LiveCycle E2 V9. The display and or Edit Patterns are not reflected in the XML of a submitted form. While these display properly on the Adobe form on-screen, e.g. $150,000.00 when the fields are are submitted the XML tag as reflects 150000.0000

  • Text element of sales order form

    I have a question about the text element of sales order printing form. i run a sales order with some price condition (ZKFA) -  VA03 and want to print it out before i print it without ZKFA price, it's correct when printing , after input the ZKFA price