How to fill a dataProvider of DataGrid nested inside the cell of a dataGrid

< s:DataGrid id = "aGrid.

textAlign = "center".

Width = '100% '.

dataProvider = "{newArray}.

Gridevent = "handleClickEvent (event)" >

< s:columns >

< s:ArrayList >

< s:GridColumn dataField = "minutes" headerText = "MN" editable = "false" / >

< s:GridColumn dataField = "sN" headerText = "SN" editable = "false" / >

< s:GridColumn dataField = "sC" headerText = "OC" width = "65" editable = "false" / >

< s:GridColumn dataField = "sN" headerText = "NC" width = "65" editable = "false" / >

< s:GridColumn dataField = "Sinfonia" headerText = "Insert here the title" width = "300" editable = "false" >

< s:itemRenderer >

< fx:Component >

< s:GridItemRenderer >

< s:DataGrid id = 'sGroup.

horizontalCenter = "0".

Width = '100% '.

dataProvider = "{parentApplication.sGI}" "

Initialize = "sGroup.columnHeaderGroup.Height = 0" >

< s:columns >

< s:ArrayList >

< s:GridColumn dataField = "ssN" headerText = "" width = "150" / > "

< s:GridColumn dataField = "ssC" headerText = "" width = "74" / > "

< s:GridColumn dataField = "ssNC" headerText = "" width = "74" / > "

< / s:ArrayList >

< / s:columns >

< / s:DataGrid >

< fx:Script >

<! [CDATA]

Import mx.rpc.http.HTTPService;

Import mx.rpc.events.FaultEvent;

Import mx.rpc.events.ResultEvent;

import flash.events. *;

Spark.events import. *;

Mx.controls import. *;

Import mx.collections. *;

Import mx.utils.ArrayUtil;

Import mx.core.FlexGlobals;

Import mx.managers.PopUpManager;

Mx.events import. *;

Import mx.utils.ObjectUtil;

public void handleClickEvent(event:GridEvent):void

{

var tempObj:Object = event.grid.dataGrid.dataProvider;

Alert.Show (ObjectUtil.ToString (tempObj));

event.grid.dataGrid.dataProvider = parentApplication.sGI;

Alert.Show (ObjectUtil.ToString (parentApplication.sGI));

Alert.Show (ObjectUtil.ToString (sdlGroup.DataProvider));

var tempObj2:Object = new Object();

tempObj2 ['ssC'] = 1;

tempObj2 ["ssN"] = "name";

tempObj2 ['ssNC'] = 2;

parentApplication.sGI.addItem (tempObj2);

}

[]] >

< / fx:Script >

< / s:GridItemRenderer >

< / fx:Component >

< / s:itemRenderer >

< / s:GridColumn >

< s:GridColumn dataField = "tx" headerText = "TX" editable = "false" / >

< s:GridColumn dataField = "TCX" headerText = "TCX" width = "65" editable = "false" / >

< s:GridColumn dataField = "txnc" headerText = "TXNC" width = "65" editable = "true" itemRendererFunction = "testFunction" / >

< / s:ArrayList >

< / s:columns >

< / s:DataGrid >

I case anyone is interested. I forgot that the DataGrid has the data variable available for use. So in my actionscript I have to loop through data continuously filling new case fo an object and store these objects in a collection arrayCollection.

[Bindable]

public var aTestArray:ArrayCollection = new ArrayCollection();

obj:object = new Object();

obj ['1'] = entry;

obj ['2'] = entry;

obj ["internalArray"] = returnAnArray();

aTestArray.addItem (obj);

where returnAnArray behaves a lot like the code above, but the function returns an ArrayCollection collection.

[Bindable]

public var aTempArray:ArrayCollection = new ArrayCollection();

obj:object = new Object();

obj ['1'] = entry;

obj ['2'] = entry;

aTempArray.addItem (obj);

Return aTempArray;

For each row in the parent DataGrid I can use data.internalArray as the dataProvider of the DataGrid nested.

"dataProvider =" {parentApplication.sGI} "appears now as dataProvider =" {data.internalArray} "

Tags: Flex

