How to specify the dragdrop function for an added list of dynamically?
I enclose you dynamically a list item to a component of the canvas and the list to be able to accept items from other lists as a droppable. Due to the nature of my application, I create list when running and it cannot be created in mxml (since there is an undetermined number of these lists, which is known only at run time). My problem is that I can't find a way to set a custom function dragDrop on such an added list of how dynamic (I need such a function of error checking). I enclose the code for a version of my problem here.In this example, in the list below, I can drag the items to the first canvas and have my custom function executed but how would do the same for the second canvas? Flex Builder doesn't let me specify the property "dragDrop" of the List object. (My guess is I could have her labeled as something else?) I'm not sure.)
Thank you very much in advance!
Vineet
list.addEventListener (DragEvent.DRAG_DROP, dragDropHandler)
Tags: Flex
Similar Questions
-
I'm new to bi publisher and in some cases, it seems that people are coding for what they want. How can I find more information about the possible functions that are available.
For example: Sum. I used it and it works. I just what to know whatelse is available and how to code. <? sum (#)? >
Howard
Please take a look at this material. It covers almost most of the features of BI Publisher.
http://docs.Oracle.com/CD/E28280_01/bi.1111/e22254.PDF
Go through the sub topics to know more functions RTF on
Extended function in RTF templates support
Creation of RTF models
Creating RTF templates using the template for Word generator
-
How to use the Pivot function for range group in oracle SQL
Hello
Hello!!!
I need to display the data in the format below. There are 2 columns 1 is State and another is rate.
State < 100 100-199, 200-299 300-399 400-499, 500-599 600-699 700-799 800-899 900-999 > = 1000 Total
AK 1 2 0 4 1 4 4 35 35 4 1 25
AL 0 0 2 27 10 17 35 2 2 35 0 103
AR 0 0 1 0 0 2 2 13 13 2 0 6
AZ 0 1 2 14 2 14 13 3 3 13 0 57
CA 0 0 1 6 2 7 3 4 4 3 0 34
Developed the sub query but unable to use the beach on the pivot function. Please help on this.
(select (SELECT short_description
OF CODE_VALUES
WHERE CODE_TYPE_CODE = ad. STATE_TYPE_IND_CODE
AND VALUE = ad. STATE_CODE
) STATE,
Nr.rate
N-NEUTRAL
c contacts,
announcement of addresses,
xref_contacts_addresses xca,
neutral_rates nr
where n.contact_id = c.contact_id
and n.address_id = ad.address_id
and xca.address_id = ad.address_id
and xca.contact_id = c.contact_id
and nr.contact_id = n.contact_id
and nr.rate_frequency = 'HOUR')Like this
with t as ( select 'AL' state, 12 value from dual union all select 'AL' state, 67 value from dual union all select 'AL' state, 23 value from dual union all select 'AL' state, 12 value from dual union all select 'AL' state, 12 value from dual union all select 'AL' state, 78 value from dual union all select 'AL' state, 34 value from dual union all select 'AL' state, 4 value from dual union all select 'AL' state, 12 value from dual union all select 'AL' state, 15 value from dual union all select 'AZ' state, 6 value from dual union all select 'AZ' state, 123 value from dual union all select 'AZ' state, 123 value from dual union all select 'MA' state, 23 value from dual union all select 'MA' state, 120 value from dual union all select 'MA' state, 456 value from dual union all select 'MA' state, 11 value from dual union all select 'MA' state, 24 value from dual union all select 'MA' state, 34 value from dual union all select 'MA' state, 87 value from dual union all select 'MA' state, 23 value from dual union all select 'MA' state, 234 value from dual union all select 'MA' state, 789 value from dual union all select 'MH' state, 54321 value from dual ) -- End of test data select state, nvl(count(decode(value, 0, 0)), 0) "<100", nvl(count(decode(value, 1, 1)), 0) "100-199", nvl(count(decode(value, 2, 2)), 0) "200-299", nvl(count(decode(value, 3, 3)), 0) "300-399", nvl(count(decode(value, 4, 4)), 0) "400-499", nvl(count(decode(value, 5, 5)), 0) "500-599", nvl(count(decode(value, 6, 6)), 0) "600-699", nvl(count(decode(value, 7, 7)), 0) "700-799", nvl(count(decode(value, 8, 8)), 0) "800-899", nvl(count(decode(value, 9, 9)), 0) "900-999", nvl(count(decode(value, 10, 10)), 0) ">=1000" from ( select state, case when value < 100 then 0 when value between 100 and 199 then 1 when value between 200 and 299 then 2 when value between 300 and 399 then 3 when value between 400 and 499 then 4 when value between 500 and 599 then 5 when value between 600 and 699 then 6 when value between 700 and 799 then 7 when value between 800 and 899 then 8 when value between 900 and 999 then 9 when value >= 1000 then 10 end value from t ) group by state
-
How to set the default text for a text entry area dynamically?
I do a simulation and grabbing a my user text entry. I store in a variable and you want to use as the default text for a text entry later in the simulation box. It seems like it would need current for a software simulation. However, I don't see a way to set the default text. If I put the variable in a legend, I would use the syntax $$variablename$ $. I tried to fix this in the text by default, but it did not work. It is not interpreted as a variable. Does anyone do this? Please share. Thank you.
I had a need to do that as well... put a variable as default text name in a TBE field.
I have a widget AS3 to do this, which can be found here. There a Cp 4 demo file that does exactly what you describe.
I would like to know how it goes...
Jim Leichliter
-
How to create the constructor function for a pl/sql table?
I created a PL/SQL type as table below:
create or replace type typ_tbl_des_text is table of the typ_tof_des_text
OK so far, but I would like to have a constructor function which would be subject to validations and raise_application_error when a validation condition is not met.
How to do this?
The typ_tof_des_text that I created with a constructor function, so that the record-level validation are performed in the constructor. And I think the postings between several records shall be made in a constructor for typ_tbl_des_tex, but cannot figure out how to create such a constructor.
BEDE wrote:
So, if I have understood correctly, to a plsql table type, I can't have a member procedure. Or can I? I mean, just as for a type of failure I can have one or more constructors and possibly several procedures of Member.
For the standard tables in PL/SQL, you will need to create your own API (using procedures and functions) to handle beyond the basics provided by the language. No constructors and methods as it is no o - o.
After thinking a little deeper, I reformulate what I said earlier and actually wants to have a member procedure called add_item, who would be first to check if an item with a key value exists and, if so, it would be up-to-date and so not only extend the plsql table.
Two options.
As we already mentioned, an associative array can be considered - note however that this structure of table has name-value pairs.
Another method is to use a TWG (global temporary table). You define the structure of the once initial table. When a session uses the structure of the table, private copying is instantiated for this session. When the session ends, this copy is destroyed. The table is a temporary structure for this session only.
It can include indexes and so on – which means you can use the constraints of primary keys, unique indexes, secondary indexes and so on.
TWG scales are much better than collections or arrays that require a PGA (expensive private server) memory. In addition, SQL can be used natively against a GTT - unlike the arrays and collections.
-
How to get the same functionality for string as java in oracle 10g
Example:
In java, if I use
-> > >
String.format ("% 03d", 11) then he will give me the result 011
String.format ("% 03d", 1111) then he will give me the result 1111
I need also same result in Oracle for a stored procedure. I used to_char() and lpad() function but could not get the desirable.
I'm new on this. Please forgive for this silly question and help me.Or with the prefix "FM", which makes the FILLING for us:
to_char(col1, 'fm9999099')
-
How to pass the Getprevsteplog function for the scenario of the child?
I have a scenario parent and I need to go to the previous step of name for the child scenario, more specifically, I need to pass this name for the first stage of the scenarios of the child.
How to do this?An example setting a refreshing variable against a logical schema Oracle would be
SELECT ' %=odiRef.getPrevStepLog ('STEP_NAME') % of <> ' OF THE DOUBLE
or SQL server
SELECT ' %=odiRef.getPrevStepLog ('STEP_NAME') % of <> .
See you soon
John
http://John-Goodwin.blogspot.com/ -
How to remove the "subject" prefix for each message list in thunderbird
Hello.
It seems now that on the screenshot.
In each row shows "object:" prefix. I have not found in thunderbird not google how to disable.
Help, please.It is not a built-in feature, so I suspect an add-on, possibly from Conversations. Run Safe Mode (hold SHIFT when you start TB) and see if it persists.
-
How to specify the tablespace for a India primary key in create table statement
How to specify the storage space for a primary key index in a create table statement?
Does the following statement is true?
Thank youCREATE TABLE 'GPS'||TO_CHAR(SYSDATE+1,'YYYYMMDD') ("ID" NUMBER(10,0) NOT NULL ENABLE, "IP_ADDRESS" VARCHAR2(32 BYTE), "EQUIPMENT_ID" VARCHAR2(32 BYTE), "PACKET_DT" DATE, "PACKET" VARCHAR2(255 BYTE), "PACKET_FORMAT" VARCHAR2(32 BYTE), "SAVED_TIME" DATE DEFAULT CURRENT_TIMESTAMP, CONSTRAINT "UDP_LOG_PK" PRIMARY KEY ("ID") TABLESPACE "INDEX_DATA" ) TABLESPACE "SBM_DATA";
Published by: qkc November 9, 2009 13:42As orafad noted, you can use the documentation using ESCALATION clause, i.e.
SQL> ed Wrote file afiedt.buf 1 CREATE TABLE GPS 2 ("ID" NUMBER(10,0) NOT NULL ENABLE, 3 "IP_ADDRESS" VARCHAR2(32 BYTE), 4 "EQUIPMENT_ID" VARCHAR2(32 BYTE), 5 "PACKET_DT" DATE, 6 "PACKET" VARCHAR2(255 BYTE), 7 "PACKET_FORMAT" VARCHAR2(32 BYTE), 8 "SAVED_TIME" DATE DEFAULT CURRENT_TIMESTAMP, 9 CONSTRAINT "UDP_LOG_PK" PRIMARY KEY ("ID") USING INDEX TABLESP ACE "USERS" 10 ) 11* TABLESPACE "USERS" SQL> / Table created.
Justin
-
How to call the javascript function in ADF
I have the javascript function stored in a .js file external (try to reuse in another application). How can call the javascript function for an event of ADF faces component. I need to I am a newbie to ADF, all ideas are appreciated.
Kind regards
Surya
Published by: sgodavar on Sep 24, 2010 11:44Include JavaScript to the jsff/jspx as page:
Call it like:
Type = "dblClick" / >
Amit -
How to activate the search function. I get no match found when I search for words on the scanned PDF document
A scanned document is just an image; even if it contains text, it is not searchable.
Put text in a scanned image available, you will need to perform the recognition of text (OCR), which can be made with Acrobat, but not the free player.
-
How to specify the color for LR space?
How to specify the color for LR space?
chlonini said:
How to specify the color for LR space?
LR only uses the ProPhoto RGB color space. You cannot specify any other
color space (work). When you export pictures, you can specify a
different color space to convert. Or if you use an external editor.
You can choose what color space to send to the external editor.
-
What happened to the 'Reply' function for e-mail messages? How to do that now?
The new Firefox is not easy to use. The former had the possibilities of action listed for easy access. Now, we have to hit a drop down selection menu that adds additional steps to perform the desired actions. There is also no place that allows the 'Reply' function for messages. Why is it that were eliminated?
Experts in software, why they do things easier when everything they do is complicate its use for common people?Thank you. It was the answer to the problem. Why must it be grounded if secretly for novices must go through this process to get assistance to the fulfilment of the tasks? I know that's not your problem, what the site does, but I'm glad that you were able to help me and solve the problem.
Thanks again for your expertise. -
How can you specify the default value for the undefined array elements
According to aid LV, the tables have two default values, the normal default value and the default value for the undefined array elements.
I assume that there must be a way to specify the default value for later, but I can't find it anywhere. Any ideas?
I know that you can drag the item out of the table container. Change the default value on this scalar element. Then drag the item in table tank.
-
How to create the shared library for linux real-time target in labVIEW Windows?
I use myRIO running linux in real time. In my project, I need to pack some C code, so I tried the node library function call.
I know that I should use the tools compile cross - compile linux on Eclipse to compile c code in linux .so library. But the problem is that call library function node does not recognize the .so file because my labVIEW runs on a Windows PC.
What should I do to fix and how to combine C code with labVIEW during programming for devices shipped as myRIO?
Basically, you must also create a Windows DLL that exports the same functions. These functions can be empty stubs if you do not want to run the code correctly on Windows, otherwise you will need to consider how to implement the equivalent functionality on the Windows API.
Then you can write in your node library call as the name of the library "
. "*" and the name of the shared library Windows " .dll" while the Linux version is called "name of your library > .so". LabVIEW will replace the * after the comma in the name of library with everything that is the preferred extension shared library for the platform it is running on and therefore load the right shared library. Alternatively you can wrap call all the nodes of the library in a structure that contains the node library in the case of Linux RT and all what you want to run on other platforms in the case of default or a case of specific platform, call the conditional compilation.
Maybe you are looking for
-
Preview/Export photos using the lightning to SD-Reader
Hey guys,. can someone tell me why he is unable to get a preview of the photos in full screen using the lightning to SD card reader. It is also not possible to export images to an SD card using this camera. It's a bit boring, my father uses his ipad
-
Explorer Windows continues to stop. Help please.
I am writing in hopes that you can help me with the Windows Explorer. I use Firefox and my Vista 32 System. In the last 2 days, a box appeared in the middle of my screen saying "Windows Explorer has stopped working". Then it gives me two options 1.
-
Is not in fact not play, but he buffs like 5 seconds, then it stops and it starts playing disordered, at the same time, the sound will disappear. Thank you for your response. PS There occur also in VLC media player and I'm having a problem for my onl
-
Reinstalled operating system needs
I have windows 7 Edition home premium 64 bit on my computer and its full of viruses cause I downloaded a game that had a virus and I need to re install OS I have a product key in case it came with it, but I do not have a disk to re install it is anyw
-
SkyScout come back for the 2nd issue since upgrade to the 9000 "BOLD" to a version of impeller 8000 series: I transferred my CONTACTS and other PARAMETERS of my 8000 series BB successfully using the SOFTWARE of OFFICE of BB. With the new sounds avail