Tree control and drop target data
Hi
I can't seem to find an answer to my problem anywhere.
Is it possible to read the data from the node over which an
item is dragged and accept or reject a drop if for example the node
data has attribute droppable?
Attached is the ArrayCollection used to store dummy data.
I would like to allow dragging elements to Private folder and
disallow dragging them to Public folder.
Thanks for any help.
Yes. Do the logic in the dragOver and dragDrop handlers.
Tracy
Similar Messages
-
How to insert row in table control and save the data in tables
Hi,
I have one table control i am displaying data into table control ,
my problem is : i want to display data into read mode in table control.
but when i click on insert button on the same screen i want one blank line should inserted into table control , then i want to insert some data into table control on that row , when i click the save button . the new data inserted into the table control is insert that data into ztable ,
please give me solution
main problen is how can know inserted line in table control and pass that data into ztable.Hi,
Follow the below logic,
PROCESS BEFORE OUTPUT.
MODULE STATUS_0001.
MODULE POPULATE_TABLE_CONTROL. --> Get the data from table store in
ITAB
LOOP AT GT_CTRL_LP_D516 INTO GS_WA_CTRL_LP_D516
WITH CONTROL CTRL_LP_D516
CURSOR CTRL_LP_D516-CURRENT_LINE.
The following module moves data to control
MODULE MOVE_TO_CONTROL.--> Move data from ITAB to table control
ENDLOOP.
PROCESS AFTER INPUT.
LOOP AT GT_CTRL_LP_D516.
ENDLOOP.
MODULE EXIT AT EXIT-COMMAND.
MODULE USER_COMMAND_0001. --> Here you have to take out the values from table control and update database table
Reward points if helpful.
Thanks and regards,
Mallareddy Rayapureddy,
Munich, Germany. -
AS 3.0 & WebService & Tree control Bind to hierarchical data?
What is the trick to get the results of a call to a
webservice that returns a hierarchical XML SOAP document to map
directly to a Tree Control's dataProvider property?
In the debugger, I can see that lastResult is an ObjectProxy
which has a couple of properties and one of them is an
ArrayCollection as I expect. However, I can't figure out how to use
this result with a Tree control and the dataProvider property so
that I can navigate thru the hierarchy returned.
TIA
GeorgeYeah this is using the embedded scripting. I need to change this to show the final sql vs. the script that is being used.
-kris -
Drag and Drop via Data Control doesn't seem to bind input parameter.
Hi Everyone,
I've followed the 'how to drag and drop a webservice data control' excercise in my current application to bring back complex data on the basis of one parameter(appId). However, when running the application, the server logs indicate that 'The value of appId cannot be null'. I have definitely bound the appId to the requestIterator, and the button that calls the webservice has been bound accordingly too. The response tables have been bound to the responseIterator. The webservice definitely works, and brings back data as I've tested it with SoapUI for this appId.
Is there something I'm missing?
Any suggestions will be helpful.
Thanks,
Preethi.Hi Sarojamaly,
According to your description, when you create a Data Source View in BIDS/SSDT, you can't see the tables in the pane. Right?
In this scenario, when creating data source, please make sure you select a correct data provider. For example, it you connect to SQL Server database, you should use
Native OLE DB\SQL Server Native Client. Then please test your connection to the data source.
If the tables still can't be displayed, please make sure you select proper database and the check tables existence in the database.
Best Regards,
Simon Hou
TechNet Community Support -
Tree control and XML dataprovider
Hi,
I am trying to get this xml ( http://mitjafelicijan.net/test.xml ) working with my tree control in my Flex app and cannot figure it out how exactly to do this.
my Flex code is this
<mx:Tree left="0" top="0" bottom="0" showRoot="true" id="trvTreeview" right="0"></mx:Tree>
and my AS code is this
var tmp:XML = XML(event.target.data);
trvTreeview.dataProvider = tmp.node;
I get such output
http://mitjafelicijan.net/tree.pngThe default data descriptor will see any child node as a child and claim that node is a folder. If the xml node used attributes like this:
Then there aren't any child nodes. However, if you can't change the XML structure you can create a custom TreeDataDescriptor that is smarter about hasChildren()
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui -
Items in Tree control move around when data is submitted using custom ItemRenderer
I'm working on a Tree control with an XMLListCollection as
its dataProvider.
The dataProvider has information looking like this :
quote:
<?xml version='1.0' encoding='utf-8'?>
<INFO>
<FIELD label="STR_USER_NAME"
type="text"
value=""
>
</FIELD>
<FIELD label="STR_USER_EMAIL"
type="text"
value=""
>
</FIELD>
<FIELD label="STR_OPTIONAL"
type="branch"
value="0"
>
<FIELD label="STR_USER_ADDRESS"
type="text"
value=""
>
</FIELD>
<FIELD label="STR_USER_POSTAL_CODE"
type="text"
value=""
>
</FIELD>
</FIELD>
</INFO>
So in the Tree control I'd like the information to show up
with a label and
an
editable textbox for each item :
[Label] [textbox]
To do this I made a tree like this :
quote:
<mx:Tree id="userTree"
editable="true"
rendererIsEditor="true"
editorDataField="curVal"
itemRenderer="{new ClassFactory(ItemRendererUser)}"
itemEditEnd="e_ProcessData(event);"
dataDescriptor="{new DataDescriptorUsers()}"
showRoot="false"
verticalScrollPolicy="{ScrollPolicy.AUTO}"
/>
where the e_ProcessData() function looks like this (I used
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/js/html/wwhelp.htm?href=c
elleditor_073_16.html#202105 as a guide) :
quote:
public function e_ProcessData(event:ListEvent):void
event.preventDefault();
userTree.editedItemRenderer.data.@value =
ItemRendererUsers(event.currentTarget.itemEditorInstance).curVal;
userTree.destroyItemEditor();
userTree.dataProvider.notifyItemUpdate(userTree.editedItemRenderer);
} // END OF e_ProcessData()
I attached the rest of the files because they're a little
bit longer.
When I run the program, the data shows up fine when it is
initialized the
very
first time, and I made a test button that just dumps the
contents of the
dataProvider in a trace statement to verify that the data has
been set
properly.
The problem I've run into is whenever the textfield is
edited, the item
that
I've selected jumps around the list.
For example, if I edit the item "STR_USER_NAME" after I
finish the edit, it
will move from the very first position in the Tree to the
bottom of the
Tree.
I traced the contents of the dataProvider and the
dataProvider structure
stays
the same, with the "STR_USER_NAME" at the top, but if I look
at the flex app
in
the web browser, its position is at the bottom of the Tree.
This happens for every other item I try to edit... I read in
the
documentation
that the ItemRenderers are recycled, so it means I should be
checking to
make
sure the initial states are covered, but I'm not sure how
this affects my
application.
Can anyone help me out with this ? Its very confusing - I've
tried making
an
ItemRenderer using pure actionscript, mxml and the
combination you see in
this
example and I always end up with the same behaviour - So I
must be missing
something critical...
// ItemRendererUsers.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
verticalScrollPolicy="{ScrollPolicy.OFF}"
horizontalScrollPolicy="{ScrollPolicy.OFF}"
creationComplete="initItemRendererUsers();"
>
From my FAQ:
Q: I've created a custom itemRenderer component to use in a
List
based component (Datagrid, TileList, HorizontalList, etc.).
When my List
first displays, everything looks fine, but when I scroll it
or change the
dataProvider, some of the itemRenderers show values or
formatting that
aren't right. How do I fix this?
A: List-based components don't draw a renderer for every item
in the
dataProvider. Instead, they create enough to display what is
on screen now,
plus one or two more waiting in the wings. This means they
recycle the
renderers rather than creating new ones when you change
dataProvider or
scroll up and down. When you use a creationComplete event to
set up the
itemRenderer, that event doesn't happen again when the
renderer is used for
a different set of data. The solution to this is to override
the set data
protected function that most components have.
For more information, check out the following resources:
http://www.adobe.com/devnet/flex/articles/itemrenderers_pt1.html?devcon=f1
http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.html
Please note, I post this FAQ weekly, and you can find a
permanent copy of it
here
http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf"peterh8234" <[email protected]> wrote in
message
news:gaqttd$kft$[email protected]..
> Yes - the set and get functions are listed down below.
But the quirky
> behaviour
> is the same regardless of whether I override the set and
get functions or
> not.
>
> I noticed there was another variable called listData -
should I be using
> that
> one or the data variable to read and write to the
dataProvider ?
>
> // _data
> [Bindable] public var _data:Object;
> [Bindable("dataChange")]
> //
> override public function get data():Object
> {
> trace('[ItemRendererDefault.GET data()] called for {' +
> _data.attribute("label") + '}.');
> return _data;
> } // END OF get data()
>
> //
> override public function set data(value:Object):void
> {
> _data.@value = inputText.text;
> trace('[ItemRendererDefault.SET data()] called for {' +
> _data.attribute("label") + '}.');
>
> invalidateProperties();
> } // END OF set data()
Your set data needs to set a flag that gets picked up in
commitProperties()
and does your thing that you were doing before in
creationComplete. You
should see examples of this in the links I posted. Instead of
this:
_data.@value = inputText.text;
you should look at implementing IDropInListItemRenderer,
which will allow
you to dynamically determine which field to look at, instead
of hardcoding
it. You also might wind up overwriting the stored value with
a null value
when the List passes the stored value in. I'd encourage you
to really go
through those links I posted and make sure you understand
what they're
saying. The itemRenderer life cycle is one of the hardest
things to
understand, but once you understand it, it makes many things
in Flex much
easier. It's worth investing the time. -
Hi,
I have an XML file. I want to display the nodes from the XML
using a tree control.
The structure of the XML is
<grandparent>
<parent>
<child1> 1 </child1>
<child2> 2 </child2>
<child3> 3 </child3>
</parent>
<parent>
<child1> 4 </child1>
<child2> 5 </child2>
<child3> 6 </child3>
</parent>
<parent>
<child1> 7 </child1>
<child2> 8 </child2>
<child3> 9 </child3>
</parent>
</grandparent>
Can I display the tree like
grandparent
parent
1
4
7
skipping some children.Two choices:
1. pre-process the xml into a form the tree can render
directly.
2. Create a custom Tree Data Descriptor
Tracy -
Create a drag and drop target set
Hi,
I want to be able to create the following if possible:
Create five words that make up a sentence and they are mixed up in order. So basically I would turn each word into a Movie clip perhaps.
I would then like to assign a target hotspot for each word so that a user can drag the words into the correct order.
Once they are in the correct order they click a button to go to a correct response or incorrect response. Is this possible?Yes, it is possible. Try seaching Google for a tutorial using terms like "AS3 drag and drop tutorial" and/or "AS3 dropTarget tutorial"
-
Controlling prompts drop down Dates
Hi,
I have a prompt that has a drop down value as follows
"select period.period_name from dndo where period.period_year=year(timestampadd(sql_tsi_month,-1,current_date-7)) and periods.month_end_date < current_date-7 order by gl_periods.period_num"
Until, the 8th of every month the drop down shows the previous month. For example we load May data within the 8th of June. Until 8th of june it will show April, on the 8th of june it will show May. I want this to be changed to the following, if the data has been loaded before the 8th of the month, I want to show the previous month and not wait until 8th of the month. Please help on how this can be done.
Thanks for your help.Try doing this:
1) Build two prompts, one where you assume the data hasn't loaded. So the prompt will display "two months ago" in the display. The second prompt will assume the data has loaded and the SQL will be for "last month."
2) Put each prompt in a separate section, one section above the other, both being above your report.
3) Click on the Properties button of each prompt section and then click on Guided Navigation. Link it to the small report you build. The first section should display "when there are no records to display" and the second prompt section should display when the smaill report does return records.
This way one or the other prompt will display depending on when the data are loaded for the previous month. That should do it. -
SQL SSRS 2008 DateTime Calendar Control and Oracle 10g Data Source
Hello. I am creating reports in SSRS 2008 using the calendar control for a date range. Let's say we select a start date of 3/3/2012. This parameter is sent into my SQL statement in the WHERE clause which is executed against an Oracle 10g database. All syntax has to be in SQL that Oracle understands, so no CONVERT or CAST.
The format of the date is throwing an error "ORA-01843: not a valid month" when I try to use the following:
SELECT *
FROM TABLE
WHERE STARTDATE >= TO_DATE('3/03/2012', 'MM/DD/YYYY')
I get ORA-01722: invalid number when I try the following:
SELECT *
FROM TABLE
WHERE STARTDATE >= >= TO_CHAR('3/03/2012', 'MM/DD/YYYY')
I cannot find a way to format the date parameter in SQL Server SSRS before it gets to the SQL to be executed in Oracle.
Please help.
Thanks,
Sunny920616 wrote:
sb92075: I am showing you how Oracle renders the date if I do a simple select from the table from which I am trying to pull data. You are right, it sure doesn't prove anything other than how the date looks right out of the Oracle database, but hopefully, it will give a clue as to how I need my SSRS date parameter to work.
Hans Forbrich:
I get ORA-01722: invalid number when I try the following:
SELECT *
FROM TABLE
WHERE STARTDATE >= TO_CHAR('3/03/2012', 'MM/DD/YYYY')
Solomon:
It works. The problem is getting the parameter '3/3/2012' into a usable format for Oracle.
Let's assume an application is sending in '3/3/2012' which will be used in an Oracle query (no PL/SQL allowed, nor can I create functions, stored procedures, etc - only straight up SQL). How can I prepare the parameter to successfully do the compare on the Oracle Date field?
12:50:23 SQL> select TO_CHAR('03/03/2012', 'MM/DD/YYYY') from dual;
select TO_CHAR('03/03/2012', 'MM/DD/YYYY') from dual
ERROR at line 1:
ORA-01722: invalid number
12:51:00 SQL> ed
Wrote file afiedt.buf
1* select TO_DATE('03/03/2012', 'MM/DD/YYYY') from dual
12:51:20 SQL> /
TO_DATE('03/03/2012
2012-03-03 00:00:00 -
Lumia 920 random reboots and dropped mobile data a...
Hi! Wondering if anyone can shed some light on an issue I'm seeing with TWO Lumia 920 handsets?
Both were recently wiped for new users - full "reset your phone" option. After installing the Black update, the phones now randomly reset and reboot. In addition, they cannot seem to hold onto a data connection (either GPRS, 3G or H) - the mobile data connection works when the phone is first boot up, but loses connectivity some time later. Mobile data isn't restored unless the phone is turned off and on again. Totally scratching my head on this - and as it affects two phones, I'm pretty sure it isn't a faulty handset. Steps I've tried:
Swapping SIM cards around (including SIMS not associated with those two handsets)
Manually setting APN details (we're on Orange - also EE)
Installing Access Point app (which isn't installed as standard) for auto-configuration of APN
Toggling between 4G and 3G maximum connection speed settings
Manually selecting mobile network (i.e. disabling automatic network selection)
Wiping and resetting both phones (multiple times)
Installing fresh firmware image via the Nokia Software Recovery Tool
All these don't help! Frustratingly, everything works fine over WiFi - and I have observed that the random reboots only occur when data is being transmitted over mobile network. Both handsets belong to Orange UK (EE), and are updated with EE's approved Black firmware...
Anyone seen anything similar? Anyone come across a fix?!?Hi! Wondering if anyone can shed some light on an issue I'm seeing with TWO Lumia 920 handsets?
Both were recently wiped for new users - full "reset your phone" option. After installing the Black update, the phones now randomly reset and reboot. In addition, they cannot seem to hold onto a data connection (either GPRS, 3G or H) - the mobile data connection works when the phone is first boot up, but loses connectivity some time later. Mobile data isn't restored unless the phone is turned off and on again. Totally scratching my head on this - and as it affects two phones, I'm pretty sure it isn't a faulty handset. Steps I've tried:
Swapping SIM cards around (including SIMS not associated with those two handsets)
Manually setting APN details (we're on Orange - also EE)
Installing Access Point app (which isn't installed as standard) for auto-configuration of APN
Toggling between 4G and 3G maximum connection speed settings
Manually selecting mobile network (i.e. disabling automatic network selection)
Wiping and resetting both phones (multiple times)
Installing fresh firmware image via the Nokia Software Recovery Tool
All these don't help! Frustratingly, everything works fine over WiFi - and I have observed that the random reboots only occur when data is being transmitted over mobile network. Both handsets belong to Orange UK (EE), and are updated with EE's approved Black firmware...
Anyone seen anything similar? Anyone come across a fix?!? -
Hello,
I created a tree with a menu. But the menu is not displayed on right click of a node .... Well I can miss something...
Anybody have an idea for help me ?
Best regardsHi Aurélien,
This feature is not yet supported. Nonetheless, starting with SP13 you will be able to connect context menus to any ui element in the same way as it is the case in 7.10 with the limitation that context menu inheritance between ui elements along the ui element hierarchy not supported in SP13.
Best regards,
Thomas -
CVI Tree Control and Line Break
Hi
Is there a way in CVI Treecontrol to do a line break if the column is to short ?
Regards
juergen
=s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=Hi jared,
If the text is to long there should be a line break
Regards
Juergen
=s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=
Attachments:
shoot.jpg 27 KB -
Selected node in a tree table (via Data Controls and not managed bean)
I am facing some problems in getting the selected row in a tree table.I have used data controls for creating the tree on the page.
I have 3 POJO's,ex; Class AB which has a list of Class CD.And Class CD has a list of class EF. (Used for the tree table)
Now i have a java class, called MyDelegate.java which has a list of AB.I generated data controls off this MyDelegate class and have dropped the ABlist as a tree table (also displaying CD and EF in the tree table).
It displays fine with nodes of AB,CD (child of AB)and EF(child of CD)
The tree table is not bound to any managed bean.
For performing actions on the tree, i create a method - "doSomething() in the delegate class",generate data controls and drop it as a button.
Inside doSomething(), i need acess to the selected node in the tree (it can be a node of type AB or CD or EF).
The problem: I always get access to the node of type AB, and not the child nodes no matter what i click in the tree table.
doSomething(){
DCBindingContainer dcBindingContainer = (DCBindingContainer)ADFUtil.evaluateEL("#{bindings}");
DCIteratorBinding dcTreeIteratorBinding = dcBindingContainer.findIteratorBinding("lstABIterator");
RowSetIterator rowTreeSetIterator = dcTreeIteratorBinding.getRowSetIterator();
DCDataRow rowTree = (DCDataRow)rowTreeSetIterator.getCurrentRow();
if (rowTree.getDataProvider() instanceof AB) {
//do something
AB selectedAB = (AB)row.getDataProvider();
} else if (rowTree.getDataProvider() instanceof CD){
//do something
} else if (rowTree.getDataProvider() instanceof EF) {
// do something
How do i access the "selected child node of the tree table" here in the delegate class method? Pls help.Hi Frank,
Thanks for the response. In my case, i dont have a managed bean, so i am slightly unsure how to do it.
There is a mention "Note that another way to access the treeTable component at runtime is to search for it in JavaServer Faces UIViewRoot. This latter option allows you to write more generic code and does not require to create a page dependency to a managed bean"
How do i use this adf view root (without a managed bean) to get hold of the selected row in the tree table. Pls help.
Thanks. -
Drag and drop Images into Multiple Targets
Hello,
I want to alter the NI example "Drag and Drop - Multiple Data Types to Start Drag" to use multiple image Targets. The current VI only allows for dropping image into a single Target. I want to duplicate the target window a few times, in order to drop different images into each different Target. I can't seem to figure out how the VI recognizes and differentiates the Targets.
Thanks,
Labview 2009 SP1Hello,
Please see attached... That's a simple way to perform what you need : each target is handled in the same event case (the target is differentiated by using control refnum).
Hope this helps,
J.
Attachments:
Screenshot.jpg 132 KB
Maybe you are looking for
-
BB apps is not working, how to create BB email add? please help
BB apps is not working, how to create BB email add? please help
-
Multiple FTP, but not multiple MobileMe?
I was under the impression when I bought iLife '09 that iWeb would now allow publishing to multiple mobileme sites by allowing each site to have a separate mobileme login. Guess I was wrong. Why would Apple give the ability to publish to different ft
-
How do I delete a server from my serverlist?
Hi, a while back I experimented with a QNAP NAS TS212 I have since gotten rid of again as it didn't live up to expectations. I had it set up for back up as well as for media center with music, photos and movies. Problem is that everytime i boot my Ma
-
"Send e-mail when ownership is assigned" SharePoint 2013 task list
I've found that the option to "Send e-mail when ownership is assigned" isn't available in SharePoint 2013 (enterprise) task lists. I've found that this functionality is now included the 'issue tracking' list template. I'm unsure why this very useful
-
Different languages used while uploading file from java Application
Hi everybody, i have a problem with multiple languages , let me clear you the question, i were developing a java application using spring ,hibernate frame works, so i got a problem while uploading a file with chinees language or other it was saving w