Using a layout to allow overlapping components

I want to implement some kind of swing component, as of right now I'm using a JLabel and painting an image on it, to create tiles of a game board.
The problem is the tiles aren't square and I don't know how to allow the JLabels or JButtons or whatever component is easiest, to overlap in the places i need them to.
Here is an image of the type of tiles I want to use.
http://home.insightbb.com/~twilightimp/current_map.jpg
Does anyone have any ideas?
thanks

Swing questions should be posted in the Swing forum. Here's an article that shows you how to create round buttons in Swing, maybe it will help.
http://java.sun.com/developer/TechTips/txtarchive/1999/Aug99_PatrickC.txt

Similar Messages

  • Layout that allows overlaping components

    I posted this in the general forum, I didn't know there was a swing forum:
    I want to implement some kind of swing component, as of right now I'm using a JPane; and painting an image on it, to create tiles of a game board.
    The problem is the tiles aren't square and I don't know how to allow the JPanels or JButtons or whatever component is easiest, to overlap in the places i need them to.
    Here is an image of the type of tiles I want to use.
    http://home.insightbb.com/~twilightimp/current_map.jpg
    Does anyone have any ideas?
    Do you think using a JLayeredPane to house all my tiles in would work, with the z-component increasing every row from the middle row?
    thanks
    Message was edited by:
    z0isch

    I got it working with JButtons and a JLayeredPane.
    =D

  • [svn] 4634: First part of glue code for allowing Halo components to use the new Text Layout Framework , in order to get functionality such as bidirectional text.

    Revision: 4634
    Author:   [email protected]
    Date:     2009-01-22 17:38:56 -0800 (Thu, 22 Jan 2009)
    Log Message:
    First part of glue code for allowing Halo components to use the new Text Layout Framework, in order to get functionality such as bidirectional text.
    Background:
    TLF is making this possible by implementing a TLFTextField class. It is a Sprite that uses TLF to implement the same properties and methods as the legacy TextField class in the Player. Thanks to the createInFontContext() bottleneck method in UIComponent, it can be used by a properly-written Halo component (such as those in Flex 3) without any modifications to the component.
    Note: Text should render similarly -- but is unlikely to render identically -- when a component uses TLFTextField vs. TextField. The width and height may be different, affecting layout; text could wrap differently; etc. This is a fact-of-life based on the fact that TLF/FTE and TextField are completely different text engines.
    Whether a Halo component uses TLF or not to render text will be determined in Flex 4 by a new style, textFieldClass. (Gumbo components always use TLF.)
    TLFTextField is currently only partially implemented. It does not yet support scrolling, selection, editing, multiple formats, or htmlText. Therefore it can only be used for simple display text, such as a Button label.
    Details:
    The TextStyles.as bucket 'o text styles now includes a non-inheriting textFieldClass style. It can be set to either mx.core.UITextField or mx.core.UITLFTextField. These are the Flex framework's wrapper classes around the lower-level classes flash.text.TextField (in the Player) and its TLF-based workalike, flashx.textLayout.controls.TLFTextField.
    The global selector in defaults.css currently sets it to mx.core.UITextField using a ClassReference directive. For the time being, all Halo components will continue to use the "real" TextField.
    The new UITLFTextField is a copy of UITextField, except that it extends TLFTextField instead of TextField. This class has been added to FrameworkClasses.as because no classes in framework.swc have a dependency on it. It will get soft-linked into applcations via the textFieldClass style.
    The TLFTextField class currently lives in a fourth TLF SWC, textLayout_textField.swc. This SWC has been added to various build scripts. The external-library-path for building framework.swc now includes all four TLF SWCs, because UITLFTextField can't be compiled and linked without them. However, since they are external they aren't linked into framework.swc.
    Properly-written Halo UIComponents access their text fields only through the IUITextField interface, and they create text fields like this:
    textField = IUITextField(createInFontContext(UITextField));
    (The reason for using createInFontContext() is to support embedded fonts that are embedded in a different SWF.)
    The createInFontContext() method of UIComponent has been modified to use the textFieldClass style to determine whether to create a UITextField or a UITLFTextField.
    With these changes, you can now write code like
    to get two Buttons, the first of which uses UITextField (because this is the value of textFieldClass in the global selector) and the second of which uses UITLFTextField. They look very similar, which is good!
    Currently, both Buttons are being measured by using an offscreen TextField. A subsequent checkin will make components rendering using UITLFTextField measure themselves using an offscreen TLFTextField so that measurement and rendering are consistent.
    QE Notes: None
    Doc Notes: None
    Bugs: None
    Reviewer: Deepa
    Modified Paths:
        flex/sdk/trunk/asdoc/build.xml
        flex/sdk/trunk/build.xml
        flex/sdk/trunk/frameworks/projects/framework/build.xml
        flex/sdk/trunk/frameworks/projects/framework/defaults.css
        flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/TextStyles.as
    Added Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITLFTextField.as

    Many of your points are totally legitimate.
    This one, however, is not:
    …To put it another way, the design of the site seems to be geared much more towards its regular users than those the site is supposedly trying to "help"…
    The design and management of the forums for more than five years have driven literally dozens of the most valuable contributors and "regulars" away from the forums—permanently.
    The only conclusion a prudent, reasonable person can draw from this state of affairs is that Adobe consciously and deliberately want to kill these forums by attrition—without a the PR hit they would otherwise take if they suddenly just shut them down.

  • Using 'Preview Layouts' on specific objects

    Hi everyone,
    I would want to know if it is possible to import CR layouts in SBO, and use it with the menu "Preview Layouts" on personalized objects.
    When I try to import a CR layout with the Report And Layout Manager of SBO, I choose my RPT file, check the Layout radio button, and open the List Of Documents. But in this list, there are no items which correspond to my specific objects, so I can't link my report and my objects, and when I open a record of my object, the menu "File -> Preview Layouts" is disabled.
    So my question is : is it possible to create new Document Types to be able to link my layout and my objects? Or any other solution which can allow me to use "Preview Layouts" on my specific objects?
    Thanks.

    Hello Charly,
    There is a way to add layout on User object. Using a piece of code, you can add your report in the table RDOC putting it in a BLOB field
    SAPbobsCOM.ReportLayoutsService rptService = (SAPbobsCOM.ReportLayoutsService)oCompany.GetCompanyService().GetBusinessService(SAPbobsCOM.ServiceTypes.ReportLayoutsService);
    SAPbobsCOM.ReportLayout newReport = (SAPbobsCOM.ReportLayout)rptService.GetDataInterface(SAPbobsCOM.ReportLayoutsServiceDataInterfaces.rlsdiReportLayout);
    newReport.Author = oCompany.UserName;
    newReport.Category = SAPbobsCOM.ReportLayoutCategoryEnum.rlcCrystal;
    newReport.Name = "APRS";
    newReport.TypeCode = "TypeCode";
    SAPbobsCOM.ReportLayoutParams newReportParam = rptService.AddReportLayout(newReport);
    newType = rptTypeService.GetReportType(newTypeParam);
    newType.DefaultReportLayout = newReportParam.LayoutCode;
    rptTypeService.UpdateReportType(newType);
    SAPbobsCOM.BlobParams oBlobParams = (SAPbobsCOM.BlobParams)oCompany.GetCompanyService().GetDataInterface(SAPbobsCOM.CompanyServiceDataInterfaces.csdiBlobParams);
    oBlobParams.Table = "RDOC";
    oBlobParams.Field = "Template";
    SAPbobsCOM.BlobTableKeySegment oKeySegment = oBlobParams.BlobTableKeySegments.Add();
    oKeySegment.Name = "DocCode";
    oKeySegment.Value = newReportParam.LayoutCode;
    FileStream oFile = new FileStream("D:\\DEV\\Layouts\\Demo.rpt", System.IO.FileMode.Open);
    int fileSize = (int)oFile.Length;
    byte[] buf = new byte[fileSize];
    oFile.Read(buf, 0, fileSize);
    oFile.Dispose();
    SAPbobsCOM.Blob oBlob = (SAPbobsCOM.Blob)oCompany.GetCompanyService().GetDataInterface(SAPbobsCOM.CompanyServiceDataInterfaces.csdiBlob);
    oBlob.Content = Convert.ToBase64String(buf, 0, fileSize);
    oCompany.GetCompanyService().SetBlob(oBlobParams, oBlob);
    Then you have to associate your form to the reportType using this line of code in your form's constructor:
    oForm.reportType = "ReportType"
    Hoping that can help you
    Best regards

  • Can I use grid layout in JSF visual page designer ?

    Hello dears...
    I am using Jdeveloper 11 g and 10 g .
    When I tried to use JSF visual editor (from the component palette), and when I drag any control to the page I found that the control go to the top left of the page
    and I even can not move the control to another place in the page by the mouse.
    the JSF visual designer seems to use flow layout for the page . (the same as using flow layout in the swing applications).
    The question is Can I change the page layout to be grid layout instead of flow layout ?????? (to be able to move any control to anywhere in the page.)
    Note that in netbeans 6.1 , when u design JSF page , you have 2 options for the page layout, grid layout and flow layout and u can choose as u like.
    Is this feature found in jdeveloper 11 ?????
    if not , Can anybody tell me any workaround to design JSF pages without using flow layout ????
    Thanks in advance
    Samy
    Edited by: user10653280 on Nov 29, 2008 1:30 PM

    We don't provide absolute positioning for JSF application - this is a bad practice since it fills your JSF page with CSS code and create applications that are not portable between different screen/monitor resolutions - so we use flow layout instead and provide a much richer set of layout components.
    See info here:
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31973/af_orgpage.htm#CACCBCCI

  • Dispatching Events on overlapping Components

    Hello,
    i use a layered pane that contains some custom components. How can I make that two overlapping components that reside in the same layer both receive a mouseEvent?
    At the moment, only the Componet above receives the event - I know I can pass an Event with dispatchEvent - but i don't know the instance of the component to which to pass it of course... Is there any method to dispatch the event without having to know to which component to pass it?
    Any help appreciated.
    Best regards & Thanks.
    alex

    You can use use EventQueue.postEvent to post the event, but it requires source and if it is mouse event it will be later retargeted to correct components according to coordinates. So the only way for you to do this is to find the components by yourself and call processMouseEvent on it.

  • Please help me out with problems i am facing using Grid Layout

    i can't figure out what's wrong !!
    But the following codw doesn't make a grid of 5 x 4 rather it makes a grid of 5x2
    same thing is happening when i am using a grid in my other applications... the no. of columns are not correctly executed..
    import javax.swing.*;
    import java.awt.*;
    public class GridDemo extends JFrame
        public GridDemo() {
        JButton b1 = new JButton("b1");
        JButton b2 = new JButton("b2");
        JButton b3 = new JButton("b3");
        JButton b4 = new JButton("b4");
        JButton b5 = new JButton("b5");
        JButton b6 = new JButton("b6");
        JButton b7 = new JButton("b7");
        JButton b8 = new JButton("b8");
        JButton b9 = new JButton("b9");
        JPanel f = new JPanel();
        f.setLayout(new GridLayout(5, 4));
        f.add(b1);
        f.add(b2);
        f.add(b3);
        f.add(b4);
        f.add(b5);
        f.add(b6);
        f.add(b7);
        f.add(b8);
        f.add(b9);
        JFrame f1 = new JFrame();
        f1.add(f);
        f1.setVisible(true);
        f1.setSize(400, 400);
        f1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        public static void main(String s[])
        new GridDemo();
    }

    If you want the simplest experience out of layouts, you can try the custom layout I made. It uses the versatility of SpringLayout, but can actually be understood by humans. It has easily been my favorite creation b/c it has made my life SO much easier.
    Here is the code:
    import javax.swing.SpringLayout;
    import java.awt.Container;
    import java.awt.Component;
    public class CoordinateLayout extends SpringLayout
         //Container Variable
         Container cont;
         //Constructor
        public CoordinateLayout(Container ct)
             //Extend SpringLayout
             super();
             //Set Layout to Container
             ct.setLayout(this);
             //Initialize Container Variable
             cont = ct;
        //Method to Add Components -- (0,0) is top left of container
        public void addComponent(Component comp, int x, int y)
             //Adds Component to Container
             cont.add(comp);
             //Set both x and y SpringLayout contraints
             super.putConstraint(SpringLayout.WEST, comp, x, SpringLayout.WEST, cont);
              super.putConstraint(SpringLayout.NORTH, comp, y, SpringLayout.NORTH, cont);
    }And here is a basic program that just creates a frame and uses my layout to place the items. If you have any questions, feel free to ask.
    import javax.swing.*;
    import java.awt.*;
    public class CoordinateLayoutTest
        public static void main(String[] args)
             //Create Frame and Panel
             JFrame mainFrame = new JFrame("TEST");
             JPanel first = new JPanel();
             //Create Layout and send it the Panel
             CoordinateLayout layout = new CoordinateLayout(first);
             //Create components
             JLabel l1 = new JLabel("First Name:");
             JTextField b1 = new JTextField(10);
              JLabel l2 = new JLabel("Last Name:");
              JTextField b2 = new JTextField(10);
              JLabel l3 = new JLabel("Home City:");
              JTextField b3 = new JTextField(10);
              JLabel l4 = new JLabel("Home State:");
              JTextField b4 = new JTextField(10);
              JLabel l5 = new JLabel("Account Number:");
              JTextField b5 = new JTextField(10);
              //Add components
              layout.addComponent(l1,5,5);
              layout.addComponent(b1,105,5);
              layout.addComponent(l2,5,35);
              layout.addComponent(b2,105,35);
              layout.addComponent(l3,5,65);
              layout.addComponent(b3,105,65);
              layout.addComponent(l4,5,95);
              layout.addComponent(b4,105,95);
              layout.addComponent(l5,5,125);
              layout.addComponent(b5,105,125);
              //Simplify adding components by creating JLabels when you use them
             JTextField b1 = new JTextField(10);
              JTextField b2 = new JTextField(10);
              JTextField b3 = new JTextField(10);
              JTextField b4 = new JTextField(10);
              JTextField b5 = new JTextField(10);
              layout.addComponent(new JLabel("First Name:"),5,5);
              layout.addComponent(b1,105,5);
              layout.addComponent(new JLabel("Last Name:"),5,35);
              layout.addComponent(b2,105,35);
              layout.addComponent(new JLabel("Home City:"),5,65);
              layout.addComponent(b3,105,65);
              layout.addComponent(new JLabel("Home State:"),5,95);
              layout.addComponent(b4,105,95);
              layout.addComponent(new JLabel("Account Number:"),5,125);
              layout.addComponent(b5,105,125);
             //Finish creating Frame
             mainFrame.setSize(300,300);
             mainFrame.setContentPane(first);
             mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
             mainFrame.setVisible(true);
    }

  • Overlapping components problem

    Hello,
    I have been developing an applet for Quickplaces. Basically it shows what is happening in the Quickplace from different kind of views. A view from a document where people can see who has been viewing it for example. Or a view from a member where one can see what documents the member wrote.
    Now I have chosen to implement a sort of circle visualisation for this. In the center is the object the view is about, a document, a member, etc. Outwards are other objects. In the case of a document view, the members that responded to it, in a circle more outward: members that viewed it. Etc. It's sort of a dartboard.
    I have written a custom layoutmanager for each view for this. A problem I have encountered is that once I tell a member or document component to let itself be placed by the layout managerr I get a fixed size component. It looks ok until you for example hover over it, wich I have keyed to a zooming in on details method. When you do that your usually overlapping other components. Why, components can be overlapped without zooming in some views. The problem is the mouselistener I have attached fires when I hover over de component size. Not the size of the actual graphical representation. My members for example are represented by a sphere. They are bounded by a rectangle component though. So if I enter my mouse anywhere near the sphere... it already zooms in, resulting in the user zooming in on a member, but actually he wanted to zoom in on a member that was close to this one, but for the code was "underneath" the component of the other member.
    It's a bit hard to explain without posting a screenshot.
    How do I fix this?

    Hi,
    I need a clarification, taking the example you
    provided:
    you have a rectangle components, that display spheres.I have a viewer class for document's member's and room's. RoomViewer, MemberViewer, etc. These paint the actual graphic. They are given a size by the custom layoutmanager i wrote like this:
            //Layout members
            int mems = members.size();
            if(mems != 0){
                double angle = 360 / mems;
                double baseAngle = 0;
                synchronized(members){
                     Iterator iter = members.iterator();
                     while(iter.hasNext()){
                         MemberViewer tempMember = (MemberViewer)iter.next();
                         Dimension d = tempMember.getSize();
                         double lastLog = tempMember.getMember().getLastLog() * 160 + Math.sqrt((Math.pow(50, (double)2) + Math.pow(50, (double)2)));
                         int xCoord = (int)((xCenter + (Math.cos(Math.toRadians(baseAngle)) * lastLog)) - (0.5 * d.getWidth()));
                         int yCoord = (int)((yCenter + (Math.sin(Math.toRadians(baseAngle)) * lastLog)) - (0.5 * d.getHeight()));
                         tempMember.setBounds(xCoord, yCoord, container_size, container_size);
                         baseAngle += angle;
            }A viewer get's it's data from the model class. MemberViewer from Member, etc.
    First you want to zoom only when the mouse is hovered
    on the sphere. Is that right ?Yes I have implemented the enters part of the mouselistener. As soon as the mouse enters the component in wich the graphical representation is drawn it zooms. with zoom I multiply the size by some and add some different graphs inside the circle, but that is not important. What is interesting is probably that the size of the component when it is not zoomed is the size for when it is zoomed in, or the zoom in would be cut off by the component boundaries.
    What about the overlapping ? could you clarify a bit
    please.
    Basically it overlaps nicely on the view. Once you interact though I get stuck. Clicking, entering and exiting is supposed to do things. But all these 3 fire when your mouse does that thing inside the component, not inside the graphical representation. So you start zooming quite a bit away from the circle of a member btw, because that distance is already part of the component, but not of the drawing.
    Who is reponsible for drawing the shapes ?The Viewers paint themselves. The Layoutmanager gives them a basic place to start their own painting and a View class controls the layoutmanager.
    And who listens to mouse motion ?The viewers themselves do. They implement mouseListener.
    in mouseMoved(MouseEvent e)
    you can get the point with e.getPoint(); where the
    mouse points to.
    This will help you to handle the event only when
    hovered on the shape,
    but it will maybe not solve the hovering over
    overlapped components.I don't quite follow that. A Shape can still not implement MouseListener.

  • How-do-i-use apple calaendar to-allow-my-staff-and-i-to-share-calendars-but-not-have-my-alarms-going-off-on- their-ihones

    how-do-i-use apple calaendar to-allow-my-staff-and-i-to-share-calendars-but-not-have-my-alarms-going-off-on- their-ihones
    Really annoying can it be done.?
    Searched everywhere for an answer surely other people have had this problem
    Cheers

    https://discussions.apple.com/message/19818985#19818985

  • How do I use different Layouts?

    I am trying to make a program that runs in a window like this:
    http://www.exyt-web.com/Window.gif
    The problem I'm having is with the layout.
    How do I have more than one layout ?
    For example - as you can see in the image (hyperlink above) I wish to have a border layout with a JFrame at the North position and then in the South position I want to have buttons laid out in a FlowLayout.
    Also with my radio buttons I want these in a GridLayout(3, 0) layout.
    I made up some example code to test using different layouts - but it seems one layout always overrides the other...
    import java.awt.*;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    public class LayoutTest extends JFrame
        public LayoutTest()
            setTitle("Hello World");
            Container contents = getContentPane();
            Container contents2 = getContentPane();
            contents.setLayout(new FlowLayout());
            contents.add(new JLabel("<FILTER [Type a th|    ]>"));
            contents.add(contents2);
            contents.add(new JLabel("< Filter Button >"));
            contents.add(new JLabel("<  Add Button   >"));
            contents2.setLayout(new GridLayout());
            contents2.add(new JLabel("< Button 1 >"));
            contents2.add(new JLabel("< Button 2 >"));
            contents2.add(new JLabel("< Button 3 >"));
            contents2.add(new JLabel("< Button 4 >"));
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            pack();
        } // HelloWorld
        public static void main(String [] args)
            LayoutTest theLayoutTest = new LayoutTest();
            theLayoutTest.show();
        } // main
    } // class HelloWorldI know this obviously doesn't work but I hoped it would show what I was trying to do.
    I also tried creating a new 'contents2' and then adding it into 'contents'
    e.g. contents.add(contents2); My current code for the window I'm trying to create so far is:
    import java.awt.*;
    import javax.swing.*;
    public class Menus extends JFrame
        public static void Menus()
            // Creates a new JFrame, with the title specified in quotation marks.
            JFrame frame = new JFrame("Film Database");
            // Sets the default close operation of the frame.
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            // Creates a new menu bar for the frame.
            JMenuBar menuBar = new JMenuBar();
            // Creates a new menu for the menu bar.
            JMenu menu = new JMenu("File");
            addFrameContents(frame, menuBar, menu);
            // Sets the new menu bar on the frame
            frame.setJMenuBar(menuBar);
            frame.pack();
            frame.setVisible(true);
        } // HelloWorld
        public static void addFrameContents(JFrame frame, JMenuBar menuBar, JMenu menu)
            // Adds the menu to the menu bar.
            menuBar.add(menu);
            // Creates a new item for the menu with a small icon.
            JMenuItem menuLoad = new JMenuItem("Load", new ImageIcon("C:/load.gif"));
            // Adds the new item to the menu.
            menu.add(menuLoad);
            JMenuItem menuSave = new JMenuItem("Save", new ImageIcon("C:/save.gif"));
            menu.add(menuSave);
            JMenuItem menuQuit = new JMenuItem("Quit", new ImageIcon("C:/quit.gif"));
            menu.add(menuQuit);
            // Creates a new container.
            Container contents = frame.getContentPane();
            // Sets a new layout for contents, in this case FlowLayout.
            contents.setLayout(new GridLayout(2, 0));
            // Adds new JLabels to the container.
            contents.add(new JLabel("< JLabel 1 >"));
            contents.add(new JLabel("< JLabel 2 >"));
            contents.add(new JLabel("< JLabel 3 >"));
            contents.add(new JLabel("< JLabel 4 >"));
            JLabel thisLabel = new JLabel("Hello");
            thisLabel.setLayout(new FlowLayout());
            JLabel thisLabel2 = new JLabel("Hello2");
            thisLabel2.setLayout(new FlowLayout());
            contents.add(thisLabel);
            contents.add(thisLabel2);
        public static void main(String [] args)
            Menus();
        } // main
    } // class HelloWorldAny help on how I can use two separate layouts in the same frame would be great!
    Regards,
    Tom

    doing this:
    Container contents = getContentPane();
    Container contents2 = getContentPane();
    does not create 2 different containers. It's just creating 2 variables that refer to the same container. There is only 1 content pane in a window/frame. A container can only have 1 layout.
    If you want to have 2 layouts, you create 2 panels with separate layouts and put what you want in each panel, and put both panels in the content page.

  • How do I move from one website to another using Safari, while still allowing Pandora to provide music in the background? It seems that when ever I open a new URL, I lose Pandora.

    How do I move from one website to another using Safari, while still allowing Pandora to provide music in the background? It seems that when ever I open a new URL, I lose Pandora.

    Try running Pandora in its own tab and leaving that tab open (Safari 7.1.5, OS 10.9.5).  I don't have Pandora to try this, but it works for me otherwise.
    Good luck
    srb

  • Which one is the Right Approach - Re Using Page Layouts or adding Web parts directly to pages instead of page layouts in SP 2013 online site ?

    Hi Team,
    I am SharePoint 2013 developer. Before asking question I would like to explain the requirement in clarity.
    We are developing one O365 SharePoint online site which is having 10 different page layouts with different and some common webparts and we are reusing these page layouts by deploying a sandboxed solution which is having page layouts. These page layouts contain
    filter and query to display data using some condition and predefined values. By using these layouts we have to create 100+ pages. All pages will show data according to that page name and category (if it belongs any). We have not written any code to develop
    the site, everything is OOB feature.
    We have used below feature/list/lib of SP Online 2013:
    - Document Library
    - Survey
    - Calendar
    - Lists
    - Discussion forum library
    - OOB Search feature
    Now, I would like to know whether this is the right approach to reuse the page layouts. Or can we add webparts directly where the logic resides in the webparts and add them to the pages instead of page layouts?
    Also how to deploy page layouts/pages from one server to another? Currently we are deploying everything as a feature using sandbox solution. 
    Could you please let me know the right approach to follow. I am asking this question because we are facing below issues:
    - Sometime page layouts gets corrupted, showing nothing.
    - All written filters/logic disappear when we open layouts in Designer
    - Deployment is pain using Sandbox solution
    Waiting for your reply.
    Thanks in Advance,
    Shifa Mittal

    Interesting question, to which i do not know a definitive answer.
    Output Caching is used to increase performance and to reduce load on the box. However since you're in the MS Cloud you don't need to worry about the latter and MS do the worrying about the former. I wouldn't be surprised if MS have updated the behaviour
    for O365 and not updated the documentation. That first office.com article is using 2010 screenshots which doesn't fill me with confidence about it's continuing relevance. Don't forget that SharePoint 2013 and O365 are technically different versions and have
    very different behaviour in places.
    Generally i'd say not to worry, but in this case if you do find any more information i'd love to see it.

  • Best Practice in using Tracking Layout

    Can anyone tell me how best to use Tracking Layout and how to create the different new layout in tracking layout view.
    Kindly let me know whether the layout as explained below can be shown:
    Toplayout shows the list of projects and the bottom layout should show the list of resources and while selecting the resources should show either histogram or spreadsheet to show the resources based on the usage for all the projects. With that we need to find out which is oveallocated and which resource is free.
    Thanks in advance.
    Regards,
    Olby

    user8410696,
    Sounds like you need a simple resource loading histogram with a threshold limit displayed for each project. I don't know if you are layout saavy but layouts can be customized to fit your exact needs. Sometimes P6 cannot display exactly what you desire but most basic layouts can be tweaked to fit. I believe that you need a combo of resource profiles and columns.
    I'll take some time today and do some tweeking on my end to see if I can modify one of my resource layouts to fit your needs. I'll let you know what I find out.
    talk to you later,

  • MX432 All-in-one printer: left side of printed subject is being cut off when using 'normal' layout.

    Because 'normal' and 'fit to page' layouts cut off left side of printed material I'm using 'borderless' layout but that doesn't give me the paper size option I need.  Any hints on how to save the left side of paper and how to change paper size in borderless layout.  Any hints in print preview wherein I can print just 'one or two'  of multiple pages without having to return to the set-up page?

    Hi vitaminsg,
    You can set it so that "Fit to Page" printing is the default setting.  To do this, use the following steps:
    1.  Click Start.
    2.  Click Control Panel.
    3.  Click Printers and other Hardware.
    4.  Click Printers and Faxes.
    5.  Right click the PIXMA MX432 and click Printing Preferences.
    6.  Click the Page Setup Tab.
    7.  Select Fit to Page under Page Layout, then press OK.
    This should now be the default setting for all programs.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Using a layout in SUBMIT statement

    Hi,
    I am calling a program from another program using a SUBMIT statement.  I'm also using a layout to do so.
    SUBMIT rffmepgax
             WITH s_fonds = s_fund-low
             WITH s_fictr = s_fc-low
             WITH s_hkont = c_gl
             WITH p_per_fr = s_poper-low
             WITH p_per_to = s_poper-high
             WITH p_fyr_fr = s_year-low
             WITH p_fyr_to = s_year-low
             WITH s_fipex = c_citem
    >>>         WITH p_disvar = '/ZTRAVEL'
             WITH p_maxsel = c_max
             WITH s_wrttp = c_vt1
             WITH s_wrttp = c_vt2
             WITH FREE SELECTIONS texpr
             AND RETURN
             EXPORTING LIST TO MEMORY.
    The problem is that /ZTRAVEL is a public layout that anyone can change.  I can rewrite the code to use a user-specific layout, but then only I can run the program.  If anyone else tries, it stops and says the layout doesn't exist. 
    Is it possible to create a public layout that cannot be changed by anyone?  What is the t-code for this?
    thanks,
    Kevin

    Hi
    USING SELECTION-SET <var>
    This addition tells the system to start the called program with the variant var
    You specify the variant in the quotes.
    Check the below links
    http://help.sap.com/saphelp_nw04s/helpdata/en/9f/dba51a35c111d1829f0000e829fbfe/frameset.htm
    regarding calling another program from current report
    Hope this helps
    Regards
    Shilpa

