Flex assess dynamic string for headerText datagrid

Hello: I m new on Flex and creates headerText to a datagrid (dgTop250). How can I get the headerStr variable to evaluate properly in the last line of the function? With the code below, I get the entire string as the header of column in the datagrid control, not the evaluated expression that I need. HeaderStr variable evaluates correctly, I just need to evaluated in the headerText statement... I know that the eval function is not available in AS3.

public function get250(event:ResultEvent):void {
  (var i:int = 0; i <= dgTop250.columnCount; i++) {
   
var colName:String=dgTop250.columns[i].dataField;
   
var headerStr:String="top250.lastResult.IMS001HQ2.SGM.getItemAt(i)."+colName+".label";
   
(dgTop250.columns[i] as DataGridColumn).headerText = headerStr;
  }
}

For example, this is what I get as a header: top250.lastResult.IMS001HQ2.SGM.getItemAt (i). STOCK.label

That's what I need: Stock Number

"Stock Number" is the label STOCK.

Thank you

Have you tried all other combinations - I don't want to duplicate your attempts.

Or can you put more code so I have a try myself here.

Can try without a point before hooks

var headerStr:String=top250.lastResult.IMS001HQ2.SGM.getItemAt(i)[colName].label;

Tags: Flex

Similar Questions

  • Creating ENUM dynamically string Array

    Hello

    I was wondering if it was possible to create an ENUM dynamically? For example, I would like to read values from an array of strings and use each element to add a new element in the control of the ENUM. If this is not possible, how to set up a structure deal to read values from an array of strings as an ENUM would normally be able to? It would help enormously if I didn't have to manually enter the string name for each particular case. Thank you very much.

    Ditto the comments of Dan.

    If you ask because you want to just save you a lot of work when editing, you could wrie all your channels to a ring and then right-click and choose replace > enum and the object will change to an enum with all the ropes of the ring.

    Be sure to include the case by default since you are dealing with strings.

    I hope this helps,

    Ben

  • ETA for Spark DataGrid / AdvancedDataGrid?

    I just downloaded the new Flash Builder 4 and came to the disappointing conclusion that there are no equivalents for controls DataGrid and AdvancedDataGrid Spark.  There seems to be several orders, which do not have equivalents of the spark.  I stumbled on Alex's blog post where he mentions the lack of time for the parity of 100% with MX.  However, it would be nice if Adobe could release a timeline of when parity with MX controls is achieved.

    Hello-

    In Flex 4, we introduced a new component and skinning architecture called Spark. We have built many components, called Spark components, which use this new component model, but has not reached parity with regard with the equivalents of spark for * all * given available items in the component MX (Flex 3 and earlier versions). Especially missing are spark versions of components DataGrid, AdvancedDataGrid and trees. In places where the equivalent of the spark is not available, it is 100% ok to use the MX control as spark content can contain content MX and vice versa.

    Who spark to reach parity with the MX is a huge focus for our next version of Flex. In fact, we are current active development works on versions of the spark DataGrid, AdvancedDataGrid and trees. Because we develop out in the open, you can see downloading development builds nightly Flex 4 and looking at the feature specs posted on the Open source Adobe (http://opensource.adobe.com/wiki/display/flexsdk/Flex+4) site.

    In addition, many of the teams of Engineering (such as Alex Harui), but also members of the community have displayed prototypes of components created by using spark that are not currently part of the native Spark delivered with Flex 4 components. If you do not use the version MX controls that do not have equivalents of spark, I encourage people to read the posted samples and increase them as they see fit.

    Hope this helps,

    Deepa Subramaniam

    Flex SDK Product Manager

  • What is the best way to search for a Datagrid?

    I want to search the installer for a datagrid control.  I did a lot of research but could not come up with a solution of single column.  Can someone give some recommendations on how I can get all the data that is in the datagrid?

    Thank you.

    Dave

    DataProvider of the DataGrid control is always an instance of ICollectionView: ArrayCollection or XMLListColection collection.

    ICollectionView's filterFunction function that would make reference to a function with a signature of the individual:

    private function filter(item:Object): Boolean {}

    }

    When you have assinged this function to the collection of table and do a refresh() on this function to call for each element in the underlying dataProvider. The "item" is current object, the line if you want, in your dataProvider for which this method is called. Now that you have the complete object available you all it's available properties; make all checks you need and return true if you want to keep the line in the filtered list of false otherwise. That's all!

    Flex Builder Help has many examples of such FilterFunction, like google!

    Good luck!

    ATTA

  • Concatenate an integer to a string for?

    Hello

    I'm new to LabVIEW.

    For my internship, I GPIB hardware control and to take certain measures.

    I use the GPIB write VI which accepts a string for its data entry.

    The command I want to send is of the form: "apply 5, 1".

    I thought to concatenate a string ('Apply_"), an integer ('5'), a coma and space (" ", _") and the last integer ('1'), so that I can increment integers in a loop if necessary.

    However, the VI of string concatenate does not accept the whole entries.

    Also, I think I'm going hard on this topic (I thought adding integers as strings, but then I won't be able to increment them at each iteration).

    Can someone help me?

    Thank you very much

    Nicolas

    You can use the Format function in the chain.

    Ben64

  • Hi, I have two decimal strings, each of them contains the numbers change over time. I want to plot them on the graph XY, a string for each axis. Can you show me how do?

    Hi, I have two decimal strings, each of them contains the numbers change over time. I want to plot them on the graph XY, a string for each axis. Can you show me how do?

    This is not a formula, but a constant simple schema of a table complex. Wire remains, then do a right click of the terminal of the initializer of the feedback node and select "create constant. That should do it.

  • Convert resultlist container to a string for report

    Hi all

    Is there a way to convert a resultlist containing a string? I have a ResultList of a separate test that I need to add to the ModifyBatchReportHeader point of the string for my report in ASCII format.

    I tried adding "str (OtherTestResults)", but it adds just periods as if he doesn't know how to access the test data (name test, measure, etc.). Is there a a way to convert it containing a string the TestStand way automagically done at other times?

    Thank you

    Chris

    Hi Chris,

    Unless you said, I did not realize the batch mode.

    For my example, I used the ModifyBatchReportFooter. You can also use the header.

    You just have to play with the HTML tags.

    This example only works with HTML-reports!

    For the generation, it uses the sequence: PutResultsInReport reportgen_html.seq in the template folder - OR

    Hope this helps a little more

    Jürgen

  • Y at - it an easy way to change 323 (string) for "43 01" (hex string) or 3249 (string) to "0C B1" (hexadecimal string)?

    Y at - it an easy way to change 323 (string) for "43 01" (hex string) or 3249 (string) to "0C B1" (hexadecimal string)?

    Thank you.

    Like this?

    It depends on type of exactly what you want in the end.  Do you want a channel which shows the 4 characters who are the hexadecimal number for the number you enter.  Or do you want a channel which has only 2 (1 for each byte) characters, but the indicator is formatted to display those hexadecimal display?

  • Dynamic CRM2011 for the outlook client does not recognize that I have already installed SP2

    Dynamic CRM2011 for server (vista 64-bit) or the outlook client does not recognize that I have already installed SP2

    Error log (edited to highlight what appears to be the problem):
    Latest Version of the OS: 6.0.6001
    11:14:06 |   Info |   Service Pack: Service Pack 1
    11:14:06 |   Info |   System type: workstation
    11:14:06 |   Info |   Mask away: 0 x 0300
    11:14:06 |  Error | Failed to install Microsoft Dynamics CRM for Outlook. Install Windows Vista Service Pack 2 and then try again.
    11:14:06 |  Error | System requirements not filled to allow the installer to run.
    My computer works SP2 and all current updates except for:
    • Platform Update for Windows Vista x 64-based Systems (KB971644)
    1. error: 8000ffff
    I ran 'fit' the Microsoft tool, but made no difference. This update is my problem, or I am barking the wrong tree?
    Help, please!

    Hi Paul,.

    The question you posted would be better suited in the Forums of Microsoft Dynamics. I would recommend posting your query in the Forums of Microsoft Dynamics.

    http://social.Microsoft.com/forums/en-us/category/Dynamics

  • Dynamic action for button update region

    Hi all, how to create a dynamic action for button update region. Suggest me

    Thank you

    Apex-Obin wrote:

    Thank you... with over loading the entire page?

    Updating of dynamic actions using partial page refresh (PPR). However it is supported only on certain types of region: traditional and interactive reports, graphics and plug-ins where PPR support has been implemented by the developer of plug-in. The model of the region must also include an id = "" #REGION_STATIC_ID # "attribute, which means that the model region cannot set model No."

  • Dynamic lists for recommendation using CSElement

    Hello

    I want to know what should be in CSElement to create dynamic lists for recommendation.

    If I create just a list with two columns as asset Id and the type of assets that will suffice?

    Dynamic list recommendations requires a list named " AssetList " and 2 columns 'assetid' and 'assettype.

    We can use any method to generate this list.

    Looks like my CSElement

    I used the most basic that is hard coding as

    And it works.

    Thanks nice to point me the finger in the right direction.

  • Dynamic action for validation of date with the notification message plugin

    Hi all

    Someone help me please with dynamic action for validation of date with the message notification plugin. I have a form with two elements of the date picker control and message notification plugin.

    The requirement first user selects the exam is finished and then selects the date. So, if the date is greater than the date of the examination is over + 2 years then doesn't trigger the message notification plugin. I tried to create that dynamic action on the date picker date that triggers the scheduled issue notification message but I want to make conditional, I mean displays the message only if date of the selected is greater than the date of the exam is finished more than 2 years.

    In terms simple, notification is displayed only if provided is superior to (date of the exam is completed + 2 years).

    I use oracle apex 4.0 version and oracle 10g r2 database. I tried to reproduce the same requirement in my personal workspace. Here are the details. Please take a look.

    Workspace: raghu_workspace

    username: orton607

    password: orton607

    APP # 72193

    PG # 1

    Any help is appreciated.

    Thanks in advance.

    Orton.

    You can get the value of the date of entry:

    $(ele) .datePicker ('getDate');

    So what to add functions such as:

    function validateNotification (d1, d2) {}

    Date1 var = $(d1) .datepicker ('getDate');

    date2 var = $(d2) .datepicker ('getDate');

    if(date1 && date2) {}

    return ((date2.getTime()-date1.getTime())/(1000*24*60*60))>(365*2);

    } else {}

    Returns false;

    }

    }

    The logic based on setting (I have two years from years of 365 days preceding)

    Then in the D.A. specify a JavaScript expression as:

    validateNotification ('P2_REVIEW_COMPLETED', this.triggeringElement.id)

    Refer to page 2 for example.

  • create a dynamic group for all virtual machines

    I would like to create separate dynamic groups for all my Windows virtual machines and physical machines of my Windows.  Is it possible to do it via regular expressions?  It is not granular enough to create something like this.  We have vROps that collects a large number of settings of virtual machines as its CPU usage, use of memory and use of the network to name a few.  If I install Hyperic on those virtual machines it will collect the same measures and I'll have to duplicate the data in vROps.  So I would like to have a separate profiles for Win32, CPU, physical disk on file server, etc., for virtual machines and physical machines.  I was going to try using dynamic groups, but I don't think that Hyperic will be able to handle this.  If you have any suggestions or knowledge on this operation through dynamic groups that would be great.

    Thank you.

    In UI Hyperic access the platform in platform type choose Win32 and press the green icon. You will see all the windows.

    Now select all platforms and press the 'Group' button > add to the new group

    Good luck

  • "Adobe than Photoshop Lightroom 5.4 cannot be installed to this disk. An error has occurred all in assessing the JavaScript for the package. »

    Hello

    I get this error when trying to install / update LR 5.3 5.4:

    "Adobe than Photoshop Lightroom 5.2 cannot be installed to this disk. An error has occurred all in assessing the JavaScript for the package. »


    I hope that there is someone who can help me here.

    See you soon

    Re: Lightroom 5.2 installation fails - WARNING Javascript

  • Array of strings for DNS in workflow Clone VM

    The VM Clone with single NIC workflow requires an array of strings as a parameter inut DNS servers. I'm not sure how to pass an array to this parameter. In c#, I have:

    String [] dnsArray = {"10.130.132.109", "10.130.132.108"};

    dns1Attribute.name = pmArray [18] .name;

    dns1Attribute.type = pmArray [18] game;

    dns1Attribute.value = dnsArray;

    attributeArray [18] = dns1Attribute;

    However, c# generates an error 'cannot implicitly convert type() Sting in string' for line 4. I tried passing a single string as attribute value, but it doesn't seem to work either - no value is entered in the workflow when it is running.

    Anyone have any ideas on that. An example of Java would be nice too - I am flexible.

    Thank you!

    Hi geno5150,

    here how to create a table to pass:

    var monTableau = new Array();

    MyArray.push ("10,20,30,40");

    MyArray.push ("192.168.100.254");

    For this move as an attribute:

    var AttrArray = newArray();

    var Attr = new Attribute();

    Attr.Name = '< ParameterName > '.

    Attr.Value = myArray;

    Attr.Type = "Array";

    AttrArray.push (Attr);

    push the other attributes & run the workflow

    That's all

    -

Maybe you are looking for

  • Ports of Tecra 8200 - how fast is USB 1.1 or 2?

    I wonder if they are USB2 ports on this type of laptop

  • disableing my UAC

    I NEED TO KNOW HOW to DISABLE MY UAC to UPDATE A PROGRAM

  • polarizers... linear vs. circular

    Just trying to sort out the differences... and decide what is best for me. .. tips are another fire at the crossroads... you will still need to make the choice... its just easier to see how you might prefer.

  • HP laserjet 1320 connected to windows 7 but cannot print on a windows xp computer

    We have 4 computers connected to a printer.  2 computers windows 7 and the other 2 are windows xp.  When I try to find the printer and connect to it it is an error code that is displayed saying "the server for the ' pcl 5' hp laserjet 1320 printer do

  • wireless network

    Hello guys I really need help at first, I was using windows xp in the computer hp 530 laptop there then after I installed windows 7 from my wireless network has not worked, then I don't have the correct drivers because even if I press the button to a