How to display reply in flex data grid?

Hello All,
Frompast couple of months i am working on a Flex Application which used MySQL databse and PHP as server side language. In this application user can login and they can post their comments which will be displayed in a datagrid. This will have a reply button where other users can send their reply. My problem is how i will be displying the reply of a msg in a datagrid. Here is the screenshot of my datagrid
I thought of 2 options:
1. Displaying the reply in the datagrid and disaply in the same row: i don know how we can do this.
2. Store all the replies in data base and display in toher panel though a button. From flex side it is easy to do but i don know how i can store them in database.
Please let me know if you have any ideas/tutorials on this

This is only in theory, haven't actually checked it but I think it could work
If each one of those posts is done by an itemrender, your renderer can have 2 states stateone and statetwo for example.
The reply state (statetwo) being bigger and containing space for the reply post.
Store your replies in the database and have another boolean column ( Tinyint(1) or something) in your MySql db indicating that a particular post has a reply . When you pull your data from the database and put in in an arraycollection check this column for each post and use it to set the state of the itemrenderer.
That way posts with no reply with be state one, and posts with replies will be state 2 and you can populate the reply field with data from the object in your arraycollection.
I suppose it all does depend on how you get your data from MySQL and how you store it in Flex but I think states is a way you could accomplish things like this.

