Newbie: How to design layering?

I am sorry if this question isn�t the clearest but I am pretty new to Java. And please feel free to critic how I ask this question and the program I am going to show, I hope this will help me in the future ask better questions and write better code.
This program was something I was working on for class that I couldn't finish. It is something I really need to learn because I am taking the second Java class and i am sure this is something I really will need to know.
Question: I am trying to finish this program and my goal is to click on the order button and have all the panels I have be cleared. ( I change the setVisible to false). But the problem I am facing is when I try to add more panels the panels are being added to the bottom. I am pretty sure this is happening because I am not starting a new frame. But that is the question, how do I clear the first frame and all the panes and start a new one?
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.text.*;
class LowFatBurgerGUI extends JFrame
//Frame properties
private static final int FRAME_WIDTH = 575;
private static final int FRAME_HEIGHT = 500;
private static final int FRAME_X_ORIGIN = 150;
private static final int FRAME_Y_ORIGIN = 250;
//Button properties
private static final int BUTTON_WIDTH = 150;
private static final int BUTTON_HEIGHT = 30;
private int tofuCount = 0;
private int cajunCount = 0;
private int buffaloCount = 0;
private int rainbowCount = 0;
private int riceCount = 0;
private int noSaltCount = 0;
private int zucchiniCount = 0;
private int brownCount = 0;
private int mochaCount = 0;
private int latteCount = 0;
private int espresCount = 0;
private int oolongCount = 0;
private int tofuBurgercount = 0;
private int cajunChickencount = 0;
private int buffaloWingscount = 0;
private int rainbowFilletcount = 0;
private int riceCrackercount = 0;
private int noSaltFriescount = 0;
private int zucchinicount = 0;
private int brownRicecount = 0;
private int cafeMochacount = 0;
private int cafeLattecount = 0;
private int espressocount = 0;
private int OolongTeacount = 0;
private static final double TOFU_BURGER_PRICE = 3.49;
private static final double CAJUN_CHICKEN_PRICE = 4.59;
private static final double BUFFALO_WINGS_PRICE = 3.99;
private static final double RAINBOW_FILLET_PRICE = 2.99;
private static final double RICE_CRACKER_PRICE = 0.79;
private static final double NO_SALT_FRIES_PRICE = 0.69;
private static final double ZUCCHINI_PRICE = 1.09;
private static final double BROWN_RICE_PRICE = 0.59;
private static final double CAFE_MOCHA_PRICE = 1.99;
private static final double CAFE_LATTE_PRICE = 1.99;
private static final double ESPRESSO_PRICE = 2.49;
private static final double OOLONG_TEA_PRICE = 0.99;
//Initalize food buttons
private JButton tofuBurgerButton;
private JButton cajunChickenButton;
private JButton buffaloWingsButton;
private JButton rainbowFilletButton;
private JButton riceCrackerButton;
private JButton noSaltFriesButton;
private JButton zucchiniButton;
private JButton brownRiceButton;
private JButton cafeMochaButton;
private JButton cafeLatteButton;
private JButton espressoButton;
private JButton OolongTeaButton;
//control buttons
private JButton orderButton;
private JButton cancelButton;
//Subtotal output
private static final String MESSAGE = " Your subtotal: $ ";
//BLANK
private static final String BLANK = "";
//Initialize subtota
private double subTotal = 0.0;
private JLabel countLabel;
JPanel headerPanel, menuPanel, buttomPanel, orderOutputPanel,
middleOutputPanel, buttomOutputPanel;
JFrame lowFatBurgerOrderFrame, lowFatBurgerOutputFrame;
* Start
public static void main(String [] args)
new LowFatBurgerGUI();
public LowFatBurgerGUI()
lowFatBurgerMain();
setVisible(true);
private void lowFatBurgerMain()
lowFatBurgerOrderFrame();
//lowFatBurgerOutputFrame();
tofuBurgerButton();
cajunChickenButton();
buffaloWingsButton();
rainbowFilletButton();
riceCrackerButton();
noSaltFriesButton();
zucchiniButton();
brownRiceButton();
cafeMochaButton();
cafeLatteButton();
espressoButton();
OolongTeaButton();
orderButton();
cancelButton();
lowFatBurgerOrderPanel();
//lowFatBurgerOutputPanel();
//Create order frame
private void lowFatBurgerOrderFrame()
// set the frame properties
setSize ( FRAME_WIDTH, FRAME_HEIGHT );
setResizable ( false );
setTitle ( "Welcome to Low Fat Bugers ");
setLocation ( FRAME_X_ORIGIN, FRAME_Y_ORIGIN );
//Create output frame
private void lowFatBurgerOutputFrame()
// set the frame properties
setSize ( FRAME_WIDTH, FRAME_HEIGHT );
setResizable ( false );
setTitle ( "Finalize your order ");
setLocation ( FRAME_X_ORIGIN, FRAME_Y_ORIGIN );
lowFatBurgerOutputPanel();
//Create food buttons
private void tofuBurgerButton()
tofuBurgerButton = new JButton("Tofu Burger");
tofuBurgerButton.addActionListener(new java.awt.event.ActionListener()
public void actionPerformed(ActionEvent event)
tofuBurgerCount(event);
private void cajunChickenButton()
cajunChickenButton = new JButton("Cajun Chicken");
cajunChickenButton.addActionListener(new java.awt.event.ActionListener()
public void actionPerformed(ActionEvent event)
cajunChickenCount(event);
private void buffaloWingsButton()
buffaloWingsButton = new JButton("Buffalo Wings");
buffaloWingsButton.addActionListener(new java.awt.event.ActionListener()
public void actionPerformed(ActionEvent event)
buffaloWingsCount(event);
private void rainbowFilletButton()
rainbowFilletButton = new JButton("Rainbow Fillet");
rainbowFilletButton.addActionListener(new java.awt.event.ActionListener()
public void actionPerformed(ActionEvent event)
rainbowFilletCount(event);
private void riceCrackerButton()
riceCrackerButton = new JButton("Rice Cracker");
riceCrackerButton.addActionListener(new java.awt.event.ActionListener()
public void actionPerformed(ActionEvent event)
riceCrackerCount(event);
private void noSaltFriesButton()
noSaltFriesButton = new JButton("No-Salt Fries");
noSaltFriesButton.addActionListener(new java.awt.event.ActionListener()
public void actionPerformed(ActionEvent event)
noSaltFriesCount(event);
private void zucchiniButton()
zucchiniButton = new JButton("Zucchini");
zucchiniButton.addActionListener(new java.awt.event.ActionListener()
public void actionPerformed(ActionEvent event)
zucchiniCount(event);
private void brownRiceButton()
brownRiceButton = new JButton("Brown Rice");
brownRiceButton.addActionListener(new java.awt.event.ActionListener()
public void actionPerformed(ActionEvent event)
brownRiceCount(event);
private void cafeMochaButton()
cafeMochaButton = new JButton("Cafe Mocha");
cafeMochaButton.addActionListener(new java.awt.event.ActionListener()
public void actionPerformed(ActionEvent event)
cafeMochaCount(event);
private void cafeLatteButton()
cafeLatteButton = new JButton("Cafe Latte");
cafeLatteButton.addActionListener(new java.awt.event.ActionListener()
public void actionPerformed(ActionEvent event)
cafeLatteCount(event);
private void espressoButton()
espressoButton = new JButton("Espresso");
espressoButton.addActionListener(new java.awt.event.ActionListener()
public void actionPerformed(ActionEvent event)
espressoCount(event);
private void OolongTeaButton()
OolongTeaButton = new JButton("Oolong Tea");
OolongTeaButton.addActionListener(new java.awt.event.ActionListener()
public void actionPerformed(ActionEvent event)
OolongTeaCount(event);
private void orderButton()
orderButton = new JButton("Order");
orderButton.addActionListener(new java.awt.event.ActionListener()
public void actionPerformed(ActionEvent event)
OrderButtonAction(event);
private void cancelButton()
cancelButton = new JButton("Cancel");
cancelButton.addActionListener(new java.awt.event.ActionListener()
public void actionPerformed(ActionEvent event)
CancelButtonAction(event);
//Create order panels
public void lowFatBurgerOrderPanel()
Container orderPane;
orderPane = getContentPane();
orderPane.setLayout (new GridLayout( 3, 1 ));
//header Panel
headerPanel = new JPanel();
headerPanel.setBorder(BorderFactory.createTitledBorder( "Menu"));
//menu middle
menuPanel = new JPanel();
menuPanel.setBorder(BorderFactory.createTitledBorder("Items"));
menuPanel.setLayout(new GridLayout (4, 3));
menuPanel.add(tofuBurgerButton);
menuPanel.add(riceCrackerButton);
menuPanel.add(cafeMochaButton);
menuPanel.add(cajunChickenButton);
menuPanel.add(noSaltFriesButton);
menuPanel.add(cafeLatteButton);
menuPanel.add(buffaloWingsButton);
menuPanel.add(zucchiniButton);
menuPanel.add(espressoButton);
menuPanel.add(rainbowFilletButton);
menuPanel.add(brownRiceButton);
menuPanel.add(OolongTeaButton);
//Buttom Panel
buttomPanel = new JPanel();
buttomPanel.setBorder(BorderFactory.createTitledBorder("New"));
buttomPanel.add(countLabel = new JLabel(" Your subtotal: "));
buttomPanel.setLayout(new GridLayout(0,2));
buttomPanel.add(orderButton);
buttomPanel.add(cancelButton);
//contentPane
orderPane.add(headerPanel);
orderPane.add(menuPanel);
orderPane.add(buttomPanel);
//Create output panel
public void lowFatBurgerOutputPanel()
Container outputPane;
outputPane = getContentPane();
outputPane.setLayout (new GridLayout( 3, 1 ));
orderOutputPanel = new JPanel();
orderOutputPanel.setBorder(BorderFactory.createTitledBorder("Output"));
middleOutputPanel = new JPanel();
middleOutputPanel.setBorder(BorderFactory.createTitledBorder("something"));
buttomOutputPanel = new JPanel();
buttomOutputPanel.setBorder(BorderFactory.createTitledBorder("new"));
outputPane.add(orderOutputPanel);
outputPane.add(middleOutputPanel);
outputPane.add(buttomOutputPanel);
//Craete and count the number of times a button is clicked
void tofuBurgerCount(ActionEvent event)
tofuBurgercount++;
setLableTextSubtotal();
void cajunChickenCount(ActionEvent event)
cajunChickencount++;
setLableTextSubtotal();
void buffaloWingsCount(ActionEvent event)
buffaloWingscount++;
setLableTextSubtotal();
void rainbowFilletCount(ActionEvent event)
rainbowFilletcount++;
setLableTextSubtotal();
void riceCrackerCount(ActionEvent event)
riceCrackercount++;
setLableTextSubtotal();
void noSaltFriesCount(ActionEvent event)
noSaltFriescount++;
setLableTextSubtotal();
void zucchiniCount(ActionEvent event)
zucchinicount++;
setLableTextSubtotal();
void brownRiceCount(ActionEvent event)
brownRicecount++;
setLableTextSubtotal();
void cafeMochaCount(ActionEvent event)
cafeMochacount++;
setLableTextSubtotal();
void cafeLatteCount(ActionEvent event)
cafeLattecount++;
setLableTextSubtotal();
void espressoCount(ActionEvent event)
espressocount++;
setLableTextSubtotal();
void OolongTeaCount(ActionEvent event)
OolongTeacount++;
setLableTextSubtotal();
void OrderButtonAction(ActionEvent event)
headerPanel.setVisible(false);
menuPanel.setVisible (false);
buttomPanel.setVisible(false);
lowFatBurgerOutputFrame();
// Clear order
void CancelButtonAction(ActionEvent event)
countLabel.setText(BLANK);
countLabel.setText(" Cancelled Order");
tofuBurgercount = 0;
cajunChickencount = 0;
buffaloWingscount = 0;
rainbowFilletcount = 0;
riceCrackercount = 0;
noSaltFriescount = 0;
zucchinicount = 0;
brownRicecount = 0;
cafeMochacount = 0;
cafeLattecount = 0;
espressocount = 0;
OolongTeacount = 0;
private void setLableTextSubtotal()
DecimalFormat df = new DecimalFormat("0.00");
countLabel.setText(MESSAGE + df.format((
TOFU_BURGER_PRICE * tofuBurgercount
+ CAJUN_CHICKEN_PRICE * cajunChickencount
+ BUFFALO_WINGS_PRICE * buffaloWingscount
+ RAINBOW_FILLET_PRICE * rainbowFilletcount
+ RICE_CRACKER_PRICE * riceCrackercount
+ NO_SALT_FRIES_PRICE * noSaltFriescount
+ ZUCCHINI_PRICE * zucchinicount
+ BROWN_RICE_PRICE * brownRicecount
+ CAFE_MOCHA_PRICE * cafeMochacount
+ CAFE_LATTE_PRICE * cafeLattecount
+ ESPRESSO_PRICE * espressocount
+ OOLONG_TEA_PRICE * OolongTeacount)));
//Create a window closer
private void addWindowCloseListener()
this.addWindowListener(new java.awt.event.WindowAdapter()
public void windowClosing(WindowEvent event)
quit(event);
void quit(WindowEvent event)
System.exit(0);
}

And please feel free to critic how I ask this question and the program I am going to show, I hope this will help me in the future ask better questions and write better code.1) Use the "preview" link before posting your question. As you have noticed all your code has lost its formatting and is left justified. I'm sure you don't code like this so don't ask as to read it like this.
2) So you ask how to I keep the formatting of the posted code? Well, did you notice the buttons at the top of the message box or the "Formatting Tips" link.
3) Post a small executable version of your code that demonstrates the problem. I hope you don't expect us to read through hundreds of lines of unnecessary code. Most problems can be demonstrated in about 20 lines of code and the side benefit is many times you find your problem while creating the sample code.
But the problem I am facing is when I try to add more panels the panels are being added to the bottomThis is because of the LayoutManager you are using. Most LayoutManagers just keep displaying the component as it is added to the container. One way around this is to remove(...) the existing component before adding the new component (check out the Container API for more information about the remove(...) methods). Or maybe use a different LayoutManager like a BorderLayout which replaces components that are added or a CardLayout which allow you to display multiple components in the same area.
I suggest you read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html]Using Layout Managers.

Similar Messages

  • From a Technical Architect point of view, how to design a web application?

    Hi to all,
    I am writing this issue here because I this question is not related on how to program, but on how to design a web application. That is, this question is not related to how to program with the technologies in J2EE, but how to use them correctly to achieve a desired outcome.
    Basically I know how to develop a simple web application. I like to use SpringFramework with AcegiSecurity and Hibernate Framework to persist my data. I usually use JBoss to deploy my web applications, however I could easily use Tomcat or Jetty (Since I am not using EJB�s).
    However I have no idea on how to develop (or a better word would be �design�) a website which is divided into different modules.
    Usually when you develop a website, you have certain areas that are public, and other areas that are not. For example, a company would want anyone on the Internet to download information about the products they are selling, however they would only want their employees to download certain restricted information.
    Personally I try to categorise this scenario in to common words; Extranet and Intranet.
    But � (and here starts the confusion in my mind) should I treat these two as two projects, or as one project? The content to be displayed on the Extranet is much different then the content to be displayed on the Intranet and definitely clients should not be allowed to the Intranet.
    First approach would be to treat them as the same project. This would be perfect, since if the company (one day) decides to change the layout of the website, then the design would change for both the Intranet and the Extranet version. Also the system has a common login screen, that is I would only need to have employees to have a certain Role so that they have access to the intranet, while clients would not have a certain Role and thus they would not be allowed in. But what about performance and scalability? What if the Intranet and Extranet have to be deployed on the different Hardware!?
    The second approach is to threat them as two separate projects. To keep the same layout you just copy & paste the layout from one project to another. However we would not want to have two different databases to store our users, one for the employees and the other one for the clients. Therefore we would build a CAS server for authentication purposes. Both the Intranet and the Extranet would use the same CAS server to login however they could be deployed on different hardware. However what if we want to change the design. Do we really want to have to just copy and paste elements from one project to another? We all know how these things finish! �We do not have time for that � just change the Extranet and leave the Intranet as it is!�
    The third approach (and this is the one I like most) is to have a single project built into different WAR files. The common elements would be placed in all WAR files. However in development you would only need to change once and the effects would show in the different war files. The problem with this approach is that the project will be very big. Also, you will still need to define configuration files for each one of them (2 Web.config, 2 Spring-Servlet.config, 2 acegi-security.config, etc).
    Basically I would like something in the middle of approach 2 and approach 3! However I can identify what this approach is. Also I can not understand if there is even a better approach then these three! I always keep in mind that there can always be more then two modules (that is not only Intranet and Extranet).
    Anyways, it is already too long this post. Any comments are more then welcome and appreciated.
    Thanks & Regards,
    Sim085

    Hi to all,
    First of all thanks for the interest shown and for the replies. I do know what MVC or Multi-layered design is and I develop all my websites in that way.
    Basically I have read a lot of books about Domain-Driven Design. I divide my web applications into 4 layers. The first layer is the presentation layer. Then I have the Facade layer and after that I have a Service layer (Sometimes I join these two together if the web application is small enough). Finally I have the Data Access layer where lately I use Hibernate to persist my object in the database.
    I do not have problems to understand how layering a web application works and why it is required. My problem is how to design and develop web applications with different concerns that use same resources. Let me give an example:
    Imagine a Supermarket. The owner of the Supermarket want to sell products from the website, however he wants to also be able to insert new products from the website itself. This means that we have two different websites that make use of the same resources.
    The first website is for the Supermarket clients. The clients can create an account. Then they can view products and order them. From the above description we can see that in our domain model we will have definitely an object Account and an object Product (I am not mentioning all of them). In the Data Access layer we will have repository objects that will be used to persist the Account and Products.
    The second website is for the Supermarket employees. The employees still need to have an account. Also there is still a product object. This means that Account and Product objects are common to the two websites.
    Also important to mention is the style (CSS). The Supermarket owner would like to have the same style for both websites.
    Now I would not like to just copy & paste the objects and elements that are common to both websites into the two different projects since this would mean that I have to always repeat the changes I make in one website, inside the other one.
    Having a single WAR file with both websites is not an option either because I would not like to have to deploy both websites on the same server because of performance and scalability issues.
    Basically so far I have tought of putting the common elements in a Jar File which would be found on the two different servers. However I am not sure if this is the best approach.
    As you can see my problem is not about layering. I know what layering is and agree with both of you on its importance.
    My question is: What is the best approach to have the same resources available for different websites? This includes Class Files, CSS Files, JavaScript Files, etc.
    Thanks & Regards,
    Sim085

  • How to design this report ?

    Hi experts,
    How to design the customer total outstanding report as on a particular date ?
    We also want Debit amount and Credit amount in the query output..
    Regards,
    Nishuv V.

    HI,
    if u want the current date u go for the customer exit (that means daily)if he wants aparticular date then u go for the user entry variable in 0calday,in variable screen he sould mention the date for that date only the out standing report will come .0calday and customer u keep in rows and those debit and credit u keep in the columns.
    if daily as on date they want outstanding u go for the customer exit just u create the variable on 0calday with customer exit if variable name is 'zcedate' go to the tcode CMOD and write the below mention code.
    when 'zcedate'.
    clear l_s_range.
    l_s_range-sign = 'i'.
    l_s_range-opt = 'eq'.
    l_s_range-low = sy-datum.
    append l_s_range to e_t_range.
    Thanks  for giving this opportunity.
    Thanks & Regards
    k.sathish

  • How to design the report?

    Hi,
    how to change the filling data in report by vertical way?
    for eg: i am creating a group (group by userId) and displaying user name and access rights info;
    User Name   Access Rights
    TestUser      Adminuser
    TempUser    NotanAdminuser
    but i want in this format
    UserName        TestUser   TempUser
    AccessRights Adminuser  NotAnAdminuser
    how to design the report?

    i haven't tried using cross tab.
    but my requirement is like...
    Modified User Name ........ TestUser     Thendral    till 'n' number of users
    Total NO of Patients..........10                    5
              Heart Failure...........5                      1
              Surgical..................1                      2
              Pneumonia             3                      1
              Chest Pain             1                       1
            till 15 rows
    How to achieve this using crosstab?

  • How to design a 3D database in SDO

    Hi,
    I need to design a 3D database in Oracle9i SDO. As we know, this SDO support the 2D GIS seamlessly. How to design a 3D database in Oracle9i SDO,
    Could any person have some experiences. Thanks!
    Best regards!

    Hello All!
    Due to my diplom thesys I have to create a real 3D (not 2 1/2D) database in Oracle. You seem to have a little experience in this subject and I hope you can tell me whether my plan is possible or not...
    The data I'd like to store in the database is/are BRep, means a 3D-Objekt composed of many coplanar 2D-planes. I think storing the data won't be the problem because I can store the vertices of the 2d-polygons with x,y,z values. The queries will be the main problem. I have to query all types of intersection, neighborhood and some distance between the objects.
    I know, SDO_RELATE is the only filter which supports three dimensions, but there's something I don't understand:In the spatial user's guide it says:
    "the SDO_RELATE operator, can be used to determine with certainty if objects interact spatially".
    WHAT does this mean in case of 3D? True if the two objects intersect, false if not?
    Hongwei: How is your project doing? maybe we can exchange some experience...
    Many Questions, hoping for some help...;-)
    regards from germany,
    Markus Reuter

  • How to design HTML Table in ADF

    I am new to ADF Tech,
    I would like to know, how to design the HTML Table Rows and Columns in ADF
    Ex:
    <TABLE width="100%" border="1">
    <TR>
         <TD>GUID</TD>
         <TD>123</TD>
         <TD>Name</TD>
         <TD>Mark Antony</TD>
         <TD>Version</TD>
         <TD>1.0</TD>
    </TR>
    <TR>
    <TD>Created</TD>
         <TD>Oracle</TD>
         <TD>Modified</TD>
         <TD>Oracle User</TD>
         <TD>Placements</TD>
         <TD>20</TD>
    </TR>
    </TABLE>
    Thanks in Advance

    Balaji,
    With JSF in general (and ADF Faces too), you should not think in terms of HTML output, but in terms of JSF components. ADF has an af:table component that renders things in rows-and-columns, but emits HTML that is much more complex than just a simple HTML table.
    John

  • How to design templates with Microsoft Excel

    Hi
    When creating a new template in EBS, we have "Microsoft Excel" as one of the the template types (just like RTF). How to design the template if Excel is selected as the template type. I uploaded a blank EXCEL file and the concurrent program errors out with "Excel Processing" exception.

    hi,
    r u uploading the blank excel..r the excel u got from the Analyzer for Excel from the BIpublisher.
    One small clarification on my previous post..like the .xdo not the excel name.Inside the excel it is the sheet name.
    If u uploading the excel that u got from the Analyzer for excel means it should work.
    Plz select the template type as Excel after uploading the template.
    Its working for me.
    This link will be helpful for u
    http://blogs.oracle.com/xmlpublisher/2007/05/16/
    Edited by: Ananth.v on Mar 4, 2010 3:07 PM

  • How to design a particular screen?

    Hi All,
    In my apllication i am working on oracle forms using manually. I would to design a
    particular page with the following attributes as shown below?
    How to design sunch kind of pages.
    Column names
                                       Expir
    Reocrd Year Mnt Ct Mnt Year Fuel Fuel code Mine type Reported fips source name
    Type
    {select list} {Text item} {text Item} {Select list} {Text Box} {Text box} {Text box} {select list} {select list} {text item} {select item} {text item}
    till Mine type i do not have any scrolling type, But from reported onwards a scroll should apper so that i can scroll to right and seen what are the attributes
    still exists.
    Since this is a form, how can we maintain or develop the screen.
    Hope u have understood my problem.
    Or can anybody give let me know how to display or attache my screen shot, so that u may clear idea on this.
    Thanks,
    Anoo..
    Edited by: Anoo on Mar 2, 2010 4:38 AM

    Hi Ben,
    How do we use tabular form can u let me know the procedure to design it? bec i have not aware of that.
    -Anoo..
    Edited by: Anoo on Mar 2, 2010 4:41 AM

  • How to design EDW for source systems from different Time-Zones

    How to design EDW for source systems from different Time-Zones?
    Suppose IT landscape has a global BW in New York, and source systems in americas, europe and asia, then how the time-zones effect on time related things like delta selections on date or timestamp etc.

    As you said BW is global in NY, your source system must be global too. People from various locations can connect to same source system and thus timestamps for delta is always maintained as 1 single time. We have same scenario in our project. Our R/3 system is used by users in US and Europe. So we run deltas twice in day to make sure we got deltas from both locations.
    If scenarios was such that all locations connect to separate R/3 system, then obviously you have multiple queues. That is unique delta queue for each source system so deltas will be pulled as per data in respective queues.
    Abhijit

  • How to design the URL?

    How to design the URL?i know that the Google  will take down the good URL.such as the staticize URL Google will like more..

    A site's URL structure should be as simple as possible. Consider organizing your content so that URLs are constructed logically and in a manner that is most intelligible to humans (when possible, readable words rather than long ID numbers). For example, if you're searching for information about aviation, a URL like http://en.wikipedia.org/wiki/Aviation will help you decide whether to click that link. A URL like http://www.example.com/index.php?id_sezione=360&sid=3a5ebc944f41daa6f849f730f1, is much less appealing to users.
    Consider using punctuation in your URLs. The URL http://www.example.com/green-dress.html is much more useful to us than http://www.example.com/greendress.html. Google recommends that you use hyphens (-) instead of underscores (_) in your URLs.
    Overly complex URLs, especially those containing multiple parameters, can cause a problems for crawlers by creating unnecessarily high numbers of URLs that point to identical or similar content on your site. As a result, Googlebot may consume much more bandwidth than necessary, or may be unable to completely index all the content on your site.

  • How to design muti-display in query? thanks

    Hi, Experts
    I want to know how to design query like that(By product):
    CHAR:product
    KF:P/O,Ship.Total Sales,inventory
                                 Week1  Week2
    Product A  P/O               70     60
    Product A  Ship              60     75
    Product A  Total Sales       80     70
    Product A  Total Inventory   170   175
                                  Week1  Week2
    Product B  P/O               60     50
    Product B  Ship              50     65
    Product B  Total Sales       80     70
    Product B  Total Inventory   170   175
    Thanks,

    Thanks Rad,
    I want to get the report like this:
    Product A P/O 70 60
    Product A Ship 60 75
    Product A Total Sales 80 70
    Product A Total Inventory 170 175
    Product B P/O 60 50
    Product B Ship 50 65
    Product B Total Sales 80 70
    Product B Total Inventory 170 175
    Product C P/O 60 50
    Product C Ship 50 65
    Product C Total Sales 80 70
    Product c Total Inventory 170 175
    Base on same infoprivoder,same 'product' char and KF.

  • HOW TO DESIGN RANGE SELECTION IN MODULE PULL LIKE SELECT-OPTION.

    HOW TO DESIGN RANGE SELECTION IN MODULE PULL LIKE SELECT-OPTION.
    how can we add range selection in screen painter.
    regards.

    Hi,
       create two input fields and a push button like select option in the screeen.
    Try checking this logic
    <b>Program:</b>
    <b>ranges</b> ra_matnr for mara-matnr.
    <b>Layout field name declaration:</b>
    Give the low field name as ra_range-low
      and high field name as ra_range-high.
    extension for pushbutton.--exten(function code)
    next -- function code for the enter key.
    PBO
    module status_3000.
    PAI
    module user_command_3000.
    <b>module user_command_3000.</b>
    if sy-ucomm = exten.
      call screen 400. (screen which shows extension values can be kept).
    elseif sy-ucomm = Next.
    if ra_matnr-low is not initial.
        ra_matnr-SIGN = 'I'.
        ra_matnr-OPTION = 'EQ'.
        APPEND ra_matnr.
        clear ra_matnr.
    endif.
    if ra_matnr-high is not initial.
        ra_matnr-SIGN = 'I'.
        ra_matnr-OPTION = 'EQ'.
        APPEND ra_matnr.
        clear ra_matnr.
    endif.
    endif.
    endmodule.
    module status_3000.
    read table ra_matnr  index 1 into ra_matnr .
    set pf-status '3000'.
    set title '3000'.
    endmodule
    Br,
    Laxmi.

  • How to design a smartform with below tables and table-fields??

    How to design a smartform  and driver program using this tables and table fields
    FIELD DESCRIPTION     TABLE-FIELD                                   
    Tax Invoice No:     vbrk-vbeln                    
    Code     vbpa-kunnr where parvw = RG                                   
    Ship To     vbpa-kunnr where parvw = WE                                   
    PAN No     J_1IMOCUST-J_1IPANNO for WE                              
    ECC     ,,                                   
    Range     ,,                                   
    Div     ,,                                   
    Excise Reg No     ,,                                   
    LST No     ,,                                   
    CST No     ,,                                   
    Invoice No:      vbrk-vbeln                                   
    Do No:     vbfa-vbelv where vbeln = inv no and vbtyp_v = C get the vbeln where vbak-auart = 'ZDO'           
    Sales Doc Num:     vbfa-vbelv where vbeln = inv no and vbtyp_v = C get the vbeln where vbak-auart = 'ZSO'                             
    PO:     vbkd-bstkd where vbeln = sales doc no                                   
    Delivery No:     select vbelv from vbfa where vbeln = inv no and vbtyp_v = J                             
    Goods Removal Dt&Time:     select vbeln from vbfa where vbelv = dlv no and vbtyp_v = R Put this vbeln in mkpf and get BUDAT and CPUTM     
    Selection screen parameter should be : vbrk-vbeln.

    Hi,
    First design your form interface, this is the set of fields that you need to display in your form and create this as a structure in SE11.  In your print program code the logic to extract the data into this structure, this is just regular ABAP, nothing special here.
    When you have your data call function module SSF_FUNCTION_MODULE_NAME to determine the name of the generated smartform function module.  Then call this function module, passing the data collected into your structure.  If necessary you will need to find the print parameters required and pass these too.
    In your smartform you will need to use the data structure you created in SE11 as the smartform interface and design the layout required to display these fields.
    Regards,
    Nick

  • How to design SSRS report using SharePoint 2010 List Version History

    Hello,
    I am using  Sharepoint 2010 list, i need to design SSRS report using Sharepoint List Version History. Could please let me know how to design.
    Thank you.
    Kind Regards

    You could do that with SQL Server Reporting Services, Please follow the instructions from the link below:
    http://www.mssqltips.com/sqlservertip/2068/using-a-sharepoint-list-as-a-data-source-in-sql-server-reporting-services-2008-r2/
    Hope that would work fro you.
    Please Mark as Answer, if the post works for you.
    Cheers,
    Amar Deep Singh

  • How to design multitab report in rtf in oracle apps r12

    Hi,
    How to design multitab report in rtf in oracle apps r12
    one consultant working on a multiple projects in this report ....how to design rtf by using multi tab.
    thanks,

    Hi,
    <?if://P_CONSULTANT_NAME='' and P_CLIENT_NAME= ''?> means print the content below this condition if both consultant name and client name is null in xml.
    <?if://P_CONSULTANT_NAME !='' and P_CLIENT_NAME != ''?> means print the content below this condition if both consultant name and client name is not null in xml.
    <?if://P_CLIENT_NAME!='' and P_CONSULTANT_NAME = ''?> means print the content below this condition if consultant name is null and client name is not null in xml.
    <?if://P_CONSULTANT_NAME!='' and P_CLIENT_NAME = ''?> means print the content below this condition if consultant name is not null and client name is null in xml.
    please share your sample rtf and xml file so that i can have a look at it and help you if i can.
    Thanks,
    Vinod

Maybe you are looking for

  • CC desktop update does not install

    I am getting error message A12E1 when I try to update my CC desktop software. Now I can't launch the desktop app.

  • Any good Dreamweaver tutorial videos (not free online ones)?

    I'm tired of trying to find decent online tutorial videos of Dreamweaver. I'd be willing to pay for something that really covered DW in-depth, and not like a weekend crash-learning course. Thanks.

  • Cash Purchase in Maintenance

    Dear Gurus; In one of the scenarios, my client wants to have cash purchase in regular maintenance order as well as preventive maintenance order. So there is no PR & hence no PO. How it can be mapped in SAP? Thanks & Regards Hemant

  • How to link a radiobutton with a text field

    Hello, Say for example I have this kind of selection screen: (radiobutton 1) textfield1 (radiobutton2) textfield2 and so on, where textfield is something that user can key in some text. I am wondering whether it is possible to have it work in such a

  • PLAY ALL button

    I have a DVD SP4 project of about 3. Gb in total and the client needs a 'PLAY ALL' button. The video has 8 existing chapters and adding a play all has been impossible to date. I can't replicate the track as it's too large for the disc. Any ideas?