How to create chart in the opposite direction?

Hello

Excuse me, I want to know, if I want to make a graph bar, but the x-axis must be in the negative direction like that

|
|
|
---------------------

How can I do? Please answer as soon as possible

I found the solution. I know this isn't a perfect solution, but it works.
I'll put it here to avoid spending you much more time thinking and research, let me start:

First of all, I spend the axis y to be in the right part of the graph using placement in the renderer of vertical axis as follows:



When you do that you will see that the table remaining on the left (I want to say series), then how to change? Reorganize all the category axis in order descending (I have faild to do, because I do another solution). I use negative values in the x-axis by set the following:



So I used less as a negative value, and the maximum is zero. Then I made a function of these labels (forthcoming positive values I want) and this function I call using labelFunction as you can see above in the horizontal axis. The body of this function is:

Import mx.charts.chartClasses.IAxis;
private void linearAxis_labelFunc(item:Object,_prevValue:Object,_axis:IAxis):String {}
var x: Number = Number (item);
If (x<>
x = x *-1;
Return x.toString ();

}

as you know, you place it in the CDATA section. This function checks if the value is negative, it will multiply by-1 to be positive and return.

It will now be a correct chart in the opposite direction, remaining just problem which is a DataTip, it gives the negative value...

I have a solution for this, create a new dataTip using dataTipFunction = "dataTip_bar" and showDataTips to true in your table tag, for example:

and it calls a function that create a dataTip. The body of this function is:

Import mx.charts.series.items.BarSeriesItem;
Import mx.charts.HitData;
private void dataTip_bar(item:HitData):String {}
var pSI: BarSeriesItem = item.chartItem as BarSeriesItem;
Return "" + "Population:
Age: "+ psi. Item.Age +"
Male: "+ (Number (psi. (Item.male) * - 1). "ToString() +".

";
}

As you can see I put pSI.item.Age and (Number (pSI.item.Male) * - 1). The age is my y axis and the male is the negative values I have multiply-1 to make it positive.

I hope this will help you. Thanks for trying to help me

Tags: Flex

