Dynamic JPanel graphics within a JFame

Dear Forum,
I have a class which extends JFrame. It calls two classes that each extend JPanel with paintComponent() overriden so that I can draw 2D graphics in each. The first JPanel class is a static arrangement of shapes. This class and the class that extends JFrame also implement a MouseListener so that when a MouseEvent occurs within the first JPanel class, it causes the second JPanel class to redraw in graphics. That's the hope.
I am able to do everything but get the second JPanel class to change (i.e. I can get a print statement to verify that my MouseEvent is creating the proper data structure in the JFrame class). However, I cannot figure a way around having the either JPanel class called statically.
Can this be done? It sounds simple enough. Rather than ask you all for code. Does anyone know the general approach to this problem?
Thanks,
Dan

import java.awt.*;
import java.awt.event.*;
import java.awt.font.*;
import java.awt.geom.*;
import javax.swing.*;
public class Relay
    GeneralPanel generalPanel;
    DetailPanel detailPanel;
    int[][] data =
        { 60,  60, 60, 4 }, { 180, 120, 50, 3 },
        { 60, 300, 45, 7 }, { 165, 240, 60, 5 }
    private JPanel getContent()
        generalPanel = new GeneralPanel(this);
        generalPanel.setData(data);
        PolygonSelector selector = new PolygonSelector(this);
        generalPanel.addMouseListener(selector);
        detailPanel = new DetailPanel();
        JPanel panel = new JPanel(new GridLayout(1,0));
        panel.setOpaque(true);
        panel.add(generalPanel);
        panel.add(detailPanel);
        return panel;
    public void showDetails(Polygon p)
        detailPanel.showDetails(p);
    public static void main(String[] args)
        Relay relay = new Relay();
        JFrame f = new JFrame();
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setContentPane(relay.getContent());
        f.setSize(500,400);
        f.setLocation(200,200);
        f.setVisible(true);
class GeneralPanel extends JPanel
    Relay relay;
    Polygon[] polygons;
    boolean haveSelection;
    public GeneralPanel(Relay relay)
        this.relay = relay;
        polygons = new Polygon[0];
        haveSelection = false;
    protected void paintComponent(Graphics g)
        super.paintComponent(g);
        Graphics2D g2 = (Graphics2D)g;
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                            RenderingHints.VALUE_ANTIALIAS_ON);
        g2.setPaint(Color.blue);
        for(int j = 0; j < polygons.length; j++)
            g2.draw(polygons[j]);
    public void setData(int[][] data)
        polygons = new Polygon[data.length];
        for(int j = 0; j < data.length; j++)
            int[][] xy = generateShapeArrays(data[j]);
            polygons[j] = new Polygon(xy[0], xy[1], data[j][3]);
        repaint();
    private int[][] generateShapeArrays(int[] data)
        int cx = data[0];
        int cy = data[1];
        int R = data[2];
        int sides = data[3];
        int radInc = 0;
        if(sides % 2 == 0)
            radInc = 1;
        int[] x = new int[sides];
        int[] y = new int[sides];
        for(int i = 0; i < sides; i++)
            x[i] = cx + (int)(R * Math.sin(radInc*Math.PI/sides));
            y[i] = cy - (int)(R * Math.cos(radInc*Math.PI/sides));
            radInc += 2;
        // keep base of triangle level
        if(sides == 3)
            y[2] = y[1];
        return new int[][] { x, y };
class DetailPanel extends JPanel
    String x;
    String y;
    Dimension size;
    String sides;
    boolean haveSelection;
    final int HPAD = 20;
    final int VPAD = 10;
    public DetailPanel()
        setBorder(BorderFactory.createLoweredBevelBorder());
        haveSelection = false;
    protected void paintComponent(Graphics g)
        super.paintComponent(g);
        Graphics2D g2 = (Graphics2D)g;
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                            RenderingHints.VALUE_ANTIALIAS_ON);
        int w = getWidth();
        int h = getHeight();
        Font font = g2.getFont().deriveFont(16f);
        g2.setFont(font);
        FontRenderContext frc = g2.getFontRenderContext();
        String header = "Polygon Details";
        float width = (float)font.getStringBounds(header, frc).getWidth();
        LineMetrics lm = font.getLineMetrics(header, frc);
        float sx = (w - width)/2;
        float sy = VPAD + lm.getAscent();
        g2.drawString(header, sx, sy);
        if(haveSelection)
            String dim = String.valueOf(size.width) + ", " + size.height;
            String[] s =
                "x = " + x, "y = " + y, "size = " + dim, "sides = " + sides
            sx = HPAD;
            for(int j = 0; j < s.length; j++)
                sy += font.getLineMetrics(s[j], frc).getHeight();
                g2.drawString(s[j], sx, sy);
    public void showDetails(Polygon p)
        if(p == null)
            haveSelection = false;
        else
            Rectangle r = p.getBounds();
            size = r.getSize();
            Point loc = r.getLocation();
            x = String.valueOf(loc.x);
            y = String.valueOf(loc.y);
            sides = String.valueOf(p.npoints);
            haveSelection = true;
        repaint();
