How to set  headerText in DataGrids through ActionScript

Any help or suggestions with this appreciated. I'm populating
a datagrid control in Flex 2 with dynamically data. The number of
columns and column names aren't fixed. The column data itself is
just raw values; no field names or other elements to identify what
the column header should be.
So when the data provider updates I need to be able to
tweak/add the headerText for the columns. How do I access this
setting through actionscript? I see many examples for defining
<mx.DataGridcolumn> and properties, but I can't really do it
that statically in advance; I don't know the column count or type
of columns until runtime.
Is it possible to access the headerText property with
something like dataGridID.column[0].DataGridColumn.headerText = ""?
This is what I'm looking for, the ability to iterate through and
set the headerText, but I haven't found the magic incantation.
Thanks!

You can access the columns through the dataGrid.columns array
property.
Get a reference to that array from the DG into a variable,
modify the column elements as desired through that var, then
re-assign the var to the dg.columns property. So you are close:
var aColumns:Array = dataGridID.columns;
var dgc:DataGridColumn = aColumns[1];
dgc.headerText = "this is column 1";
dataGridID.columns = aColumns; //this step is required!
Tracy
Tracy

Similar Messages

  • How to Set Basic compression attribute through Oracle ILM

    Hi,
    I have log a SR with Oracle with regard to this but they redirect to this forum.
    We have configured Oracle ILM in our environment. We have a requirement that after 3 years the data to be moved to a Low Cost Storage. We tested the same through Oracle ILM and it works fine for the above scenario.
    We have another requirement that after moved to Low Cost Storage Tier through Oracle ILM we also want to compress the data.
    When we set the compressed attribute through Oracle ILM it alwasy generated the script
    like the one below
    alter table test_user.range_part
    move partition year4
    tablespace part3
    compress for all operations -----------------Oracle Advanced Compression--------------
    update indexes;
    But we want some thing like below through Oracle ILM
    alter table test_user.range_part
    move partition year4
    tablespace part3
    compress -------------------Basic Compression----------------
    update indexes;
    Can you please help us how to set the Basic compression attribute through Oracle ILM.
    Thanks and Regards
    Ganesan Sivaraman

    Oracle support referred you here?
    Please post the SR number here or send it to me by email for follow-up (damorgan12c (at) gmail.com).
    Thank you.

  • How to set source in VideoPlayer via actionscript?

    Hi,
    I'm trying to play video in spark.components.VideoPlayer by setting its source property. However, on playing the video doesn't play and comes out as garbled. Am I missing something here?
    Here is the source code-
    <?xml version="1.0" encoding="utf-8"?>
    <!-- controls\videoplayer\VideoPlayerEvent.mxml-->
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/mx">
        <s:layout>
            <s:VerticalLayout/>
        </s:layout>
        <fx:Script>
            <![CDATA[
                import org.osmf.events.MediaPlayerStateChangeEvent;
                import org.osmf.events.TimeEvent;
                import spark.components.VideoPlayer;
                protected function vpCompleteHandler(event:TimeEvent):void {
                    myTA.text = "Video complete - restarting."
                protected function
                    vpMediaPlayerStateChangeHandler(event:MediaPlayerStateChangeEvent):void {
                    if (event.state == "loading")
                        myTA.text = "loading ...";
                    if (event.state == "playing")
                        myTA.text = "playing ...";
                private function onPlayVideo(): void {
                    videoPlayer = new VideoPlayer();
                    videoPlayer.source = "file:///D:/shared/work/data/test/original/bkb2.flv";
                    playerContainer.addElement(videoPlayer);
                    //player.
                private function onStopVideo(): void {
                    videoPlayer.stop();
                private var videoPlayer:VideoPlayer;
            ]]>
        </fx:Script>
        <s:VGroup id="playerContainer" verticalAlign="middle">
        </s:VGroup>
        <s:HGroup>
            <s:TextArea id="myTA" width="350" height="25"/>
            <s:Button label="Play Video" click="onPlayVideo();"/>       
            <s:Button label="Stop Video" click="onStopVideo();"/>       
        </s:HGroup>
    </s:WindowedApplication>
    Thanks in advance,
    Ramashish

    You can access the columns through the dataGrid.columns array
    property.
    Get a reference to that array from the DG into a variable,
    modify the column elements as desired through that var, then
    re-assign the var to the dg.columns property. So you are close:
    var aColumns:Array = dataGridID.columns;
    var dgc:DataGridColumn = aColumns[1];
    dgc.headerText = "this is column 1";
    dataGridID.columns = aColumns; //this step is required!
    Tracy
    Tracy

  • How to set up for wireless through time capsule

    I have at&t u-verse but I disabled the wireless in u-verse modem and now have forgotten the steps to take to set up my time capsule but to wireless.  I had my time capsule used as wireless router before we moved to a different state but it has been a few months not that I was using the at&t wireless router and I didn't like it and my time capsule would not back up so that's when I realized I must disable my wireless in the At&t modem and use the time caspule wirelss.  Please help.  Thank you

    Power on the Time Capsule for a few minutes, then hold in the reset button firmly with a ball point pen or something similar for 10 seconds and release. Allow a full minute for the Time Capsule to restart to a slow, blinking amber light.
    Connect an Ethernet cable from one of the LAN <--> Ethernet ports on the back of the Uverse router to the WAN "O" port on the Time Capsule
    On your Mac, open up Macintosh HD > Applications > Utilities > AirPort Utility
    Click on the Other WiFi Devices tab
    Click on the Time Capsule
    The setup utility will open up automatically and take a minute to analyze the connections then suggest a setup on a screen that looks like this:
    Type in a simple name that you want to use for the Wireless Network Name
    Type in a name that you want to use for the Time Capsule device
    Type in a password
    Verify the password
    Click Next
    The utility will set everything up for you in a minute or two. When you see the message of Setup Complete on the screen, click Done
    You can now log onto the wireless network that you created by selecting the name and entering the password
    Post back on your progress and we will next get backups going again

  • JDev 10.1.2: How to set a Date attribute through a list (UIX)?

    Hello everyone, I need help with this:
    I have a UIX page to input data for a new record. One attribute is a Date and I need to drag and drop it as a MessageList (Select One) into the page. But I can't do this cause the only options I see are Column, MessageDateField and LOV Table.
    I already have the view object to provide the values for the List.
    Thank you very much in advance.

    repost

  • How to set the numeric format through the API

    Hi,
    I have an utility that imports limits from external resources and in that utility (C#) I would need to modify the numeric representation  so that what is defined as hexa in the external resource to be displayed as hexa after importing to TS as well.
    Can U help me out if this is possible with the API and if so, what is the right methods for it?
    Thanks in advance.

    Hi again,
    I didn't find straight solution yet, but I think it is good way around:
    http://digital.ni.com/public.nsf/allkb/1304B337E03E2E1A86257ACD004BAB06
    If you want hexadecimal representation you need to change "%b" to "%x". I'm still keep looking for a better solution...
    Best Regards

  • How to set skinClass in ActionScript

    Hallo, i have a little problem. I don't know how to set a skinClass for my created dinamically in actionScript. Inline i can set it in thi way:
    <s:Button id="myButton"  "skinClass="skins.mySkin"/>
    But how can i do it in actionScript??.. I am creating new buttons dinamically:
    var myButton:Button = new Button();
    but i can't set the skin through myButton.skinClass. There is not such a property in my Button.
    How can i do??
    Thx for all
    Max

    myButton.skinClass doesn't work because it's not a property. It's a style.
    Set styles by using the setStyle() method:
    myButton.setStyle('skinClass', mySkinClass);

  • How to set up for user's request to go through a specific module that i selected

    I am testing if it is possible all requests from users should go through a module
    that i made or not.
    For example, all most web server is setted all requests should go through the
    log module for writing log when users request a certain page.
    Like this, how to set up the configuration all request should go through a certain
    module.
    Would you tell me the answer please.

    Power on the Time Capsule for a few minutes, then hold in the reset button firmly with a ball point pen or something similar for 10 seconds and release. Allow a full minute for the Time Capsule to restart to a slow, blinking amber light.
    Connect an Ethernet cable from one of the LAN <--> Ethernet ports on the back of the Uverse router to the WAN "O" port on the Time Capsule
    On your Mac, open up Macintosh HD > Applications > Utilities > AirPort Utility
    Click on the Other WiFi Devices tab
    Click on the Time Capsule
    The setup utility will open up automatically and take a minute to analyze the connections then suggest a setup on a screen that looks like this:
    Type in a simple name that you want to use for the Wireless Network Name
    Type in a name that you want to use for the Time Capsule device
    Type in a password
    Verify the password
    Click Next
    The utility will set everything up for you in a minute or two. When you see the message of Setup Complete on the screen, click Done
    You can now log onto the wireless network that you created by selecting the name and entering the password
    Post back on your progress and we will next get backups going again

  • How to set up mail on i phone 5 with an email of "example@email.school.edu" hosted through google?

    I have an email just like the title says "[email protected]" and it is hosted through google but I have to go to my school website to sign in to the account.  I want to be able to use the mail app and I can't figure out how to set this particular account up with the I phone.

    Talk to the IT people at your school

  • ATG 10.1.2 . How to set BCC password through CIM?

    I'm new to 10.1.2 version, trying to installing and configure it properly to learn it. With CIM I configured and set Publishing, Production and Staging instances.
    I ran BCC after installation (http://localhost:8180/atg/bcc) and was prompted for password - admin/admin or merchandising/merchandising set by default in previous ATG versions didn't work in 10.1.
    I learned from ATGInstallGuide that there is no default passwords preset in 10.1.2 and I have to set them though CIM. (Or ACC)
    Here what is says:
    *"Through CIM. During the post-installation setup process, CIM prompts you to set the passwords for the*
    *default profiles that your environment requires "*
    I do remember I was once asked one for password for merchandising user only, and the password I set didn't allow me into BCC, so probably it was for something else.
    Please, advise how to set BCC passwords for default account (admin, merchandising and etc) in CIM? I don't see this option in CIM - I everything in CIM and didn't find it
    Just in case there is the list of options CIM provides me after running:
    [1] Database Configuration - Done
    [2] Server Instance Configuration - Done
    [3] Application Assembly & Deployment - Done
    [P] Product Selection - Done (Oracle ATG Commerce Reference Store &
    ATG-Endeca Integration & ATG Site Administration)
    [A] Select Application Server - Done (JBoss)
    *[C] Custom CIM Plugin Launcher
    I'm still not able to open BCC application
    Edited by: 994398 on Mar 17, 2013 5:36 PM
    Edited by: 994398 on Mar 17, 2013 5:37 PM

    CIM will ask for new passwords when you select Create Schema and Import data. If you have forgotten the pwd given by you, you can reset it.
    Check the below threads regarding similar issue.
    ATG 10.1.1 BCC -Default password for admin
    not able to login into ATG Dyn admin
    Cheers
    R

  • How to set paramters through Query manager.

    Hi,
    I need to get Parameters when we are executing SQL Query through Query Manager.
    In Query manager how to set prompt window for parameters.
    Below I applied parameters for from date and to date but its showing error. How to set parameters prompt window.
    SELECT     OJDT.TransId, OJDT.Number,NNM1.SeriesName,ojdt.baseref as BaseRefNumber, JDT1.Account,JDT1.StornoAcc,OACT.AcctName,jdt1.credit,jdt1.debit, jdt1.profitcode as [Customer/Vendor],JDT1.OcrCode2 as [Region/Location] , JDT1.OcrCode3 as  Department,
                          JDT1.OcrCode4 as [Core/Deputees/DailyWage/General], JDT1.OcrCode5 as [SubAccofCA&CL],OJDT.RefDate, OJDT.Project,jdt1.project
    FROM         OJDT
    INNER JOIN JDT1 ON OJDT.TransId = JDT1.TransId
    INNER  JOIN OACT on OACT.AcctCode=JDT1.Account
    INNER JOIN NNM1 ON OJDT.Series = NNM1.Series
    where ojdt.transType=30 and  ojdt.refdate >= '[%0]' AND ojdt.refdate <= '[%1]'
    Please guide me.
    Regds,
    Sampath kumar devunuri.

    hi sampath,
    Try this query
    SELECT T0.TransId, T0.Number,T3.SeriesName,T0.baseref as BaseRefNumber, T1.Account,T1.StornoAcc,T2.AcctName,T1.credit,T1.debit, T1.profitcode as CustomerVendor,T1.OcrCode2 as RegionLocation , T1.OcrCode3 as Department,
    T1.OcrCode4 as CoreDeputeesDailyWageGeneral, T1.OcrCode5 as SubAccofCACL,T0.RefDate, T0.Project,T1.project
    FROM dbo.OJDT T0
    INNER JOIN JDT1 T1 ON T0.TransId = T1.TransId
    INNER JOIN OACT T2 on T2.AcctCode=T1.Account
    INNER JOIN NNM1 T3 ON T0.Series = T3.Series
    where
    T0.transType='30' and CAST(T0.refdate AS datetime) BETWEEN '[%0]' AND '[%1]'
    Jeyakanthan

  • How to set Password change in Web templates through WEB DYNPRO

    Hello All
    Before dropping my question i will explain you what was the Real scenario, i am using WAD 3.50 Version and server is BW 3.0B.we are not using portal, and Enduser will view the reports in the browser through the WAD execute Http link.
    Question.
    whenever the enduser uses Http link of web template in the browser, he will connect through VPN and they can able view the reports. the question is That Some system Enduser won't have SAPGUI in their system so they wants to change the password because they won't know even if it is expire. is it possble to set password change system through WEBDYNPRO ABAP in the WEB Templates
    Please Help me how to set Change Password in the browser for the WAD Application.

    To do this you will have to use either make use of portal or BSP application or Dynpro..
    It is not possible for the user to change the password just from the web query

  • How to set Password change through BSP Application

    Hello All
    Before dropping my question i will explain you what was the Real scenario, i am using WAD 3.50 Version and server is BW 3.0B.we are not using portal, and Enduser will view the reports in the browser through the WAD execute Http link.
    Question.
    whenever the enduser uses Http link of web template in the browser, he will connect through VPN and they can able view the reports. the question is That Some system Enduser won't have SAPGUI in their system so they wants to change the password because they won't know even if it is expire. is it possble to set password change system through BSP Application in the WEB Templates
    Please Help me how to set Change Password in the browser for the WAD Application.

    right now when the user calls the BW report url , he is prompted for authentication via pop up right?
    to enable password change option in the log on screen use system logon for BEX service in sicf.
    go to transaction SICF and navigate to sap/bw/bex
    double click on node Bex.
    in the resulting window, go to error pages tab and under that in log on errors tab choose "System log on radiobutton" save and now try calling a webtemplte.
    Regards
    Raja

  • How to set an actionscript class runnable + some question?

    Dear all,
      i am new to actionscript (Flex 3).
      i am from java camp and i want to achive some java-style functionality in actionscript,and hope you can help me:
      1. how to set an actionscript class runnable??
          in java, i just add a "public static void main(String[] args)" method which will be the program entry point. (IDE, right click the class and click run)
          i can't set a plain, ordinary actionscript runnable in flex builder.
          To test the class, i have to create an mxml (which in turn invoke the testing class) and it be runnable in the flex builder 3.
          any other way to ease the testing?
       2. it there any good 3rd party library for datatype conversion ? (e.g. string <> date, the build-in DateFormatter don't accept milliseconds)...
           it seems actionscript come with limited such kind of utility function
       3. in a custom mxml component, which contains several controls (say testboxes, comboboxes)...etc,
           for information hiding/prevent others to change the child controls in the custom component, how can i hide the child control, not allow
           other code to access the child by  "Component.textbox1"....any scope modifier, e.g. protected, private...etc in mxml?
       thank you.
    ppk luk

    Hi Alex,
      for question 3:
      i just wondering if it is ok or not for better code/validation.....(and it follow the good
    information hiding principle?)
      if i write the component in actionscript only, i can set the child control with scope modifier
    'private' or 'protected'..so that the component user can't just use the dot syntax to gain
    access to the child control,
    e.g. MyComponent.childControlTextInputBox.value = "A";...
    i want to force user to use MyComponent.setInputBoxValue("A")...
    (e.g. in this method, i can do some checking/validate before passing to the textbox)
      this can enforce the data consistency in my custom UI component...
      there is no way to achieve the same effect in MXML?
    (e..g <mx:TextInput id="privateChildControl" accessScope="private" .../>)
      thank you..

  • How to set WebLogic Plug-In Enabled through admi in weblogic server 9.2

    Hi,
    how to set WebLogic Plug-In Enabled parameter for cluster through admin console in weblogic server 9.2 ???
    Actually i could able to find the option for individual servers. However i could not able to find the same for cluster??
    is it through only by WLST ???
    can any one please advice??
    regards,
    Praveen Kumar J

    Well, I don't know what you call a "BEA Admin", but please note that everyone here is trying to help.
    Some of them are not working for BEA but are deeply efficient.
    Well, for your problem, I started a 9.2.2 domain, created a cluster and found the "WebLogic Plug-In Enabled" option ...
    In your console, in the "Domain Structure" window, click myDomain \ Environment \ Clusters
    Then in the main page, you've got "Settings for myCluster".
    On the very first page, "Configuration > General" tab, you should have the folliowing attributes :
    * Name
    * Default Load-Algorithm
    * Cluster Address
    * Number of Servers In Cluster Address
    Go at the bottom of the page and under the last link "Number of Servers In Cluster Address", you have a little "Advanced" link in blue. Click on it and it will expand another part of the page.
    In that new part, you'll find new attributes and the one you're expecting.
    This time, it should definitely help.

Maybe you are looking for

  • How do you set up Mail without a mobile me account?

    I am trying to set up my sister's new Macbook so she can send and receive mail. She does not have a mobile me or .mac account. She had been using an older powerbook, using Safari and a yahoo account. Now, with this new Macbook in Snow Leopard, I want

  • Connecting Kindle to HomeHub 3

    Hi I cannot connect a Kindle to Home Hub. Have tried all usual remedies but cannot get any further. Recently a visitor could not connect their iPhone 4S either. This is a new issue as Kindle used to be OK. I have a PC wirelessly connected to the Home

  • Help... I can not get my microphone to work

    Help.... I can NOT get my microphone to work with my Blaster X-Fi XtremeGamer Fatal1ty Professional card. When I plug it in and test it (in either Configure Speech Recoginition - Windows Vista / or in Counter-Strike Source, Test Microphone Button und

  • R3trans -d gives return code 12,  ECC 6.0 on DB2

    Hi , We have a Ides system ( ECC ) installed on DB2 & suse linux OS , I am not able to start the system today . I found that there is connection error b/w DB2 & SAP.  I have not made any  changes recently & am not sure why it is showning error today.

  • Pre-Order September 12 !

    Can anybody pre-order iPhone 6 Plus from Singapore Apple Online Store Today , September 12 ????