Similar Questions

  • My mouse pointer moves in the opposite direction, I intend when I use the touchpad on my laptop. It works fine when I use my docking station and external mouse. How can I fix it?

    I'm using Windows Vista with a Sony Vaio laptop.  At the office, I have a docking station with keyboard and external mouse.  Everything works fine with this Setup.  But when I unplug the docking station and use the touchpad on the laptop, my mouse pointer moves in the opposite direction, that is my intention.  I move my finger and the pointer down.  I move to the right and the pointer goes left.  How can I fix?

    Go to start /Control Panel, and then double-click the icon '' mouse. '' When this window opens, select the tab "Touch Pad" at the top. There's a box near the bottom called "Touch sensitivity", click on that. Change the settings a little bit lower than what they are currently at.

  • How to make something move in the opposite direction of the mouse moves?

    Hello dear community.

    I saw on Sarif Industries some cool background animations. Especially the background animation where everyting moves in the opposite direction of the mouse moves.

    So I didn't try to do this kind of animation too. But I don't know how I can do this and I don't know what they call this kind of animation.

    I can't have the code but I do not understand programming languages.

    * For anyone who does not want to go to the linked website *.

    As has said that everything is moving in the opposite direction the mouse moves, but it seems that objects move in a given area and the objects are moving more slowly as the mouse moves.

    I thank in advance and have a nice day

    stage.addEventListener (onMouseMove, MouseEvent.MOUSE_MOVE);

    private void onMouseMove($e:MouseEvent):void

    {

    _myBG.x = - stage.mouseX;

    _myBG.y = - stage.mouseY;

    }

    You have everything you need in there.

    Just twist the operations to achieve the desired effect...

    Add "* 0.5" to make it move more slowly for example.

  • When I'm not moving that my GPS heading in the opposite direction

    I use Google maps and a number of other applications that use the GPS in my phone. In each of them whenever I move, the map will show me (or I guess my phone) pointed in the opposite direction. I start to drive 10-20 feet before he turns around and points to come. It has been like this for a good while and when I put an address to get there that I never know what direction I must go because it will start the route goes in the wrong direction. I constantly have to zoom out to see the entire route to know if I should go back or not. How can I fix?

    It is the internal compass, not GPS. All you need to do to recalibrate it's cards and tilt your phone in the three axes for a bit (until the arrow points to the right path). This will work better outside. Stay out of cars or whatever it is of another metal. Hold the phone flat, tilt the screen forward and back a few times, the. Left and right and then turn left and right. (Or on the flight plan, no body roll and yaw)

  • find the opposite direction of reference

    I have a simple motion application that I am trying to troubleshoot.

    I move my engine from the initial position to the specified user target position to the front. Then, I want to come back home (in reverse). However, each time I have use find reference.flx to find the House, he wants to only move forward.

    How can I find reference.flx find the home in the opposite direction.

    LabView 8.6.1

    OR-Motion 7.7

    PCI 7334

    Paul,

    You can define the meaning of original research and all other settings for a reference move with load reference Parameter.flx.

    Kind regards

    Jochen Klier

    National Instruments

  • Portege Z35-AST3N06 - Alps Trackpad scrolls in the opposite direction

    Hello, my ALPS trackpad scrolls in the opposite direction. In other words, when I want to scroll down a page I have to start at the bottom of the trackpad and scroll upwards and vice versa.

    Is there a way to get the mouse pad to scroll properly?

    Open please Synaptics settings for the touchpad and click the scroll option. You will find option Enable reverse the direction of scrolling

    Disable it and I hope your problem will be solved.

  • The cursor moves in the opposite direction

    Original title: "slider issue"

    about 40% of the time after the start of my laptop, the cursor moves in the opposite direction. If I restart, it usually solves the problem, but sometimes I have to restart 2-3 times... I only use the touchpad and doesn't it have never get tired with a mouse... ideas?

    Cheers, fileeep!

    Tell me everything said on adapter #3 and adapter #6 - What are they, what error messages they say exactly?  These devices work, or if you have problems with them (one of them is the mouse)?  Error 31 means he cannot load device drivers which means that there is something wrong with the drivers or the device is not compatible with this version of Vista or another component on your system (very hard to tell from a distance).  You should always download and install the new drivers, firmware and for two devices having problems (not just drivers - it may be more necessary) just to be sure, that you are not corrupt.  We need to solve the problems with these devices, because I suspect that it is at the origin of this problem.

    If this does not work, we will need to make a complete diagnosis of the entire system.

    Good luck!

    P.S. Please do the test with the mouse - that will tell us a lot.

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Path will not close - generates a line in the opposite direction.

    Illustrator CC 2015.2.0

    I am closing a path and selected ' paths nearby when ends are located 20 pixels"" "".

    Sometimes, the path ends normally. Sometimes it does not close the path (even if I'm within 20 pixels) and generates a short path in the opposite direction...

    Also has anyone seen this problem?

    Jacob,

    I switch between GPU and CPU according to your suggestion, and so far it seems to respond normally. It is an intermittent problem, so I don't know if the problem will appear again until I work with it for a while.

    I hope that you have solved the problem. Thank you.

  • In the opposite direction of the folders is not available

    Just defected from Parallels and am running Win 7 x 64 on a Macbook Pro 2.8 GHZ with 8 GB of RAM. I can choose folders easily, but in the opposite direction of the folders are grayed out?

    Take a look at: working with VMware Fusion and Boot Camp partitions

    Note: when you run a Boot Camp partition directly, the following merge features are unavailable:

    • Suspend and resume
    • Mirrored folders
    • Snapshots and AutoProtect
    • Backup to virtual disk
  • Noob question: move a layer in the opposite direction of another layer animation

    So say I have an icon that I animate on the axis y + 40px, but instead try to back key the other layer each time, is there an expression that I can write to have the other layer move in the opposite direction of the Y the same quantity of units (ex:-40px)?

    Thank you!

    We must define what traffic there is relative to. For example, if you want a layer of mirror movement are another layer from the first image, you could do it like this:

    p = thisComp.layer("leader").transform.position;

    value + [0, p.valueAtTime (0) [1] - p [1]]

    If you want to mirror around a value of y specific reference, it would be like this:

    yRef = 540;

    p = thisComp.layer("leader").transform.position;

    value + [0, yRef - p [1]]

    There are other variations/interpretations - depends on what you are looking for exactly.

    Dan

  • How to browse in the opposite direction?

    How to roll up the numbers in a tree? Suppose I have the following tree (diagram #1). Each node is designated by a number,

    that represents a primary key in a table. Only the terminal nodes have a number (preceded by the sign @) associate with him (see

    Figure #1). How can I write an effective SQL which add the digits of the leaf nodes and roll numbers

    up the entire tree to the root node so the tree final looks like this illustrates the #2 diagram?
    -----------------------
    Diagram #1
    -----------------------
                                (1)
                                 |
                                 |
                       ------------------------
                       |         |            |
                       |         |            |
                      (2)       (3)          (4)@10
                       |          |
                       |           |
                  -------           |
                  |     |           |
                  |     |             |
                 (5)   (6)@20   (7)(@null)
                  |
                  |
                 (8)@30
    
    
    -----------------------
    Diagram #2
    -----------------------
                                (1)@60
                                 |
                                 |
                       ------------------------
                       |         |            |
                       |         |            |
                      (2)@50    (3)@0        (4)@10
                       |         |(if null)
                       |             |
               ----------             |
               |        |              |
               |        |               |
              (5)@30   (6)@20   (7)(@null)
               |
               |
              (8)@30
    DB version is 10.2 and OS is Windows server 2008

    create the table ad_treenode
    (ad_client_id, number (10),)
    ad_org_id number (10),
    node_id number (10),-PK
    parent_id number (10)
    );

    INSERT INTO ad_treenode VALUES (11,11,709,704);
    INSERT INTO ad_treenode VALUES (11,11,710,709);
    INSERT INTO ad_treenode VALUES (1000000,0,1000001,0);
    INSERT INTO ad_treenode VALUES (1000000,0,1000002,0);
    INSERT INTO ad_treenode VALUES (1000000,0,1000003,0);
    INSERT INTO ad_treenode VALUES (1000000,0,1000004,0);
    INSERT INTO ad_treenode VALUES (1000000,0,1000005,0);
    INSERT INTO ad_treenode VALUES (1000000,0,1000006,0);
    INSERT INTO ad_treenode VALUES (1000000,0,1000070,0);
    INSERT INTO ad_treenode VALUES (1000000,0,1000071,0);
    INSERT INTO ad_treenode VALUES (1000000,0,1000072,0);
    INSERT INTO ad_treenode VALUES (1000000,0,1000073,0);
    INSERT INTO ad_treenode VALUES (1000000,0,1000074,1000099);
    INSERT INTO ad_treenode VALUES (1000000,0,1000075,0);
    INSERT INTO ad_treenode VALUES (1000000,0,1000076,0);
    INSERT INTO ad_treenode VALUES (1000000,0,1000077,1000074);
    INSERT INTO ad_treenode VALUES (1000000,0,1000078,0);
    INSERT INTO ad_treenode VALUES (1000000,0,1000079,0);
    INSERT INTO ad_treenode VALUES (1000000,0,1000080,1000070);
    INSERT INTO ad_treenode VALUES (1000000,0,1000081,1000070);
    INSERT INTO ad_treenode VALUES (1000000,0,1000082,1000070);
    INSERT INTO ad_treenode VALUES (1000000,0,1000083,1000070);
    INSERT INTO ad_treenode VALUES (1000000,0,1000084,1000070);
    INSERT INTO ad_treenode VALUES (1000000,0,1000085,1000070);
    INSERT INTO ad_treenode VALUES (1000000,0,1000086,1000070);
    INSERT INTO ad_treenode VALUES (1000000,0,1000087,1000070);
    INSERT INTO ad_treenode VALUES (1000000,0,1000088,1000070);
    INSERT INTO ad_treenode VALUES (1000000,0,1000089,1000074);
    INSERT INTO ad_treenode VALUES (1000000,0,1000090,1000074);
    INSERT INTO ad_treenode VALUES (1000000,0,1000091,1000074);
    INSERT INTO ad_treenode VALUES (1000000,0,1000092,1000074);
    INSERT INTO ad_treenode VALUES (1000000,0,1000093,1000076);
    INSERT INTO ad_treenode VALUES (1000000,0,1000094,1000071);
    INSERT INTO ad_treenode VALUES (1000000,0,1000095,1000071);
    INSERT INTO ad_treenode VALUES (1000000,0,1000096,1000071);
    INSERT INTO ad_treenode VALUES (1000000,0,1000097,1000071);
    INSERT INTO ad_treenode VALUES (1000000,0,1000098,1000074);
    INSERT INTO ad_treenode VALUES (1000000,0,1000099,1000075);
    INSERT INTO ad_treenode VALUES (1000000,0,1000100,1000075);
    INSERT INTO ad_treenode VALUES (1000000,0,1000101,1000075);
    INSERT INTO ad_treenode VALUES (1000000,0,1000102,1000075);
    INSERT INTO ad_treenode VALUES (1000000,0,1000103,1000075);
    INSERT INTO ad_treenode VALUES (1000000,0,1000104,1000075);
    INSERT INTO ad_treenode VALUES (1000000,0,1000105,1000075);
    INSERT INTO ad_treenode VALUES (1000000,0,1000106,1000075);
    INSERT INTO ad_treenode VALUES (1000000,0,1000107,1000075);
    INSERT INTO ad_treenode VALUES (1000000,0,1000108,1000075);
    INSERT INTO ad_treenode VALUES (1000000,0,1000109,1000075);
    INSERT INTO ad_treenode VALUES (1000000,0,1000110,1000075);
    INSERT INTO ad_treenode VALUES (1000000,0,1000111,1000075);
    INSERT INTO ad_treenode VALUES (1000000,0,1000112,1000075);
    INSERT INTO ad_treenode VALUES (1000000,0,1000113,1000075);
    INSERT INTO ad_treenode VALUES (1000000,0,1000114,1000075);
    INSERT INTO ad_treenode VALUES (1000000,0,1000115,1000075);
    INSERT INTO ad_treenode VALUES (1000000,0,1000116,1000075);
    INSERT INTO ad_treenode VALUES (1000000,0,1000117,1000075);
    INSERT INTO ad_treenode VALUES (1000000,0,1000118,1000072);
    INSERT INTO ad_treenode VALUES (1000000,0,1000119,1000072);
    INSERT INTO ad_treenode VALUES (1000000,0,1000120,1000077);
    INSERT INTO ad_treenode VALUES (1000000,0,1000000,1000074);
    INSERT INTO ad_treenode VALUES (1000000,0,1000001,1000380);
    INSERT INTO ad_treenode VALUES (1000000,0,1000002,1000090);
    INSERT INTO ad_treenode VALUES (1000000,0,1000003,1000093);
    INSERT INTO ad_treenode VALUES (1000000,0,1000004,1000372);
    INSERT INTO ad_treenode VALUES (1000000,0,1000005,1000093);
    INSERT INTO ad_treenode VALUES (1000000,0,1000006,1000141);
    INSERT INTO ad_treenode VALUES (1000000,0,1000007,1000073);
    INSERT INTO ad_treenode VALUES (1000000,0,1000008,1000094);
    INSERT INTO ad_treenode VALUES (1000000,0,1000009,1000168);
    INSERT INTO ad_treenode VALUES (1000000,0,1000010,1000122);
    INSERT INTO ad_treenode VALUES (1000000,0,1000011,1000168);
    INSERT INTO ad_treenode VALUES (1000000,0,1000012,1000073);
    INSERT INTO ad_treenode VALUES (1000000,0,1000013,1000119);
    INSERT INTO ad_treenode VALUES (1000000,0,1000014,1000080);
    INSERT INTO ad_treenode VALUES (1000000,0,1000015,1000093);
    INSERT INTO ad_treenode VALUES (1000000,0,1000016,1000080);
    INSERT INTO ad_treenode VALUES (1000000,0,1000017,1000080);
    INSERT INTO ad_treenode VALUES (1000000,0,1000018,1000092);
    INSERT INTO ad_treenode VALUES (1000000,0,1000019,1000117);
    INSERT INTO ad_treenode VALUES (1000000,0,1000020,1000090);
    INSERT INTO ad_treenode VALUES (1000000,0,1000021,1000141);
    INSERT INTO ad_treenode VALUES (1000000,0,1000022,1000073);
    INSERT INTO ad_treenode VALUES (1000000,0,1000023,1000117);
    INSERT INTO ad_treenode VALUES (1000000,0,1000024,1000092);
    INSERT INTO ad_treenode VALUES (1000000,0,1000025,1000117);
    INSERT INTO ad_treenode VALUES (1000000,0,1000026,1000120);
    INSERT INTO ad_treenode VALUES (1000000,0,1000027,1000077);
    INSERT INTO ad_treenode VALUES (1000000,0,1000028,1000116);
    INSERT INTO ad_treenode VALUES (1000000,0,1000029,1000380);
    INSERT INTO ad_treenode VALUES (1000000,0,1000030,1000090);
    INSERT INTO ad_treenode VALUES (1000000,0,1000031,1000139);
    INSERT INTO ad_treenode VALUES (1000000,0,1000032,1000081);
    INSERT INTO ad_treenode VALUES (1000000,0,1000033,1000091);
    INSERT INTO ad_treenode VALUES (1000000,0,1000034,1000120);
    INSERT INTO ad_treenode VALUES (1000000,0,1000035,1000094);
    INSERT INTO ad_treenode VALUES (1000000,0,1000036,1000093);
    INSERT INTO ad_treenode VALUES (1000000,0,1000037,1000229);
    INSERT INTO ad_treenode VALUES (1000000,0,1000038,1000380);
    INSERT INTO ad_treenode VALUES (1000000,0,1000039,1000192);
    INSERT INTO ad_treenode VALUES (1000000,0,1000040,1000094);
    INSERT INTO ad_treenode VALUES (1000000,0,1000041,1000120);
    INSERT INTO ad_treenode VALUES (1000000,0,1000042,1000192);
    INSERT INTO ad_treenode VALUES (1000000,0,1000043,1000080);
    INSERT INTO ad_treenode VALUES (1000000,0,1000044,1000074);
    INSERT INTO ad_treenode VALUES (1000000,0,1000045,1000094);
    INSERT INTO ad_treenode VALUES (1000000,0,1000046,1000091);
    INSERT INTO ad_treenode VALUES (1000000,0,1000047,1000083);
    INSERT INTO ad_treenode VALUES (1000000,0,1000048,1000139);
    INSERT INTO ad_treenode VALUES (1000000,0,1000049,1000080);
    INSERT INTO ad_treenode VALUES (1000000,0,1000050,1000117);
    INSERT INTO ad_treenode VALUES (1000000,0,1000051,1000080);
    INSERT INTO ad_treenode VALUES (1000000,0,1000052,1000120);
    INSERT INTO ad_treenode VALUES (1000000,0,1000053,1000122);
    INSERT INTO ad_treenode VALUES (1000000,0,1000054,1000091);
    INSERT INTO ad_treenode VALUES (1000000,0,1000055,1000229);
    INSERT INTO ad_treenode VALUES (1000000,0,1000056,1000116);
    INSERT INTO ad_treenode VALUES (1000000,0,1000057,1000074);
    INSERT INTO ad_treenode VALUES (1000000,0,1000058,1000079);
    INSERT INTO ad_treenode VALUES (1000000,0,1000059,1000117);
    INSERT INTO ad_treenode VALUES (1000000,0,1000060,1000106);
    INSERT INTO ad_treenode VALUES (1000000,0,1000061,1000083);
    INSERT INTO ad_treenode VALUES (1000000,0,1000062,1000076);
    INSERT INTO ad_treenode VALUES (1000000,0,1000063,1000230);
    INSERT INTO ad_treenode VALUES (1000000,0,1000064,1000117);
    INSERT INTO ad_treenode VALUES (1000000,0,1000065,1000117);
    INSERT INTO ad_treenode VALUES (1000000,0,1000066,1000120);
    INSERT INTO ad_treenode VALUES (1000000,0,1000067,1000112);
    INSERT INTO ad_treenode VALUES (1000000,0,1000068,1000108);
    INSERT INTO ad_treenode VALUES (1000000,0,1000069,1000074);
    INSERT INTO ad_treenode VALUES (1000000,0,1000121,1000073);
    INSERT INTO ad_treenode VALUES (1000000,0,1000122,1000073);
    INSERT INTO ad_treenode VALUES (1000000,0,1000123,1000080);
    INSERT INTO ad_treenode VALUES (1000000,0,1000124,1000080);
    INSERT INTO ad_treenode VALUES (1000000,0,1000125,1000080);
    INSERT INTO ad_treenode VALUES (1000000,0,1000126,1000380);
    INSERT INTO ad_treenode VALUES (1000000,0,1000127,1000380);
    INSERT INTO ad_treenode VALUES (1000000,0,1000128,1000081);
    INSERT INTO ad_treenode VALUES (1000000,0,1000129,1000128);
    INSERT INTO ad_treenode VALUES (1000000,0,1000130,1000128);
    INSERT INTO ad_treenode VALUES (1000000,0,1000131,1000128);
    INSERT INTO ad_treenode VALUES (1000000,0,1000132,1000128);
    INSERT INTO ad_treenode VALUES (1000000,0,1000133,1000128);
    INSERT INTO ad_treenode VALUES (1000000,0,1000134,1000081);
    INSERT INTO ad_treenode VALUES (1000000,0,1000135,1000081);
    INSERT INTO ad_treenode VALUES (1000000,0,1000136,1000135);
    INSERT INTO ad_treenode VALUES (1000000,0,1000137,1000135);
    INSERT INTO ad_treenode VALUES (1000000,0,1000138,1000135);
    INSERT INTO ad_treenode VALUES (1000000,0,1000139,1000081);
    INSERT INTO ad_treenode VALUES (1000000,0,1000141,1000081);
    INSERT INTO ad_treenode VALUES (1000000,0,1000142,1000081);
    INSERT INTO ad_treenode VALUES (1000000,0,1000143,1000082);
    INSERT INTO ad_treenode VALUES (1000000,0,1000144,1000082);
    INSERT INTO ad_treenode VALUES (1000000,0,1000145,1000082);
    INSERT INTO ad_treenode VALUES (1000000,0,1000146,1000150);
    INSERT INTO ad_treenode VALUES (1000000,0,1000147,1000150);
    INSERT INTO ad_treenode VALUES (1000000,0,1000148,1000150);
    INSERT INTO ad_treenode VALUES (1000000,0,1000149,1000150);
    INSERT INTO ad_treenode VALUES (1000000,0,1000150,1000084);
    INSERT INTO ad_treenode VALUES (1000000,0,1000151,1000084);
    INSERT INTO ad_treenode VALUES (1000000,0,1000152,1000151);
    INSERT INTO ad_treenode VALUES (1000000,0,1000153,1000151);
    INSERT INTO ad_treenode VALUES (1000000,0,1000154,1000151);
    INSERT INTO ad_treenode VALUES (1000000,0,1000155,1000084);
    INSERT INTO ad_treenode VALUES (1000000,0,1000156,1000155);
    INSERT INTO ad_treenode VALUES (1000000,0,1000157,1000085);
    INSERT INTO ad_treenode VALUES (1000000,0,1000158,1000085);
    INSERT INTO ad_treenode VALUES (1000000,0,1000159,1000085);
    INSERT INTO ad_treenode VALUES (1000000,0,1000160,1000085);
    INSERT INTO ad_treenode VALUES (1000000,0,1000161,1000085);
    INSERT INTO ad_treenode VALUES (1000000,0,1000162,1000086);
    INSERT INTO ad_treenode VALUES (1000000,0,1000163,1000086);
    INSERT INTO ad_treenode VALUES (1000000,0,1000164,1000086);
    INSERT INTO ad_treenode VALUES (1000000,0,1000165,1000086);
    INSERT INTO ad_treenode VALUES (1000000,0,1000166,1000086);
    INSERT INTO ad_treenode VALUES (1000000,0,1000167,1000086);
    INSERT INTO ad_treenode VALUES (1000000,0,1000168,1000086);
    INSERT INTO ad_treenode VALUES (1000000,0,1000169,1000087);
    INSERT INTO ad_treenode VALUES (1000000,0,1000170,1000087);
    INSERT INTO ad_treenode VALUES (1000000,0,1000171,1000087);
    INSERT INTO ad_treenode VALUES (1000000,0,1000172,1000087);
    INSERT INTO ad_treenode VALUES (1000000,0,1000173,1000087);
    INSERT INTO ad_treenode VALUES (1000000,0,1000174,1000087);
    INSERT INTO ad_treenode VALUES (1000000,0,1000175,1000087);
    INSERT INTO ad_treenode VALUES (1000000,0,1000176,1000087);
    INSERT INTO ad_treenode VALUES (1000000,0,1000177,1000087);
    INSERT INTO ad_treenode VALUES (1000000,0,1000178,1000087);
    INSERT INTO ad_treenode VALUES (1000000,0,1000179,1000088);
    INSERT INTO ad_treenode VALUES (1000000,0,1000180,1000179);
    INSERT INTO ad_treenode VALUES (1000000,0,1000181,1000179);
    INSERT INTO ad_treenode VALUES (1000000,0,1000182,1000179);
    INSERT INTO ad_treenode VALUES (1000000,0,1000183,1000179);
    INSERT INTO ad_treenode VALUES (1000000,0,1000184,1000179);
    INSERT INTO ad_treenode VALUES (1000000,0,1000185,1000088);
    INSERT INTO ad_treenode VALUES (1000000,0,1000186,1000088);
    INSERT INTO ad_treenode VALUES (1000000,0,1000187,1000229);
    INSERT INTO ad_treenode VALUES (1000000,0,1000188,1000230);
    INSERT INTO ad_treenode VALUES (1000000,0,1000189,1000230);
    INSERT INTO ad_treenode VALUES (1000000,0,1000190,1000230);
    INSERT INTO ad_treenode VALUES (1000000,0,1000191,1000230);
    INSERT INTO ad_treenode VALUES (1000000,0,1000192,1000094);
    INSERT INTO ad_treenode VALUES (1000000,0,1000193,1000094);
    INSERT INTO ad_treenode VALUES (1000000,0,1000194,1000095);
    INSERT INTO ad_treenode VALUES (1000000,0,1000195,1000095);
    INSERT INTO ad_treenode VALUES (1000000,0,1000196,1000095);
    INSERT INTO ad_treenode VALUES (1000000,0,1000197,1000095);
    INSERT INTO ad_treenode VALUES (1000000,0,1000198,1000095);
    INSERT INTO ad_treenode VALUES (1000000,0,1000199,1000095);
    INSERT INTO ad_treenode VALUES (1000000,0,1000201,1000095);
    INSERT INTO ad_treenode VALUES (1000000,0,1000202,1000095);
    INSERT INTO ad_treenode VALUES (1000000,0,1000203,1000095);
    INSERT INTO ad_treenode VALUES (1000000,0,1000204,1000095);
    INSERT INTO ad_treenode VALUES (1000000,0,1000205,1000095);
    INSERT INTO ad_treenode VALUES (1000000,0,1000207,1000095);
    INSERT INTO ad_treenode VALUES (1000000,0,1000208,1000095);
    INSERT INTO ad_treenode VALUES (1000000,0,1000209,1000095);
    INSERT INTO ad_treenode VALUES (1000000,0,1000210,1000095);
    INSERT INTO ad_treenode VALUES (1000000,0,1000211,1000095);
    INSERT INTO ad_treenode VALUES (1000000,0,1000212,1000095);
    INSERT INTO ad_treenode VALUES (1000000,0,1000213,1000096);
    INSERT INTO ad_treenode VALUES (1000000,0,1000214,1000096);
    INSERT INTO ad_treenode VALUES (1000000,0,1000215,1000097);
    INSERT INTO ad_treenode VALUES (1000000,0,1000216,1000097);
    INSERT INTO ad_treenode VALUES (1000000,0,1000217,1000097);
    INSERT INTO ad_treenode VALUES (1000000,0,1000218,1000097);
    INSERT INTO ad_treenode VALUES (1000000,0,1000219,1000097);
    INSERT INTO ad_treenode VALUES (1000000,0,1000220,1000118);
    INSERT INTO ad_treenode VALUES (1000000,0,1000221,1000118);
    INSERT INTO ad_treenode VALUES (1000000,0,1000222,1000118);
    INSERT INTO ad_treenode VALUES (1000000,0,1000223,1000118);
    INSERT INTO ad_treenode VALUES (1000000,0,1000225,1000119);
    INSERT INTO ad_treenode VALUES (1000000,0,1000226,1000119);
    INSERT INTO ad_treenode VALUES (1000000,0,1000229,1000094);
    INSERT INTO ad_treenode VALUES (1000000,0,1000230,1000094);
    INSERT INTO ad_treenode VALUES (1000000,0,1000231,1000095);
    INSERT INTO ad_treenode VALUES (1000000,0,1000232,1000095);
    INSERT INTO ad_treenode VALUES (1000000,0,1000233,1000073);
    INSERT INTO ad_treenode VALUES (1000000,0,1000234,1000073);
    INSERT INTO ad_treenode VALUES (1000000,0,1000235,1000121);
    INSERT INTO ad_treenode VALUES (1000000,0,1000236,1000121);
    INSERT INTO ad_treenode VALUES (1000000,0,1000237,1000121);
    INSERT INTO ad_treenode VALUES (1000000,0,1000238,1000121);
    INSERT INTO ad_treenode VALUES (1000000,0,1000239,1000121);
    INSERT INTO ad_treenode VALUES (1000000,0,1000240,1000121);
    INSERT INTO ad_treenode VALUES (1000000,0,1000241,1000121);
    INSERT INTO ad_treenode VALUES (1000000,0,1000242,1000121);
    INSERT INTO ad_treenode VALUES (1000000,0,1000243,1000121);
    INSERT INTO ad_treenode VALUES (1000000,0,1000244,1000121);
    INSERT INTO ad_treenode VALUES (1000000,0,1000245,1000073);
    INSERT INTO ad_treenode VALUES (1000000,0,1000247,1000122);
    INSERT INTO ad_treenode VALUES (1000000,0,1000248,1000074);
    INSERT INTO ad_treenode VALUES (1000000,0,1000249,1000074);
    INSERT INTO ad_treenode VALUES (1000000,0,1000250,1000074);
    INSERT INTO ad_treenode VALUES (1000000,0,1000251,1000089);
    INSERT INTO ad_treenode VALUES (1000000,0,1000252,1000089);
    INSERT INTO ad_treenode VALUES (1000000,0,1000253,1000090);
    INSERT INTO ad_treenode VALUES (1000000,0,1000254,1000074);
    INSERT INTO ad_treenode VALUES (1000000,0,1000255,1000098);
    INSERT INTO ad_treenode VALUES (1000000,0,1000256,1000098);
    INSERT INTO ad_treenode VALUES (1000000,0,1000257,1000098);
    INSERT INTO ad_treenode VALUES (1000000,0,1000258,1000098);
    INSERT INTO ad_treenode VALUES (1000000,0,1000259,1000098);
    INSERT INTO ad_treenode VALUES (1000000,0,1000260,1000098);
    INSERT INTO ad_treenode VALUES (1000000,0,1000261,1000098);
    INSERT INTO ad_treenode VALUES (1000000,0,1000262,1000098);
    INSERT INTO ad_treenode VALUES (1000000,0,1000263,1000098);
    INSERT INTO ad_treenode VALUES (1000000,0,1000264,1000098);
    INSERT INTO ad_treenode VALUES (1000000,0,1000265,1000098);
    INSERT INTO ad_treenode VALUES (1000000,0,1000266,1000098);
    INSERT INTO ad_treenode VALUES (1000000,0,1000267,1000098);
    INSERT INTO ad_treenode VALUES (1000000,0,1000268,1000098);
    INSERT INTO ad_treenode VALUES (1000000,0,1000269,1000098);
    INSERT INTO ad_treenode VALUES (1000000,0,1000270,1000098);
    INSERT INTO ad_treenode VALUES (1000000,0,1000271,1000098);
    INSERT INTO ad_treenode VALUES (1000000,0,1000272,1000098);
    INSERT INTO ad_treenode VALUES (1000000,0,1000273,1000098);
    INSERT INTO ad_treenode VALUES (1000000,0,1000274,1000098);
    INSERT INTO ad_treenode VALUES (1000000,0,1000275,1000098);
    INSERT INTO ad_treenode VALUES (1000000,0,1000276,1000098);
    INSERT INTO ad_treenode VALUES (1000000,0,1000277,1000098);
    INSERT INTO ad_treenode VALUES (1000000,0,1000278,1000098);
    INSERT INTO ad_treenode VALUES (1000000,0,1000279,1000098);
    INSERT INTO ad_treenode VALUES (1000000,0,1000280,1000098);
    INSERT INTO ad_treenode VALUES (1000000,0,1000281,1000098);
    INSERT INTO ad_treenode VALUES (1000000,0,1000282,1000099);
    INSERT INTO ad_treenode VALUES (1000000,0,1000283,1000099);
    INSERT INTO ad_treenode VALUES (1000000,0,1000284,1000099);
    INSERT INTO ad_treenode VALUES (1000000,0,1000285,1000100);
    INSERT INTO ad_treenode VALUES (1000000,0,1000286,1000100);
    INSERT INTO ad_treenode VALUES (1000000,0,1000287,1000100);
    INSERT INTO ad_treenode VALUES (1000000,0,1000288,1000100);
    INSERT INTO ad_treenode VALUES (1000000,0,1000289,1000100);
    INSERT INTO ad_treenode VALUES (1000000,0,1000290,1000100);
    INSERT INTO ad_treenode VALUES (1000000,0,1000291,1000100);
    INSERT INTO ad_treenode VALUES (1000000,0,1000292,1000101);
    INSERT INTO ad_treenode VALUES (1000000,0,1000293,1000101);
    INSERT INTO ad_treenode VALUES (1000000,0,1000294,1000101);
    INSERT INTO ad_treenode VALUES (1000000,0,1000295,1000102);
    INSERT INTO ad_treenode VALUES (1000000,0,1000296,1000102);
    INSERT INTO ad_treenode VALUES (1000000,0,1000297,1000102);
    INSERT INTO ad_treenode VALUES (1000000,0,1000298,1000102);
    INSERT INTO ad_treenode VALUES (1000000,0,1000299,1000103);
    INSERT INTO ad_treenode VALUES (1000000,0,1000300,1000103);
    INSERT INTO ad_treenode VALUES (1000000,0,1000301,1000104);
    INSERT INTO ad_treenode VALUES (1000000,0,1000302,1000104);
    INSERT INTO ad_treenode VALUES (1000000,0,1000303,1000104);
    INSERT INTO ad_treenode VALUES (1000000,0,1000304,1000104);
    INSERT INTO ad_treenode VALUES (1000000,0,1000305,1000105);
    INSERT INTO ad_treenode VALUES (1000000,0,1000306,1000105);
    INSERT INTO ad_treenode VALUES (1000000,0,1000307,1000105);
    INSERT INTO ad_treenode VALUES (1000000,0,1000308,1000105);





    create the table c_elementvalue
    (ad_client_id, number (10),)
    ad_org_id number (10),
    c_elementvalue_id number (10),-PK and ad_treenode.node_id = c_elementvalue.c_elementvalue_id
    name varchar (100)
    );

    INSERT INTO c_elementvalue VALUES (1000000,0,1000070, 'Assets');
    INSERT INTO c_elementvalue VALUES (1000000,0,1000073, 'Sales');
    INSERT INTO c_elementvalue VALUES (1000000,0,1000074, 'Cost of goods sold');
    INSERT INTO c_elementvalue VALUES (1000000,0,1000075, 'Fees');
    INSERT INTO c_elementvalue VALUES (1000000,0,1000076, 'Other income');
    INSERT INTO c_elementvalue VALUES (1000000,0,1000077, 'Other expenses');
    INSERT INTO c_elementvalue VALUES (1000000,0,1000078, 'accounting');
    INSERT INTO c_elementvalue VALUES (1000000,0,1000079, 'Accrual');
    INSERT INTO c_elementvalue VALUES (1000000,0,1000080, 'cash');
    INSERT INTO c_elementvalue VALUES (1000000,0,1000081, 'Receivable account');
    INSERT INTO c_elementvalue VALUES (1000000,0,1000082, 'Investment');
    INSERT INTO c_elementvalue VALUES (1000000,0,1000083, 'Stock');
    INSERT INTO c_elementvalue VALUES (1000000,0,1000085, 'Land and buildings');
    INSERT INTO c_elementvalue VALUES (1000000,0,1000087, "Successfully Depriciation");
    INSERT INTO c_elementvalue VALUES (1000000,0,1000088, 'Other assets');
    INSERT INTO c_elementvalue VALUES (1000000,0,1000089, 'Returns');
    INSERT INTO c_elementvalue VALUES (1000000,0,1000090, "Inventry CMV");
    INSERT INTO c_elementvalue VALUES (1000000,0,1000091, "CoGs deviations");
    INSERT INTO c_elementvalue VALUES (1000000,0,1000092, 'CoGs reviews');
    INSERT INTO c_elementvalue VALUES (1000000,0,1000093, 'Gain currency');
    INSERT INTO c_elementvalue VALUES (1000000,0,1000094, 'Accounts payable');
    INSERT INTO c_elementvalue VALUES (1000000,0,1000095, 'Accrued costs');
    INSERT INTO c_elementvalue VALUES (1000000,0,1000096, "Liabilities Note");
    INSERT INTO c_elementvalue VALUES (1000000,0,1000097, "Long-term liabilities");
    INSERT INTO c_elementvalue VALUES (1000000,0,1000098, 'Payroll expenses');
    INSERT INTO c_elementvalue VALUES (1000000,0,1000099, "Occupancy cost");
    INSERT INTO c_elementvalue VALUES (1000000,0,1000384, ' fresh Late fee revenue ");
    INSERT INTO c_elementvalue VALUES (1000000,0,1000385, "Cash Transfer to turn");
    INSERT INTO c_elementvalue VALUES (1000000,0,1000386, "Cash Transfer of b.ed. College");
    INSERT INTO c_elementvalue VALUES (1000000,0,1000387, 'Cash Transfer of BHM College');
    INSERT INTO c_elementvalue VALUES (1000000,0,1000388, 'Cash Transfer Engg College');
    INSERT INTO c_elementvalue VALUES (1000000,0,1000389, 'Cash Transfer of the MBA College');
    INSERT INTO c_elementvalue VALUES (1000000,0,1000390, 'Transfer Cash of the Polytechnic College');
    INSERT INTO c_elementvalue VALUES (1000000,0,1000391, "Cash Transfer of the school");



    create the table t_trialbalance
    (ad_client_id, number (10),)
    ad_org_id number (10),
    account_ID number (10),-PK and t_trialbalance.account_id = t_trialbalance.t_trialbalance_id or ad_tree.node_id = t_trialbalance.account_id
    amtsourcecr number (10),
    amtsourcedr number (10)
    );


    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000051, 0, 21000);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000029, 21000, 0);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000061, 0, 15900);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000061, 0, 15200);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000061, 0, 10500);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000061, 0, 18500);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000061, 0, 0);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000061, 0, 40400);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000008, 100500, 0);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000012, 34550, 0);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000029, 0, 34550);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000023, 1000, 0);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000029, 0, 1000);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000017, 0, 20000);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000051, 20000, 0);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000051, 0, 20000);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000029, 20000, 0);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000061, 0, 0);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000061, 0, 0);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000061, 0, 0);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000012, 6400, 0);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000029, 0, 6400);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000017, 0, 39695);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000051, 39695, 0);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000061, 0, 1160);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000061, 0, 0);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000008, 1160, 0);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000061, 0, 580);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000061, 0, 48);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000061, 0, 0);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000008, 628, 0);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000023, 1000, 0);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000029, 0, 1000);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000061, 0, 23.34);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000061, 0, 0);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000023, 1000, 0);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000029, 0, 1000);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000017, 0, 63650);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000051, 63650, 0);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000051, 0, 63650);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000029, 63650, 0);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000017, 0, 35795);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000051, 35795, 0);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000017, 0, 51900);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000051, 51900, 0);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000051, 0, 51900);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000029, 51900, 0);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000051, 0, 35795);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000029, 35795, 0);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000061, 0, 13700);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000061, 0, 8120);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000061, 0, 13700);
    INSERT INTO t_trialbalance VALUES (1000000,1000002,1000061, 0, 36200);





    I got two SQL but not until mark
    SELECT LPAD(' ', 2*level-1)||SYS_CONNECT_BY_PATH(node_id, '/') "Path"
          FROM ad_treenode
          START WITH parent_id = 0
          CONNECT BY PRIOR node_id = parent_id;
          
          
    select ad_client_id, ad_org_id, rpad('*',2*level,'*') || node_id , parent_id,
             (select sum(amtsourcecr)
                    from t_trialbalance t2
                       start with t2.account_id = t1.node_id
                       connect by prior node_id = parent_id) amtsourcecr,
             (select name from c_elementvalue where c_elementvalue_id=t1.node_id) name
    from ad_treenode t1
    start with parent_id = 0
    connect by prior node_id = parent_id;
    The o/p I want according to Fig.2 is
    node_id    node_name(from c_elementvalue)      amtsourcecr(from t_trialbalance)
    1                     aaa                                            60
    2                     bbb                                            50
    3                     ccc                                               0
    4                     ddd                                            10
    5                     eee                                            30
    6                     fff                                               20
    7                     ggg                                             null
    8                      hhh                                            30
    Published by: Navneet Singh on March 6, 2012 16:02

    Published by: Navneet Singh on March 6, 2012 16:03

    Hello

    Thanks for posting the CREATE TABLE and INSERT. Be sure to post the results desired from these data. Simplify the problem. In the diagrams, you gave a good example with only 8 knots. Why can not send you sample data (and results) for only 8 knots? Include only the tables and columns that play some role in this problem.

    Here's how you can do almost the same thing in the table scott.emp. Say we want to find the total sal of each employee and all employees working under hom, directly or indirectly. This is to say that we want these results:

    INDENTED_NAME             EMPNO        MGR        SAL  TOTAL_SAL
    -------------------- ---------- ---------- ---------- ----------
    KING                       7839                  5000      29025
      JONES                    7566       7839       2975      10875
        FORD                   7902       7566       3000       3800
          SMITH                7369       7902        800        800
        SCOTT                  7788       7566       3000       4100
          ADAMS                7876       7788       1100       1100
      BLAKE                    7698       7839       2850       9400
        ALLEN                  7499       7698       1600       1600
        WARD                   7521       7698       1250       1250
        JAMES                  7900       7698        950        950
        TURNER                 7844       7698       1500       1500
        MARTIN                 7654       7698       1250       1250
      CLARK                    7782       7839       2450       3750
        MILLER                 7934       7782       1300       1300
    

    For example, MILLER (at the end) has no children, so the total_sal for MILLER is equal to the BOF MILLER sal.
    CLARK has only one descendant, namely MILLER, so CLARK total_sal is the sum of the CLARK sal and sal to MILLER.
    KING is the ancestor of all others in the table, so the KING total_sal is the sum of all sals in the table.

    Here's a way to get these results:

    WITH     got_total_sal     AS
    (
         SELECT       SUM (CONNECT_BY_ROOT sal)     AS total_sal
         ,       empno, mgr, ename, sal
         FROM       scott.emp
         CONNECT BY     empno     = PRIOR mgr
         GROUP BY  empno, mgr, ename, sal
    )
    SELECT     LPAD ( ' '
              , 2 * (LEVEL - 1)
              ) || ename               AS indented_name
    ,     empno, mgr, sal, total_sal
    FROM     got_total_sal
    START WITH     mgr     IS NULL
    CONNECT BY     mgr     = PRIOR empno
    ;
    

    If I understand your problem, it's a little more complicated than that, but only a little. I think that you have the parent-child relationship in a single table and the amount you want to add in a separate table. If so, I suggest you join these tables first, in a subquery and then make an application similar to the one above on the result set of this join.

  • How to create graphics with the constructor syntax

    How you can use the XXXBuilder class to generate graphs? I have this code:
    NumberAxis xa = NumberAxisBuilder.create().lowerBound(0.0).upperBound(10.0).build();
    NumberAxis ya = NumberAxisBuilder.create().lowerBound(-10.0).upperBound(10.0).build();
    ScatterChart<Number, Number> chart = ScatterChartBuilder.create().XAxis(xa).YAxis(ya).build();
    But I get:
    error: the reference to create is ambiguous, the method create() in RegionBuilder and < X, Y > method create() in ScatterChartBuilder match
    ScatterChart < number >, table = ScatterChartBuilder.create (). XAxis (xa). YAxis (ya) infrastructure ();
    ^
    where X, Y are variables of type:
    X extends the object declared in the < X, Y > method create()
    It extends the object declared in the < X, Y > method create()

    How can I resolve the ambiguity?

    Pete
    (it's 1.7.0_06 JDK, JavaFX 2.2.0 - b21)

    Probably a bug in the ChartBuilders or the JDK.

    ScatterChartBuilder.create().build(); // does not work either.
    

    javac is unable to determine if the create() method of SceneChartBuilder or the create() method of RegionBuilder must be applied.
    The AxisBuilders arising also from RegionBuilder work because they do not identify their own obscure create with generic type information method.

    How can I resolve the ambiguity?

    New ScatterChart ;-)

  • How to create seekbar for the generation of animation in flash, html5 canvas

    Hello

    I've created an animation in html5 canvas option in flash CC. I want to control the animation by using the seek bar (progress bar). Can someone guide me how to create the same.

    Thanks in advance.

    var totalFrame;
    var unitFrame;
    var unitSlide;
    var playMode;
    var sliderInitX = 0;
    var currMovie = this.parent;
    var _this = this;
    var BarMc = this["barMc"];
    
    function setSlider()
    {
      totalFrame = currMovie.timeline.duration;
      unitFrame = (totalFrame / (BarMc.nominalBounds.width));
      unitSlide = (BarMc.nominalBounds.width) / totalFrame;
    
      _this.sliderBtn.x = sliderInitX;
    
      playMode = true;
      setInterval(function(){onEnter();}, 33);
    
      BarMc.addEventListener("click", onClick);
    
    }
    
    function onClick(evt)
    {
      var stageXpos = stage.mouseX-(58);
      _this.sliderBtn.x = stageXpos;
      var movFrame = Math.round((_this.sliderBtn.x - (BarMc.x-(BarMc.nominalBounds.width/2))) * unitFrame);
      if ((movFrame< currMovie.timeline.duration) && playMode && (currMovie.timeline.position != currMovie.timeline.duration)) {
      currMovie.gotoAndPlay(movFrame);
      } else if (movFrame > currMovie.timeline.duration) {
      currMovie.gotoAndStop(currMovie.timeline.duration);
      playMode = false;
      } else {
      currMovie.gotoAndStop(movFrame);
      playMode = false;
      }
    }
    
    setSlider();
    
    function onEnter(){
      if (playMode) {
      _this.sliderBtn.x = BarMc.x + (unitSlide * currMovie.timeline.position) - (BarMc.nominalBounds.width/2);
      if (_this.sliderBtn.x > (BarMc.x + (BarMc.nominalBounds.width))) {
      _this.sliderBtn.x = (BarMc.x + (BarMc.nominalBounds.width));
      }
      }
    }
    

    name = barMc bar

    and the handle = sliderBtn

  • How to create indexes on the ordered collection of XMLTYPE table?

    I use Oracle 11.2.0.2.

    Basically, my XML documents have a 3-level hierarchy:

    event

    + - action [1: n]

    + - param [1: n]

    I try to create indexes on the tables of the orderly collection, but cannot get the right syntax...

    I created a table with an XMLType object-relational column:

    CREATE TABLE T_C_RMP_MNTRNG_XML_FULL_IL4 (
      MESSAGE_ID NUMBER(22,0) NOT NULL ENABLE,
      XML_EVAL_ID NUMBER(22,0),
      VIN7 VARCHAR2(7 BYTE),
      FLEET_ID VARCHAR2(50 BYTE),
      CSC_SW_VERSION VARCHAR2(100 BYTE),
      RECEIVED DATE,
      XML_CONTENT SYS.XMLTYPE ,
      DWH_LM_TS_UTC DATE NOT NULL ENABLE,
      CONSTRAINT PK_C_RMP_MNTRNG_XML_FULL_IL4 PRIMARY KEY (MESSAGE_ID)
    ) NOLOGGING TABLESPACE CATALOG
    VARRAY "XML_CONTENT"."XMLDATA"."action" STORE AS TABLE "T_OR_MON_ACTION" (
      NOLOGGING TABLESPACE "CATALOG"
      VARRAY "param" STORE AS TABLE "T_OR_MON_ACTION_PARAM" (
      NOLOGGING TABLESPACE "CATALOG"
      ) RETURN AS LOCATOR
    ) RETURN AS LOCATOR
    XMLTYPE XML_CONTENT STORE AS OBJECT RELATIONAL XMLSCHEMA "http://mydomain.com/cs.xsd" ELEMENT "monitoring";
    
    
    
    
    

    I execute the SELECT statement:

    SELECT EVENT_ID, ACTION_SUB_ID, MESSAGE_ID, ACTION_TYPE, UNIXTS_TO_DATE(ACTION_TIMESTAMP) ACTION_TIMESTAMP
    FROM T_C_RMP_MNTRNG_XML_FULL_IL4, 
    XMLTABLE( 
      'for $i1 in /monitoring , 
      $i2 in $i1/action            
      return element r {              
      $i1/eventId,              
      $i2            
      }' 
      PASSING XML_CONTENT COLUMNS 
      EVENT_ID VARCHAR(40) PATH 'eventId', 
      ACTION_SUB_ID INTEGER PATH 'action/actionSubId', 
      ACTION_TYPE VARCHAR2(100) PATH 'action/type', 
      ACTION_TIMESTAMP NUMBER(13,0) PATH 'action/time' 
    ) T2 
    WHERE ( 
      EVENT_ID IS NOT NULL AND ACTION_SUB_ID IS NOT NULL 
    )
    
    
    
    
    

    The plan of the explain command looks like this (sorry, don't know how to get it formatted any 'eye-team'):

    ----------------------------------------------------------------------------------------------------------

    | ID | Operation | Name                        | Lines | Bytes | TempSpc | Cost (% CPU). Time |

    ----------------------------------------------------------------------------------------------------------

    |   0 | SELECT STATEMENT |                             |  1609K |  6316M |       |  6110K (1) | 20:22:11 |

    |*  1 |  HASH JOIN |                             |  1609K |  6316M |   111 M |  6110K (1) | 20:22:11 |

    |   2.   TABLE ACCESS FULL | T_C_RMP_MNTRNG_XML_FULL_IL4 |   582K |   104 M |       |  5241 (1) | 00:01:03 |

    |*  3 |   TABLE ACCESS FULL | T_OR_MON_ACTION |    32 M |   117G |       |   105K (2) | 00:21:08 |

    ----------------------------------------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):

    ---------------------------------------------------

    1 - access ("NESTED_TABLE_ID"= "T_C_RMP_MNTRNG_XML_FULL_IL4"." ("SYS_NC0001300014$")

    filter (CAST (SYS_XQ_UPKXML2SQL (SYS_XQEXVAL (SYS_XQEXTRACT ((SYS_XMLGEN ("T_C_RMP_MNTRN XMLCONCAT

    G_XML_FULL_IL4 ". "" $ SYS_NC00017 ", NULL, SYS_XMLCONV ("T_C_RMP_MNTRNG_XML_FULL_IL4". "SYS_NC00012$", 0.32,

    (('EC1EEF23FD023A27E04032A06D930A8D', 3, 3783, 1)), SYS_MAKEXML ('EC1EEF23FD023A27E04032A06D930A8D', 3780,

    'T_C_RMP_MNTRNG_XML_FULL_IL4 '. "' SYS_NC00008$ ', 'SYS_ALIAS_0 '. ((("' SYS_NC_ROWINFO$ ')),'/ ID ', NULL), 0,.

    0,20971520,0), 50.1, 2) AS VARCHAR (40)) IS NOT NULL)

    3 filter (CAST (TO_NUMBER (TO_CHAR ("SYS_ALIAS_0". "actionSubId")) AS INTEGER) IS NOT NULL) "

    Note

    -----

    -dynamic sample used for this survey (level = 2)

    -Construction detected no optimized XML (activate XMLOptimizationCheck for more information)

    The XML schema looks like this:

    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns:oraxdb="http://xmlns.oracle.com/xdb" oraxdb:storeVarrayAsTable="true" oraxdb:flags="2105639" oraxdb:schemaURL="http://mydomain.com/cs.xsd" oraxdb:schemaOwner="MYUSER" oraxdb:numProps="23">
      <xs:element name="monitoring" oraxdb:propNumber="3785" oraxdb:global="true" oraxdb:SQLName="monitoring" oraxdb:SQLType="monitoring755_T" oraxdb:SQLSchema="MYUSER" oraxdb:memType="258" oraxdb:defaultTable="monitoring757_TAB" oraxdb:defaultTableSchema="MYUSER">
        <xs:complexType oraxdb:SQLType="monitoring755_T" oraxdb:SQLSchema="MYUSER">
          <xs:sequence>
            <xs:element maxOccurs="unbounded" ref="action" oraxdb:propNumber="3780" oraxdb:global="false" oraxdb:SQLName="action" oraxdb:SQLType="action752_T" oraxdb:SQLSchema="MYUSER" oraxdb:memType="258" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false" oraxdb:SQLCollType="action756_COLL" oraxdb:SQLCollSchema="MYUSER"/>
            <xs:element ref="reservationType" oraxdb:propNumber="3781" oraxdb:global="false" oraxdb:SQLName="reservationType" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
            <xs:element ref="softwareVersion" oraxdb:propNumber="3782" oraxdb:global="false" oraxdb:SQLName="softwareVersion" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
            <xs:element ref="eventId" oraxdb:propNumber="3783" oraxdb:global="false" oraxdb:SQLName="eventId" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
            <xs:element ref="vin" oraxdb:propNumber="3784" oraxdb:global="false" oraxdb:SQLName="vin" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="action" oraxdb:propNumber="3790" oraxdb:global="true" oraxdb:SQLName="action" oraxdb:SQLType="action752_T" oraxdb:SQLSchema="MYUSER" oraxdb:memType="258" oraxdb:defaultTable="action754_TAB" oraxdb:defaultTableSchema="MYUSER">
        <xs:complexType oraxdb:SQLType="action752_T" oraxdb:SQLSchema="MYUSER">
          <xs:sequence>
            <xs:element ref="type" oraxdb:propNumber="3786" oraxdb:global="false" oraxdb:SQLName="type" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
            <xs:element maxOccurs="unbounded" ref="param" oraxdb:propNumber="3787" oraxdb:global="false" oraxdb:SQLName="param" oraxdb:SQLType="param749_T" oraxdb:SQLSchema="MYUSER" oraxdb:memType="258" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false" oraxdb:SQLCollType="param753_COLL" oraxdb:SQLCollSchema="MYUSER"/>
            <xs:element ref="actionSubId" oraxdb:propNumber="3788" oraxdb:global="false" oraxdb:SQLName="actionSubId" oraxdb:SQLType="NUMBER" oraxdb:memType="2" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
            <xs:element ref="time" oraxdb:propNumber="3789" oraxdb:global="false" oraxdb:SQLName="time" oraxdb:SQLType="NUMBER" oraxdb:memType="2" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="type" type="xs:string" oraxdb:propNumber="3791" oraxdb:global="true" oraxdb:SQLName="type" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="type751_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="param" oraxdb:propNumber="3794" oraxdb:global="true" oraxdb:SQLName="param" oraxdb:SQLType="param749_T" oraxdb:SQLSchema="MYUSER" oraxdb:memType="258" oraxdb:defaultTable="param750_TAB" oraxdb:defaultTableSchema="MYUSER">
        <xs:complexType oraxdb:SQLType="param749_T" oraxdb:SQLSchema="MYUSER">
          <xs:sequence>
            <xs:element minOccurs="0" ref="value" oraxdb:propNumber="3792" oraxdb:global="false" oraxdb:SQLName="value" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
            <xs:element ref="key" oraxdb:propNumber="3793" oraxdb:global="false" oraxdb:SQLName="key" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="value" type="xs:string" oraxdb:propNumber="3795" oraxdb:global="true" oraxdb:SQLName="value" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="value748_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="key" type="xs:string" oraxdb:propNumber="3796" oraxdb:global="true" oraxdb:SQLName="key" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="key747_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="actionSubId" type="xs:integer" oraxdb:propNumber="3797" oraxdb:global="true" oraxdb:SQLName="actionSubId" oraxdb:SQLType="NUMBER" oraxdb:memType="2" oraxdb:defaultTable="actionSubId746_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="time" type="xs:integer" oraxdb:propNumber="3798" oraxdb:global="true" oraxdb:SQLName="time" oraxdb:SQLType="NUMBER" oraxdb:memType="2" oraxdb:defaultTable="time745_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="reservationType" type="xs:string" oraxdb:propNumber="3799" oraxdb:global="true" oraxdb:SQLName="reservationType" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="reservationType744_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="softwareVersion" type="xs:string" oraxdb:propNumber="3800" oraxdb:global="true" oraxdb:SQLName="softwareVersion" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="softwareVersion743_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="eventId" type="xs:string" oraxdb:propNumber="3801" oraxdb:global="true" oraxdb:SQLName="eventId" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="eventId742_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="vin" type="xs:string" oraxdb:propNumber="3802" oraxdb:global="true" oraxdb:SQLName="vin" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="vin741_TAB" oraxdb:defaultTableSchema="MYUSER"/>
    </xs:schema>
    
    
    
    
    

    How can I create an index on these tables of the ordered collection to improve performance?

    I found the example at http://docs.Oracle.com/CD/E11882_01/AppDev.112/e23094/xdb_rewrite.htm#ADXDB5859 but am not able to apply to this particular case...

    Thank you in advance...

    If the schema is not annotated and XS: Integer and XS: String are mapped to types of data NUMBER and VARCHAR2 (4000), so you must use in your query to avoid typecasting unnecessary operations.

    You must also use XMLTABLEs chained when accessing a parent/child instead of a FLWOR expression relationship, otherwise the CBO cannot rewrite the XQuery query correctly (maybe it's fixed in the latest version).

    If you make these changes, the plan should show the cleaner predicates:

    SQL > SELECT EVENT_ID, MESSAGE_ID, ACTION_TYPE, ACTION_SUB_ID, ACTION_TIMESTAMP

    2 FROM test_table

    3 XMLTABLE ('/ monitoring ')

    4 COLUMNS XML_CONTENT OF PASSAGE

    5 WAY of VARCHAR2 (4000) EVENT_ID "ID."

    6 actions for XMLTYPE PATH 'action '.

    (7) T1,

    8 XMLTABLE ('/ action')

    Shares of PASSAGE 9 COLUMNS

    NUMBER of ACTION_SUB_ID 10 PATH "actionSubId."

    11 PATH of VARCHAR2 (4000) ACTION_TYPE "type."

    12 WAY of NUMBER ACTION_TIMESTAMP 'time '.

    (13) T2

    14 WHERE EVENT_ID IS NOT NULL

    15 AND ACTION_SUB_ID IS NOT NULL

    16;

    Execution plan

    ----------------------------------------------------------

    Hash value of plan: 1763884463

    ------------------------------------------------------------------------------------------------

    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |

    ------------------------------------------------------------------------------------------------

    |   0 | SELECT STATEMENT |                 |   109.   220K |     6 (17). 00:00:01 |

    |   1.  THE MERGE JOIN.                 |   109.   220K |     6 (17). 00:00:01 |

    |*  2 |   TABLE ACCESS BY INDEX ROWID | TEST_TABLE |    11.   352.     2 (0) | 00:00:01 |

    |   3.    INDEX SCAN FULL | SYS_C007567 |    11.       |     1 (0) | 00:00:01 |

    |*  4 |   JOIN TYPE.                 |   109.   216K |     4 (25) | 00:00:01 |

    |*  5 |    TABLE ACCESS FULL | T_OR_MON_ACTION |   106 S 216K |     3 (0) | 00:00:01 |

    ------------------------------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):

    ---------------------------------------------------

    2 - filter("TEST_TABLE".") (' SYS_NC00012$ ' IS NOT NULL)

    4 - access("SYS_ALIAS_0".") NESTED_TABLE_ID "=" TABLE_TEST. " ("' SYS_NC0000800009$ ')

    filter ("SYS_ALIAS_0". "NESTED_TABLE_ID"="TABLE_TEST" "." " ("SYS_NC0000800009$")

    5 - filter("SYS_ALIAS_0"." actionSubId» IS NOT NULL)

    Note

    -----

    -dynamic sample used for this survey (level = 2)

    Now, if it is still necessary, everything boils down to choosing a technique for index NULL values:

    -composite index with a column not zero or constant

    -FBI

    -bitmap image

    Choose the one that best fits your data, the selectivity and activity on the tables.

  • Does anyone know how to create mirror using the SDK sessions?

    I would like to know how to create a port mirror session. Anyone know?

    Take a look at the ReconfigurevDvs_Task() - http://vijava.sourceforge.net/vSphereAPIDoc/ver5/ReferenceGuide/vim.DistributedVirtualSwitch.html#reconfigure and you will need to specify config spec to be VMwareDVSVspanConfigSpec http://vijava.sourceforge.net/vSphereAPIDoc/ver5/ReferenceGuide/vim.dvs.VmwareDistributedVirtualSwitch.VspanConfigSpec.html , which is for duplication of port

Maybe you are looking for

  • dv2622ca keybard and touchpad frozen

    I can type with the keyboard on the screen only, any suggestions?

  • Compaq C700: update T5750 processor Compaq C700

    Hi all I am using Compaq C700 (Vista version) laptop, I want to update to use VT - X virtualization technology. my current processor is Core2Duo T5750 Version of the BIOS F.33 Chip Set: Intel GM965 Please suggest me justifiable processor virtualizati

  • Can satellite A300 - 15 M - I install a second HDD?

    Hello. I have a SatelliteA300 - 15M. 2 years ago, I bought the laptop. I have the 250 GB hard drive that came with the laptop. Recently, I received my laptop in service of the local store. I noticed that there was an additional location to another ha

  • Invocation of world BB in question 10.2

    Hey all,. I don't know that there is a simple answer.  I've been using this code as a "visit developer page" to invoke the World of BB app to open my page of the seller: Invocation { id: devProfile query { invokeTargetId: "sys.appworld" mimeType: "te

  • BlackBerry Smartphones No internet on at &amp; t

    I recently changed my phone from a BB 8520 Curve to a BB 9630 Tour, my company is At & t. I unlocked my Verizon Tour and everything works well, is text, the text calls are good, but for some reason I have no browser, and if I use the installed Google