Matrix Fixed Height

hi all,
i have matrix in a form created by screen painter. the size of the matrix is dynamic, the size of the height is different when in normal window size and maximize size. can i make it fixed height when in normal and maximize position ?
Thx and pardon me for broken english.

Hi Ivin,
If your form is resizable then I don't think there is a way to stop the matrix from automatically growing as the user resizes the form. However, you can trap the resize event of the form (when BeforeAction is false) and set the matrix height back to the value you want. If you freeze the form while you are doing this, the user will only see the matrix with the correct height.
Public Sub ResizeMatrix(ByVal sboForm As SAPbouiCOM.Form)
     Try
            sboForm.Freeze(True)
            ' Reset the height of the matrix to prevent it growing during form resize
            Dim sboItem As SAPbouiCOM.Item = sboForm.Items.Item("MYMATRIX")
            sboItem.Height = 150
            sboItem.Width = sboForm.Width - 30 'Adjust the matrix width to fit the new form size
        Finally
            sboForm.Freeze(False)
        End Try
End Sub
Kind Regards,
Owen

Similar Messages

  • Access Standard property(eg Fixed Height) of an iview in code

    Hi ,
    I have downloaded the standard URL iview's par(com.sap.portal.httpconnectivity.urliviews.par). I want to access the  property 'Fixed Height' in the code. The component profile of the par doesnt contain the above attribute(and many other standard attributes which we get to see in the property editor of the iView). Can somebody please help me in this regard.
    Regards,
    Prathamesh

    Hi,
    I would suggest you to use the PcmConstants.ASPECT_ADMINISTRATION for Constants.REQUESTED_ASPECT in environment.
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
    env.put(Constants.REQUESTED_ASPECT, PcmConstants.ASPECT_ADMINISTRATION);
    env.put(Context.SECURITY_PRINCIPAL, request.getUser());
    InitialContext iCtx = null;
    String roleID = "pcd:portal_content/DanielContent/DanRole";
    try{
        iCtx = new InitialContext(env);
        PcmAdminBase adminBase =
                (PcmAdminBase) iCtx.lookup(roleID);
        IPcdAttribute attribute = (IPcdAttribute) adminBase.getPcdContext().getAttributes("").get("com.sap.portal.iview.Height");
    String height = attribute.get().toString();
    Greetings,
    Praveen Gudapati

  • How to set up fixed height in ADF layout component

    I try to create a page by having my main content at the center of page within a box using a fixed height. The idea is when the content is too long, a vertical scrollbar should show up for that box instead of stretching that box. I tried to use trh:tableLayout and set height attribute for trh:cellFormat component. However, instead of showing a vertical scrollbar, it just stretches table cell. Does anyone have a solution to this issue? Thanks.

    Thanks for your fast reply. Yes, I already tried layout="vertical" which is not help. I am using JDeveloper 11.1.1.2.0. Actually what I want to do is I will display a block of information in a box area at the center of screen. If the information become too big for that box, I want a scrollbar to show up for that box instead of stretching that box to fit the content.

  • Fixed height of text iView

    Hi all,
    i want to get a text iView into my page with a fixed height, and if the text increases that limit a vertical scroll bar should apear and not the horizontal scroll bar.
    i am trying to use <iframe> tag in the jsp and call the html page in that as a src. is there any other way to do it?
    thanks,
    Harika.

    Hi Harika
    go thru the following url then u will get some idea on this problem.
    Regards
    sunil
    <a href="https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_library&query=fixedheightoftextviewinthejsp&adv=false">https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_library&query=fixedheightoftextviewinthejsp&adv=false</a>
    Regards
    sunil

  • How could i set fixed heights for all of my web pages?

    I want fixed heights for all of my web pages.Do i have to set any margins for my footer?Because by adding some contents in between header and footer ,then the footer goes down.How could i have fixed height pages?

    You may like to have a fixed footer as in
    #footer {
       position:fixed;
       left:0px;
       bottom:0px;
       height:30px;
       width:100%;
       background:#999;

  • Issues using sap.m.SelectDialog (fixed height of 2000px, SAPUI5 1.20.4)

    Hi there
    I'm using SAPUI5 1.20.4 on SAP AS Java.
    I have a sap.ui.commons.Dialog modal popup. Within this popup I can open another popup, but this time it is a sap.m.SelectDialog.
    The animation when opening the SelectDialog is fine (fade in, zoom), but as soon as it finished rendering, there is the close button at the bottom and the area above is completely white.
    By investigating this issue I found out, that the <section> tag below the <header> gets a fixed height of 2000px (inline style). The (generated) ID is __dialog4_dialog_cont.
    I'm using Chrome with a screen resolution of 800x600 only.
    Do you have any suggestions?
    Regards
    Tobias

    I have some more information.
    When initializing the SelectDialog, a variable is NaN.
    When opening the SelectDialog it looks like this:
    It still looks fine when "return this" gets executed. There must be some post-rendering which takes place after the SelectDialog was rendered.
    I don't know exactly where it happens, but later it looks this way:
    If you need additional information, please let me know.
    Regards
    Tobias

  • Dreamweaver: How do I ensure my video is always the full browser width, but a fixed height?

    I don't care if the video crops vertically or horizontally, but I want to it be responsive to the full browser width, yet a fixed height (400px or so). Like this: http://www.anthonydesigner.com/
    Thank you kindly.

    Apply style rules as in
    video {
      position: fixed;
      top: -100px;
      right: 0px;
      bottom: 0px;
      min-width: 100%;
      min-height: 100%;
      width: auto;
      height: auto;

  • Fix height message area

    hi,
    is it possible to influence the height of the message area (component wdr_message_area)?
    my aim is to get the same height in px of the transparent container in the cases when
    1. there are no messages
        and
    2. if there are messages
    is this possible?
    thank you

    thank you rainer but are you really sure?
    you can put the message area in an transparent container and then you can give this transparent container a fixed height (e. g. 100 px).
    this works fine but my problem is when the message area doesn´t contain messages the height (I mean the white space in the transparent container which is shown in browser) is lower than 100 px...
    is it really impossible to influence this? I am thinking of an wd enhancement like a post-exit for wddoinit of wdr_message_area or something else...

  • BI Publisher: Fixed height size table Template

    Hi
    I'm creating a template for BI Publisher where I need a fixed table height size.
    Example:
    I need a table with 10 rows (fixed) if I print the report with 1 row it will occupy the rest with empty rows and if I print the report with 10 rows, the 10 lines will be field.
    I tried to use the "at least" option for table but when I print the report it puts each line occupying the size I put in "at least" option.
    How can I do this?
    EDIT: I'm using this in Apex.
    Edited by: Ownr on 18/Fev/2009 15:15

    please check in this forum , how to display N rows per page.
    Re: Can you limit returned rows in a loop?
    Limit number of rows in a table to 10

  • Crystal Report: How to make the fixed height box in all pages.

    Post Author: WTech
    CA Forum: Crystal Reports
    I want to make the height of box fixed size in all pages. The box in outside the detail section. Currently the size of the box changes according to the content of the detail section. Could anyone suggest me how should i achieve it ?  

    Hi srinivasan,
    If you want to keep "Save" and "Stop" common, Why do you want to keep them on Tab control? Is your tab control taking entire space on Front panel? If so, you can have SAVE and STOP on other vi, and you can call this vi (MODAL).
    Gaurav k
    CLD Certified !!!!!
    Do not forget to Mark solution and to give Kudo if problem is solved.

  • How to print Table with fixed height?

    Hi,
    I am developing an invoice. I am printing the invoice lines in a table and the number of lines may vary.
    I am using the table to print the lines in word rtf template. The table cells don't have the border.
    I am facing the following problems:
    1. The table height varies based on the number of invoice lines. I don't want that. I want to fix the table height. I can draw the line and create the table, that may solve this problem for 1 page invoice, but that doesn't solve next issue i.e. issue #2.
    2. If the invoice goes beyond 1 page, then the table continues and on the 1st page the table is open from the bottom, as I have table without the internal cell border. I want close the table on the 1st page and rewrite the table in the 2nd page.
    Please let me know, if you have any solution for these issues.
    Thanks!!
    Edited by: Sanket_Bhabad on May 17, 2013 8:01 AM

    Take a look at this blog post: https://blogs.oracle.com/xmlpublisher/entry/anatomy_of_a_template_i_fixed
    Thanks,
    Bipuser

  • ADD a Parameter fixed height from "NI_Word.lvclass:Word Set Table Dimension.ni"

    I would add a parameter to fixed or no the dimension height of the row.
    It can add a parameter form the Generation Report from "NI_Word.lvclass:Word Set Table Dimension.ni".
    Thank you
    Jérôme

    I would add a parameter to fixed or no the dimension height of the row.
    It can add a parameter form the Generation Report from "NI_Word.lvclass:Word Set Table Dimension.ni".
    Thank you
    Jérôme

  • Fix Height and Width - List Mobile

    Gotta leave the width and height of each fixed position in the list, without becoming adifferent, I would like to know how to do it. Thank you.

    Hi ,
    You can suppress the warning message by adding the entry "SuppressIncompatibleBrowserMessage = 1" in "AdobeCaptivate.ini" file .
    This file is present in Adobe Captivate installation folder .
    Also , add the line of text at line 2 or line 3 of the ini file .
    Thanks,
    Phani Shekhar M
    Example contents of modified "AdobeCaptivate.ini" file :
    VistaWin7StartupMessage = 1
    SuppressIncompatibleBrowserMessage = 1
    LowDiskSpaceMessage = 1
    SystemAudioDriver =Soundflower (2ch)
    EquationEditorPathWin =\MathMagic for Captivate\MathMagic for Captivate.exe
    EquationEditorPathMac =/Applications/MathMagic for Captivate.app
    UserPathForLayoutsAndInteractions = ""
    [TRUE STRINGS]
    USE_INTELLIGENCE = 1
    STRINGS = True;Correct;Right;Yes;T;Y;Wahr;Verdadero;Vrai;Vero;○;참;Verdadeiro

  • How to fix height on JPanel?

    Hello,
    I have three subPanels, all sitting on a JFrame.
    I want to fix the height of the top and bottom panels, but have the middle panel always be the max allowed space.
    For example, top Panel is always 50 pixels tall, bottom panel is always 30 pixels tall. Depending on the size of the main panel, the middle panel will always be:
    JFrameHeight-50-30=middlePanelHeight.
    I don't want to use setMaximumSize or setPreferred size, because that will fix my width, and I don't want to fix the width. I want it to grow as wide as the JFrame itself. The only thing I want to fix is the HEIGHT of the top and bottom panels on the JFrame.
    I am using BoxLayout (with Y_AXIS). Right now, I am using setMaximumSize - that will fix my height - but also fixes my width (because it takes dimension(width,height), which I don't want to do.
    Can anyone help me?
    If you need code, please request, and I will post.
    Apologies if this question already answered, I couldn't find it answered anywhere. :)
    Nina.

    Hello,
    Yes, you are all correct, BorderLayout should work.
    You guys really did get me closer to the solution.
    Now, I think it's the topPane's Layout Manager
    that keeps it from working right.
    What I want to do, is the top panel (outlined in
    the black box) to always stretch so that the words
    are always fully justified at the left and right
    edge. That means, the word "Age: 3",
    "NinaCute", "Pet Name", "Nina Screen" are all
    flushed to the sides.
    Posted below is code. You'll see that if you
    make the window wider, the words don't remain
    flushed with the edges.
    import javax.swing.*;
    import javax.swing.border.LineBorder;
    import javax.swing.text.*;
    import javax.swing.event.*;
    import java.awt.*;              //for layout managers
    import java.awt.event.*;        //for action and window events
    import java.util.*;
    public class NinaDialog extends JDialog
              public NinaDialog(JFrame frame)
                        super(frame, true);
              public void buildWindow()
                        Container contentPane=this.getContentPane();
                        BorderLayout bord=new BorderLayout();
                        contentPane.setLayout(bord);
                        this.setSize(600, 500);
                        JPanel topPane=createHeaderPane();
                        contentPane.add(topPane, bord.NORTH);
                        // create the reservation tab panel and add it
                        JPanel midPane=createMiddlePane();
                        contentPane.add(midPane, bord.CENTER);
                        JPanel btnPane=createButtonPane();
                        contentPane.add(btnPane, bord.SOUTH);
                        this.addWindowListener(new WindowAdapter()
                                  public void windowClosing(WindowEvent e)
                                  } // end windowCloseing
                        }); // end windowListener
              } // end buildWindow
              public JPanel createHeaderPane()
                        JPanel topPane=new JPanel();
                        topPane.setBorder(new LineBorder(Color.black));
                        GridBagLayout gb=new GridBagLayout();
                        GridBagConstraints gc=new GridBagConstraints();
                        topPane.setLayout(gb);
                        JLabel label=new JLabel(htmlIt("<b>Nina Screen</b> | "+
                        "<b>Folder:</b> Images"+
                        " | <b>Current Status:</b> FULL"));
                        gc.gridx=0; gc.gridy=0; gc.gridwidth=3;
                        gc.anchor=gc.NORTHWEST; gc.insets=new Insets(0,2,4,50);
                        gb.setConstraints(label,gc);
                        topPane.add(label);
                        label=new JLabel(htmlIt("<b>User Id:</b> NinaCute"));
                        gc.gridx+=3; gc.gridwidth=1; gc.anchor=gc.NORTHEAST;
                        gc.insets=new Insets(0,0,4,2);
                        gb.setConstraints(label,gc);
                        topPane.add(label);
                        gc.gridy++; gc.insets=new Insets(0,2,2,20);
                        label=new JLabel(htmlIt("<b>Pet Name:</b> Joe"));
                        gc.gridx=0; gc.anchor=gc.NORTHWEST;
                        gb.setConstraints(label,gc);
                        topPane.add(label);
                        label=new JLabel(htmlIt("<b>Type:</b> Bunny"));
                        gc.gridx++; gc.insets=new Insets(0,0,2,20);
                        gb.setConstraints(label,gc);
                        topPane.add(label);
                        label=new JLabel(htmlIt("<b>Color:</b> Black/White"));
                        gc.gridx++; gc.insets=new Insets(0,0,2,20);
                        gb.setConstraints(label,gc);
                        topPane.add(label);
                        gc.insets=new Insets(0,0,2,2);
                        label=new JLabel(htmlIt("<b>Age:</b> 3"));
                        gc.gridx++; gc.anchor=gc.NORTHEAST;
                        gb.setConstraints(label,gc);
                        topPane.add(label);
                        return topPane;
              } // end createHeaderPane
              public JPanel createMiddlePane()
                        // add in closeButton
                        JPanel pane=new JPanel();
                        //pane.setBorder(new LineBorder(Color.black));
                        GridBagLayout gb=new GridBagLayout();
                        GridBagConstraints gc=new GridBagConstraints();
                        pane.setLayout(gb);
                        JLabel label=new JLabel("this window should stretch "+
                        "and resize horizontally and vertically.");
                        gc.gridx=0; gc.gridy=0; gc.anchor=gc.NORTH;
                        gb.setConstraints(label,gc);
                        pane.add(label);
                        return pane;
              } // end createMiddlePane
              public JPanel createButtonPane()
                        // add in closeButton
                        JPanel btnPane=new JPanel();
                        btnPane.setAlignmentX(JComponent.LEFT_ALIGNMENT);
                        //btnPane.setBorder(new LineBorder(Color.black));
                        GridBagLayout gb=new GridBagLayout();
                        GridBagConstraints gc=new GridBagConstraints();
                        btnPane.setLayout(gb);
                        gc.gridx=0; gc.gridy=0; gc.anchor=gc.EAST; gc.ipadx=8;
                        gc.weightx=1.0; gc.insets=new Insets(0,0,0,4);
                        JButton closeButton=new JButton("Close Window");
                        closeButton.addActionListener(new CancelListener());
                        gb.setConstraints(closeButton, gc);
                        btnPane.add(closeButton);
                        return btnPane;
              } // end createButtonPane
              private String htmlIt(String text)
                        if(text==null) return "";
                        String ret="<HTML>"+
                        "<font face=\"arial, helvetica\" size=\"2\">"+
                        text+
                        "</font>"+
                        "</HTML>";
                        return ret;
              } // end niceFormatLabel
              class CancelListener implements ActionListener
                        public void actionPerformed(ActionEvent e)
                                  closeWindow();
                        } // end actionPerformed
              } // end CancelListener
              public void closeWindow()
                        WindowEvent we = new WindowEvent(this, WindowEvent.WINDOW_CLOSING);
                        this.processWindowEvent(we);
              } // end closeWindow
              public void showDialog()
                        this.show();
                        return;
              public void show()
                        this.setTitle("Fulillment | Reservation | Cruise");
                        super.show(); // makes it block until it gets some closeevent
              public static void main(String[] args)
                        JFrame frame=new JFrame();
                        NinaDialog dig=new NinaDialog(frame);
                        // build the UI
                        dig.buildWindow();
                        // show the Dialog and don't close until closewindow clicked
                        dig.showDialog();
              } // end main
    } // end class

  • Tableview: how to make fixed height row?

    Hi,
    I want to make the row height of a tableview fixed.
    Please help me.
    Thanks,
    Dhiman

    Thats the way the GridLayout works, each cell is the same size. The size is determined by the largest component added to the grid.
    Here is the Swing tutorial on "Using Layout Managers".
    http://java.sun.com/docs/books/tutorial/uiswing/layout/using.html

Maybe you are looking for