How to display a horizontal list of images

Hello everyone,
I am new to Flash Builder 4 and I am looking to display a horizontal list of images on my Flex Mobile Project (using Burrito Flash Builder). Can anyone recommend me what component that I should use?
I know the <s:List /> will display a Vertical list of items, but I am not sure what component to display a horizontal list of items.
Thanks in advance for any help,

Have you tried using HorizontalList?
Here is an example:
http://flex4fun.com/2010/11/30/flex4-horizontallist-example/

Similar Messages

  • How to display a bulletted list

    Hi All,
    I'd like to display a list of agreements to the user as a bulleted list.  It's all the things that the user is agreeing to when they submit the application.
    What would be ideal is if there is a controller that I can bind to an array, and it will display each item in the array as a single bulleted list item.  The list of agreements will vary depending on how the user as filled out the application, and if I do it this way I could simply pass in a collection with all the items they are agreeing to.
    But I haven't been able to even figure out how to display a bulleted list.  I've found some posts online that address how you might do this if you're working on an editor, but I don't need editable text--I just want to display a bulleted list to users.  It seems like this is a basic feature that must be in Flex 4 somewhere, and I don't want to go reinventing the wheel.
    Thanks!
      -Josh

    Ok, here's what I came up with for a bulleted list that you can bind an ArrayCollection of String items to.  Thoughts?  Any issues with this implementation?
    I looked into a custom ItemRenderer, but this seemed much simpler and it's all I need in my case--a bulleted list.
    I'm aware that no escaping of the input strings is being done, but that's actually intentionally--I may wish to pass in strings that include additional markup to make certain words/phrases bold.
    The reason for the getter and setter on the dataProvider property is to ensure that anytime a new assignment is made to that property the change listeners are setup.
    I'm interested in feedback on how I could do this better or differently, to best take advantage of the facilities Flex offers.
    Thanks!
      -Josh
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx"
               width="100%">
         <s:layout>
              <s:VerticalLayout/>
         </s:layout>
         <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         <fx:Script>
              <![CDATA[
                   import mx.collections.ArrayCollection;
                   import mx.events.CollectionEvent;
                   import mx.events.FlexEvent;
                   private var _dataProvider:ArrayCollection;
                   public function get dataProvider():ArrayCollection{
                        if(_dataProvider == null){
                             dataProvider = new ArrayCollection();
                        return _dataProvider;
                   public function set dataProvider(value:ArrayCollection):void{
                        _dataProvider = value;
                        this.ensureBulletedListTextIsBuilt(dataProvider);
                        this.dataProvider.addEventListener(CollectionEvent.COLLECTION_CHANGE,handleItemsChange,false,0,true)
                   protected function handleItemsChange(event:CollectionEvent):void{
                        var collection:ArrayCollection = event.target as ArrayCollection;
                        this.ensureBulletedListTextIsBuilt(collection);
                   protected function ensureBulletedListTextIsBuilt(collection:ArrayCollection):void{
                        var html:String = "";
                        for each(var item:String in collection){
                             html += "<li>" + item + "</li>";
                        bulletedListText.htmlText = html;
              ]]>
         </fx:Script>
         <mx:Text id="bulletedListText" width="100%" />
    </s:Group>

  • How to display struts form list values?

    HI,
    How to display struts form list values?
    I am having master and child data.
    I can set list values master and child in action class.
    How to display the master and child data in struts jsp form.
    <logic:iterate id="result" name="listofEmployees" >
    <td ><bean:write name="result" property="id"/></td>
    <td ><bean:write name="result" property="name"/></td>
    <td > <bean:write name="result" property="list"/>  </td>
    </tr>
    </logic:iterate>Here I am displaying master data succesfully.
    How to iterate values of <td ><bean:write name="result" property="list"/></td>in action class i added bean class to this list.
    how to iterate this list with java bean and display my child data
    Thanks
    sai

    Struts 1 or 2?
    I guess 2 'cause you're just talking about Action, without mentioning the Form.
    In STRUTS 1 it goes like this: forward to the page and use logic:iterate tag. Don't know about STRUTS 2, but It shouldn't be too different.
    bye.

  • How to display non-URL-based thumbnail images in JTable

    I'm trying to display thumbnail images as a tooltip popup for certain cells in a JTable. The thumbnail images are java image objects that have been retrieved dynamically as the result of a separate process--there is no associated URL. For this reason, I can't use the setToolTipText() method of the JTable.
    My attempts to JTable's createToolTip() method also failed as it seems the ToolTipManager never calls this method for a JTable.
    As a workaround, I've added a MouseMotionListener to the JTable that detects when the mouse is over the desired table cells. However, I'm not sure how to display the popup over the JTable. The only component that I can get to display over the JTable is a JPopupMenu, but I don't want to display a menu--just the image. Can anyone suggest a way to display a small popup image over the table?
    Thanks.

    Thank You Rodney. This explains why my createToolTip() method wasn't being called, but unfortunately I'm no closer to my goal of displaying a true custom tooltip using a non-URL image rather than a text string. If I make a call to setToolTipText(), at any point, the text argument becomes the tooltip and everything I have tried in createToolTip() has no effect. However, as you pointed out, if I don't call setToolTipText(), the table is not registered with the tooltip manager and createToolTip() is never even called.
    To help clarify, I have attached an SSCCE below. Please note that I use a URL image only for testing. In my actual application, the images are available only as Java objects--there are no URLs.
    import javax.swing.*;
    import java.awt.*;
    import java.net.URL;
    import java.net.MalformedURLException;
    public class Test {
        static Object[][] data = {
                {"Cell 0,0", "Cell 0,1"},
                {"Cell 1,0", "Cell 1,1"}};
        static String[] columnNames = {"Column 0", "Column 1"};
        static JFrame frame;
        static String testImageURLName = "http://l.yimg.com/k/omg/us/img/7c/0a/4009_4182164952.jpg";
        static JTable testTable = new JTable(data, columnNames) {
            public JToolTip createToolTip() {
                System.out.println("testTable.createToolTip() called");
                Image testImage = getTestImage();
                // this.setToolTipText("Table ToolTip Text");
                JLabel customTipLabel = new JLabel(new ImageIcon(testImage));
                customTipLabel.setToolTipText("Custom ToolTip Text");
                JToolTip parentTip = super.createToolTip();
                parentTip.setComponent(customTipLabel);
                return parentTip;
        // This image is loaded from a URL only for test purposes!!!
        // Ordinarily, the image object would come from the application
        // and no URL would be available.
        public static Image getTestImage() {
            try {
                URL iconURL = new URL(testImageURLName);
                ImageIcon icon = new ImageIcon(iconURL);
                return icon.getImage();
            catch (MalformedURLException ex) {
                JOptionPane.showMessageDialog(frame,
                        "Set variable \"testImageName\" to a valid file name");
                System.exit(1);
            return null;
        public static void main(String[] args) throws Exception {
            frame = new JFrame("Test Table");
            frame.setSize(300, 100);
            // Set tool tip text so that table is registered w/ tool tip manager
            testTable.setToolTipText("main tooltip");
            frame.getContentPane().add(testTable);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
    }

  • How to display different parts of an image

    hi,
    I need to display different parts of an image at specific situations.
    for example, a dice. there is only one image which includes different sides of the dice. and I wanna add
    to my panel one side if one comes, two side if two comes... I mean if one comes then we will display
    from 10 px to 80 px width and from 10 px to 80 px height of the dice image.
    is there any way to obtain this in java?
    thanks...

    import java.awt.*;
    import java.awt.font.*;
    import java.awt.geom.*;
    import java.awt.image.BufferedImage;
    import java.util.Random;
    import javax.swing.*;
    public class ImageClipping extends JPanel {
        BufferedImage image;
        Rectangle clip;
        final int ROWS = 3;
        final int COLS = 3;
        public ImageClipping() {
            // Make an image we can clip.
            Dimension d = getPreferredSize();
            int type = BufferedImage.TYPE_INT_RGB;
            image = new BufferedImage(d.width, d.height, type);
            Graphics2D g2 = image.createGraphics();
            g2.setBackground(getBackground());
            g2.clearRect(0, 0, d.width, d.height);
            Font font = g2.getFont().deriveFont(36f);
            g2.setFont(font);
            FontRenderContext frc = g2.getFontRenderContext();
            LineMetrics lm = font.getLineMetrics("0", frc);
            float sh = lm.getAscent() + lm.getDescent();
            int xInc = d.width/COLS;
            int yInc = d.height/ROWS;
            for(int j = 0; j < ROWS; j++) {
                for(int k = 0; k < COLS; k++) {
                    String s = String.valueOf(j*COLS + k+1);
                    float sw = (float)font.getStringBounds(s, frc).getWidth();
                    float sx = k*xInc + (xInc - sw)/2;
                    float sy = j*yInc + (yInc + sh)/2 - lm.getDescent();
                    g2.setPaint(Color.red);
                    g2.drawString(s, sx, sy);
                    g2.setPaint(Color.blue);
                    g2.drawRect(k*xInc, j*yInc, xInc-1, yInc-1);
            g2.dispose();
            clip = new Rectangle(xInc, yInc);
            // Inspect image.
            ImageIcon icon = new ImageIcon(image);
            JOptionPane.showMessageDialog(null, icon, "", -1);
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            Shape origClip = g2.getClip();
            //g2.setPaint(Color.red);
            //g2.draw(clip);
            // Draw clipped image at:
            int x = 100;
            int y = 100;
            // Mark location.
            g2.setPaint(Color.red);
            g2.fill(new Ellipse2D.Double(x-2,y-2,4,4));
            // Position the image.
            g2.translate(x-clip.x, y-clip.y);
            // Clip it and draw.
            g2.setClip(clip);
            g2.drawImage(image,0,0,this);
            // Reverse the changes to the graphics context.
            g2.setClip(origClip);
            g2.translate(clip.x-x, clip.y-y);
        public Dimension getPreferredSize() {
            return new Dimension(400,400);
        public static void main(String[] args) {
            ImageClipping test = new ImageClipping();
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.add(test);
            f.pack();
            f.setLocation(50,50);
            f.setVisible(true);
            test.start();
        private void start() {
            Thread thread = new Thread(runner);
            thread.setPriority(Thread.NORM_PRIORITY);
            thread.start();
        private Runnable runner = new Runnable() {
            Random seed = new Random();
            Dimension d = getPreferredSize();
            int xInc = d.width/COLS;
            int yInc = d.height/ROWS;
            public void run() {
                do {
                    try {
                        Thread.sleep(3000);
                    } catch(InterruptedException e) {
                        break;
                    int row = seed.nextInt(ROWS);
                    int col = seed.nextInt(COLS);
                    int x = col*xInc;
                    int y = row*yInc;
                    int n = row*COLS + col+1;
                    System.out.printf("row = %d  col = %d  n = %d%n",
                                       row, col, n);
                    clip.setLocation(x,y);
                    repaint();
                } while(isVisible());
    }

  • Displaying MIR4 attachment list TIF image in module pool screen

    Hi All,
    I have a screen with a custom container and I tried to call a TIF image from MIR4 which is in attachment list(which is stored in archived link).
    I need a function module to display this image in my Module pool screen using the container.
    I tried using below code
    * Create controls
         CREATE OBJECT container_1
           EXPORTING
             container_name = 'CONTAINER'.
    *    create object container_2
    *      exporting container_name = 'PICTURE_CONTROL_2'.
         CREATE OBJECT PICTURE_CONTROL_1
           EXPORTING
             parent = container_1.
    *    CREATE OBJECT PICTURE_CONTROL_2 exporting parent = container_2.
    CALL METHOD PICTURE_CONTROL_1->LOAD_PICTURE_FROM_URL
           EXPORTING
    *    URL    = 'SAPR3://984BE16932C81EE3B2AA1E3B0D12C6FF'
    *      URL    = 'file://E:\Personal\New_Passport4.jpg'
    *       URL    = 'SAPR3://984BE16932C81EE3B2BDF8E44B035648.TIF'
    *URL    = 'SAPR3://SAPR3CMS/get/100/Z1/984BE16932C81EE3B2BDF8E44B035648//.TIF'.
         URL    = 'SAPR3://WebRepository/0020698212/DEMOWORD97SAPLOGO?Version=00000'
         IMPORTING
              RESULT = lv_result.
    CALL METHOD PICTURE_CONTROL_1->set_display_mode
         EXPORTING
           display_mode = PICTURE_CONTROL_1->display_mode_fit_center.
    But I am able to display this URL    = 'SAPR3://WebRepository/0020698212/DEMOWORD97SAPLOGO?Version=00000' and not able to display my archive link image which is in TIF.
    note: Display image of Arc.link Doc.type ZBUSI_TIF (doc.class TIF)
    Please help me on this.
    Thanks
    Geetha Charan

    Hi sai,
    Please refer th procedure.
    For the select-options you might have defined a selection screen.
    Next you can fetch the entire data that you wanted to display in a module pool into an internal table.
    you can call the screen you defined for o/p upon the selection.
    Then, You define a screen XXXX  and a table control in the scree, and in the PAI module of the screen
    you write a chain end chain processing in which you can display the contents of your internal table.
    OR
    if you want the selection also to be in the module pool,  then for displaying the O/P you can definr a sub-screen of the initial screen and you can call that sub-screen on selcting, which can be done with a function code.
    Hope this helps

  • How to display a blob as an image

    I am working on an application which stores images in a database as blobs. I need to extract these images and display them from a web page. How do I go about this using JSP or JSF?
    Werner

    Thanks for the quick response, matlas. I should have included more info in my original post. I am familiar with reading/writing blobs from the database. The part I am stuck on is how does the java servlet return the blob (dPhoto below), to the web page?
    i.e. from <img src="employeePhoto.jsp&empId=123">
    ImageIcon dPhoto = null;
    // open connection
    Connection photoConnection = startup.openSQLConnection(SQLDriver, SQLConnectionString);
    // setup select string
    String sqlStatement = "select Binary_Photo from employeephoto where Employee_ID = '"+employeeID+"'";
    try {
    // perform select
    ResultSet rs = photoConnection.createStatement().executeQuery(sqlStatement);
    // if record found process blob
    if (rs.next()) {
    // get blob
    Blob image = rs.getBlob("Binary_Photo");
    // setup the streams to process blob
    InputStream input = image.getBinaryStream();
    ByteArrayOutputStream output = new ByteArrayOutputStream();
    // set read buffer size
    byte[] rb = new byte[1024];
    int ch = 0;
    // process blob
    while ((ch=input.read(rb)) != -1) {
    output.write(rb, 0, ch);
    // transfer to byte buffer
    byte[] b = output.toByteArray();
    input.close();
    output.close();
    // load final buffer to image icon
    dPhoto = new ImageIcon(b);
    catch (Exception exc) {/ do your exception processing}
    // close connection
    startup.closeSQLConnection(photoConnection);
    // dPhoto holds image or is null at this point.

  • How to display options from List  in JSF

    Hi ,
    How can I display the options in JSF,because jsf wont support the forEach tag.
    I'm using Tomcat 5.5 ,Java 5 and Eclipse .
    I'm using the tag like this
    <h:selectOneMenu id="assignTo" value="#{courseDetails.assignTo}" >
                                              <f:selectItem itemLabel="#{courseControl.processList}" itemValue="#{courseControl.processList}" />          
                                       </h:selectOneMenu>how can i assign the values to the selectItem throug List/Array.
    Can any help on this please.
    Regards,
    PB.

    Instead of using
    <f:selectItem> use
    <f:selectItems>.
    Pass list to this componenet. is this your question?
    Message was edited by:
    KrishnaS

  • How to Display drop down list in descending order on the web

    Dear BW Guru,
    I am Thambi, Currently I have the user's requirement to display <b>drop down</b> list in descending order on the web.
    1. In my Bw  system <b>0calweek</b> we have 3year's calweeks data (156 - Values), If we list this in <u>Bex Value Help of Info object for Ocalweek</u> Pop up window opens , By clicking  on Info object name we can able to see the values ascending or descending according  our wish.
    2. If we veiw the report in Web, I can able to see only first 25 values in ascending order web.
    3. How to view those valuse in <b>decending order</b> in web.
    Pls help me to solve this problem.
    Thanks in advance.

    Hi John, you should either add the values to your InfoPath dropdown manually or create a new list in SharePoint with the values and make a connection to that list to populate your dropdown.
    cameron rautmann

  • How to display F4 check list where can be multiple selection ?

    Hi exports,
    Using Function module "HELP_VALUES_GET_WITH_TABLE",  is it possible to list a multiple selection value ?
    Thank you very much.
    Best regards,
    Sap leaner

    Hi
    See this and use
    For F4 Values on Screen:
    PROCESS ON VALUE_REQUEST
    using module call starting with FIELD i.e FIELD field MODULE module
    There are number of function modules that can be used for the purpose, but these
    can fullfill the task easily or combination of them.
    DYNP_VALUE_READ
    F4IF_FIELD_VALUE_REQUEST
    F4IF_INT_TABLE_VALUE_REQUEST
    POPUP_WITH_TABLE_DISPLAY
    DYNP_VALUE_READ
    This function module is used to read values in the screen fields. Use of this
    FM causes forced transfer of data from screen fields to ABAP fields.
    There are 3 exporting parameters
    DYNAME = program name = SY-CPROG
    DYNUMB = Screen number = SY-DYNNR
    TRANSLATE_TO_UPPER = 'X'
    and one importing TABLE parameter
    DYNPFIELDS = Table of TYPE DYNPREAD
    The DYNPFIELDS parameter is used to pass internal table of type DYNPREAD
    to this FM and the values read from the screen will be stored in this table.This
    table consists of two fields:
    FIELDNAME : Used to pass the name of screen field for which the value is to
    be read.
    FIELDVALUE : Used to read the value of the field in the screen.
    e.g.
    DATA: SCREEN_VALUES TYPE TABLE OF DYNPREAD ,
    SCREEN_VALUE LIKE LINE OF SCREEN_VALUES.
    SCREEN_VALUE-FIELDNAME = 'KUNNR' . * Field to be read
    APPEND SCREEN_VALUE TO SCREEN_VALUES. * Fill the table
    CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
    DYNAME = SY-CPROG
    DYNUMB = SY-DYNNR
    TRANSLATE_TO_UPPER = 'X'
    TABLES
    DYNPFIELDS = SCREEN_VALUES.
    READ TABLE SCREEN_VALUES INDEX 1 INTO SCREEN_VALUE.Now the screen value for field KUNNR is in the SCREEN_VALUE-FIELDVALUE and can be used for further processing like using it to fill the internal table to be used as parameter in F4IF_INT_TABLE_VALUE_REQUEST ETC.
    F4IF_FIELD_VALUE_REQUEST
    This FM is used to display value help or input from ABAP dictionary.We have to pass the name of the structure or table(TABNAME) along with the field name(FIELDNAME) . The selection can be returned to the specified screen field if three
    parameters DYNPNR,DYNPPROG,DYNPROFIELD are also specified or to a table if RETRN_TAB is specified.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
    TABNAME = table/structure
    FIELDNAME = 'field name'
    DYNPPROG = SY-CPROG
    DYNPNR = SY-DYNR
    DYNPROFIELD = 'screen field'
    IMPORTING
    RETURN_TAB = table of type DYNPREAD
    F4IF_INT_TABLE_VALUE_REQUEST
    This FM is used to dsiplay values stored in an internal table as input
    help.This FM is used to program our own custom help if no such input help
    exists in ABAP dictionary for a particular field. The parameter VALUE_TAB is used to pass the internal table containing input values.The parameter RETFIELD
    is used to specify the internal table field whose value will be returned to the screen field or RETURN_TAB.
    If DYNPNR,DYNPPROG and DYNPROFIELD are specified than the user selection is passed to the screen field specified in the DYNPROFIELD. If RETURN_TAB is specified the selectionis returned in a table.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    RETFIELD = field from int table whose value will be returned
    DYNPPROG = SY-CPROG
    DYNPNR = SY-DYNNR
    DYNPROFIELD = 'screen field'
    VALUE_ORG = 'S'
    TABLES
    VALUE_TAB = internal table whose values will be shown.
    RETURN_TAB = internal table of type DDSHRETVAL
    EXCEPTIONS
    parameter_error = 1
    no_values_found = 2
    others = 3.
    POPUP_WITH_TABLE_DISPLAY
    This FM is used to display the contents of an internal table in a popup window.The user can select a row and the index of that is returned in the CHOISE
    parameter.The VALUETAB is used to pass the internal table.
    A suitable title can be set using TITLETEXT parameter. The starting and end position of the popup can be specified by the parameters STARTPOS_COL / ROW and ENDPOS_ROW / COL .
    CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
    EXPORTING
    ENDPOS_COL =
    ENDPOS_ROW =
    STARTPOS_COL =
    STARTPOS_ROW =
    TITLETEXT = 'title text'
    IMPORTING
    CHOISE =
    TABLES
    VALUETAB =
    EXCEPTIONS
    BREAK_OFF = 1
    OTHERS = 2.
    e.g.
    DATA: w_choice TYPE SY-TABIX.
    DATA: BEGIN OF i_values OCCURS 0 WITH HEADER LINE,
    values TYPE I,
    END OF i_values.
    PARAMETRS : id TYPE I.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR id
    i_values-values = '0001'.
    APPEND i_values.
    i_values-values = '0002'.
    APPEND i_values.
    i_values-values = '0003'.
    APPEND i_values.
    i_values-values = '0004'.
    APPEND i_values.
    CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
    EXPORTING
    ENDPOS_COL = 40
    ENDPOS_ROW = 12
    STARTPOS_COL = 20
    STARTPOS_ROW = 5
    TITLETEXT = 'Select an ID'
    IMPORTING
    CHOISE = w_choice
    TABLES
    VALUETAB = i_values
    EXCEPTIONS
    BREAK_OFF = 1
    OTHERS = 2.
    CHECK w_choice > 0.
    READ TABLE i_values INDEX w_choice....now we can process the selection as it is contained
    ...in the structure i_values.
    Other FM that may be used to provide input help is HELP_START .
    Reward points if useful
    Regards
    Anji

  • How to display data horizontally

    Hi,
    I have to display data the following format.
    sales order item description 01/09/2010 02/09/2010 03/09/2010
    100              1         test         3                     4                6
    in currently i am displaying the following format.
    sales order  date1 date2 date3
    item
    description
    1.how to fill field catelog.
    2. i have written code like below,
    wa_lvc_cat-fieldname = 'COLUMNTEXT'.
      wa_lvc_cat-ref_table = 'LVC_S_DETA'.
      APPEND wa_lvc_cat TO lt_lvc_cat.
      wa_fieldcat-fieldname = 'COLUMNTEXT'.
      wa_fieldcat-ref_tabname = 'LVC_S_DETA'.
      wa_fieldcat-key  = 'X'.
      APPEND wa_fieldcat TO lt_fieldcat.
      DESCRIBE TABLE i_final.
      DO sy-tfill TIMES.
      For each line, a column 'VALUEx' is created in the fieldcatalog
      Build Fieldcatalog
        WRITE sy-index TO wa_lvc_cat-fieldname LEFT-JUSTIFIED.
        CONCATENATE 'VALUE' wa_lvc_cat-fieldname
               INTO wa_lvc_cat-fieldname.
        wa_lvc_cat-ref_field = 'VALUE'.
        wa_lvc_cat-ref_table = 'LVC_S_DETA'.
        APPEND wa_lvc_cat TO lt_lvc_cat.
      Build Fieldcatalog
        CLEAR wa_fieldcat.
        wa_fieldcat-fieldname = wa_lvc_cat-fieldname.
        wa_fieldcat-ref_fieldname = 'VALUE'.
        wa_fieldcat-ref_tabname = 'LVC_S_DETA'.
        APPEND wa_fieldcat TO lt_fieldcat.
      ENDDO.
    create dynamic internal table
      CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
                it_fieldcatalog = lt_lvc_cat
        IMPORTING
          ep_table        = l_dyntable.
      ASSIGN l_dyntable->* TO <dynamictable>.
    create structure as structure of the internal table
      CREATE DATA l_structure LIKE LINE OF <dynamictable>.
      ASSIGN l_structure->* TO <header>.
    create structure = structure of the internal table
      CREATE DATA l_structure LIKE i_final.
      ASSIGN l_structure->* TO <ls_table>.
    create field catalog from our table structure
    wa_fieldcat-fieldname = 'DATE'.
    wa_fieldcat-tabname = 'I_FINAL'.
    APPEND wa_fieldcat TO lt_fieldcatalogue.
    wa_fieldcat-fieldname = 'CNT'.
    wa_fieldcat-tabname = 'I_FINAL'.
    APPEND wa_fieldcat TO lt_fieldcatalogue.
    wa_fieldcat-fieldname = 'FUNCT'.
    wa_fieldcat-tabname = 'I_FINAL'.
    APPEND wa_fieldcat TO lt_fieldcatalogue.
      wa_fieldcat-fieldname = 'ITEM'.
      wa_fieldcat-tabname = 'I_FINAL'.
      APPEND wa_fieldcat TO lt_fieldcatalogue.
      wa_fieldcat-fieldname = 'TRANS'.
      wa_fieldcat-tabname = 'I_FINAL'.
      APPEND wa_fieldcat TO lt_fieldcatalogue.
    *call function 'REUSE_ALV_FIELDCATALOG_MERGE'
    exporting
       i_structure_name       = <LS_TABLE>
    changing
       ct_fieldcat            = lt_fieldcatalogue
    exceptions
       inconsistent_interface = 1
       program_error          = 2
       others                 = 3.
    *IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    *ENDIF.
      DESCRIBE TABLE lt_fieldcatalogue.
    fill the internal to display <dynamictable>
      DO sy-tfill TIMES.
        IF sy-index = 1.
          READ TABLE lt_fieldcatalogue INTO wa_fieldcat INDEX 1.
        ENDIF.
      For each field of it_table
        ASSIGN COMPONENT 1 OF STRUCTURE <header> TO <dynheader>.
        IF sy-subrc NE 0. EXIT .ENDIF.
        READ TABLE lt_fieldcatalogue INTO wa_fieldcat INDEX sy-index.
      Fill 1st column
        <dynheader> = wa_fieldcat-seltext_m.
        IF <dynheader> IS INITIAL.
          <dynheader> = wa_fieldcat-fieldname.
        ENDIF.
    *filling the other columns
        LOOP AT i_final INTO  <ls_table>.
          l_col = sy-tabix + 1.
          ASSIGN COMPONENT sy-index OF STRUCTURE <ls_table> TO <dyndata>.
          IF sy-subrc NE 0. EXIT .ENDIF.
          ASSIGN COMPONENT l_col OF STRUCTURE <header> TO
          <dynheader>.
          IF sy-subrc NE 0. EXIT .ENDIF.
          WRITE <dyndata> TO <dynheader> LEFT-JUSTIFIED.
        ENDLOOP.
        APPEND <header> TO <dynamictable>.
      ENDDO.
    *layout for alv output
      lt_layout-zebra = 'X'.
      lt_layout-no_colhead = 'X'..
      lt_layout-colwidth_optimize ='X'.
      lt_layout-window_titlebar = 'ALV GRID TRANSPOSED'.
    *alv grid output for display
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          is_layout   = lt_layout
          it_fieldcat = lt_fieldcat
        TABLES
          t_outtab    = <dynamictable>.
    Plz correct me code.

    here's a sample to prepare a alv-fieldcatalog with many similar value-fields:
    *get metadata of itab
    DESCRIBE FIELD itab INTO td.
      LOOP AT td-types INTO watypes.
        READ TABLE td-names INTO wanames INDEX  watypes-idx_name.
        CHECK sy-subrc = 0.
        MOVE wanames-name TO fld-name.
        READ TABLE td-names INTO wanames INDEX  watypes-idx_help_id .
        MOVE wanames-name TO fld-def.
        WHILE wanames-continue = '*'.
          hindex = watypes-idx_help_id + 1.
          READ TABLE td-names INTO wanames INDEX  hindex.
          CONCATENATE fld-def  wanames-name INTO fld-def.
        ENDWHILE.
        APPEND fld.
      ENDLOOP.
    *build fieldcatalog
      LOOP AT fld.
        CLEAR katalog.
        katalog-fieldname = fld-name.
        IF fld-name = 'RCOMP'
         OR fld-name ='GSBER'
         OR fld-name ='ITEM'
         OR fld-name ='FUNKTION'.
          katalog-key = 'X'.
        ENDIF.
        SPLIT fld-def AT '-' INTO t f.
        SELECT SINGLE scrtext_m leng
               FROM  dd03m INTO: (katalog-reptext_ddic, katalog-outputlen)
               WHERE  tabname     = t
               AND    fieldname   = f
               AND    ddlanguage  = sy-langu.
        IF sy-subrc <> 0.
          katalog-reptext_ddic = fld-name.
        ENDIF.
        IF fld-name = 'TXT'.
          katalog-outputlen = 30.
        ELSEIF fld-name = 'GSBER'.
          katalog-outputlen = 4.
        ELSE.
          katalog-tabname = t.
        ENDIF.
    *here: different value-fields
        IF fld-name BETWEEN 'KSL00' AND 'KSL99'.
          IF fld-name <> 'KSL99'.
            CONCATENATE 'Periode' fld-name+3(2) '/' jahr INTO
                         katalog-reptext_ddic SEPARATED BY space.
    *hide fields
            IF NOT fld-name+3(2)  IN buper.
              katalog-no_out = 'X'.
            ENDIF.
          ELSE.
            katalog-outputlen = 19.
            IF ohnevj = 'X'.
              katalog-reptext_ddic = 'Summe'.
            ELSE.
    *previous year
              CONCATENATE 'Periode' buper-low '/' vorjahr INTO
                           katalog-reptext_ddic SEPARATED BY space.
            ENDIF.
          ENDIF.
          katalog-currency = 'EUR'.
          katalog-do_sum = 'X'.
          katalog-inttype  = 'P'.
          katalog-datatype = 'CURR'.
        ENDIF.
    *hide more fields
        CASE fld-name.
          WHEN 'GSBER'.
            MOVE x_gebe TO katalog-no_out.
            katalog-reptext_ddic = 'Gsbr'.
          WHEN 'ITEM'.
            MOVE x_item TO katalog-no_out.
          WHEN 'FUNKTION'.
            MOVE x_func TO katalog-no_out.
          WHEN 'TXT'.
            MOVE x_text TO katalog-no_out.
        ENDCASE.
        APPEND katalog TO cat.
      ENDLOOP.
    grx
    A.

  • How to display a horizontal table in OBIEE Answers?

    Hi All,
    In one of my Client's report the table was aligned in Horizontal manner. I tried all the options in OBIEE Answers and found no option to convert the vertical table to horizontal table in OBIEE Answers. Is there any way to convert the vertical table to horizontal table. If so, please tell me in a step wise manner as i am new to OBIEE Answers it will be easy for me to create my report.
    Thanks in Advance,
    Thenmozhi

    Hi Deva,
    As you said, I tried creating my table in Pivot view. But the only the measure columns are only retrieving values if the column is a CHARACTER column then no value is retrieved. In that column's aggregation rule only the first and last options are working. What to do to retrieve the values of a character column if it is placed in measure section of pivot table.
    Thanks in Advance
    Thenmozhi

  • How to display Image by using Array?

    Hi all, I know to how to display the image in MXML by using
    AS 3.0
    like this:
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="100" height="80" borderStyle="solid">
    <mx:Script>
    <![CDATA[
    [Embed(source="logo.gif")]
    [Bindable]
    public var imgCls:Class;
    ]]>
    </mx:Script>
    <mx:Image source="{imgCls}"/>
    <!--OR-->
    <mx:Image source="@Embed('assets/Nokia_6630.png')"/>
    </mx:Application>
    But the thing is I am building a list for display the images,
    the values is come from the Array. I am trying a different way for
    display it but no working, here is my code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml">
    <mx:Script>
    <![CDATA[
    public var PICTURE_ARRAY:Array = [{label:"FileA",
    icon:"@Embed('upload/myjpg.jpg')"},
    {label:"FileC", icon:"@Embed('upload/myjpg.jpg')"},
    {label:"FileB", icon:"@Embed('upload/myjpg.jpg')"}]
    ]]>
    </mx:Script>
    <mx:Tile id="pictureSelection" height="180" width="500"
    borderStyle="solid">
    <mx:Repeater id="picRP"
    dataProvider="{PICTURE_ARRAY}">
    <mx:VBox horizontalAlign="center" verticalAlign="middle"
    verticalGap="0" borderStyle="none" width="100" height="100">
    <mx:Image width="80" height="80"
    source="{picRP.currentItem.icon}"
    toolTip="{picRP.currentItem.icon}"/>
    <!--
    I also tryed this as well:
    set the icon value as picture location like: "A.jpg" or
    "B.jpg"
    then
    <mx:Image width="80" height="80"
    source="@Embed('upload/{picRP.currentItem.icon}')" />
    -->
    <mx:Label text="{picRP.currentItem.label}" width="100"
    textAlign="center"/>
    </mx:VBox>
    </mx:Repeater>
    </mx:Tile>
    </mx:Application>
    Can anyone tell how to display the array value into Image
    tag? Thanks

    In your data you have this:
    {label:"FileC", icon:"@Embed('upload/myjpg.jpg')"},
    change it to this:
    {label:"FileC", icon:"upload/myjpg.jpg"}, // this is just the
    filename, not embedded
    In your Repeater you have this Image tag:
    <mx:Image width="80" height="80"
    source="{picRP.currentItem.icon}"
    toolTip="{picRP.currentItem.icon}"/>
    which is fine, except for the toolTip. The toolTip uses a
    string, not an image. If you want to show an image in the toolTip,
    you'll need to write your own toolTip class.
    Now the source property of the image will be given the URL to
    the image which will then be requested from the server and
    downloaded at runtime - it is not embedded.
    If you need to embed the images, then your dataProvider
    should have the variable name associated with the embedded
    image.

  • How To Display Value In inputText When List Is Used

    Hello,
    I have a question regarding how to display value from List in a jsf page?
    From a Map, i could display like
    <ice:inputText  id="plantno" value="#{bean.detailedRowData['plantno']}"So if I am using a List instead of Map, how can I refer value in List so that I could display my plantno?
    <ice:inputText  id="plantno" value="#{bean.?????}"Thanks

    Create a backing bean method that fetches the value from the list for you.
    <ice:inputText  id="plantno" value="#{bean.plantNo}"/>
    public class MyFunkyBean {
      private List<String> rowdata;
      public String getPlantNo(){
        return rowdata.get(INDEX_AT_WHICH_THE_PLANTNO_IS_STORED);
    }It really isn't possible to turn the list into a regular bean/entity?

  • How do you display the horizontal display button in iMovie 11

    Can anybody tell me how to display the horizontal display button in Imovie 11 to display the project in one horizontal timeline as opposed to multiple rows?

    It is in the top right corner of the Project pane - next to the Marker Buttons. It looks like 3 gray squares.

Maybe you are looking for

  • Help button not visible in off-line version

    Why is de help/information button not visible in the off-line version. The web-based version is oké. In use Adobe Accrobat version XI.

  • Can't read body of e-mail and can't send e-mails with text in body.

    The mail on my IPOD touch suddenly doesn't show up in the body of the text. Only can read "From, To and Subject". I also am unable to send e-mails as I can't get into text body. I have twice deleted the account and installed again but problem still o

  • Classpath problems with JMF

    Hi all, I'm trying to develop a simple application using JMF; I've problems importing classes from javax.media package. Problem with my application is that when I explicitly specify classpath as a command line argument to javac my application compile

  • SQLServer 2008 R2: The SCHEMA LOCK permission was denied on the object

    Hi all, I encounter the following error while developing a SSRS project that connects to a SQL Server Database view: "Msg 229, Level 14, State 71, Procedure sp_getschemalock, Line 1 The SCHEMA LOCK permission was denied on the object 'Table4', databa

  • Bluetooth Mouse Issues

    Anybody having bluetooth connectivity issues after devices are paired? Periodically, my mouse stops working and I have to turn it off and back on for it to reconnect. Mouse doesn't do this when paired with my old Dell Inspiron 9300 laptop.-bp