Tables in Flex

Hello!
How can I draw tables in Flex please?

What I am looking for is a classic table like the HTML one to display data with no interactivity and printer friendly: some columns, some rows, black border and white background.
I can use any of the HBox, VBox, Canvas containers, but it would seem bad coding to me to use one for each TD.

Similar Messages

  • How to create a lookup table in flex

    Hi,
    I am not sure how to construct and use a lookup table in flex, i have a string which needs to replaced with a string in the lookup table. Can someone let me know can i can do this.
    Thanks

    @learningflex,
    Here is the simple example of doing this..
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="onCreationComplete();">
       <mx:Script>
       <![CDATA[
         import mx.collections.ArrayCollection;
         import flash.utils.setInterval;
         import mx.controls.Alert;
      [Bindable]
      private var dataList:ArrayCollection = new ArrayCollection([
      {name:'Person'},
      {name:'Student'},
      {name:'Teacher'}, 
      {name:'Employee'}]);
        private function onCreationComplete():void
          for(var i:int=0;i<dataList.length;i++)
           var obj:Object = dataList.getItemAt(i);
           obj.abbr = getAbbrevatedName(obj.name);
           dataList.setItemAt(obj,i);           
          dataGrid.dataProvider = dataList;
        private function getAbbrevatedName(name:String):String
          switch(name)
           case "Person":
            return "prsn";
           case "Student":
            return "sdt";
           case "Teacher":
            return "tcr";
           case "Employee":
            return "emp";
           default:
            return "";
       ]]>
       </mx:Script>
    <mx:DataGrid id="dataGrid" x="10" y="177" visible="true">          
      <mx:columns>
       <mx:DataGridColumn  headerText="Actual Name" dataField="name"/>           
       <mx:DataGridColumn width="150" headerText="Abbrevated Name" dataField="abbr"/>
      </mx:columns>
    </mx:DataGrid>
    </mx:Application>
    See I have displayed both the FullNames in one column and also the abbrevated names in another column. So you can make use of the second column.
    Thanks,
    Bhasker

  • Excel type of table in flex

    Hello,
    i have a problem in designing excel type of table in flex
    UI.As i know only Data grid which display as rows.how to display
    the table loke excel sheet where sub headers and table as rows and
    columns
    and the user has to enter the data into each cell.any info is
    welcomed.
    Thanks and regards,
    Krishna

    "kittuokkade" <[email protected]> wrote in
    message
    news:gj1er8$4ih$[email protected]..
    > Hello,
    > i have a problem in designing excel type of table in
    flex UI.As i
    > know
    > only Data grid which display as rows.how to display the
    table loke excel
    > sheet
    > where sub headers and table as rows and columns
    > and the user has to enter the data into each cell.any
    info is welcomed.
    > Thanks and regards,
    Look at Olap DataGrid

  • Reg : Table in Flex

    Dear all
    1 .How to Create table in Flex application?
    2 .I want to access internal table data from webdynpro to Flex application
    If possible or nor ?
    Thanks
    sri

    Hi
    I hav created one RFC - Im giving input as a Dealer and im getting 3 fields
    same as im creating one flex applications using data Grid ..
    How to integrate My RFC to data Grid
    Kindly give some example
    Thanks
    sri

  • Creating html table using FLEX

    Hi
    I am new to flex,can any one help me how to create a simple
    html table using flex.
    regards
    pr@veen

    "callpraveenin1973" <[email protected]>
    wrote in message
    news:goj5qq$hgm$[email protected]..
    > Hi
    > I am new to flex,can any one help me how to create a
    simple html table
    > using flex.
    What would you use it for?

  • Adobe Flex integration - Issue with populating table in Flex

    I'm trying to populate a table EXORGDS. In SAP I have defined the same DATASOURCE as EXORGDS. Here is the code I have defined in Flex.
    <mx:DataGrid id="OrgGr" borderStyle="outset"  backgroundAlpha="2" width="285" rowCount="3" backgroundColor="#ffffff" dataProvider="">
                <mx:columns>
                    <mx:DataGridColumn dataField="PORGUNIT" headerText="Org Unit"/>
                    <mx:DataGridColumn dataField="PORGDESC" headerText="Description"/>
                </mx:columns>
      </mx:DataGrid>
    Am I missing something here.
    Regards,
    Imthiaz

    Hi Srilatha,
    I am struck in the same problem. I am using the grouping collection option in Flex but my data is not getting displayed in the Flash Island, I have attached the code sample. Kindly guide me.
    <mx:AdvancedDataGrid id="myADG"
            width="100%" height="100%"
             initialize="gc.refresh();"  >       
            <mx:dataProvider>
                <mx:GroupingCollection id="gc" source="{datasource}">
                    <mx:grouping>
                        <mx:Grouping>
                            <mx:GroupingField name="{dis}"/>
                            <mx:GroupingField name="{ter}"/>
                        </mx:Grouping>
                    </mx:grouping>
                </mx:GroupingCollection>
            </mx:dataProvider>       
            <mx:columns>
                <mx:AdvancedDataGridColumn dataField="{dis}"
                 headerText="Employee Name"/>
                <mx:AdvancedDataGridColumn dataField="{ter}"
                    headerText="Age"/>
                <mx:AdvancedDataGridColumn dataField="{act}"
                  headerText="Department" />
                <mx:AdvancedDataGridColumn dataField="{est}"
                  headerText="Job Title"/>
            </mx:columns>
        </mx:AdvancedDataGrid>  
    Thanks
    Vivek

  • FM BAPI_PO_GETDETAIL1 with table and Flex

    Since you didn't post the WSDL itself I am forced to ask the obvious, is the table you want "exposed" on the web service side?

    Sorry for that. I did realize that it was a mess after the post, but I had to leave.
    I am using FLEX Builder 3.
    I tried changing the parameter of the <mx:operation from e4x to XML and still the same issue occurs. How do I use the event.message.body in the code?
    Here is the required section of the WSDL.
    - <xsd:element name="BAPI_PO_GETDETAIL1.Response">
    - <xsd:complexType>
    - <xsd:all>
    - <xsd:element name="POITEM">
    - <xsd:complexType>
    - <xsd:sequence>
      <xsd:element name="item" minOccurs="0" maxOccurs="unbounded" type="s0:BAPIMEPOITEM" />
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
    The last part of the XSDL is below
    - <binding name="BAPI_PO_GETDETAIL1Binding" type="s0:BAPI_PO_GETDETAIL1PortType">
      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    - <operation name="BAPI_PO_GETDETAIL1">
      <soap:operation soapAction="http://www.sap.com/BAPI_PO_GETDETAIL1" />
    - <input>
      <soap:body use="literal" />
      </input>
    - <output>
      <soap:body use="literal" />
      </output>
      </operation>
      </binding>
    - <service name="BAPI_PO_GETDETAIL1Service">
      <documentation>SAP Service BAPI_PO_GETDETAIL1 via SOAP</documentation>
    - <port name="BAPI_PO_GETDETAIL1PortType" binding="s0:BAPI_PO_GETDETAIL1Binding">
      <soap:address location="http://xxxxxxx:1080/sap/bc/soap/rfc" />
      </port>
      </service>
      </definitions>
    I assumed that since the BAPIResponse has the POITEM table, i could refer to it in the data grid as lastResult.POITEM.item
    Thank you Daniel for your help.

  • How to access internal table data from webdynpro to Flex application.

    Hi Connoisseur
    The data transfer from Abap WebDeypro to flex island works well. I followed , there is an example from Thomas Jung (by the way as always Great Work) and  Karthikeyan Venkatesan (Infosys) but this example covers simple type only.
    There is no example with complex types like arrayCollection which handle the transfer of data from flex to WebDynpro.
    i tried to do pass internal table value  to flex-datagrid.but its not work.
    i would like to know
    1.how to access internal table data from webdynpro to Flex application.
    2.how to pass the internal table to flex-datagrid.
    2.how to pass dynamically in ADOBE flex.
    3. how to do Flex is receiving the wd context data?
    4. how can we update WD context with FLEX data.
    Ple give me sample example and step by step procedure.
    Regards
    laxmikanth

    Hi Laxmikanth,
    Please refer this...
    Flash island: update complex type from flex
    Cheers..
    kris.

  • Insert an HTML Table tag as a value in a Tree Table

    Hi helper,
    Can I insert an HTML Table tag inside a TreeTable (Hierarchical data) using AdvancedDataGrid as a value?
    I need to create a Tree table in flex and I have beside normal int values some cells that need to show a certain images in an HTML Table I will create.
    Is it possible?
    Please advice
    Thanks
    Jo

    <div class=Section1><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>It depends on where you get the list of images<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Alex Harui<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Flex SDK Developer<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><a href="http://www.adobe.com/"><span style='color:blue'>Adobe<br />Systems Inc.</span></a><o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Blog: <a href="http://blogs.adobe.com/aharui"><span<br />style='color:blue'>http://blogs.adobe.com/aharui</span></a><o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><br /><br /><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span<br />style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Yossi Bar<br />[mailto:[email protected]] <br><br /><b>Sent:</b> Monday, February 09, 2009 1:14 AM<br><br /><b>To:</b> [email protected]<br><br /><b>Subject:</b> Re: Insert an HTML Table tag as a value in a Tree Table<o:p></o:p></span></p><br /><br /></div><br /><br /><p class=MsoNormal><o:p> </o:p></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>A new message was posted by<br />Yossi Bar in <br><br /><br><br /><b>Developers</b> --<br><br />  Insert an HTML Table tag as a value in a Tree Table<br><br /><br><br />Thanks Alex, <br><br />What is the way to implement HorizontalLIst of images for<br />AdvancedDataGridColumn? <br><br /><br><br />In the code here I create a tree table and in Actual column I show an image: <br><br /><br><br />&lt;mx:AdvancedDataGrid width=&quot;100%&quot; height=&quot;100%&quot;<br />folderClosedIcon=&quot;{null}&quot; folderOpenIcon=&quot;{null}&quot;<br />defaultLeafIcon=&quot;{null}&quot;&gt; <br><br /><br><br />&lt;mx:dataProvider&gt; <br><br />            &lt;mx:HierarchicalData<br />source=&quot;{dpHierarchy}&quot;/&gt; <br><br />        &lt;/mx:dataProvider&gt; <br><br />        &lt;mx:groupedColumns&gt; <br><br />         &lt;mx:AdvancedDataGridColumn<br />headerText=&quot;&quot; width=&quot;50&quot;/&gt; <br><br />            &lt;mx:AdvancedDataGridColumn<br />dataField=&quot;Region&quot; backgroundColor=&quot;haloSilver&quot;<br />headerText=&quot;Region title&quot;<br />headerRenderer=&quot;mx.controls.Label&quot;/&gt; <br><br />            &lt;mx:AdvancedDataGridColumnGroup<br />headerText=&quot;Group Header&quot;<br />headerRenderer=&quot;mx.controls.Label&quot;&gt; <br><br />&lt;mx:AdvancedDataGridColumn dataField=&quot;Territory_Rep&quot;<br />headerText=&quot;Territory Rep&quot;<br />headerRenderer=&quot;mx.controls.Label&quot;/&gt; <br><br />&lt;mx:AdvancedDataGridColumn dataField=&quot;Actual&quot;<br />headerText=&quot;Actual title&quot;<br />headerRenderer=&quot;mx.controls.Label&quot;&gt; <br><br />&lt;mx:itemRenderer&gt; <br><br />&lt;mx:Component&gt; <br><br />&lt;mx:VBox horizontalAlign=&quot;center&quot;&gt; <br><br />&lt;mx:Image width=&quot;50&quot; source=&quot;{data.Actual}&quot;/&gt; <br><br />&lt;/mx:VBox&gt; <br><br />&lt;/mx:Component&gt; <br><br />&lt;/mx:itemRenderer&gt; <br><br />&lt;/mx:AdvancedDataGridColumn&gt; <br><br /><br><br />&lt;mx:AdvancedDataGridColumn dataField=&quot;Estimate&quot;<br />headerText=&quot;Estimate title&quot; headerRenderer=&quot;mx.controls.Label&quot;/&gt;<br /><br><br />            &lt;/mx:AdvancedDataGridColumnGroup&gt;<br /><br><br />        &lt;/mx:groupedColumns&gt; <br><br />    &lt;/mx:AdvancedDataGrid&gt; <br><br /><br><br />Please advise, <br><br /><br><br />Thanks <br><br /><br><br />Jo <o:p></o:p></p><br /><br /><div class=MsoNormal><br /><br /><hr size=2 width=200 style='width:150.0pt' align=left><br /><br /></div><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>View/reply at <a<br />href="http://www.adobeforums.com/webx?13@@.59b7d1ae/2">Insert an HTML Table tag<br />as a value in a Tree Table</a><br><br />Replies by email are OK.<br><br />Use the <a<br />href="http://www.adobeforums.com/webx?280@@.59b7d1ae!folder=.3c060fa3">unsubscribe</a>< br />form to cancel your email subscription.<o:p></o:p></p><br /><br /></div>

  • How to set the flexfield column in advanced table

    Dear All
    Dear Gaurav
    Good morning
    iis it posible to create a flexfield column in advanced table.I am trying it is showing some error......
    Thanks& Regards
    Sreekanth

    Hi,
    My doubt is compulsory we give the view instance for flex field,
    and also give the view instance for advanced table.
    when i created the flex field in advanced table,it didn't ask the view instance.
    the advanced table and flex field view instance are different
    at that how can i create the flex field in advanced table.

  • Inserting Into MYSQL Table Via Air/PHP = Not Allowed?

    I'm having trouble inserting data into my mysql database tables through my air app. All the code is pretty much exactly the same as in some examples I've seen but it simply won't do it. Is this because of some sort of security restriction because the air app is on my machine and the server with my mysql database on is elsehwhere? Or is it possible to insert data via an air app?
    Here is the example I've been following:-
    http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_2.html

    jimmyoneshot wrote:
    Thanks for the answers boys. I've decided I'm going to change it into a flex app instead as then there won't be any problems. It simply means I'll have to add a logon system to it.
    While were on the subject do you guys happen to know of any examples anywhere of how someone can REMOVE data from an sql table via flex/php?
    What I'm looking for is basically when a user uses my app and enters info into some text inputs, if that specfic info exists within a table then that data will be removed from the table. The way this works is that they will choose an item within a tilelist which is populated by the data from this mysql table and this will insert the data of the selected item into the text inputs and then they click a remove button to remove that item. Can't find anything similar anywhere though.
    You will have to use a common identifier, eg:
    give each row in your database an ID.
    then pass that ID value on the button press to a PHP script, which does something like:
    $deleteID = $_POST["delID"];
    mysql_query("DELETE FROM exampleTable WHERE ID='$deleteID
    maybe check that a row with that ID exists first for verification, then pass back a value indicating if removal was a success or not.
    You can delete on other values, but remember they have to be unique for the database, else you'll run the risk of deleting multiple values.
    Or you could delete on a compound key, depends on the data you're storing in the grid.

  • How to display html tags content in flex

    hi all,
    It would be great if any one can lead me to a tutorial of
    integrating html tags content in flex. Actulay i have to insert and
    series to table in flex
    thanks

    The Flash Player has a very limited number of HTML tags it
    can handle - table is not one of them. Since Flex is just a way to
    build Flash Player content you are limited by what the Flash Player
    can do.
    We don't supply a full browser/HTML rendering engine in the
    Flash Player because it would make the Flash Player a
    multi-megabyte download (eg, 11-12 MBytes); right now the Player
    has a small footprint which enables it to be downloaded by
    virtually everyone.
    The Adobe AIR player (see labs.adobe.com) does have a full
    HTML component and can run Flex programs. The caveat is that the
    apps are not run in the browser, but on the local machine. The
    end-user has to download the AIR player in order to use it.
    You can also check out Alex's blog (
    http://blogs.adobe.com/aharui/)
    and scroll down to "HTML and Flex"

  • The MVC and Flex

    Hi All,
    I used the ColdFusion wizard to generate a simple table
    update Flex app. I'm using this to give myself some examples for
    correct programming. Is this pretty much the standard framework for
    developing flex aps? I haven't done multiple tables yet, but it
    seems like it would just follow the same scheme.
    I'm jsut looking for a best practice here.
    Right now I'm trying to understand passing objects from
    Coldfusion to Flex. It seems to like queries, but not objects.
    That's another post though.

    It's the base of Adobe Livecycle Content Services. But it's opensource and i'm developing in Flex 4 and connecting to Alfresco Content Manager.

  • Designing UI in Flex

    We have an application with Flex and Java.  We want to redo the UI again in Flex.
    Any pointers on how to get effort estimation on redesigning the UI?
    Also, what should we consider for redesigning the UI in flex.
    Any help is appreciated.
    thanks,

    "kittuokkade" <[email protected]> wrote in
    message
    news:gj1er8$4ih$[email protected]..
    > Hello,
    > i have a problem in designing excel type of table in
    flex UI.As i
    > know
    > only Data grid which display as rows.how to display the
    table loke excel
    > sheet
    > where sub headers and table as rows and columns
    > and the user has to enter the data into each cell.any
    info is welcomed.
    > Thanks and regards,
    Look at Olap DataGrid

  • Why doesn't  list component identify grid component

    Hi,
    I have couple of doubts.
    1. I put <grid> component inside of <List>
    component . Surprise! The <List> component is not identifying
    the <Grid> component. Is this bug of Flex Or it's property of
    Flex <List> component.
    What I have to do to make <Grid> visible even I put
    inside of <List> component.
    2. what is an equilanat of <Table> in Flex. Ofcourse it
    may be DataGrid. Suppose If I use DataGrid I have lot of
    restrictions.
    These are the problems I am facing with <DataGrid>
    ( i ) Is this possible to put radio button / link bar as one
    of column in a row. I mean how to put radio button / link bar as
    row in array
    ( ii ) Is it possible to make columns in a row as variable
    sizes i.e. suppose if DataGrid header has size=100. Is it possible
    to make column of next row size as 200.
    anybody help me in this regard. I am eagarly waiting for
    reply.Because I have been strugling to solve this problem for last
    4 days.
    Regards,
    Siva Kumar

    A custom itemRenderer will be the solution to several of your
    issues(1,i).
    For 2., there is no exact equivalent of an html table. Look
    at Grid, TileList, or consider making your own component.
    for ii), no, all cells in a columns must be the same size.
    Tracy

