List with a DataGrid

Hello

I'm just rephrase the same mission in a different way. Is it possible to have a list on a datagrid rendering engine?, I want to show a list of items when I click on a datagrid column. And I want to update on the grid selection

I have the MXML ready for the grid, and I also also realized renderer component. I don't know how to call from within the datagrid control.

Suppose I have the component, how to call it?

< mx:DataGridColumn headerText = "Status" dataField = 'active' itemEditor = "mx.controls.List"
editorDataField = "value" rendererIsEditor = "true" / >

or should I use
< mx:DataGridColumn headerText = "Status" dataField = 'active' itemEditor = "component/MyComponent.
editorDataField = "value" rendererIsEditor = "true" / >

I tried to find help, should I use IDropInListItemRenderer interface? They show it to other controls and no list...


Any help will be appreciated.

Thank you!

Here is your new component 'list ':


http://www.Adobe.com/2006/mxml">

1 true
2 fake
3. not required

Secondly,.

public void checkedit(event:DataGridEvent):void
{
if(Event.DataField=="active")<-- what="" is="">
{
Event.preventDefault)
Alert.Show ("this section is not editable, please select from the list", "Flex Alert");
}

the if condition in this method would be always true for the status column. and Event.preventDefault () would keep dropdown to appear. You must change this setting to correct the condition. meawhile, comment just these two line within the if block and see it in action.

Finally, what you are trying to do here doesn't have much sense!

private void checkit(Myevent:Event):void
{
mydg.invalidateDisplayList)
}

I hope this helps.

ATTA

Tags: Flex