Similar Messages

  • Displaying SQL result in data grid

    I'm trying to access a local DB file using an Air app. I can
    successfully create the connection and connect; what I'm really
    stuck on is displaying the data from my request in a Data Grid.
    Using this code I can see my records in the console, but how
    do I get it into a data grid? It doesn't seem to want to go into an
    ArrayColleciton.
    quote:
    function selectResult(event:SQLEvent):void
    var result:SQLResult = selectStmt.getResult();
    resultData = result;
    var numRows:int = result.data.length;
    for (var i:int = 0; i < numRows; i++)
    var output:String = "";
    for (var columnName:String in result.data
    output += columnName + ": " + result.data[columnName] +
    trace("row[" + i.toString() + "]\t", output);

    "arthurlockman" <[email protected]> wrote in
    message
    news:g7lfrq$qi$[email protected]..
    >I want to have an image component that gets it's source
    from the item that
    >is
    > currently selected selected in a data grid (like a
    master detail region).
    > I
    > also want to do the same with a text box and a text
    area. How do i do it?
    yourDataGrid.selectedItem will contain the data from the
    selected item.

  • How to display metadata such as data load date in answers report title?

    We have a requirement to display the last load date of the data relevant to the report the user is viewing. We have such information stored in a metadata table listed by the fact table the report is referencing. Our proposed solution is to create new answers reports off of this metadata table and put each report (with the appropriate filter on the fact table) on each dashboard section where the corresponding report is placed. One problem with this approach is the load date information will not be reflected in the print form of the report as the date is dashboard content - not report content. Is there any way to overcome this situation (other than create a ton of variables specifically created for this purpose)? I'm open to entertaining javascript ideas, if necessary. I would love to know how to push this OBIEE envelope further. Thanks in advance.

    Hi,
    I discuss with some people who are familiar with SharePoint, we both thought Windows Explorer may
    not accept the custom metadata.
    if we want to do some customization, it is recommended to ask for help in development forum.
    http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/home?category=windowsdesktopdev
    If you have any feedback on our support, please click
    here
    Alex Zhao
    TechNet Community Support

  • How to display success message when data is changed in the custom tab in MM

    Hi,
    I have added a new custom data tab in the MM01/MM02/MM03 transactions. Whenever I do changes to fields in the custom tab in MM02 transaction, and no changes in the standard tabs, I will get a message stating "No Changes Made".
    But if I do changes in the standard tabs, it works as usual with display of message "Changes to particular material has been done.
    Please let me know, if anyone of you know, how to display the success message if the changes to the custom tab is done.
    Thanks in advance,
    sudhanva

    Hi Sudhanva,
    The exit EXIT_SAPLMGMU_0001 is a function exit that you can use for custom validation but not to add custom tab/screen.
    But the message issued by SAP is not related to this Function Exit.
    If you have used a Screen Exit, then there must be some Function Exits also in the same Enhancement using which you can assign the value of custom fields to/from the standard structure. Thus when the value of any custom field is changed the system can understand that the some changes have been changed and will  not issue the message.
    In case you have used a BADI, there can be other methods in the BADi using whcih you can assign the value of custom fields to/from the standard structure. This might also prevent the message from being displayed.
    I could try giving you further details if you can provide the name of the Enhancement/BADi that you used to add the additional tab.
    Hope this helps.
    Regards,
    Abhisek.

  • User-Defined Type does not display values in Table Data grid

    I have a User defined Type that is a collection of one character VARCHAR2 values. In the Table Data grid it does not display the character values. I know on all our other Oracle development applications these values display. Is this a bug or is there a snippet to display these values?

    Version: 1.0.0.15
    DB: 10.2.0
    Workstation OS: Windows XP

  • How to display maximum (most recent) date value in a query

    hello,
    I have the following query:
    StudentNumber | ExternalOrganization | Date |         | NumbeOfAdmissions
    0112                  050                            06/27/2007   1
    0234                  060                            07/15/2008   1
    1356                  025                            01/08/2008   1
    My dilemma is how to display only the row that has the most recent Date, e.g. here I want to only see the row with student number 0234 and date 07/15/2008; everything else should be hidden.
    I know it should be very simple....yes/no?
    thanks

    Hi
    even I am facing the same problem..
    Can you please tell me what did you do to get most recent record..
    Even I have made my date field as KF.. n have put condition on it.. but not getting desired result.. may be I am missing something.. somewhere..
    I resolved it.. thanks
    Regards
    Swati
    Edited by: Swati on Feb 17, 2009 7:49 AM

  • How to display af:iterator in a grid

    Hi,
    I am using jdev 11g.
    I have af:iterator that displays panel boxes.
    I want to display the iterator in a grid 3x3 or 4x4 ...
    Kindly advice how it can be done
    Regards
    Emile BITAR

    Hi,
    I have the following
      <af:iterator var="itm"  value="#{CurrentUserBean.extCodesMenu.userMenuHeaderList}">
            <af:panelBox text="#{itm.description} " id="pb1"
                      showDisclosure="true"
                      rendered="true"              
                      inlineStyle="width:270px;height:125px;spacing:1px;padding:1px;"/>
       </af:iterator>can you help me put it in a grid f 3 columns.
    Regards

  • How to Display Sub-Columns using ALV Grid

    Hi ,
      Could someone tell me how to display sub-columns under a parent column using ALV Grid. Do we have any standard Program which has this scenario. Please let me know.
    Thanks,
    Abaper.
    Message was edited by:
            ABAP'er

    you can check all with <b>BCALV* or RSDEMO*</b> in SE38 for all Std
    check below
    BCALV_DND_01                   Drag ALV Row to Tree Folder
    BCALV_DND_02                   Drag Icons from Tree to Rows of the Grid
    BCALV_GRID_DND_TREE            ALV Grid: Drag and Drop with ALV Tree
    BCALV_GRID_DND_TREE_SIMPLE     ALV GRID: Drag and drop with ALV tree (simple)
    BCALV_TEST_COLUMN_TREE         Program BCALV_TEST_COLUMN_TREE
    Rewards if useful............
    Minal

  • How to display document last modfied date time in core result web part?

    Hi,
    We have a requirment in the sharepoint application where we need to display last modified date&time of document in core result web part.
    To support this we have specify the property <Column Name="Write"/> in custom XSL.
    But it displays only the modified date.Is there is way to display modified date and time as well?
    D.Ganesh

    If you want to modify the
    XML can do i tin the
    template "DisplayTemplate":
    An example:
    Replace
    <xsl:value-of select="write" />
    by
    <xsl:value-of select="ddwrt:FormatDate($write, 1033, 2)"/>
    But I think the managed property"Write"
    is returned only as
    Date without
    Time. By
    this time will
    always 00:00.
    To see the resulting XML
    can replace
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
    <xsl:template match="/">
    <xmp><xsl:copy-of select="*"/></xmp>
    </xsl:template>
    </xsl:stylesheet>
    Where you see the format
    of "write"
    http://msdn.microsoft.com/en-us/library/ms546985(v=office.14).aspx
    Miguel de Hortaleza

  • How to edit cell in a Data Grid

    Hai
        I have pasted the mxml below.
       I need how to edit a cell in a datagrid.
      1. Run the mxml, enter the values in the textbox and click add button.
      2. then click AND button, now u can see the values displayed in the grid.
    3. Then again change the second combobox and enter the values in the textbox and click add
    4. Now i need to edit the values for a particular cell in the datagrid.
    In the below code u can see the Value column,
    i need to edit oly that cell of a particular row .
    Can anyone help me.
    Thanks in Advance
    <?xml version="1.0" encoding="utf-8"?><mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Script>
    <![CDATA[
    // ActionScript fileimport  
    mx.rpc.events.FaultEvent;
    import  
    mx.controls.Alert; 
    import mx.managers.CursorManager;
    import  
    mx.collections.ArrayCollection;[
    Bindable] 
    public var adhoc:ArrayCollection = new ArrayCollection();[
    Bindable] 
    public var serverString = "" ; 
    private function initImage(event:MouseEvent):void { 
    if(adhoc.length > 0){CursorManager.setBusyCursor();
    private function onChange():void{ 
    if(comboBox.selectedIndex == 0){ 
    else{ 
    private function onChange1():void{ 
    if(combo2.selectedItem == "DATEDEPLOYED" || combo2.selectedItem == "DATEUPLOADED"){datepick.visible =
    truetxt.visible =
    false}
    else{txt.visible =
    truedatepick.visible =
    false}
    private function add():void

    You can enable editing in a DG to the whole DG or only to certain columns
    http://blog.flexexamples.com/2008/05/11/creating-an-editable-datagrid-control-in-flex/
    If you want to enable editing to a very specific cell then you use the event itemEditBegin to prevent editing a cell that doesn't meet your criteria
    http://livedocs.adobe.com/flex/3/html/help.html?content=celleditor_7.html

  • How to Display Confirmation message when data is stored in DB ?

    Hello.
    I am persisting user entered data to database table. But I want to display custom message like "Stored successfully" or "Not Stored".
    I am using following approach in my controller and AM impl
    in PFR:
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean) ;
    am.invokeMethod("insertDataToDeviceDetailsTable") ;
    in AM Impl :
    public void insertDataToDeviceDetailsTable(){
    getDBTransaction().commit();
    //delegating control to Device Details Page
    How to do it ? and also what is the best way to show messages in this scenario. As in some pages a dialogue box appears and the page become inactive.
    waiting for reply..
    Regards,
    Ajay

    Hi,
    You can pint message after am.invoke method:
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean) ;
    am.invokeMethod("insertDataToDeviceDetailsTable") ;
    throw new OAException("Stored successfully", OAException.INFORMATION);
    in AM Impl :
    public void insertDataToDeviceDetailsTable(){
    getDBTransaction().commit();
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to display Insert button in ALV Grid

    Hi All,
    When I create an ALV Grid, I dont see the Insert Row and Delete Row buttons in the toolbars by default. But when I see the class CL_GUI_ALV_GRID, I see two attributes named MC_FC_LOC_INSERT_ROW and MC_FC_LOC_DELETE_ROW. These attributes, I feel are for the insert and delete functionalities only.
    Then How can we display them in our toolbar..
    Please help me out.
    Points are guaranteed for useful answers.
    Thanks in advance.
    Regards,
    Himanshu

    hi,
    1) define local CLASS :  DEFINITION.
       METHODS:
    *for event  double click
        handle_dclick for event double_click OF cl_gui_alv_grid
                importing ES_ROW_NO,
        handle_toolbar
            FOR EVENT toolbar OF cl_gui_alv_grid
               IMPORTING e_object e_interactive.
      PRIVATE SECTION.
    ENDCLASS.
    2)
    implmentation:
      METHOD handle_toolbar.
    * § 2.In event handler method for event TOOLBAR: Append own functions
    *   by using event parameter E_OBJECT.
    *   DATA: ls_toolbar  TYPE stb_button.
    * append a separator to normal toolbar
        CLEAR ls_toolbar.
        ls_toolbar-butn_type = 0.
        ls_toolbar-function  = 'PICK'.
        ls_toolbar-icon = ICON_MASTER_DATA_ACT.
        ls_toolbar-quickinfo = 'Debitor anzeigen'.
        ls_toolbar-disabled = space.
        APPEND ls_toolbar TO e_object->mt_toolbar.
      endmethod.
    3) after creating grid
        CREATE OBJECT event_receiver.
        SET HANDLER event_receiver->handle_dclick FOR grid.
        SET HANDLER event_receiver->handle_toolbar FOR grid.
    A.

  • ALV report -How to display list contains no data?

    Hi Experts,
    I have developed an drill down alv report ? I like to display if 'List contains no data ' or 'No data to display' in Grid itself when there is no data to dissplay instead of an Message ?how can i do that?

    hi
        u should have used this command before calling your grid or list
    if gt_itab[] is not initial. --> comment this
    call function reuse or call method
    endif.
    assuming you have given a top of page for your grid output
    if helpful, reward
    Sathish. R

  • How to Display Time-Dependent Characteristic Data In Query

    Hi Experts,
       I have encountered a problem. I want to use Time-Dependent Chart. And want to display different value according characteristc's valid from time. For Example,
    The Characteristic 0COSTCENTER has the navigation attribute 0COMPANY, The data as:
    0COSTCENTER   Valid from   Valid To       0COMPANY
    BW2305              20070101   20070430     A
    BW2305              20070501   99991231     B
    I want  the report  can display as :
    0COSTCENTER   Valid from   Valid To       0COMPANY  AMOUNT
    BW2305              20070101   20070430     A                  1000
    BW2305              20070501   99991231     B                  2000
    But when I set the query's key date 20070420, the report display as:
    0COSTCENTER   Valid from   Valid To       0COMPANY  AMOUNT
    BW2305              20070101   20070430     A                  1000
    BW2305              20070501   99991231     A                  2000
    when I set the query's key date 20070520, the report display as:
    0COSTCENTER   Valid from   Valid To       0COMPANY  AMOUNT
    BW2305              20070101   20070430     B                 1000
    BW2305              20070501   99991231     B                  2000
    Can anybody tell me how I can get report expected.
    Thanks in advance.
    SF

    Hi,
    1) Add the characterstics 0COSTCENTER ,0DATETO,DATEFROM and  0COMPANY to the cube.
    2) And also add these 4 IOs to the Communication structures which has update rules with the concern cube.
    3) I hope , you already have  0COSTCENTER in the Commnication structure and mapping for that infoobject at both Update rules and Transfer rules.
    4) Leave to the Blank(no mapping) mappings for the IOs 0DATETO,DATEFROM and  0COMPANY in the Transfer rules.But make 1:1 mapping in the Update rules for these 2 infoobjects.
    5) Write the below code in the strt routine of the Update rules:
    TYPES:  BEGIN OF type4.
          include structure like /BI0/QCOSTCENTER.
    TYPES END OF type4.
    DATA:
      ITAB4 TYPE STANDARD TABLE OF TYPE4
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    SELECT * FROM /BI0/QCOSTCENTER INTO CORRESPONDING FIELDS
    OF TABLE ITAB4
    WHERE OBJVERS = 'A'.
    loop at DATA_PACKAGE.
         READ TABLE ITAB4 WITH KEY COSTCENTER = DATA_PACKAGE-MATERIAL 
    DATETO LE DATA_PACKAGE-PSTNG_DATE
    DATEFROM GE DATA_PACKAGE-PSTNG_DATE.
                  IF SY-SUBRC EQ 0.
                    DATA_PACKAGE-DATETO = ITAB4-DATETO.
                    DATA_PACKAGE-DATEFROM = ITAB4-DATEFROM.
                    DATA_PACKAGE-COMP_CODE = ITAB4-COMP_CODE.
                  ENDIF.
                  Modify DATA_PACKAGE.
      endloop.
      ABORT = 0.
    Here I assumed you have Posting date in the Communication structure and used to map to Fiscalperiod of the cube.
    6) Do the Master data upload to Cost center and active the master data of it always before uploading the data to cube.
    7) Do the uploading to cube from Sratch.
    With rgds,
    Anil Kumar Sharma .P
    Message was edited by:
            Anil Kumar Sharma

  • How to display appcmd /config xml data into a single table

    Hi,
    I extracted my IIS sites using appcmd
    appcmd /site /config /xml > c:\temp\iisconfig.xml
    afterwhich I would like to grab the data from this xml and export into excel file
    [xml]$iisconfig = get-content c:\temp\iisconfig.xml
    I would like to get the Site Name, Bindings, Physical Directory Path and AppPool from this xml file and output to a excel file
    #Physical Path Directory
    $iisPhysicalPath = $iisconfig.appcmd.site.site.application.VirtualDirectory.PhysicalPath
    #Application Pool
    $iisAppPool = $iisconfig.appcmd.site.site.application.applicationPool
    #Site Details (Site Name, Binding)
    $iisSite = $iisconfig.appcmd.site
    It doesn't have a single command to output into a table. How do I combine all these code and display in a single table?
    Jeron

    Try it like this:
    $sites=[xml](c:\windows\system32\inetsrv\appcmd.exe list site  /xml)
    $sites.appcmd.site
    \_(ツ)_/

