Cell width from within my itemRenderer

Hi, can anyone tell me how to get the width of the DataGrid
cell from within my ActionScript itemRenderer (separate
ActiionScript file)? I've tried a few things, but I seem to keep
getting back zero...
Thanks

Using the this.width property in the set data function of my
itemRenderer seems to work... sorta - seems that the set data is
called multiple times, sometimes with the width and sometimes with
0...

Similar Messages

  • Accessing Datagrid row data from within an itemRenderer

    I would like to know how I can access another row's data from within an itemRenderer.  I need to do some formatting of my cells based on other row data. Here's what I mean... I have a datagrid and in row 0 col 2's itemRenderer I would like to access row 1 col 1's data in order to do a comparison so I can determine how to format row 0 col 2's data and so on.  Is there a way from within the item renderer to reach into another row and access the data?  I can't seem to find a clear answer so I thought I'd go to the pro's.
    Thanks!!

    You can use this code to get to the dataProvider of the grid.
    var o:Object = this.parent.parent;
    var dp:Object = o.dataProvider;

  • How to change the font of a cell in an Excel spreadsheet from within LabVIEW?

    The Font property appears to be a Read-Only property and I can not find another ActiveX Property or Method that seems to do the job.

    Devron-mouse,
    You will need to go down to the Range object and get a reference to a cell or group of cells. From there you can get font object for that range and change properties there. (This is of course dependent upon your version of Excel that you have.)
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • Access properties of component within an itemRenderer

    I have a VBox (vbox1.mxml) component that contain a 2 childs
    component, which is Image and Label. Some snapshots of the code is
    <!—vbox1.mxml - ->
    <mx:VBox>
    <mx:Image id="videoImg" width="100%" height="100%"
    cachePolicy="off" source="{data.videoImage}" name="{data.secs}"
    completeEffect="{fadeIn}" />
    <mx:Label id="segmentLabel" width="50%" color="white"
    textAlign="center" text="At {data.secs} secs" />
    </mx:VBox>
    Then I have the main application mxml (main.mxml) that will
    use this component (vbox1.mxml).
    <mx:TileList id="segmentTileList" width="100%"
    height="95%" itemRenderer=" vbox1"
    dataProvider="{vsRO.findVideoDetails.lastResult}"
    rowHeight="120" columnWidth="120" backgroundColor="#646D7E"
    backgroundSize="100%"/>
    Question is how am I able to access the Label value that
    resides within the item renderer? How can I read/write its values
    from my main.mxml?

    The code you have shown here looks correct to me.
    What do you get when you print ${item.value} and ${item.value.subject}?
    Just to query the base assumptions
    - Is it a map of Message objects? Try the expression ${item.value.class} to see what the class of the returned object is.
    - Do you also have a setter for the subject in the Message class?
    I presume the Message and MessageCenter classes are in a package?
    Hope this helps,
    evnafets

  • How can I copy cell formatting from one range to another?

    How can I copy cell formatting from one range to another, including text fonts, colours, borders, etc., so that, for example, I can reuse a formatted reconciliation table again in different parts of a sheet?

    Hi George,
    Wayne found the Spinning Beachball of Death, and you will find it too.
    Numbers is not good at handling large datasets. Might I suggest that you group your data into smaller sets (each month, perhaps?) and save each group in a separate Numbers document. Numbers will not link between documents, but you could have a summary Table within each document. Then comes the "clunky" bit of copying all those summary tables into a master document where you do the final processing of the data.
    Regards,
    Ian.

  • How to create a fixed-width column within an APEX 4 interactive report?

    This thread is a follow-up to {message:id=9191195}. Thanks fac586.
    Partial success: The following code provided by fac586 limits the column width of the Apex 4 interactive report column as long as the column data contains whitespace within a Firefox 3.6 browser:
    <pre class="jive-pre">
    <style type="text/css">
    th#T_DESCRIPTION {
    width: 300px;
    td[headers="T_DESCRIPTION"] {
    width: 300px;
    word-wrap: break-word;
    </style>
    </pre>
    Notes:
    1. The code above is put into the HTML header section for the page.
    2. T_DESCRIPTION is defined as VARCHAR2(2000).
    3. The code above works within the Firefox 3.6.12 browser but does not work within the Internet Explorer 7.0.5730.13 browser.
    I tried adding "float: left;":
    <pre class="jive-pre">
    <style type="text/css">
    th#T_DESCRIPTION {
    width: 300px;
    td[headers="T_DESCRIPTION"] {
    width: 300px;
    word-wrap: break-word;
    <font color="red"> float: left;</font>
    </style>
    </pre>
    Notes:
    1. "float: left;" does not require whitespace and successfully splits the column between characters in lieu of whitespace.
    2. "float: left;" shrinks the cell height and allows the page background to show through... couldn't determine how to fix this.
    3. The code above works within the Firefox 3.6.12 browser but does not work within the Internet Explorer 7.0.5730.13 browser.
    I've done some more research, but I still haven't discovered how to create a fixed-width column within an APEX 4 interactive report that displays properly within an Internet Explorer 7 browser.
    Any ideas and help will be appreciated.

    Thanks for your help with this!
    <pre class="jive-pre">
    what theme are you using?
    </pre>
    A customized version of theme 15.
    <pre class="jive-pre">
    Floating a table cell makes no sense (to me anyway).
    </pre>
    You are correct. I was just trying a different approach ... trying to think out of the box.
    <pre class="jive-pre">
    Think you'll need to create an example on apex.oracle.com with sample data
    if there are any further problems.
    </pre>
    Great suggestion! The code your provided works in the Firefox 3.6.12 browser, but still doesn't work within my Internet Explorer 7.0.5730.13 browser.
    UPDATE:
    I have recreated the problem at apex.oracle.com, you can use the following information to check it out:
    URL: http://apex.oracle.com/pls/apex/f?p=43543:100::::::
    Workspace: IR_FIXED_WIDTH_COLS
    Username: GUEST
    Password: Thx4help
    Application: 43543 - CM_RANDY_SD
    Note: Table name is TEST_DATA
    The following code provided by fac586 works in both Firefox 3.6 and IE7 using default theme "21. Scarlet" at apex.oracle.com; however, it doesn't work when I use a copy of our customized theme "101. Light Blue":
    <pre class="jive-pre">
    <style type="text/css">
    .apexir_WORKSHEET_DATA {
    th#T_DESCRIPTION {
    width: 300px;
    max-width: 300px;
    td[headers="T_DESCRIPTION"] {
    max-width: 300px;
    word-wrap: break-word;
    </style>
    <!--[if lt IE 8]>
    <style type="text/css">
    /* IE is broken */
    th#T_DESCRIPTION,
    td[headers="T_DESCRIPTION"] {
    width: 300px;
    </style>
    <![endif]-->
    </pre>
    Any idea what in the theme could be causing the fixed width column to be ignored in IE 7?
    Edited by: CM Randy SD on Dec 7, 2010 11:22 AM

  • Changing states from within a component

    Let's say that I have a TileList that is rendering data in a
    VBox. Eventually the TileList fills up and starts scrolling. I want
    to change states when clicking on item in the TileList.
    I don't want to place the click-attribute in the TileList,
    because it will change states when I am scrolling the list without
    actually selecting anything.
    I want to say click="currentState='state2'" inside the VBox,
    but that does not work because state2 is at the root level, and I
    don't know how to get to the root-level (in lack of a better word)
    from withing the component.
    This is not the proper syntax, so misunderstand me the right
    way here... Is there an equivallence to
    click="currentState='_root.state2'" in mxml?
    Thanks for any suggestions or best practices. I want the easy
    way out.
    This is the general structure...
    <mx:Application>
    <mx:states>
    <mx:State id="state1"/>
    <mx:State id="state2"/>
    <mx:State id="state3"/>
    </mx:states>
    <mx:TileList dataprovider="{...}">
    <mx:itemRenderer>
    <mx:component>
    <mx:VBox id="ClickThisBoxToChangeStates">
    <mx:Image/>
    <mx:Label/>
    </mx:Vbox>
    </mx:component>
    </mx:itemRenderer>
    </mx:TileList>
    </mx:Application>

    Your assumption is right.
    It doesn't work because there is no state2-state defined
    within the mx:component.
    In the documentation about changing states it says that I can
    go from application level and change states within a component;
    like this: click="currentState='mycomponent.anotherstate'" but not
    how I can change a state at application level from within a state.
    When I try, it says (at runtime) that the state is not defined.
    So I don't know why <mx:VBox
    click="currentState='state2'"/> doesn't work.
    I apprechiate your expertese a lot.

  • Importing tables with linked cell data from excel to indesign

    Hey,
    I'm designing a catalog and have been linking the tables in InDesign from a spreadsheet in excel. In my spreadsheet, I am linking cells from a master sheet to another sheet so that I when I update the information on one sheet, it will update throughout the spreadsheet.
    Now that I have the linked cells set up in my spreadsheet, I've inputed the tables into InDesign but: the table cells in InDesign containing linked cells from within the spreadsheet do not appear.
    I've gone through all the import table options in InDesign and cannot find a way to make it work.
    Does anyone have an answer or input?
    Thanks,
    KT

    When we are updating the excel sheet it automatically updates the link in InDesign and it's continually changing. Does CSV break the links in excel or does it keep them and allows InDesign to read the linked cells as well?
    Thanks for your response!

  • Problem with Characteristic cell width

    Hi All,
    I'm struggling to get the characteristic cell width using the table interface to work correctly.
    I have coded the following in CHARACTERISTIC_CELL in the table interface :
    move 'style="width:230px"' to c_cell_td_extend.
    This appears to work in the Dev system but moving to production, it no longer applies and the charcteristic cells are the size of the values from the queries.
    Would anyone have had this same prob or an idea of how to force the charcteristic cells to be the width I want them ?
    The reason I am doing this is because I need to place multiple table results above one another and when I remove the cell headings the columns misalign ...
    Thanks
    Chris

    Chris,
    if your modifier is working properly , you should be able to see the width=230px in the HTML source of the template.
    Another way could be to attach this width to a stylesheet class and attach the class to the cell instead.
    Arun
    Assign points if useful

  • Setting the cell width in a Tabular Form (SQL Query (updateable report) )

    version 3.2.1
    I have a Tabular Form (SQL Query (updateable report) ) and I have a column that is a VARCHAR2(4000) that when displayed extends the cell to the full length (which of course makes sense).
    How can I set the width of this cell to something like 30 or 50 and wrap the contents?
    Thanks,
    Joe

    Scott,
    Thank you for replying.
    Your suggestion kinda worked. I say kinda because when the report is first displayed the cell is the full width and appears to ignore the width setting. There is a Select List on the report to restrict some of the data that is displayed. When a selection is made from this Select List, it appears that the cell width is then adjusted to what was set, but not for every selection from this Select List.
    I made the width entry in Tabular Form Element - Element Width
    Any idea why the width setting is ignored?
    Thanks,
    Joe

  • How to call a Oracle Form from within the APEX

    Hi,
    I have a requirment where need to call a oracle form from within the Oracle APEX application?
    I will appriciate if can someone help me out.
    Thanks

    Hi,
    are you working with Forms 6i or 10g?
    If you want to call a forms 10g page. Just use a button with javascript:
    - Target type: URL
    - URL Target: javascript:window.open ('http://<server>:<port>/forms/frmservlet?config=<conf>','Forms window');
    With Forms 6i you can open the directory where your forms file is inside (works just with IE):
    <script type="text/javascript">
    function fnc_window()  {w = open('C:\\FormsFiles', "winLov","scrollbars=yes,resizable=no,width=600,height=400");
    if (w.opener == null)
    w.opener = self;
    </script>Or execute the forms file with vbscript (IE only):
    <script language = "vbscript">
    sub fnc_forms()
    dim progName
    progName = "c:\FormsFiles\myForm.exe"
    set oShell = createobject("wscript.shell") 'create a shell
    '***use the line below to call your app, defined above with the "progName" variable:
    oShell.run(progName)
    end sub
    </script>

  • HTML control doesn't allow browser pop-ups from within page

    I've noticed that pop-ups are not allowed from inside of the
    mx:HTML control. Both JavaScript popups and the targeting of a new
    browser window from within both an HTML page or SWF movie doesn't
    seem to work. I would hope that the user's default browser would be
    utilized in this sort of instance.
    For example: if I load www.cnn.com using the HTML control
    into an AIR app - and then click an ad on that site - under normal
    circumstances a new browser window would be launched - in AIR
    nothing happens.
    Is this a limitation or is there some sort of workaround?
    Thanks,
    David

    In order to accomplish this one has to override the createWindow function of the htmlhost class
        override public function createWindow(windowCreateOptions : HTMLWindowCreateOptions) : HTMLLoader {
            //Option1:
            //var initOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
            //var bounds:Rectangle = new Rectangle(windowCreateOptions.x,windowCreateOptions.y,windowCreateOptions.width,windowCre ateOptions.height);
            //var htmlControl:HTMLLoader = HTMLLoader.createRootWindow(true, initOptions, windowCreateOptions.scrollBarsVisible, bounds);
            //htmlControl.htmlHost = new HTMLHost2();
            //if(windowCreateOptions.fullscreen){
            //htmlControl.stage.displayState =
            //StageDisplayState.FULL_SCREEN_INTERACTIVE;
            //return htmlControl;
            //Option2:
            //var initOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
            //var window:NativeWindow = new NativeWindow(initOptions);
            //window.visible = true;
            //var htmlLoader2:HTMLLoader = new HTMLLoader();
            //htmlLoader2.width = window.width;
            //htmlLoader2.height = window.height;
            //window.stage.scaleMode = StageScaleMode.NO_SCALE;
            //window.stage.addChild(htmlLoader2);
            //return htmlLoader2;

  • Debugging a Jato webapp from within Forte 3.0

    Does anybody know the steps involved in debugging a Jato app from
    within the Forte 3.0 IDE?
    I can successfully package my Jato app into a war file and copy it to
    an external TomcatServer/webapps directory and run it with no
    problems. However, when I set Forte 3.0 to use its internal Tomcat
    3.2 server, and from the IDE select 'WEB-INF' then 'Execute', Forte
    does launch the Tomcat 3.2 webserver and an external browser, however
    it starts at the root directory of 'http://<machinename>:8080/' -
    that's it! I don't know how to setup Forte to start with a url
    of 'http://<machinename>:8080/module1/login'.
    I'm not looking for detailed steps (although that would be nice),
    just areas to research. Does this concern Tomcat's Context creation,
    Web Module Groups, JSP & Servlet compilation? Forte's documentation
    is all over the place with no clear steps or answers.

    The following is the web page generated by Jdev 3.0 to use my servlet. I did a complete install of Jdev 3.0 with no customization or configuration changes...
    ============================================
    <html>
    <head><title>Servlet Launcher</title></head>
    <body>
    <center>
    <h2>Servlet Launcher</h2>
    <h3>In order to run a servlet, click on the servlet's icon or hyperlink text</h3>
    <table border=1 width="100%">
    <tbody>
    <tr><tr><th colSpan=2>Registered Servlets</th></tr></tr>
    <tr>
    <td>package1.DbServlet1</td>
    </tr>
    </tbody>
    </table>
    </center>
    </body>
    </html>
    ============================================
    The following is the reply...
    ============================================
    10060 Connection timed out
    The web server specified in your URL could not be contacted. Please check your URL or try your request again.
    This error could have been caused by:
    Bad / misspelled URL
    Following an invalid link
    Your network connection and/or transient conditions on the Internet
    Load conditions on the web server.
    Microsoft Proxy Server v2.0
    Proxy Server : s1903161.wei.org
    Via :
    ============================================
    I am running Personal Web Manager on this workstation but it makes no difference whether or not this service is running....
    Since I've installed right out of the box without making any configuration changes, I thought this should work no problem.?

  • Cannot send email from within iPhoto

    Using OX X 10.7.5 cannot send email from within iPhoto.  I get this error message: "Your email did not go through because the server did not reply."
    If I change the preference to use email, everything goes fine but I lose the formatting feature.

    iPhoto Menu ->
    Preferences ->
    Accounts ->
    Delete and recreate your email settings.
    Alternatively, use Apple's Mail for the job. It has Templates too - and more of them. Check out the Stationery...

  • How can I execute an external program from within a button's event handler?

    I am using Tomcat ApacheTomcat 6.0.16 with Netbeans 6.1 (with the latest JDK/J2EE)
    I need to execute external programs from an event handler for a button on a JSF page (the program is compiled, and extremely fast compared both to plain java and especially stored procedures written in SQL).
    I tried what I'd do in a standalone program (as shown in the appended code), but it didn't work. Instead I received text saying the program couldn't be found. This error message comes even if I try the Windows command "dir". I thought with 'dir' I'd at least get the contents of the current working directory. :-(
    I can probably get by with cgi on Apache's httpd server (or, I understand tomcat supports cgi, but I have yet to get that to work either), but whatever I do I need to be able to do it from within the button's event handler. And if I resort to cgi, I must be able to maintain session jumping from one server to the other and back.
    So, then, how can I do this?
    Thanks
    Ted
    NB: The programs that I need to run do NOT take input from the user. Rather, my code in the web application processes user selections from selection controls, and a couple field controls, sanitizes the inoputs and places clean, safe data in a MySQL database, and then the external program I need to run gets safe data from the database, does some heavy duty number crunching, and puts the output data into the database. They are well insulated from mischeif.
    NB: In the following array_function_test.pl was placed in the same folder as the web application's jsp pages, (and I'd tried WEB-INF - with the same result), and I DID see the file in the application's war file.
            try {
                java.lang.ProcessBuilder pn = new java.lang.ProcessBuilder("array_function_test.pl");
                //pn.directory(new java.io.File("K:\\work"));
                java.lang.Process pr = pn.start();
                java.io.BufferedInputStream bis = (java.io.BufferedInputStream)pr.getInputStream();
                String tmp = new String("");
                byte b[] = new byte[1000];
                int i = 0;
                while (i != -1) {
                    bis.read(b);
                    tmp += new String(b);
                getSelectionsDisplayTextArea().setText(getSelectionsDisplayTextArea().getText() + "\n\n" + tmp);
            } catch (java.io.IOException ex) {
                getSelectionsDisplayTextArea().setText(getSelectionsDisplayTextArea().getText() + "\n\n" + ex.getMessage());
            }

    Hi Fonsi!
    One way to execute an external program is to use the System Exec.vi. You find it in the functions pallet under Communication.
    /Thomas

Maybe you are looking for

  • Error while deploying project with external variables

    Hi, We are facing issue to deploy a project which contains external variables. In the process of publishing, we check true - Smart Publish. In the deployment process I get a screen where we define the Deployment Topology. On clicking Deploy button, t

  • NVIDIA DRIVER OR MSI DRIVER

    i have MSI N770 2GB TF OC. do I have to install the driver from the NVIDIA site or from the MSI website? ====================== I also have a MSI N760 2GB TF OC, a new use for 6 months, but already suffered damage. My PC can not boot, and the motherb

  • Late 2008-09 MacBook Pro Broken Hinge

    This machine has been about as babied as a machine can be yet this week the hinge has started breaking in a corner until it's broken completey. It's so obvious that there is some glue failure. You can see it. It's like brittle ""Gorilla Glue". I took

  • BAPI to reject purchase requisition

    Dear All, Iu2019m looking forward a BAPI to reject purchase requisition. I found below BAPIs for purchase requisition but I couldn't  find any BAPI to reject requisition? I wonder whether a BAPI exists to reject purchase requisition or not. Thanks in

  • New to JSP - what do i need

    Is there a step-by-step guide to setting up an environment for running JSP pages. I can't seem to get my pages to work, they fall over with the syntax error when declaring variables. I'm using IIS. Also, does anyone know what the extension .do is use