Maybe you are looking for

  • SSL client authentication: how to get the cert used in call?

    Hi ! I'd like to authenticate my clients based on their certificate. Unfortunately, there doesn't seem to be an easy way to get the client certificate that was used for the current method call. I am thinking of something like this: SomeClass dosometh

  • Multiple BDBs in multithread application (C++)

    My problem is follows 1) Main thread opens 2 BDBs (I am opening with O_CREATE|DB_THREAD flag) 2) Child threads do Db::get on both the BDBs (Using malloc flag for Db::get to allocate memory) 3) Some of the calls to Db::get from child threads are raisi

  • Folders don't want to open in iWorks iCloud After last update.

    With the new iWorks Update for iCloud i cannot open the folders with my files. Is this a known bug now ? Clicking on the folders does nothing. I am using the latest version of Safari on a Mac. UPDATED: It works now. Not sure why it was not working th

  • OS X 10.4.6 - RAW Conversion

    The last I heard in the "where are RAW support fixes contained" was that because AP uses CoreImage to convert RAW, they would be contained in OS X updates, i.e. 10.4.6. Has anyone verified if the RAW conversion problems have been fixed or not (I'm pa

  • Special Stock E not supported for movement 313

    HI, I would like to use movement type 313 (Transfer posting SLoc to SLoc - remove from storage) with special strock E. System shows message: "Special Stock E not supported ..." for movement 313. Could you tell me if it is possible to change this move