Maybe you are looking for

  • Right click issues on Satellite P50T-B

    I don't know how to change the setting so that I can have a traditional right click on the touch pad. I know that you can press with both fingers to do some functions like a right click, but when I am using Microsoft word or Facebook I cannot figure

  • How can I prevent copy/pasting of text from my PDF?

    I'm having trouble creating PDF security that DOES NOT allow copying of text. It seems I follow the security steps yet still am able to copy/paste.

  • How to solve java.io.IOException: Corrupt form data: premature ending

    hei evryone! Does anyone knows how to solve this bug? java.io.IOException: Corrupt form data: premature ending Im using Oreilly's cos.jar MultipartRequest here is my form : <FORM METHOD="POST" NAME="uploadform" action="mbbfile" ENCTYPE="multipart/for

  • Why Update query is executing twice in this case even if called one time?

    Example 1=> I have unix ksh file and I am calling sql file from it. (table 1 contains 2 rows - ID      Name 1 test't 2 Pet's below sql statement is part of sql file: update table1 set name = replace(name,'''','''''') where instr(name,'''') > 0 ; 2 ro

  • KDC has no support for encryption type (14) in windows 2008

    The active directory is a windows 2008 box. I am not mentioning any encryption types in krb5.ini. I know that we should add some registry entries in Windows 2003 and XP. But I was not able to find something similar to those, corresponding to windows