class PolygonSelector extends MouseAdapter
    Relay relay;
    public PolygonSelector(Relay relay)
        this.relay = relay;
    public void mouseClicked(MouseEvent e)
        GeneralPanel generalPanel = (GeneralPanel)e.getSource();
        Point p = e.getPoint();
        Polygon[] polygons = generalPanel.polygons;
        Polygon polygon = null;
        for(int j = 0; j < polygons.length; j++)
            if(polygons[j].contains(p))
                polygon = polygons[j];
                break;
        relay.showDetails(polygon);
}

Similar Messages

  • What happens when the multiply effect is applied to both the object and the graphic within?

    Hi everyone,
    I could really use some help with this...
    I'm getting a booklet ready to be printed. Originally, half of the pages were to be printed on paper with a (physical) colour. For budget reasons however, I've now decided to print the paper colour, and have the content of the pages overprinted on the tint in the background, which I've applied to the pages in the background of an additional master page.
    When I set the objects to multiply, they blend with the background colour, which is the effect I'm looking for, as there would be no 'paper white' on the pages that I want to appear as though printed on coloured paper.
    There's something confusing me though; you can also set the graphic within the object frame to multiply. This makes the graphic appear darker, which I don't really understand, since there is no extra colour within the graphic that accounts for this. I've looked at the output in the resulting pdf, and it looks like it's not just an on-screen effect, but the extra amount of (in this case) yellow would also be visible in the printed result.
    Does anyone have an explanation for this? Please see the graphic for a visual example.
    Thanks in advance, kind regards
    Robbin

    Hi.
              Yes. There is a heartbeat mechanism between all cluster members so they detect when a
              member has left the cluster. The primary server recognizes when it's secondary server
              has failed, and then proceeds to search for another member of the cluster to make as
              it's new secondary.
              Regards,
              Michael
              David Whitehouse wrote:
              > I'm trying to figure out what happens when the server holding the replicated state
              > for an object fails.
              > Does the server with the primary object (or the replica-aware stub) recognize
              > the failure and select a new
              > server to hold the replicated state?
              >
              > For instance, Assume I have a cluster defined with three servers - 1,2,3 - with
              > an instance of object A on server 1
              > and the replicated state ino on server 2. What happens if server 2 fails? Is the
              > state now replicated to server 3?
              >
              > Thanks, David
              Michael Young
              Developer Relations Engineer
              BEA Support
              

  • Feathered edges on graphics within Keynote 6.1?

    Is there a way to create feathered edges on graphics within Keynote 6.1 without bringing it in from another program? I know I can use Photoshop or some other program to create the mask but it seems there should be an easy way to do this from within Keynote. It seems the only masking available has hard edges.

    Quicker, easier and better results in Photoshop.
    You could use borders but not very convincing, select the image then:   
    Format Inspector > Style > Border > line > then select a line type from the dropdown menu and reduce opacity

  • [JS] CS4 How to position a graphic within a Frame

    I have a JS script that I am converting from CS3 to CS4 and I am finding that the behaviour for positioning a graphic within a frame has changed.  I have code that sets the geometric bounds of a graphic to a negitave value within the frame, within CS3 this works great.  However using the same code on CS4 to set the geometric bounds does not produce the same result.  The graphic is always placed at 0,0 and it ignores the negitive top and left values supplied.
    Does anyone know what has changed with the geometric bounds of a graphic within a recrangle frame?  How would I set the position of the graphic within the frame since setting the geometric bounds does not seem to work any longer.
    Thanks,
    Sheldon

    I have yet to determine why the behavior is different from CS3 to CS4 and how to correct the positioning within CS4.  To help explain the problem further I have included a sample script which demonstrates the problem.  I have run the script on both CS3 and CS4 and included screen shots of the results when the resulting INDD file is opened.  Could someone help explain why the position of the image is wrong in CS4 and what I can do to correct the problem?
    Here is the sample script ...
    for(i=app.documents.count()-1;i>=0;i--){app.documents.item(i).close();}
    app.textPreferences.useOpticalSize = false;
    app.textPreferences.typographersQuotes = false;
    app.textImportPreferences.useTypographersQuotes = false;
    app.taggedTextImportPreferences.useTypographersQuotes = false;
    app.pasteboardPreferences.minimumSpaceAboveAndBelow = "300p";
    app.textFramePreferences.firstBaselineOffset = FirstBaseline.ascentOffset;
    app.colorSettings.cmsSettingsPath = File("C:\\etc\\Friesens_Yearbook_Custom_Color_Settings.csf");
    app.marginPreferences.top = '24pt';
    app.marginPreferences.bottom = '48pt';
    app.marginPreferences.left = '36pt';
    app.marginPreferences.right = '36pt';
    var doc = app.documents.add();
    doc.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
    doc.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
    doc.documentPreferences.pageHeight = 792;
    doc.documentPreferences.pageWidth = 612;
    doc.documentPreferences.pageOrientation = PageOrientation.portrait;
    doc.documentPreferences.pagesPerDocument = 2;
    doc.documentPreferences.facingPages = true;
    doc.sections.firstItem().continueNumbering = false;
    doc.sections.firstItem().pageNumberStart = 2;
    var pg = doc.pages.item(0);
    var frm = pg.rectangles.add();
    frm.geometricBounds = ['200.5pt','200.2pt','447.8551pt','415.5206pt'];
    try{frm.place (File('c:\\test.jpg'), false);}catch(err){};
    if(frm.graphics.count() > 0) {frm.graphics.firstItem().geometricBounds = [frm.geometricBounds[0]-147, frm.geometricBounds[1]-49, 407.04+frm.geometricBounds[0]-147, 271.68+frm.geometricBounds[1]-49];};
    var objStyle = doc.objectStyles.add();
    objStyle.enableStroke= false;
    objStyle.transparencySettings.blendingSettings.opacity = 100;
    frm.applyObjectStyle(objStyle, true, true);
    frm.rotationAngle = 59;
    doc.label = '824203.indd';
    doc.packageForPrint('c:\\test\\824203\\', true, true, true, true, true, false, '', false, false);
    for(i=app.documents.count()-1;i>=0;i--){app.documents.item(i).close();}
    The line that I highlighted is the one that adjusts the images position within its frame.  It uses a formula to determine the exact position relative to the containing frames position.  This is why you will see the calculations to determine the geometric bounds.
    Here is the result of the script using InDesign Server CS3, notice the position of the image based on the 'Direct Selection Tool' highlight area (this is the desired result):
    And, here is the result after running the script against InDesign Server CS4:
    As you can see the Image is placed at the lot left corrner of the frame which is wrong.  Any insight into the diffrences in the behavior would be appreciated.
    Thanks

  • Possible to generate graphics within smart forms dynamically like SVG ?

    Hello,
    I would like to generate a graphic for a smart form. This graphic will only be needed in the smart form. Therefore my question:
    It is <b>possible to generate dynamically graphics using ABAP</b> as programming language? In the same line like SVG (Scalable Vector Graphics) or ChartDirector? I know it works in many other programming languages.
    Smart forms can handle *.bmp and *.tif picutres. Therefore the output of this ABAP program should be a picutre within the format *.bmp and *.tif.
    Daniel

    Welcome to SDN,
    I am not sure whether you can use SVG in smart form, but certainly in ABAP yes. check out the following atricle for more info.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/how to generate and display svg graphics in abap,%20Part%201.article
    Regards
    Raja

  • How to dynamically determine Receivers within BPM

    I’m trying to design a way to determine my receivers within my BPM process during runtime.   My Scenario is as follows:
    SAP IDOC
        V
      XI
                 XI uses JAVA Mapping MT1 to determine vendors and if customer receives PIDX
                             JAVA Mapping MT2 to creates the PIDX output file if required
      V
    SENDs to required Vendor (PIDX if required otherwise email)
    My problem is how to dynamically determine the appropriate receiving vendor for my PIDX.
    I can not use the condition editor on the standard Receiver Determination because the output message (PIDX) doesn't have specific enough information to determine the vendor.
    Other than the customer number there are no other values and we don't want to use customer number because each vendor can have multiple customer numbers (hundreds).
    I've tried various attempts but none seem to work.  This could also be because I have limited knowledge of BPMs and this is my first complex development.  Below are the different attempts I've made at dynamically determining the receiver.  Any input would be appreciated.
    Receiver Scenario 1 
      I developed an interface mapping with MT1 as input and the SAP Receiver Determination as output.  The problem is for me to use this, the interface mapping had to reference the PIDX output (MT2 instead of MT1) which has no data that I can use to determine the receiver.
    Receiver Scenario 2
    I added a receiver step right before my send step and used the receiver list.  This appears to send the PIDX to everyone in the list and there is no way to evaluate or eliminate a name from the list. 
    Receiver Scenario 3
    I created a context object in the Integration Builder and assigned it to a field in MT1.  I then added a switch step with a branch for each vendor.  Within each specific branch there is a Send step that has the context object name I created in the "Send Context" field.  However, on the configuration side I’m unable to access the context object which I created on the design side.  Whenever I open the condition editor and select the radiobutton for "Context Object" the list  does not include the context object I created in the Integration Builder.

    Hi,
    Try using the enhaced receiver determination concept.
    Maybe based on certain field values you can write a UDF which calculates the receiver.
    Try this Blog out
    Link : [
    http://help.sap.com/saphelp_nw70/helpdata/en/43/a5f2066340332de10000000a11466f/frameset.htm]
    Regards,
    Abhishek
    Award if helpful.

  • Dynamic WebService client within a WebService Handler

    We have a WebService running on WebLogic 10.3 that has a handler that contains a Webservice client that connects to a set of IIS WebServices.
    The client is called with code like this:
    QName qname = new QName("http://www.company.com/Webservices/", "UserService");
    UserService service = new UserService(url, qname);
    service.setHandlerResolver(resolver);
    UserServiceSoap uss = service.getUserServiceSoap();
    The URL is dynamic, we have different servers that contain different data other than that they are the same. When this is called the first time with URL http://abc it works just fine. If it is called again but this time pointing to URL http://xyz, the client still goes to http://abc. We have check through debugging to ensure that we are really passing the correct URL, and we are. I traced this through a tool called WireShark and can see our client making 2 GET requests to the proper WSDL but then does the POST to http://abc. URLS have been altered to protect the innocent :) This same webservice containing this handler works as expected within Tomcat, it is in WebLogic that things get weird. Any help would be appreciated.
    Thanks,

    Hi
    <b>Bojja Guruvulu</b>
    My Email Id is : <b>[email protected]</b>

  • Capturing JPanel graphics

    I am trying to capture the graphics of a JPanel and write it to JPEG. I have had success when I add the JPanel to a JFrame, create a BufferedImage, get a Graphics object from the BufferedImage, and then call the JPanel's paint/print. However, when the resolution of the screen is smaller than the size of the JPanel, I get nothing in the extra space when I use paint, and I get the strange effect of some of the leftmost components redrawn in the extra area on the right. If the resolution becomes larger than the panel, it works just fine.
    Changing the resolution is not a resonable solution for this application. How can I get around the size limitations of the JFrame to capture the whole contents of the JPanel?

    The approach suggested by Deudeu should work -- all you have to do is change the button used int he example to your panel. The important line in the posted code is:
    BufferedImage im = new BufferedImage(button.getWidth(), button.getHeight(), BufferedImage.TYPE_INT_RGB );
    Notice how the buffered image is created with the size of the button (which should be the size of your panel regardless of whether it is larger than the physical screen).
    If you haven't already given it a try, try it!
    ;o)
    V.V.

  • Dynamic JPanel resizing?

    Hey all,
    I'm displaying an image in a JPanel and I want the user to be able to resize the panel by dragging with the mouse as you would say in Photoshop. Obviously the image should resize to fill the panel as it's enlarged (showing resizing handles on the image/panel would also be good).
    For bonus points:
    I also have a draggable method so the image can be moved on the screen, the resizing method should only be applied when the mouse is over the edges of the image/panel.
    Thanks for your suggestions.

    For bonus points:
    I also have a draggable method so the image can be moved on Ooh bonus points! Now ur talking
    Search google for my Resizeable.java class. This should take care of resizing. As far as scaling the image, that call all be done in the paintComponent method. But actually I've got a class for this too
    You are welcome to use and modify this class, but please don't change the package or take credit for it as your own work (except where you have modified it)
    ExpandableImagePanel.java
    ======================
    package tjacobs.ui.ex;
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.Image;
    import java.awt.LayoutManager;
    import java.awt.Toolkit;
    import javax.swing.JPanel;
    import tjacobs.ui.fc.FileExtensionFilter;
    import tjacobs.ui.swing_ex.JFileChooser;
    import tjacobs.ui.util.WindowUtilities;
    * @deprecated use BackgroundImagePanel
    * @see BackgroundImagePanel
    * @author HP_Administrator
    public class ExpandableImagePanel extends JPanel {
         private static final long serialVersionUID = 1L;
         Image mOriginal;
         public ExpandableImagePanel() {
         public ExpandableImagePanel(Image im) {
              this();
              setImage(im);
         public ExpandableImagePanel(LayoutManager arg0) {
              super(arg0);
         public ExpandableImagePanel(boolean arg0) {
              super(arg0);
         public ExpandableImagePanel(LayoutManager arg0, boolean arg1) {
              super(arg0, arg1);
         public void setImage(Image im) {
              mOriginal = im;
         public Image getImage() {
              return mOriginal;
         public void paintComponent(Graphics g) {
              //super.paintComponent(g);
              g.clearRect(0, 0, getWidth(), getHeight());
              g.drawImage(mOriginal, 0, 0, getWidth(), getHeight(), null);
         public static void main(String[] args) {
              JFileChooser chooser = new JFileChooser();
              chooser.addChoosableFileFilter(new FileExtensionFilter.ImageFilter());
              int approve = chooser.showOpenDialog(null);
              if (approve == javax.swing.JFileChooser.APPROVE_OPTION) {
                   //BufferedImage im = new BufferedImage(chooser.getSelectedFile());
                   Image im = Toolkit.getDefaultToolkit().createImage(chooser.getSelectedFile().getAbsolutePath());
                   ExpandableImagePanel p = new ExpandableImagePanel(im);
                   p.setPreferredSize(new Dimension(300,300));
                   WindowUtilities.visualize(p);
    }

  • Preserve aspect ratio of JPanel size within JApplet

    Hi, currently, I have a JPanel component, which will be placed at the center of JApplet (This JApplet is BorderLayout).
    I wish to preserve the aspect ratio of the JPanel to square (width equal to height) even when the JApplet size is changed.
    I overriden the getPreferredSize, getMinimumSize and getMaximumSize of JPanel as follow:
    import java.awt.*;
    * @author  yccheok
    public class NewJPanel extends javax.swing.JPanel {
        /** Creates new form NewJPanel */
        public NewJPanel() {
            initComponents();
            this.setBackground(Color.RED);
        public Dimension getMinimumSize() {
            Dimension dimension;
            dimension = super.getMinimumSize();
            Dimension newDimension;
            if(dimension.getWidth() < dimension.getHeight()) {
                newDimension = new Dimension((int)dimension.getWidth(), (int)dimension.getWidth());
            else {
                newDimension = new Dimension((int)dimension.getHeight(), (int)dimension.getHeight());
            System.out.println("newDimension="+newDimension);
            return newDimension;
        public Dimension getMaximumSize() {
            return getMinimumSize();
        public Dimension getPreferredSize() {
            return getMinimumSize();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">                         
        private void initComponents() {
            setLayout(new java.awt.BorderLayout());
        // </editor-fold>                       
        // Variables declaration - do not modify                    
        // End of variables declaration                  
    }whereas my JApplet code is as follow:
    import java.awt.*;
    import javax.swing.*;
    * @author yccheok
    public class NewJApplet extends javax.swing.JApplet {
        /** Creates a new instance of NewJApplet */
        public NewJApplet() {
        public void init()
            this.getContentPane().setLayout(new BorderLayout());
            this.getContentPane().add(new NewJPanel(), BorderLayout.CENTER);
    }However, I realize none of the JPanel's getPreferredSize, getMinimumSize or getMaximumSize is called. Am I doing something wrong?
    Thank you very much!

    You probably should create your own layout manager

  • Reports 9.0.2. How to dynamically set graphic/chart width in paper layout?

    Hi there,
    I have a graphic with vertical bars in paper layout. Its width ranges from quarter of a A4 page width to several ones spanned. I have made the page width large enough but can not control the graphic width dynamically and when too much data must be shown on the X axis the bars get too thick to read.
    Is there another way except of?:
    - making the graph middle-sized and hoping that the client will not notice the visual glitch when too much or less data is the case;
    - using JSP (this is not an option here).
    To make the things worse, when the graph is expanded beyond a A4 page width or something its border reflects the change, but its contents is ugly shrunk.
    As I browsed this forum, I got convinced that the only way to get the graph under control at some extend is to use JSP web report.
    Anyone with experience on this? 10x in advance folks.

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • Creating Dynamic Routing Rules within mediators

    Hi
    When I check the (huge but apparently not enough) SOA developer's guide. I can't find any reference to dynamic rules within mediators. This feature seems available within jdev11g TP3. But the way to use it isn't straightforward.
    Do you know where I could find some explanation/samples or documentation related to this point pls ?
    ThanX
    Dominique

    Dominique,
    Unfortunately this feature is not quite complete in TP3 so I wouldn't waste too much time trying. We will try to have documentation and samples ready for it in TP4.
    Sorry,
    /Demed

  • Graphics within F1 help

    Hi all,
    has anyone an idea how to insert a graphic into my F1-help.
    It seems that F1 processor has some problems with it because  if I print my dokument the graphic is shown correctly only within performance assistant (or modal f1 window) the graphic is not shown.
    Any help is highly welcomed!
    Thanks!
    Best regards
    Tobias Kugelmann

    You have something called the AWT Event Thread. This is what does all windowing events. If you press a button, the ActionListener is ran in this thread. If you paint the screen, it too is done in this thread.
    Now you are adding delays in the paint method (from the sounds of it), so you send the current thread (which is the AWT event thread) to sleep. Now you application can no longer do anything GUI (hear mouse clicks, repaint other components) while this thread is asleep.
    This is why you are having the problems you are having.
    To fix it you need a datamodel. The circles represent something I would guess, so don't paint circles. Paint Thingies (which are represented by circles).
    The paint method has to be changed so instead of handing the loop, it looks at the data model to see how many Thingies it has to draw, and where.
    You the use a different loop (either main(), or a TimerTask) to add the Thingies into the datamodel, and call repaint.

  • Displaying multiple dynamic html pages within a single Portal folder.

    Hi all,
    Question: How can I display multiple dynamic html pages that are linked to each other, within a single portal folder?
    History:
    I have a designer/web server application (PL/SQL packakges) on Oracle
    8.1.7. Early in the development process we built it into WebDB2.2 and
    used folders on the left side as a navigation bar and the contents of my packages on the right side. This was easy, WebDB used Frames.
    Unfortunatley I could never automatically display a PL/SQL item in the folder area.
    Now I need to integrate the application into Portal 3.0 not the early adopters version, the one with 9iAS (NT for now, Unix later). I have a page/content area divided into regions and a navigation portlet on the left side containing links to PL/SQL folders whose contents are displayed on the right side. On the right side I have (for example) a Queryview. When I click on any of the buttons (i.e. Find, New), I land in a new page outside of my portal folder. This page contains a dynamically built list (from one or more DB Tables) and of course the first column contains a list of links that bring you to the individual item. How do I set my links or configure my folder to display
    within the portal folder area?

    Hi,
    One alternate is, increase the size of your screen, for this go to the layout of your screen and increase it as much you want, and also the custom container size, so that no scroll bar will appear at least.
    Other solution would be, as you said ALVs will be dynamical, it will be good to create buttons, or links on the screen based on the no of ALVs dynamically and on click of corresponding button call the corresponding ALV.
    But i dont think this will serve, first check the first option.
    Hope this helps u.,
    Thanks & Regards,
    Kiran.

  • Dynamic file name within 1:n mapping

    Dear all,
    I have a 1:n mapping and would like to use dynamic file names.
    I searched the forum but found just some few anserws.
    As far as I can determine, it is not possible to use dynamic file names for multiple target messages, right?
    We are using a 3rd party adapter (SFTP) that doesn't support variable substitution.
    Is there another way?
    Thanks
    Chris

    >>As far as I can determine, it is not possible to use dynamic file names for multiple target messages, right?
    I am afraid you are correct.
    >>Is there another way?
    One option I could think is have an adpter module and adding the dynamic configuration there.
    I personally have not tried this option. But I dont see any reason, why this approach would fail.
    If I am correct, the message is passed to the module chain after the split. So the above logic should work.
    I will be glad if you can try and let me know the results
    Regards
    Jai
    P.S: Let me know if you need any help creating the module. The coding should be so simple and not more than 10 lines

Maybe you are looking for