Similar Questions

  • How to fill a field of electronic signature in the form of interactive PDF file (created in Indesign)?

    How to fill a field of electronic signature in the form of interactive PDF file (created in Indesign)? This form will serve as an application on a Web site. The goal is to have access to anyone (interested to apply for a job via Internet), fill out and electronically sign the form on presentation.

    Please follow the steps and let me know if this helps

    1. Open the PDF in Acrobat
    2. Click on tools in the upper right > select Forms > click on edit
    3. It would ask you if you want to make changes, select Yes
    4. Then it will give you options to add a Signature field on the right side of Acrobat
    5. Add the field and save the form
  • How to center the characters inside the cells of the comb field (text field)?

    Hello gurus,

    [Intro]

    I'm working on the preparation of the legal form of the income tax.  Due to the structure of the sophisticated form and the request of the client to prepare for the return of enormous size (more), I decided to redo the obsolete form using option "comb of" in order to reduce the size of the source and prevent problems with memory allocation on the client side.

    [Issue details]

    Legal obligation is to have the Courier New 16pt 18pt police and cells of the size of some.

    This is how the form provided by the tax authorities looks like:

    adobe1.png

    Here you can see that the characters are somehow centred inside the cells, but when I create the comb in my livecycle designer, it is not the case and I have another layout:

    adobe2.png

    Look at how the letters are placed inside the cells. After some research I discovered that there is a left margin that still exists in every cell of the comb, probably triggered by the border. Tried to edit the XML source but has not reached a significant success. The issue is not caused by the narrowness of the cells and but even with the very broad.

    Here's my current XML:

              <field h="5.7mm" name="STR_230_TOT_TX" w="60mm" x="4.264278in" y="4.458417in" anchorType="middleCenter">
                   <ui>
                      <textEdit hScrollPolicy="off">
                         <border hand="right">
                            <edge stroke="dotted"/>
                            <corner stroke="dotted" thickness="0.176mm"/>
                         </border>
                         <margin bottomInset="0mm" leftInset="0mm" rightInset="0mm" topInset="0mm"/>
                         <para hAlign="left" vAlign="top"/>
                         <comb numberOfCells="15"/>
                      </textEdit>
                   </ui>
                   <font size="16pt" typeface="Courier New"/>
                   <margin bottomInset="0mm" leftInset="0mm" rightInset="0mm" topInset="0mm"/>
                   <bind match="dataRef" ref="N140_TAX_AMOUNT"/>
                   <assist>
                      <speak disable="1"/>
                   </assist>
                </field>
    

    That's how comb field is supposed to be rendered (screenshot of documentation):

    adobe3.png

    Everything is centered and it's supposed to behavior to see.

    Are there possible solutions how to put tanks in the center of the cell?

    Hi Igor,.

    It's the police that you use that is causing the problem.

    I found it weird, your problem, so I did quickly a form with a text field with a comb.  I have not had the problem.

    So I took your snippet and added to my shape, so I have the same problem.  You use the new Courier, a policy that has the same width for all characters.  I don't know why the problem is as for me it should be in the Center as for all other fonts.  I would count this as a bug to support.

    I know that's not a solution for you, but this seems to be the root of the problem.  Maybe you can find another font, like Courier New, but has no width fixed.  I looked and it seems that there is a font called depicted, which uses the same letters, but is proportional.  The police is not downloadable for free, so I can't test for now.  Another page says this: "there is a proportional font that looks a bit like Courier. 'S called it American Typewriter. "Yet once again, I have not tested.

    • Depicted Serif is a proportional font by using Courier characters as a base.

    http://en.wikipedia.org/wiki/Courier _(typeface)

  • How to use &lt; C:when test... inside the column in the table of the ADF

    I use ADF table with two columns
    in the first column, I check the Type of document is doc type so I have to use commondlink to download this file, otherwise I need to display only text.

    to this I added
    * < c:when test = "{boolean ($favoriteType eq 'doc')}" > *.
    that does not work.

    Please let me know how to use < C:when test... inside the column in the table of the ADF

    < tr:column sortProperty = "favoriteName" sortable = "true".
    headerText = "#{res ['favorite.favoritename ']}" "
    width = "500" noWrap = "false" >
    < c: choose >
    * < c:when test = "{boolean ($favoriteType eq 'doc')}" > *.
    < tr:commandLink actionListener = "#{bindings.downloadFile.execute} '"
    Text = "#{row.favoriteName} '"
    Disabled = "#{!}" Bindings.downloadFile.Enabled}"/ >
    < / c:when >
    < c: otherwise >
    < af:outputText value = "#{row.favoriteName}" / >
    < / c: otherwise >
    < / c: choose >
    < / tr:column >
    < tr:column sortProperty = "favoriteType" sortable = "true".
    headerText = "#{res ['favorite.favoriteType ']} ' rendering ="true">"
    < af:outputText value = "#{row.favoriteType}" id = "favoriteType" / > "
    < / tr:column >

    Hello

    I do not see, you use a Table of the ADF, but I see that you use Apache Trinidad. JSTL is executed analysis of time then that JSF is to render time, that's why it does not work what you see. Trinidad is a part of tr:switcher, and you can try this. Note that it doesn't ' r allow to change components by rank.

    Frank

  • How do fill you a text field based on the entries in other text fields?

    I would like to be able to have a text field that fills as 'Full' or 'Incomplete' based on the question if all required fields have been filled or not.

    For example, if the "First Name", "Last Name" and "City" text fields are not filled, the text of "the State of completion" field displays 'Incomplete' and once they are filled, the text of "the State of completion" field will turn into "Complete".

    How can I do this using javascript? I searched the web for a tutorial, but most of the results seems to be focused on the menu drop-down.

    Please point me in the right direction!

    Try the script below. I put this on the calculate for Field1 event

    If (FirstName.rawValue == null |) LastName.rawValue == null | City.rawValue == null) {}

    Field1.RawValue = "incomplete."

    }

    on the other

    Field1.RawValue = "complete."

  • How can I email PDF as an attachment inside the Muse?

    I want to include a form to fill out on a page of Muse. Once the person fills in, how can I have them send the filled form to inside the Muse page?

    I would advise against trying to send the PDF by email. It is generally improper to be many, many reasons. For HTML forms, an experienced web developer needs to rewrite the end server (ASP, CGI, PHP,...). PDF forms are not simple.

    I would use a widget in muse. Go to your menu on the right Muse, select widget library, select Forms.

    from there, you can create any field and insert your own content. This will allow you to send content to your e-mail address, once completed by the end-user.

    Concerning

    Shane

  • extend ListField, how to get a valid result of getSelectedIndex inside the method object?

    Hi all

    I have replace the method object to extend ListField to create my own color ListField.

    I need to avoid the double drawRow between the method object

    and the drawFocus() method.

    inside the method object, I always get the 'bad' selectedIndex (previous)

    (or rectangular previous on getFocusRect()).

    my questions are:

    1. how to get current selectedIndex (or FocusRect) inside the method object when we extend ListField?

    2. is there any other method called before object, the method which returns SelectedIndex valid?

    3. how to avoid the double drawing between object and drawFocus()?

    Thank you.

    If everything you do is add your own color, and then you can do this by using a fillRect in the drawListRow method.  In there.  I have the code that did this, but only for lines not targeted, as it detects with:

    If (listField.getSelectedIndex ()! = index) {}

    //

    }

  • URGENT: How to identify Parent movie when we're inside the COMPLETE event

    Hi all
    I have try it for 4 days for a Solution, I don't know how to solve this problem.
    Well, I'll explain the Situation. I'm list creation of thumbnail using AS3 coding. Everything will work well.
    After the loading of the thumbnail, I want to resize the thumbnail to fit the size of the thumbnail. To set the exact size that I have to get the sample size movie that is placed inside the MC sticker, I can't able to get the name of the Instance. Here with, I have attached my sample Code. Please help me on this

    Try this code in onThumbLoaded:

  • How to fill out a drop-down list on the selection of items in another drop-down list using adf 12.1.3

    Hello

    I have a page that has the load drop-down lists and a "submit" button. The first drop down menu got filled using query based VO (IE read only VO) for LOV. The requirement is as below

    -on the selection of an element any in the first drop-down list, the user must fill the second dropdown.

    -Once the second dropdown is completed, the user can select element in the second drop-down list.

    -capture the second drop down menu items value selected in the method of action of the click on the submit button.

    Any help in this scenario will be useful.

    ---

    Rabindranath

    Sameh salvation,

    Thanks for the reply. Your code

    1. DCIteratorBinding iter is BindingContext.getCurrent () .getCurrentBindingsEntry () .get ("iteratorNameInPageDef") (DCIteratorBinding);.
    2. Object secondDropdownValue = iter.getCurrentRow () .getAttribute ("AttributeName");  has been really helpful to get the selected value.

    Thank you very much.

    ---

    Rabindranath

  • How to fill out a field value based on the value of another field

    I developed a page. It has two fields 'Qualification' and ' Points' (these two values are stored in a table of rear end).»

    The requirement is, if I select "Qualification" "Points" should be auto Norway.

    This can be achieved using LOV. But I don't want to use LOV here.

    I tried this using the partial Action of fire, but I m not getting the details of "Qualification" in CO, instead getting the value zero.

    How to get there?

    Thank you
    Srinivas

    Hello

    Pls change the code this way

    OAMessageTextInputBean omtb = (OAMessageTextInputBean) webean.findIndexedChildRecursive ("the field id");

    String QName = (String) omtb.getValue (pageContext);

    If ("PopulatePoints".equals (pagecontext.getParameter (EVENT_PARAM)))
    {

    OAMessageTextInputBean otbpnts = (OAMessageTextInputBean) webean.findIndexedChildRecursive ("points field id");

    otbpnts.setValue (pagecontext, Points);
    }

    Thnax
    Pratap

  • How to place images and cultures to fit inside the vector form

    I am trying to place an image on top a vector shape and then I want to cut the edges of the image, it takes this form (essentially by filling in the form with the image)

    I try also to do with two layers of vector shapes, I want to install into one another and did not all block... the top or 'form fill' is an array of hexagons (make a honeycomb like structure) I want he made in the underlying (lime green) oval shape.  Here is a link if you want to see what I'm doing... It's the one on the right


    www.oregonstate.edu/ ~pearsoan/images/achieve3.ai

    How do you do that?

    Blue,

    Put the (vector) path formatting on top of the image, select both and opposition > clipping mask > make.

    I can't open the file to see what there is to see, and I have to go in a moment.

    If you upload an image, using the camera icon, all wizards can see here in the thread.

  • How to access select a value choice presents inside the query.

    Hi Experts ADF,

    JDEV 12.1.3.0

    I have a query Panel, which contains a selectonechoice in field.i.e of search category drop down.

    Now when you click on search how do I need to capture the value drop-down list. Based on the drop in value, I want to disable the button in the table that are in panelCollection

    Thank you

    Roy

    Hello

    you need to do your own processQuery of the af.query method

    EDIT:

    I forgot to add the link Ashish Awasthi (Jdev/ADF) Blog: the substitution of the listener default query, validation in the field of af: query-Oracle ADF

    Kind regards

    Ruben,

  • Nested inside the ESXi Server ESXi

    Nested run ESXi in ESXi server.

    I can't turn on the virtual machine for Vcenter, I get an error "this host does not support Intel VT - x. Here's my server BIOS settings.

    Is there a solution for this?


    See attached screenshot.


    My server is running an Intel Xeon processor E5540 Proliant DL380 G6 2 x Xeon Quad-Core 2.53 GHz


    Physical server Bios settings

    -Intel(r) Hyperthreading Options-> active

    -Intel(r) Turbo Boost Technology-> active

    -Intel VT - d-> active

    Your hardware supports nested ESXi.  Is that you checked the box next to "Hardware-assisted virtualization expose to the guest operating system" on the settings of the processor in the web client?

  • WHEN nested inside the BOX

    Hello

    I'm trying to do something like this:
    select .....
    from ....
    where .....
            and tm.actiune = case
                               when tm.msg is not null then begin
                                 *case*
                                   when r_act.executat = 'D' then 'E'
                                   when r_act.respins = 'D' then 'R'
                                   else 'C'
                                 end
                               else null
                             end
    But I get

    Error: PL/SQL: ORA-00905: lack of keyword (in this case with "BOLD"). How can I correctly use this construction?
    r_act is a cursor variable.

    Thank you.

    Published by: Roger25 on 22.04.2013 15:53
    SELECT *
      FROM x_table
     WHERE tm.actiune =
              CASE
                 WHEN tm.msg IS NOT NULL
                    THEN CASE
                           WHEN r_act.executat = 'D'
                              THEN 'E'
                           WHEN r_act.respins = 'D'
                              THEN 'R'
                           ELSE 'C'
                        END
                 ELSE NULL
              END;
    

    Kind regards
    Friend

  • Insert text field nested inside the symbol of JQuery .html

    This is one of those, "it must be so simple... of course, is not" question.

    Got a symbol nested. A fairly simple. Inside of the symbol is a background rectangle and a text field. When I click a button, it must insert the HTML code, I give him the click event.

    Now at first I did using only the text field per itself. No nesting. This is the code:

    SYM. $("copie") .html ("Edge Rocks!");

    OK, success! The text is loaded correctly.

    Now let's insert this text inside a symbol field. And we'll call this symbol "content".

    Now, I'm trying...

    SYM. $("contenu").$("copy").html ("new text");

    Result? Nothing.

    Tried to use the scene instead of sym and even added a scene var = sym.getComposition () .getStage () before. Nope.

    Yes, they do not easily allow. So what is the solution?

    Here is my sample file.

    https://www.dropbox.com/s/5n1ehhsp7r3rbt6/text.zip?m

    BTW, he ran in the Firebug console. No errors.

    OK, I found it! This is it!

    sym.getComposition () .getStage ().getSymbol('content').$('copy').html ("text here");

Maybe you are looking for