Similar Questions

  • Creating a smart list with "remarks".

    Hello everyone, I want to create a smart list with titles that have added only remarks. Howevre there is no option as "remarks" are "true." Anyone with any suggestions?

    Thank you!

    All of the rules:

    Remarks is not < empty >

    Playlist is music

    TT2

  • How to convert Outlook Express to Outlook without losing files or existing e-mails and taking my contact list with me?

    original title: change of e-mail

    How to convert Outlook Express to Outlook without losing files or existing e-mails and taking my contact list with me?

    Hi KennethPickering,

    You can refer the following Microsoft Knowledge Base article and check.

     

    How upgrade from Outlook Express to Outlook

    http://support.Microsoft.com/kb/287073

    Let us know if it helps.

  • Populating drop-down list with SQL

    I have a database and I want to fill the drop-down list with a 'Group By' request to show the various categories without showing many of the same.  Here's the code I'm having difficult with:

    DropDown {
                    id: filterSelect
                    visible: true
                    enabled: {if (purchaseValue != false){false}}
                    bottomPadding: 20
                    title: qsTr("Category:") + Retranslate.onLanguageChanged
                    horizontalAlignment: HorizontalAlignment.Center
                    options: Option {
                        id: allOption
                        text: qsTr("All") + Retranslate.onLanguageChanged
                        selected: true
                    }
                    onSelectedOptionChanged: {
                        if(filterSelect.selectedOption == allOption){
                        _app.refreshObjects()
                        }
                        else{
                        dataSource.query = "select * from items where categoryfield LIKE '%"+ filterSelect.selectedOption.text+"%'"}
                    }
                    attachedObjects: [
                        ComponentDefinition {
                            id: optionFactory
                            Option {
    
                            }
                        }
                    ]
                    onCreationCompleted: {
    //                    "select categoryfield from items group by categoryfield"
                        var newOption = optionFactory.createObject()
                        newOption.text = 'Text to add' // or a variable fetched from data source
                        //newOption.otherfields = ...
                        filterSelect.add(newOption);
                    }
                }
    

    I have a data source that fills the listview, I want to use the same database to populate the drop-down list.  How should I go about this?  I tried to configure a different DataSource {} just for the dropdown menu, but I couldn't make it work.  In bold text, I am not clear as where I incorporate my SQL query against the newOption.text =

    TL; DR I try to use a SQL query to fill my menu drop-down using the same PB that is used for the listview.

    Any help will be appreciated and thanked!

    A friend by the name of Roger Leblanc http://appworld.blackberry.com/webstore/vendor/70290/?lang=en&countrycode=CA helped me and created a small code example to explain how it works.

    import bb.cascades 1.2
    import bb.data 1.0
    
    Page {
        Container {
            DropDown {
                id: dropdown
            }
            ListView {
                id: myListView
                dataModel: dataModel
                listItemComponents: [
                    ListItemComponent {
                        type: "item"
                        StandardListItem {
                            title: ListItemData.categoryfield
                        }
                    } // end of ListItemComponent
                ]
            } // end of ListView
        }
    
        attachedObjects: [
            GroupDataModel {
                id: dataModel
            },
            DataSource {
                id: dataSource
    
                // Load the data from an SQL database, based on a specific query
                source: "asset:///pinguin.db"
                query: "select categoryfield from items group by categoryfield"
    
                onDataLoaded: {
                    // After the data is loaded, insert it into the data model
                    // This will populate the ListView. You don't want to show
                    // categoryfield in ListView, I just wanted to show the difference
                    // between populating a ListView and a DropDown
                    dataModel.insertList(data);
    
                    // Now, this will populate the DropDown by iterating through every
                    // data from the query and adding it one by one to the DropDown
                    // using the optionFactory Component Definition to add dynamically
                    // new Options to the DropDown
                    for (var i = 0; i < data.length; ++i)
                    {
                        // Create new Option
                        var newOption = optionFactory.createObject()
    
                        // Set the Option text to categoryfield
                        newOption.text = data[i].categoryfield
    
                        // Add the Option to DropDown
                        dropdown.add(newOption);
                    }
                }
            },
            ComponentDefinition {
                id: optionFactory
                Option {}
            }
    // end of DataSource
        ]
    
        onCreationCompleted: {
            // After the root Page is created, direct the data source to start
            // loading data
            dataSource.load();
        }
    }
    
  • How can I select the files in a folder with the help of a list with the files you want and after that rename only the files using another list with desired new names?

    How can I select the files in a folder with the help of a list with the files you want and after that rename only the files using another list with desired new names?

    I have only:
    D: / images (where are necessary + not need files)
    -a list with only the necessary files
    -a list with new names for the files needed
    Thank you.

    Hi Pustiu,

    Thanks for posting in the Microsoft Community.

    You want to know how to select the files in a folder using a list with the files you want and after that rename only the files using another list with desired new names.

    I would have you post your query in the TechNet forums because it caters to an audience of it professionals.

    Your query will be better addressed there.

    Check out the link-

    http://social.technet.Microsoft.com/forums/en-us/w7itprogeneral/threads

    We know if you need help. We will be happy to help you. We, at tender Microsoft to excellence.

    Thank you.

  • How to get a list with calc scripts and forms from a planning application?

    Hi gurus,

    Is it possible, using SQL charly or something else, to get a list with the data forms and its calc scripts associated with the place of open one by one and their Visual verification?

    Thanks in advance

    Try looking at HSP_FORM, HSP_FORM_CALCS, HSP_OBJECT

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • N1k both secondary schools primary list with no Stand-by! What should do?

    Hello

    N1k both secondary schools primary list with no Stand-by! What should do?

    It was closed Port!

    all are ok now

  • Select the list with the list of dynamic values with more than 4000 tank of query

    Hello

    I have no application where users can store SQL queries in a CLOB column. This query is then used to populate the list, select a dynamic element through LOV. Following the code returns the query for dynamic LOV used to populate the select list. It works fine except when the length of the lv_sqlStatement becomes more than 4000 characters. Then application crashes with "ORA-06502: PL/SQL: digital or value error: character string buffer too small" when Select the list item rendering.

    Any ideas how to get around this problem? Any help is appreciated. Do not say to them to write shorter than 4000 queries because I can't (it's operational requirements).

    DECLARE
    lv_sqlStatement end_user_set.sql_statement%type;
    BEGIN
    lv_sqlStatement: =: P2_SQL_STATEMENT;
    return ' select the label, value of (' | lv_sql_statement | t ')
    To_char (t.value) if not in (select value from end_user_set_member eusm)
    where eusm. EUSRSET_ID = ' | : P2_EUSRSET_ID | ')';
    END;

    I just blogged about this problem and posted a solution. See this announcement:

    http://www.deneskubicek.blogspot.de/2013/03/select-list-with-dynamic-lov-and-Ora.html

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • How to make a list with the DB control

    Hello

    I need fill a listbox using the dbcontrol, I saw how to define a textBox control with a recordset from the database by making a custom_query and call it through java script, example:

    infra_custom. SQL:

    Get Prueba_Nak
    DESCRIPCIÓN SELECT THE
    OF DB_PRUEBA
    WHERE CALL_NUMBER =: nCALL_NUMBER

    Custom_inCallDetails.js:

    function pruebaQueryMuestra() {}
    var db = document.all.DB;
    DB. ClearParam();
    DB. AddParam ("CALL_NUMBER", document.all.CALL_NUMBER.value);
    var RS = db. GetRecordSet ("Get Prueba_Nak");
    document.all.EXTFLDV_500004.value = RS("DELESDE").value;
    document.all.MI_POLLA.value = "HELLO";
    }

    function customLoad() {}
    pruebaQueryMuestra();
    }

    Well, this work well for complete results, but, if I need more lines for painting, a list, how can I make a loop in a recordset with only one result?

    Kind regards

    The first thing I would say is that you just use the SU_SELECT_VALUES table & fill if possible through Designer.

    If you don't want really dynamically change the menu drop down content based on the number of appeal then you could populate the drop-down list dynamically using JavaScript.

    something like...

    fill in the parameters...

    var r = da. DB. GetRecordset...

    If (! r.BOF) r.MoveFirst;
    If (r.Fields.Count > 2)
    do something here.  There are not enough columns in the query results to populate a drop-down list with a ref and name.
    on the other
    {
    FAL EXTFLDV_500004.options. Length = 0;
    While (! r.EOF)
    {
    Like var = document.createElement ("OPTION");
    oOption.value = r("REF").value;
    oOption.text = r("NAME").value;
    FAL EXTFLDV_500004.options. Add (option);
    r.MoveNext;
    }
    }
  • Conductive builds a list with the code item.

    I'm stuck, because I need to change the elements of a list with Oracle Forms 6i item.
    Needless to recover a database, I just need to add them programmatically.
    Is there any function to do?

    Published by: john 18 July 2012 14:38

    Published by: john 18 July 2012 14:39

    Just look in the form Builder Help:

    To add a single element to a list item, use the ADD_LIST_ELEMENT built-in subprogram.
    When you call ADD_LIST_ELEMENT, you indicate which list item will receive the new element by specifying the list name, list index, label, and the value to add.
    In the following example, the value "1994" is added to a list item called calendar.
    Add_List_Element('calendar',list_index,'1994','1994'); 
    

    Or look in the help even for POPULATE_LIST.

  • Fill the list with Instances

    Hi all

    Is it possible to fill the results in a drop-down list with the name of the entity instances.

    for example, I instantiated instances 4 x by the name of the child as part of the entity of children.
    HARRY
    BARRY
    SALLY
    LARRY
    Then on a separate screen, I want a drop-down list to be filled with the name of the child.

    for example
    Maybe, I have a question:
    what is your favourite child (which is a drop down showing 4 instance names (HARRY,BARRY,SALLY,LARRY)
    I'm on v10.1


    See you soon

    Hello

    There is a way to make this out-of-the-box, but all depends on your data model.

    I assume here that you have 2 entities, the person and the child. The child has an attribute called 'name of the child. "

    Creates a one-to-one between the person and the child relationship, that he calls "the child preferred person '...

    Then, create an individual question screen. Add a control to the "relationship of entry" to the screen in question. For the 'legend', write something like "Please choose your favorite child." For the "attribute" display, choose the name of the child.

    This will display the question exactly as you want - it will ask the user to select from a list of all children.
    Of course, if the person can have many favorite children, create a relationship one - several. However, this will display the names of the children as the boxes, because the user is now allowed to select more than one.

    If the relationship is just together, you can then use this relationship to access the name of the favourite on the level of the individual child (using InstanceValueIf), or you can run the rules that apply only to the favorite child.

    It's just a suggestion that Ive just tested in 10.3, I did 10.1 at hand at the moment but don't remember which is new to the brand (others, please correct me if I'm wrong). Give it a go, see if it works and get back to me, if it's not. If this does not work on 10.1 you should certainly consider the upgrade to 10.3 for a host of other reasons too. Otherwise, it is achievable with a custom control.

    See you soon,.
    Ben

    Ben Rogers
    Senior Consultant - Monad Solutions
    http://www.monadsolutions.com

  • List with useVirtualLayout = "false" and dataGroup.invalidateDisplayList ();

    Hi all

    I wonder if someone could explain this behavior:

    -J' have a list with a tile layout

    -The list is on do not use Virtualization: useVirtualLayout = "false".

    Elsewhere in the code... when I call dataGroup.invalidateDisplayList () on the list, it refreshes the list when useVirtualLayout is NOT set to false.

    Please can someone explain why this is?

    Thank you

    Probably because virtualLayout sets the property data on itemRenderers as

    they get recycled.  If once not virtual, each rendering engine is assigned its data

    It probably is to be given.  If you have dependencies on that

    assignment, he could make a difference.

  • Prepopulate the drop-down lists with xml file

    Hello world

    I'm trying to prepopulate a dropdown list using an xml file. There are many tutorials on the internet that allows me to do from the overview of the Designer tab. However, when I did it worked well, but I am not able to 'embed' the xml file so that the values appear in the workspace when the user starts a process.

    I tried to load the xml file with the contents of resource reading in the action profile of the first task and put the result in the "xmlPrepareData" but the problem is that I can't put all the values of the xmlPrepareData after because the xml model is not exactly the one used by LiveCycle.

    Any thoughts? Someone is already managed to prepopulate a dropdown list with an XML within the process?

    Kind regards

    Thomas

    OK gr8...

    Assuming you're able to get the XML process LC to your XDP/PDF form field.

    You can fix the XML from the drop-down under-

    clear the drop-down list box
    * DROPDOWN_Field.clearItems ();

    choiceList = XMLData.parse (* XML_Field.rawValue, false);

    divide the choiceList in an array of values

    choice = choiceList.resolveNodes("root.element[*].*NODENAME");

    var numchoices = choices.length;

    Adds an array of values in drop-down list
    for (var i = 0; i)< numchoices;="">

    {
    * DROPDOWN_Field.addItem (choices.item (i) .value);
    }

    * DROPDOWN_Field - is your field drop-down list.

    * XML_Field - is your XML data stored in a TextField.

    * NODENAME - is the name of the node in your XML to solve.

    I hope that Hepls...

    Regards-

    Chalukya.

  • Creating a list with a dynamic counter

    I have a dataProvider that looks like this.

    < dataProvider >

    < table >

    Apples of < object > < / object >

    Oranges of < object > < / object >

    < object > bananas < / object >

    Limes < object > < / object >

    < / array >

    < / dataProvider >

    I want to be able to display items in a list with a meter like...

    1. apples

    2 Oranges

    3 bananas

    4 limes

    What is the best way to do this?

    Check out This example.

    You can add the index of the item in the customItemRenderer, see This example

  • The list with many images

    Hello!

    I have a list with a lot of images in the itemRenderer, over 500.

    I use virtualization on this list.

    When people scroll quickly down, it can take a bit to load images.

    Issues related to the:

    1. in what order the list control to load images? Up and down the entire list or Topp down only the visible part?

    2. is there anyway I can give priority to a certain image to load first on others? The images have the source property set to a relative path on the server.

    3. is there anything I can do to speed up the process of loading in general?

    Thank you!

    The list does not load images, because of your item converter.  I suppose you load these images by substituting the data setter method in the rendering engine.

    When the list of the first loads it creates just enough converters to show what is in view (due to virtualization), let the top 10 items.  This means that the first 10 images will be loaded, but no other images will be loaded unless you scroll the list to expose new items.  If you want to have some images available before others so you can have your application load them if its not busy and in this way, they could be available before the user scrolls.

    Even if you were to load all images before creating the list you might seem still some flickering when scrolling because what are they are recharged in as user autour scrolls.  To remedy this, you might want to consider caching the images as they are loaded, there is an example here: http://flexponential.com/2010/01/10/caching-images-loaded-from-a-spark-item-renderer/

Maybe you are looking for