Same Datagrid Position

I have two datagrid (a and b) with different dataprovider,
but with the same number of columns.
I want that the position of columns in both datagrid is the
same.
If i drag the first column of datagrid called a in the third
position, i want tha automatically the first column in datagrid b
goes in the third position.
There a way to do this??
Thank's
Marco

That makes the situation a lot more complex. It is complex
because although you can sort of "lock" a column (make it so it
cannot be moved) by setting the "draggable" property for the column
to false, there are some interesting cases, depending on what you
want.
For example, in the code I gave you, if you set the
"draggable" property for the first column in the two DataGrids to
false, you cannot drag that column from its position as the first
column, but you CAN drag column 2 or 3 to be the first column.
Even more problematic is a case where you have 6 columns, and
columns 2 and 4 should always the the 2nd and 4th columns.
It could be done, but it would take several hours (days???)
of investigation.

Similar Messages

  • Leopard spotlight finds always the same false positives

    leopard spotlight finds always the same false positives, with any keyword. How fix this if I don't want to exclude the folders from search?

    never mind-the files/folders were dated Jan 1, 1970. saved them new and erased the old ones.
    Message was edited by: schmunzelmonster

  • Project freezes every time at same slide position on mobile devices.

    (Using Captivate 6.1 on Mavericks running in 2014 iMac. This project contains 32 slides, some with audio (played using the advanced action for Play Audio), and some without, and it works well on desktop Mac and PC. It is published as SWF/HTML5, and the link from the webpage points to the multiscreen.html file.)
    In spite of working smoothly on regular desktop computers, it's a different story in mobile devices. When tapping on the smartshape arrow button to advance to the next slide (from slide 5 to 6), the button's appearance changes to show that it's in the down/clicked position as expected, but it stays there and doesn't return to the up/unclicked appearance for anywhere between 3:11 to 3:30 on my iPad 4 (on an iPhone 4 running iOS 6 the screen doesn't advance even after 20 minutes). The slide doesn't advance to the next screen or go back to the previous one. Instead, the browser freezes (tried in Safari and Dolphin on tablet), meaning it won't go back, forward, add a tab, view another tab, etc. After the 3:00+ time period, the button that was in the down position completes the clicking action/sound, and then the browser and slide work properly. I can go back and forth over the problem location after that with no more freezing.
    The consistent slide location where the concern occurs seems to suggest that it's not a broadband connection issue (or the delay would happen in other slide positions also). In trying to fix the problem, I deleted the slide where the problem was occurring, but the slide that filled in its vacancy (slide 6 became slide 5 after the deletion) caused the same problem. This leads me to think that it's nothing in the specific slide content causing the issue, but that it has something to do with the 5th slide position. The slides that were in the number 5 position have either text-only or a .png file, and the same smartshape navigation buttons as all the other slides so they don't use more resources than anything else. But, the temporary freezing acts similar to when something is hogging the resources of the browser. It doesn't hog the device resources though, because I can quit the app, or go to other apps during the freeze with no problem. But, after the initial freeze is passed, then there is no more delay at the problem-point or anywhere else in the project.
    This pause isn't okay, because users will quit the project if they have to wait that long to advance to the next slide.
    I'm at the end of my knowledge and ideas, and need help. Is there anything that I can try to remove this delay from mobile apps?

    Sorry this is so wordy. Just hoped to give specific information so a savvy person reading it could know how to help.
    Any ideas with the intent to help will be sincerely appreciated.

  • Employee Trasfers with same HR Positions

    HI...HR Experts
    We would like to build a system control in HR space that when ever there are INTERNAL Transfer happens , We want HR Admins should not be able to transfer the person with Same Position.
    May we request experts to throw some light on our requirement.
    Rgds
    PR

    Hi,
    Authorization can be given at the following fields only, we can not control the authorization at PLANS-Position level.
    Authorization Field        Long Text
    INFTY                             Infotype
    SUBTY                           Subtype
    AUTHC                           Authorization Level
    PERSA                           Personnel Area
    PERSG                           Employee Group
    PERSK                           Employee Subgroup
    VDSK 1                         Organizational Key
    PROFL                           Authorization Profile
    regards,
    mohammed

  • Way to close/reopen file and keep the same desktop position

    When closing a Text Edit document, I would like to have it reopen in the exact same position on the desktop as when I closed it. Is there any way to make this happen? It seems to remember if the window was resized, but it always puts the document at the bottom of the desktop.

    I have no idea why it isn't working for you. All of Apple's apps use that feature. You might want to launch Disk Utility, select your boot volume, and repair permissions. If that doesn't fix things, create another admin user account, log into it, and see if the problem persists. If so, report back. If not, then the original account's has problems (conflicts, corrupted preferences, or cache file problems). Preferential Treatment can examine the preferences and there's other products that will clean the cache files, but I don't use any, so I have no recommendations.

  • XML childs and parent in same DataGrid

    Hi, if I have a XML with this structure:
    <product>
         <description>Cel Motorola 12</description>
         <childS>
              <child>secret data</child>
         </childS>
    </product>
    In my data grid, I put:
    <mx:DataGrid id="dataGridFaixas" dataProvider="{_myXML}" left="0" right="0" top="0" bottom="0" fontSize="9" borderStyle="none">
        <mx:columns>
            <mx:DataGridColumn dataField="product.childS.child" headerText="Cd. Site" width="50"/>
        </mx:columns>
    </mx:DataGrid>
    This is ok, but the data exibth is: "<child>secret data</child>" and no "secret data"...
    help?

    I decided flattern de XML strutcture before set as dataProvider on datagrid, revolve... :|

  • Interactive report - Problem in coming back to the same cursor position

    Hi,
    I have an interactive report. In the first list of the output, a set of data will be displayed. In that first list, if I double click on a field, it goes to a Custom Screen. There, I have to enter some data and save and come back to the first list of the output. This is what my report does.
    I have no issues when the output in the first list is one page. But, when I have the output for more than one page I have a problem. I am going to the 2nd or 3rd page of the output. From there I double click on the field and it goes to the Custom screen. After saving the data in the screen, when I click BACK button, it displays the report from the first page again instead of displaying the output in the 3rd page where I double clicked.
    My requirement is, when I come BACK from the screen to the list, the cursor should stay in the same page where I double clicked earlier. It shouldn't go to the first page of the list again.
    To my knowledge, we have to use a statement in the code after displaying the output.
    Could someone tell me how to do this..?
    Thanks in advance.
    Best Regards,
    Paddu.

    Have a look at the ABAP command "scroll list"... you will need to hold onto the values of sy-lsind, sy-cpage, and sy-staro prior to the call to your popup, and then after you come "BACK" from this, you will need to re-write your report followed by something like:
    scroll list index gs_rpt-lsind   "gs_rpt used to hold the previous SY- values
      to page gs_rpt-cpage
         line gs_rpt-staro.
    Jonathan

  • Anchor order for floats not the same as positioned frames?

    Hi,
    FM 8.04, Win XP.
    When creating two anchored frames (set to "Float" and "Top of column") in the body text, where Anchor A is a couple of lines above above Anchor B in the text, Frame B is actually displayed on the same page and Frame A on the next page.
    Is this behavior typical for floats in FM? Sure, I had expected that the frames were floated, but that the anchor order was respected.
    Thanks,
    Mats

    Mats,
    IIRC, the float option specifies that the frame can move to the next
    column that can physically hold it. So this functionality is also
    dependent upon the frame and column size, not just the order of the
    frames. I also believe that the top/bottom settings have priority over
    the float setting (as by it's nature, the user has stated that they
    don't care where this frame ends up).
    In your example, with the second frame being set to top of column,
    this takes away room from the second frame set to float, so it
    migrates to the next available column that it can fit in.

  • How to make the new Array start at the same position as the previous and randomise only the newObjec

    So i am currently trying to make 5 boxes/ships (3Blue and 2 Green)appear  in a random position(1st-Gree,2nd- Blue,3rd-blue,4th-Green,5th-Green or in some other random way) i the upper corner of the stage.Make them move down.Then make a new 5 boxes and position them in the same starting position as the previous 5 and make only them get randomised (not with the previous 5,what it is doing at the moment).And do this while they are moving down.  so the code so far i have is this :
    import flash.events.Event;
    var shipCount:Number;
    var shipCount2:Number;
    var shipArray:Array = new Array();
    var shipArrayPosition:Array = new Array();
    var counter:int = 0
    var positionsX:Array = ["50","100","150","200","250",]
    addEventListener(Event.ENTER_FRAME, everyFrame)
    function everyFrame(ev:Event):void{
              counter++
              if(counter % 70 == 0){
                             doShips()
              positionShips()
              trace(shipArray.length )
    function doShips() {
              shipCount = 3;
              shipCount2 = 2;
              var gap = 10;
              for (var i:int = 0; i < shipCount; i++) {
                        var s = new Ship;
                        shipArray.push(s);
                        //s.x = s.width/2 + (s.width* i) + gap*i
                        //addChild(s)
                        //shipArrayPosition.push(s);
              for (var j:int = 0; j < shipCount2; j++) {
                        s = new Ship2;
                        shipArray.push(s);
              var array:Array=new Array();
              while (shipArray.length>0) {
                        var index:uint = Math.floor(Math.random() * shipArray.length);
                        array.push(shipArray[index]);
                        shipArray.splice(index,1);
              shipArray = array;
              //shipsArray has been randomized
              for (var k:int = shipArray.length - 1; k >= 0; k--) {
                        shipArray[k].x = positionsX[k]
                        addChild(shipArray[k])
    function positionShips() {
              for (var i:int = shipArray.length - 1; i >= 0; i--) {
                        shipArray[i].moveDown() //what the code in the Ship and Ship2 class does -> only: this.y += 3
    and how to make them stay at one position.Not to move in any X position when the new 5 are added

    This one is more efficient yet because it removes ships that moved out of view:
    import flash.display.MovieClip;
    import flash.display.Sprite;
    import flash.events.Event;
    var numShips:int = 5;
    var shipCount:int = 3;
    var shipArray:Vector.<Sprite> = new Vector.<Sprite>();
    var counter:int = 0
    var positionsX:Array = [];
    init();
    function init():void
              // populate positions
              for (var i:int = numShips - 1; i >= 0; i--)
                        positionsX.push(50 * i);
              addEventListener(Event.ENTER_FRAME, everyFrame);
    function everyFrame(e:Event):void
              counter++
              if (counter % 70 == 0)
                        doShips();
              positionShips();
              trace(shipArray.length);
    function doShips():void
              var gap = 10;
              var s:MovieClip;
              var shipsLine:Sprite = new Sprite();
              shipsLine.cacheAsBitmap = true;
              addChild(shipsLine);
              shipArray.push(shipsLine);
              shuffle(positionsX);
              for (var i:int = numShips - 1; i >= 0; i--)
                        s = i < shipCount ? new Ship() : new Ship2();
                        s.x = positionsX[i] + gap;
                        shipsLine.addChild(s);
              shipsLine.y = -shipsLine.height;
    function shuffle(a:Array):void
              for (var i:int = a.length - 1; i >= 0; i--)
                        var r:int = Math.floor(Math.random() * (i + 1));
                        var t:Object = a[r];
                        a[r] = a[i];
                        a[i] = t;
    function positionShips():void
              for each (var shipLine:Sprite in shipArray)
                        shipLine.y += 3;
                        // remove line that moved out of stage
                        if (shipLine.y > stage.stageHeight + shipLine.height)
                                  removeChild(shipLine);
                                  shipArray.splice(shipArray.indexOf(shipLine), 1);

  • How to determine the u2018equivalent position of the same organizationu2019?

    Hi,
    "Position change is a transfer from one position to an equivalent position within the same org reporting structure and under the same chief position"
    How to determine the u2018equivalent position of the same organizationu2019?
    Cheers.

    u can identity the position with help of the Holder
    say for ex: A is the holder of the Position for Executive now the user performent an event called change of position so he changed to Manager (here we can find the chageing on the basis of some parameter so i have taken holder as Parameter as we dont know which has changed or wht has changed)
    in this case we can use the report   RHDESC20  se38
    not an exact solution for ur question
    will try to find some other way

  • Positions mass move with same position name?

    Hi All,
    1) Is there any direct way to change Organization of a Position?
    We tried performing Mass move between the organizations with the same source and target position names. But we faced the issue - 'The target position already exists outside the target organization' since the same position cannot exist in 2 organizations.
    2) We tried a changing the position name to a temporary name and then performed mass move between the orgs from the temporary position to original position. This worked to some extent - The position and the assignments having this position got updated correctly, but the position hierarchy still shows up the Temporary position name.
    Is there any solution for our issue 1? or any approach for issue 2?
    Application version is 12.1.2.
    Many Thanks in advance!

    In Oracle HRMS Positions have very strict criteria.
    1. They have to be unique within a BG. Hence you cannot have two positions with same name inside one BG even if they are in different Organizations.
    2. You cannot change the job or Organization of a position once created.
    and so on..
    what you are trying to do here violates the basic definition of position in HRMS. You will not be able to change the organization of a position and treat it as the same old position. This is functionally not correct.
    In such cases, the best approach is to have a segment for the position KFF holding the short name for the organization it belongs to. Thus whenever you want to change the organization of the position, what you actually do is create a new position, since one of the segment values changes in the position definition.
    Coming to the approaches you have tried:
    1. Mass move cannot circumvent the basic tenet of HRMS position to allow you create new position with same name but different organization. Hence this approach will not help at all.
    2. I am not sure how this happens. But as discussed above changing organization of a position will definitely cause issues somewhere or the other.

  • Copy + Paste in exact same position

    Hi. In PS7.
    Have 2 files open with same dimensions. I have a little number on the first file I would like to copy & paste to the second. I want it in the same exact position on the second file as it appears on the first.
    I thought if you dragged the layer from the first file onto the second while holding shift key would do it, but it only places the number on the center of the page.
    Is there something else I should be doing for this?
    Thanks!
    Jules

    I apologize. The 2 files were not the same size. They were off by not much, but not the exact same. Holding the Shift key does work while dragging.
    I will use your Duplicate Layer tip sometime tho, Ed.
    Thanks. Delete this if needed.
    Sorry to waste space on the posts!
    Jules

  • Datagrid column text styles

    I have a datagrid column that contains strings in this
    syntax: ##% (##%)
    When the percentages are over 0% I'd like the text to be
    green; when the percentages are under 0%, I'd like to change the
    text to red. Apart from breaking this into two columns, how can I
    change the colors of different strings inside the same datagrid
    column?
    Thanks,
    Tom

    Tom,
    One way to do this would be to make a custom ItemRenderer
    based on a Label for your dataGrid column. Then, just test whether
    you have positive or negative values for your dataField. If it is
    negative, use a setStyle('color', 0xFF0000) for red. Here is a
    basic example:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Label xmlns:mx="
    http://www.adobe.com/2006/mxml">
    <mx:Script>
    <![CDATA[
    override public function set data(value:Object):void {
    super.data = value;
    if (value != null)
    if(value.fieldValue >= 0) //fieldValue will need to match
    your dataField value from your dataProvider of your dataGrid. You
    might need to convert it to an int to compare.
    setStyle("color", 0x00DD00);
    } else {
    setStyle("color", 0xDD0000);
    super.invalidateDisplayList();
    ]]>
    </mx:Script>
    </mx:Label>
    Then in your main app:
    <mx:DataGridColumn headerText="Drill Type"
    dataField="fieldVAlue" width="105"
    itemRenderer="renderers.RedGreen"/>
    This assumes that your mxml component is named
    'RedGreen.mxml' and is in the 'renderers' directory. You can adjust
    this to fit your project as needed. I hope this helps.
    Vygo

  • Problem with Checkbox ItemRenderer in a DataGrid

    Hello Everyone,
    I'm using a datagrid with two columns, which is used as a data entry grid. The first column has a simple text input field and the 2nd column has a checkbox as an itemrenderer. On creationComplete event, I'm passing an arraycollection as the dataprovider for this datagrid. The arraycollection:
    <mx:ArrayCollection id="psAC">
            <mx:source>
                <mx:Array>
                    <mx:Object PaText="line1" PaCheckbox="0" />
                    <mx:Object PaText="line2" PaCheckbox="0" />
                    <mx:Object PaText="line3" PaCheckbox="1" />
                    <mx:Object PaText="line4" PaCheckbox="0" />
                    <mx:Object PaText="line5" PaCheckbox="0" />
                </mx:Array>
            </mx:source>
        </mx:ArrayCollection>
    There is a datagrid (dGa) in the main application. On click of this, a pop up window comes up which has the same datagrid layout(i.e, 2 columns). And this is where the data is entered. Here, if the user checks the check box, I have assigned a value of '1' for the 2nd column of the arraycollection. THis code(below) works fine.
    <datagrid in pop up window>
    <mx:DataGridColumn headerText="Best Possible Action?" textAlign="center" width="200" editable="false">
                                <mx:itemRenderer>
                                    <mx:Component>
                                       <mx:CheckBox>
                                            <mx:Script>
                                                    <![CDATA[
                                                         override public function set data(value:Object):void{
                                                             if(value.PaCheckbox == 1){
                                                                this.selected = true;
                                                            }else{
                                                                this.selected = false;
                                                    ]]>
                                                </mx:Script>
                                            <!--<mx:change>
                                                <![CDATA[
                                                    if(this.selected == true){
                                                         data.PaCheckbox = 1;
                                                     }else{
                                                         data.PaCheckbox = 0;
                                                ]]>
                                            </mx:change>-->
                                        </mx:CheckBox>
                                    </mx:Component>
                                </mx:itemRenderer>
                            </mx:DataGridColumn>
    But I would also need to set the PaCheckbox value to 0 or 1, based on teh check condition of the check box. I tried using change event (commented in the code above). But there I get an error: Cannot access a property or method of a null object reference. I checekd in debug mode, there the data object is null! Can you please help me on how to pass back the values(0 o 1) to my arraycollection, based on the checkbox's status?
    Cheers,
    Deepak

    heyo,
    I solved it.....
    i was missing this line of code super.data = value; in the ovverriden function...Once we have this line, the data object will have teh field names and their values in it, which can be accessed on the change event...

  • Showing data from a web service in a DataGrid

    My web service returns a complex XML document (ie. not a
    "flat" one). I'm able to consume the web service and create an
    XMLList and XMLListCollection based on the return value. If I make
    parts of the XML simple ("flat") I'm also able to bind values into
    a DataGrid row. However, I haven't succeeded in trying to display
    XML attribute values in this same DataGrid or values from elements
    in other XML branches of the XML.
    So, I have an XML structure
    <root>
    <element1>
    <se1>A</se1>
    <se2>B</se2>
    </element1>
    <element2>
    <se3 value="1"/>
    <se4 id="2">C</se4>
    </element2>
    </root>
    I can easily display (A,B) in a DataGrid, but how about (A,
    B, 1, 2, C) in a single row?
    I can find a bit similar examples in the internet, but for
    some reason I can't make it work. I'm using web services from
    ActionScript with a handler, I imported WSDL into the project, I
    don't have any MXML WebService components (would they make a
    difference?), I haven't specified E4X anywhere (should I ?). I can
    display single attribute values in a normal text field.
    Could someone please tell me the trick or point some
    directions to look at. Thanks.

    Hi Sholmi,
    Have a look at this link.
    [http://www.****************/Tutorials/BI/WebService/Index.htm]
    Thanks,
    Vishall.

Maybe you are looking for