AdvancedDataGrid column resizing not working.

Flex sdk: 3.2
Flash player: 10
OS: Windows
Browser: IE or FireFox
I have an ADG for which column resizing does not work properly.   Unfortunately, I cannot create a standalone example that reproduces the problem.   The problem appears to be fairly straightforward: when the user drags the column to resize, the component appears to compute a delta that uses an incorrect combination of component and parent component X origins.   As a result, as the ADG is placed farther to the right, the error increases.
I have tried the 3.5 and 4.1 sdks but encountered enough new compiler and startup errors that I gave up.
I have developed a workaround by handling the mousedown and columnstretch events on my own.   I discovered that the event object coordinates seemed to be inconsistent and flat out wrong.  On the other hand, I found the ADG mousex coordinates to be more reliable.   On columnstretch, I then set the minWidth of the target column to my computed width  and it seems to fix the problem.   Actually, I don't understand why that would work.
That said, is there a known problem with certain containment hierarchies that can create this situation.   I would prefer not to override builtin behavior unless I have to.   Is it possible that a styling skin could cause this (something I did not add to my standalone example)?   I noticed that a skin was the "target" (not "currenttarget" of the event).
Thanks for any help,
Ross

Any one got any ideas?

Similar Messages

  • Formula Columns are not working in Reports 10g

    Hi,
    We converted the reports developed in Reports 6i to Reports 10g. When we run the report in Reports 10g Builder everything works fine. But when we deploy the same report in Oracle Application Server and invoking the report the formula columns are not working ie., the fields/ placeholder columns which are based on the formula column are not displaying any values in the report.
    Please, someone help us in this regard.
    Thanks & Rgds,
    M T

    What version of Reports do you use..???
    Greetings...

  • Column Highlighting Not Working in Chrome or Firefox but works in IE

    Version  4.1.1.00.23
    Hello,
    I have a classic report that I'm trying to apply dynamic column highlighting on.
    I'm following the discussion from Jari https://forums.oracle.com/thread/2209261
    The columns to be highlighted are being determined from a table that gets set every month and the value are being selected in the report query.
    The javascript that is in the Region Footer is:
    [code]
    <script type="text/javascript">
        $(function()
            $('##REGION_ID# input[name="f01"]').each(function(i)
                if ($x('f01').value == 1)
                    var forcast = "JANFORECAST";
                    var actual  = "JANACTUALS";
                    var mth_var = "JANVAR";
                    var mth_var_pnct = "JANVARPER";
                if ($x('f01').value == 2)
                    var forcast = "FEBFORECAST";
                    var actual  = "FEBACTUALS";
                    var mth_var = "FEBVAR";
                    var mth_var_pnct = "FEBVARPER";
                if ($x('f01').value == 3)
                    var forcast = "MARFORECAST";
                    var actual  = "MARACTUALS";
                    var mth_var = "MARVAR";
                    var mth_var_pnct = "MARVARPER";
                if ($x('f01').value == 4)
                    var forcast = "APRFORECAST";
                    var actual  = "APRACTUALS";
                    var mth_var = "APRVAR";
                    var mth_var_pnct = "APRVARPER";
                if ($x('f01').value == 5)
                    var forcast = "MAYFORECAST";
                    var actual  = "MAYACTUALS";
                    var mth_var = "MAYVAR";
                    var mth_var_pnct = "MAYVARPER";
                if ($x('f01').value == 6)
                    var forcast = "JUNFORECAST";
                    var actual  = "JUNACTUALS";
                    var mth_var = "JUNVAR";
                    var mth_var_pnct = "JUNVARPER";
                if ($x('f01').value == 7)
                    var forcast = "JULFORECAST";
                    var actual  = "JULACTUALS";
                    var mth_var = "JULVAR";
                    var mth_var_pnct = "JULVARPER";
                if ($x('f01').value == 8)
                    var forcast = "AUGFORECAST";
                    var actual  = "AUGACTUALS";
                    var mth_var = "AUGVAR";
                    var mth_var_pnct = "AUGVARPER";
                if ($x('f01').value == 9)
                    var forcast = "SEPFORECAST";
                    var actual  = "SEPACTUALS";
                    var mth_var = "SEPVAR";
                    var mth_var_pnct = "SEPVARPER";
                if ($x('f01').value == 10)
                    var forcast = "OCTFORECAST";
                    var actual  = "OCTACTUALS";
                    var mth_var = "OCTVAR";
                    var mth_var_pnct = "OCTVARPER";
                if ($x('f01').value == 11)
                    var forcast = "NOVFORECAST";
                    var actual  = "NOVACTUALS";
                    var mth_var = "NOVVAR";
                    var mth_var_pnct = "NOVVARPER";
                if ($x('f01').value == 12)
                    var forcast = "DECFORECAST";
                    var actual  = "DECACTUALS";
                    var mth_var = "DECVAR";
                    var mth_var_pnct = "DECVARPER";
                $(this).parents("tr:first").find('[headers="' + forcast + '"]').css({"background-color":"silver"});
                $(this).parents("tr:first").find('[headers="' + actual + '"]').css({"background-color":"silver"});
                $(this).parents("tr:first").find('[headers="' + mth_var + '"]').css({"background-color":"silver"});
                $(this).parents("tr:first").find('[headers="' + mth_var_pnct + '"]').css({"background-color":"silver"});
    </script>
    [/code]
    The highlighting works in Internet Explorer, but the same columns are not being highlighted in Chrome or Firefox and there are no errors being reported in either browser.
    Can someone help me with this?
    Is there additional information I can provide that I haven't.
    Thanks,
    Joe

    Hi Fac,
    This is a classic report. After debugging all 3 browsers I finally found the issue.  First, my javascript isn't very good.
    When I looked at the source of the page, I saw that 'F01' contained the value to determine which month's columns to highlight.
    I then thought that if I evaluated the contents of 'F01', using $x('f01').value, that I could set my variables in my if statements.
    During my debugging of the javascript in each of the browsers I came upon the 'this' object being displayed in the watch window. When I expanded the node to view the contents I saw that it also contained the value of the month to highlight as well.
    I have since changed my 'if' statement to if ($x(this).value == <month number> and the hightlighting is working in all 3 browsers correctly.
    Is this still not the right approach as Jari discusses in his post I referenced above?
    Thanks,
    Joe

  • IF NEW VARIABLE IN SQL QUERY, DISPLAYS AS LAST COLUMN + rpad not working

    Hello everybody and thank you in advance,
    1) if I add a new variable to my sql query to select a column which was already in the table, it shows it in the report table as the Last column to the right. That is, if I add "street" to
    something like city, postcode, street, store, manager, etc, instead of placing street between postcode and store, it places it as i said as the last column to the right.
    2) When values are entered into the cells of the tables, yes, they do expand it to their needed lenght, But, only if it is one word. If it is two, like when i enter the value "very good"
    then it takes two lines so as with a carriage return within the cell, thus, making it too high the row. I tried to padd spaces with rpad but it did not work. something like rpad(stock, 20,' ')
    I must say that the table is in the same page where there is a Form, so as the table grows in lenth it is actually squeezing the form located right on its left.
    3) rpad did not work with the most simple syntax, but less would with what i need because it turns out i am using DECODE in order to do a conversion between value displayed and
    value returned in my select list of values, something like : DECODE (TO_CHAR (stock),'1','Deficient','2','Average','3','Good','4','Very Good',null) AS stock,
    so, i have tried to put the rpad there in several places but either it gave parsing error or it left the column empty not picking any values.
    thank you very much
    Alvaro

    Alvaro
    1) That is standard behaviour of apex builder. You can change the display order with the arrows in the report attributes column report.
    2) You will have to play with the style attributes of the column to accomplice this. For instance style="white-space:pre;" in the Element Attributes of the column attributes. White-space:normal would thread several space (' ') as 1. So no matter how many you add with rpad they will be shown as 1.
    Or set a width either as attibute or in a style class for that column.
    Nicolette

  • Smart Resizing not working for RDWEB Published desktop

    I have a working RDS deployment, I am able to change the screen resolution of the published desktops both in powershell and registry. However if I add the 'smart sizing' option, this does not get published in the .rdp file. I have added the entries
    in registry but that did not work either. Is this a feature that is disabled by default or I am missing something ?

    Sorry for the wrong information. Smart Resizing  is works with older version of rdp client too (in win 8 you can switch this mode via GUI).
    You must distribute updated version of .rdp file (with smart sizing:i:1 line) to RDS client

  • Get clicked column header not working

    Here's what I'm trying to do:
    Have a multi-column listbox of elements.  Allow the user to select a few rows he is interrested in (and the become highlighted).  Allow sorting of the listbox by clicking on the column headers.
    I've got the listbox populating fine, if nothing is selected, the sorting works fine (event structure based on mouseup event of the multi-column listbox, calling to the "get clicked column header" invoke node method sorts the data.  The part that is not working is that If the user has elements selected, sorts the listbox, the same elements are selected (not the same rows, but those same elements in whatever row they ended up after being sorted). 
    What happens is if I select a few rows in the listbox (listbox configured for 0-N elements selectable, highlight entire row), and then click on the column header, the event structure fires off a value change event for the listbox and changes to no elements selected.  if I then click the column header again, it fires off the mouse up event and I get the sorting, but now none of the rows are selected.  Weird thing is that first time I click the column header and it fires the value change event, a call into get clickced column header returns negative value so it won't tell me which column header the user clicked to "empty" the selection.
    Bugger!!!!  doesn't work how I want it to.
    Funny thing is if I change the listbox over to a 1-N elements selectable, and then select a few rows, and then click on the column header, the event structure fires off the mouse up event and I get the sorting and re-selecting exactly as I would expect. 
    What's the deal here?? is this a bug, or expected behavior.  If it's expected, it would be nice if it were a little more consistent between the different types of listboxes.  Also, any good suggestions as to how to allow users to have 0-N selected elements, and be able to sort the listbox and keep the selected rows selected?

    Sounds annoying.  Here is a variation of my goto method for these types of problems:
    Use the MouseDown? event to catch important info like the old value.
    Restore the old value at the end of the Mouse Up event.
    Some details, like making sure that the down and up clicks are in the same cell.
    Use Defer Updates to prevent flashing.
    One of many kluges I have around for the MC Listbox....
    Attachments:
    MCListboxKluge.vi ‏20 KB

  • ADF FACES: af:column sortProperty not working on EL expression

    If you use an EL expression as a sortProperty on an af:column element, the column is not actually made sortable.
    For example, if you have this:
    <af:column sortProperty="#{row.phys.name.firstName}" sortable="true">
    <f:facet name="header">
    <af:outputText value="First Name"/>
    </f:facet>
    <af:outputText value="#{row.phys.name.firstName}"/>
    </af:column>
    The data is properly represented in the table, but the column is not sortable. If you create a "firstName" property directly on the objects in the table data and use a specification like what's shown below, then the column is sortable.
    <af:column sortProperty="firstName" sortable="true">
    Why this difference in behavior? It's very common to have complex object trees and only allowing direct properties to be sortable is a significant limitation.
    So, is this a bug, or is it working as designed?

    My data model is fairly deep, with subordinate objects for things like Names and Addresses. So, a Physician object contains numerous sub-objects that can be accessed using simple methods GetName() and getAddress().
    Given an af:table in which I'm trying to display information on a physician, I'd like to be able to reference the nested data directly and still have it be sortable. Thus, I would like to be able to specify sortProperty="phys.name.lastName" and have the column sort on the value of that nested property.
    Is that enough of an explanation? If not, I'd be happy to expand on it.
    Also, given that you say it is working as designed, I'm assuming that it was designed to be a simple property name directly accessible on the bound variable, correct?
    Thanks.

  • AdvancedDatagrid column widths not fixed after resize

    This is really driving me crazy. I have this advanced datagrid with 3 columns. The first 2 colums have their width set to a fixed size, the third does not have a width set. The datagrid control itself sits in a container and has his width set to 100%. Initially the containers width is set to 0 (nothing visible). When the resize effect is played on the container (setting the width to a fixed value (ex. from 0 to 300) the first time everything looks OK (datagrid scales to 100% and the first 2 colums have their width correctly set. After playing a resize effect (from 300 to 0) everything is hidden again (the intention). Repeating the 2 resize effects (hide and show) several times in a row changes the width of the 2 columns (randomly). How can I solve this? Both fixed size columns have an item renderer (a checkbox for the first column, a button for the second one). Any help is much appreciated.

    Tried that already at the top level...setting the resizableColumns='false' for the advanceddatagrid and also at column level...setting resizable='false'. Same result

  • Auto size of columns is not working after latest update of itunes 8.02

    columns will no longer auto resize correctly after the 8.02 update. the song title column hides song titles on request to resize very annoying please fix this Apple. any thoughts?

    SAME HERE!
    I just created a New List in my iTunes 8.0.2, and noticed the same Columns Width Issue, in List View and Cover Flow View:
    When I Controll-clicked on any Column, and chose Auto Size All Columns, it made the Name Column width more narrow then needed to display it's full content.
    I Controll-clicked on the Name Column, and chose Auto Size Column. It didn't make it wider to extend its width to the the width of the longest Name in that Playlist.
    I tried different Playlists, and another Library and it was the same issue!
    It did work in Music and Podcasts, but not in Videos and Audio Books. Unchecking Columns didn't help.
    Repairing Permissions, and Restarting iTunes and Restarting my Powerbook G4 didn't help either...
    I am sending this bug report to Apple
    http://www.apple.com/feedback/itunesapp.html
    and hope others will do also, if they encounter the same problem.
    And while at it, please join me in asking Apple to make Lyrics Field SEARCHABLE! What an underutilized opportunity that Lyrics Field is. I can store my notes in there, and have clickable web links, if they are in the same format as the one above, in this post. And while at it, make it Searchable on iPhones/iPods, or at least visible!
    Powerbook G4 17', 1.67, 10.4.11, 2GB RAM, all latest Software Updates

  • List view threshold error in list view web part, column indexing not working

    Hello all,
    I have a list with about 8000 items and the list view threshold is set at 5000. I want to filter the list by a certain column ("Title", single line of text) so I indexed that column. I can filter the list (AllItems.aspx) however if I put the list
    on a web part page (in the form of a list view web part), I can't filter by that column. Shouldn't the indexed column allow this?
    Note that the threshold will not be increased and a daily time period to bypass the threshold is in place, but I'm looking for a solution for any time of they day.
    Thanks!

    Thanks for your response. Your suggestion did work! It got me thinking and I took some time to investigate this column indexing stuff a little closer. I had an "ah-ha" moment.
    Regardless of whether the column has an index or not, dynamic drop down filtering in a list view web part will only work if the list view has fewer items than the threshold. This is the critical point I was missing. I was assuming the index would allow for
    drop down filtering.
    Thanks again!

  • Filter base on Person or Group column does not work correctly in sharepoint 2013

    I have a list that contain "Person or Group"column that set "Allow Multiple Selections" to yes.
    In sharepoint 2010 I create view and filter it base on this person or group column equal to [Me]. And it's work correctly.
    Now in sharepoint 2013 when I filter view, base on this person or group column equal to [Me], it does not show me any items, although list has data that person or group column set to me.
    What's wrong?
    Thanks.

    If you want to filter the list view when current user is in the group, then I recommend to use theMembership comparator in the
    query and add it to the view page in SharePoint Designer:
    <Where><Or><Membership Type="CurrentUserGroups"><FieldRef Name="AssignedTo"/></Membership><Eq><FieldRef Name="AssignedTo"/><Value Type="Integer"><UserID Type="Integer"/></Value></Eq></Or></Where>
    More reference:
    http://decodesharepoint.blogspot.com/2010/01/filter-list-views-by-user-groups.html

  • APEX 4.0 "Use Generic Column Names" not working

    Hi,
    I have a report which is a SQL query (PL/SQL function body returning SQL query) in APEX 4.0. For this region i have selected the option "Use Generic Column Names (parse query at run time only)".
    For some reason when I run the page the browser just shows the error "The requested URL /apex/f was not found on this server". This happens only for the region type "SQL query (PL/SQL function body returning SQL query)" . If I choose the report region as SQL query and select the option "Use Generic Column Names (parse query at run time only)" That works fine. This happens only in APEX 4. Is it an apex 4 bug or am I missing something?
    Thanks
    Sashika.

    Hi,
    Just managed to get it running. The Apex 4.0 SQL query (PL/SQL function returning SQL) works just fine. I had a small error in the query itself. In the PL/SQL function I had a referenced page item whose value in the initial run is set to null which is making the fuzz. Just adding an NVL resolved the problem.

  • CSS Style (report column attributes) not working

    I found the CSS Style settings for a report column only seem to work if using a "Standard Report Column". Since the report is wider than the screen, some columns are wrapping, making the report not-that-nice readable.
    Unfortunately I have the need to define some report columns where undesired wrapping occurs as "Display as Text (based on LOV, does not save state)" and tried to avoid wrapping using "white-space:nowrap;" or specifying a fixed width, but it seems I'm out of luck - is there a way around this (other than performing the report query using a huge DECODE clause and setting the column to "Standard Report Column" again, which somewhat renders the LOV useless except for the select list on the data entry form)? This is happening on APEX 3.12.
    Furthermore - is this expected behaviour?
    Thanks in advance,
    Holger

    Furthermore - is this expected behaviour?Looks like it, or it is a [long-standing bug|http://forums.oracle.com/forums/thread.jspa?messageID=1126613]. I've tried it (although only have access to APEX 3.0 at present) and none of the CSS class/style/custom attributes from Column Formatting or Tabular Form Element are being applied. If it's not a bug then it should be raised as an enhancement request.
    In the meantime you'll need to work round it.
    other than performing the report query using a huge DECODE clause Is that necessary due to a static LOV? If it's dynamic based on a table/view then get the look-up value in the query via a join or scalar subquery so you have a Standard Report Column and can use the CSS class/style/custom attributes from Column Formatting.
    Alternatively, stick with the Display as Text from LOV and create a custom named column report template using [colgroup/col|http://reference.sitepoint.com/html/colgroup] to specify fixed width columns.

  • BUG: Dynamic report column headings not working with some templates

    Using Apex 2.0, we are trying to create a vertical report with dynamic labels like &P26_REF_RECEIVED_DATE_L. based on items populated by PL/SQL.
    This seems to work fine for some templates but not for others. With a horizontal report template we get output like:
    <th class="t4ReportHeader" id="REF_RECEIVED_DATE">Received</th>
    <td  headers="Received" class="t4data">29-MAR-2007</td>But with the vertical template we get:
    <th>&P26_REF_RECEIVED_DATE_L.</th><td>29-MAR-2007</td>Also, if we use "default: vertical report, look 1" we see "&P26_REF_RECEIVED_DATE_L." in the output, but with "default: vertical report, look 2" we see "Received".
    Message was edited by:
    Tony Andrews

    have you checked that your report template has a
    valid value for the "Column Heading Template"
    property?This template has nothing in the "Column Heading Template" because it is designed to show the data in this form:
    Heading1 - Value1
    Heading2 - Value2
    Heading3 - Value3
    Hence both the heading and the data appear in the "Column Template 1" property as follows:
    <tr><th class="t3header">#COLUMN_HEADER#</th><td class="t3data">#COLUMN_VALUE#</td></tr>
    Maybe it is an Apex limitation that the #COLUMN_HEADER# value can't be accessed from this subtemplate? Yet somehow it works with "default: vertical report, look 2" (which I realise isn't a template as such).

  • Adobe Air is very smiller than Zinc App - Reposition and Resize not working?

    Hello guys, i have found and readden nice solution like NativeWindow was saved positions and sizes If i close Adobe Air App and i open again like NativeWindow was moved and resized. It is very simple working. And it works fine. 100 % Good! But how does it work with Zinc App because it doesn't work for positions and sizes. How do i fix? I have upgraded code from FileSerializer.as With mdm.Script:
    package
      import flash.events.Event;
      import flash.net.URLRequest;
      import flash.net.URLStream;
      import flash.utils.ByteArray;
      import mdm.Application;
      import mdm.FileSystem;
      import mdm.System;
      public class FileSerializer
      public static function WriteObjectToFile(object:Object, filename:String):void
      var fileExists:Boolean = mdm.FileSystem.fileExists(mdm.Application.path+filename);
      var outByte:ByteArray = new ByteArray();
      outByte.writeObject(object);
      if(fileExists == false)
      mdm.FileSystem.saveFile(mdm.Application.path+filename, "");
      mdm.FileSystem.BinaryFile.setDataBA(outByte);
      mdm.FileSystem.BinaryFile.writeDataBA(mdm.Application.path+filename);
      private static var stream:URLStream;
      public static function ReadObjectfromFile(filename:String):Object
      var fileExists:Boolean = mdm.FileSystem.fileExists(mdm.Application.path+filename);
      if(fileExists == false)
      var obj:Object;
      stream = new URLStream();
      stream.addEventListener(Event.COMPLETE, function(evt:Event):void
      obj = stream.readObject();
      stream.close();
      stream.load(new URLRequest(filename));
      return obj;
      return null;
    That is improved to mdm.Script and it saves sometimes.
    And i have create UserPref.as
    package
      public class UserPref
      public var zincForm:String = "MainForm";
      public var zincType:String = "sizeablestandard";
      //public var zincSWF:String = "MainApp.swf";
      public var zincPosX:Number;
      public var zincPosY:Number;
      public var zincWidth:Number;
      public var zincHeight:Number;
    And i create MainApp.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:mx="library://ns.adobe.com/flex/mx"
      layout="absolute" applicationComplete="applicationCompleteHandler(event)" creatingComplete="creationCompleteHandler(event)">
      <fx:Script>
      <![CDATA[
      import mdm.Application;
      import mdm.Event;
      import mdm.Forms;
      import mdm.mdmForm;
      import mx.events.FlexEvent;
      private var up:UserPref;
      private var form:mdmForm;
      protected function applicationCompleteHandler(event:FlexEvent):void
      mdm.Application.init();
      this.up.zincPosX = this.form.x;
      this.up.zincPosY = this.form.y;
      this.up.zincWidth = this.form.width;
      this.up.zincHeight = this.form.height;
      FileSerializer.WriteObjectToFile(this.up, "pref.zup");
      mdm.Application.onAppExit = function (appevt:flash.events.Event):void
      mdm.Application.exit();
      mdm.Application.enableExitHandler();
      protected function creationCompleteHandler(event:flash.events.Event):void
      this.up = FileSerializer.ReadObjectfromFile("pref.zup") as UserPref;
      if(up) {
      mdm.Application.onFormReposition = function(rpevt:mdm.Event):void
      this.form.x = up.zincPosX;
      this.form.y = up.zincPosY;
      mdm.Application.onFormResize = function(rsevt:mdm.Event):void
      this.form.width = up.zincWidth;
      this.form.height = up.zincHeight;
      }else
      this.up = new UserPref();
      ]]>
      </fx:Script>
      <fx:Declarations>
      <!-- Platzieren Sie nichtvisuelle Elemente (z. B. Dienste, Wertobjekte) hier -->
      </fx:Declarations>
    </mx:Application>
    And i recompile with Zinc Studio 4.0.22 than i try reposition and resize with Zinc Window than i close since saved files and i open again. But why does it not reposition and resize?
    How do i fix? Can somebody help me?
    Thanks best regards Jens Eckervogt

    I little more searching and I found the answer. Check it out here:
    http://forums.adobe.com/message/2879260#2879260

Maybe you are looking for