Maybe you are looking for

  • G570 Choppy Sound - Poor Performanc​e

    Hi I'm currently having a few issues with my laptop All drivers are up to date They all seem to happen at the same time so I believe its a internal issue A lot of the time lately randomly my sound will get really choppy a static sound right when that

  • Printable CD

    A possibly silly question, but is there a method with Canon Easy Photoprint EX to print a CD with only a photo, and not with all those supplied layouts? (Using a Pixma Pro 100) Thanks Solved! Go to Solution.

  • Reinstalling Acrobat 4.0

    I unistalled Acrobat 6.0, and I want to reinstall it.  To do so, first I have to install 4.0, and then I have to upgrade to 6.0.  I have both of my original disks.  After I insert the 4.0 CD and click on "Install 4.0", nothing happens.  Can anyone su

  • Terminate Pass/Fail Sequence Step

    Hi everyone, I have a step in my main sequence that runs an interactive dialog box to the operator.  It checks whether or not it receives communication from the slave device.  If for some reason the operator wants to "TERMINATE (ABORT" the dialog box

  • Adobe Certified Expert:LiveCycle ES2 Form Developer Exam

    Hi All, I would like to know whether the following certification is still available for enrollment? "Adobe Certified Expert:LiveCycle ES2 Form Developer Exam" If Yes, please share your experience in case if you had completed the above certification.