Drag From cl_column_tree_model To cl_gui_alv_grid Is not Working ???
Hi,
I have building a program that will have one split screen and one of them has cl_column_tree_mode at top, and the other has cl_gui_alv_grid at bottom.
I can Drag And Drop Lines From ALV GRID to TREE and i can use ONDRAG event of ALVGRID, DROP event of TREE Control and ONDROPCOMPLETE event of ALVGRID.
But when i try to reverse it as like that Drag From TREE to ALVGRID, just DRAG event of TREE is triggering.
I have implemented end registered ONDROP event for ALVGRID but it is no triggering.
Have i something which missed ? Some of code at the above.
*****************CODE****************************************
*I created Application Ocject, Custom Container and Spliiter in here
** Definition of drag drop behaviour
create object behaviour_top.
call method behaviour_top->add
exporting
flavor = 'LINEFROM' "I dont know where i can use this
dragsrc = 'X'
droptarget = 'X'
effect = cl_dragdrop=>move.
call method behaviour_top->add
exporting
flavor = 'LINETO' "I dont know where i can use this
dragsrc = 'X'
droptarget = 'X'
effect = cl_dragdrop=>move.
call method behaviour_top->get_handle
importing handle = handle_top. "I am not sure that i can use this handle for both TREE Nodes and ALV Rows, But i am using it for both.
****************************** TREE ********************************
* CREATE TREE
ls_treemhhdr-heading = 'Nakliye ve Makaralar'.
ls_treemhhdr-width = 35.
create object gref_column_tree
exporting
node_selection_mode = cl_column_tree_model=>node_sel_mode_single
item_selection = space
hierarchy_column_name = 'NUMBER'
hierarchy_header = ls_treemhhdr.
call method gref_column_tree->create_tree_control
exporting
parent = container_1 .
* Events for tree control
set handler g_application->handle_tree_drag for gref_column_tree.
set handler g_application->handle_tree_drop for gref_column_tree.
* Build TREE
perform build_tree using gref_column_tree. "I use HANDLE_TOP in this when creating nodes.
****************************** TREE ********************************
**************************** ALV GRID ********************************
* create ALV Grid
create object alv_grid
exporting i_parent = container_2.
* Events alv control
set handler g_application->handle_alv_drag for alv_grid.
set handler g_application->handle_alv_drop for alv_grid.
set handler g_application->handle_alv_drop_complete for alv_grid.
gs_layout-grid_title = 'İs Listesi'.
gs_layout-s_dragdrop-row_ddid = handle_top. "I think this is a important thing
call method alv_grid->set_table_for_first_display
exporting is_layout = gs_layout
changing it_fieldcatalog = gt_fieldcat
it_outtab = i_tabout[].
**************************** ALV GRID ********************************
*I have implemented all methods for this class, it hink its not important to see *which code its has, important is why its not triggering.
class lcl_application definition.
public section.
data: next_node_key type i.
methods:
* ALV EVENTS
handle_alv_drag for event ondrag of cl_gui_alv_grid
importing e_row e_column e_dragdropobj,
handle_alv_drop for event ondrop of cl_gui_alv_grid
importing e_row e_column es_row_no e_dragdropobj,
handle_alv_drop_complete for event ondropcomplete of cl_gui_alv_grid
importing e_row e_column e_dragdropobj,
* TREE EVENTS
handle_tree_drag for event drag of cl_column_tree_model
importing node_key item_name drag_drop_object,
handle_tree_drop for event drop of cl_column_tree_model
importing node_key drag_drop_object,
handle_tree_drop_complete for event drop_complete of cl_column_tree_model
importing node_key ITEM_NAME drag_drop_object.
endclass.
Thanks kaipha,
in examples in SE83 i have noticed that i have to create an inctance for drag drop object when drag starts.
method handle_tree_drag.
data: "local_node_table type node_table_type,
new_node type mtreesnode,
dataobj type ref to lcl_dragdropobj_from_tree,
l_keytxt(30) type c.
catch system-exceptions move_cast_error = 1.
* create and fill dataobject for events ONDROP and ONDROPCOMPLETE
create object dataobj. "When i create dataobj in here
move node_key to dataobj->node_key.
drag_drop_object->object = dataobj. "And when i call this method, ALV Drop event has begin triggered
endcatch.
if sy-subrc <> 0.
call method drag_drop_object->abort.
endif.
endmethod.
Similar Messages
-
iTunes drag to import new songs in library or to create playlists from folders on windows does not work!
WHY? I have to solve, how can I do? Thank youup
-
•I have just bought a Toshiba external hard disk to back up all my work from my macbook and its not working! I have checked the hard disk
its not working: (sorry for being so ambiguous), the computer recognises it, it comes up on my desktop, when i open it and try and drag a file across, it is unable to go into the drive, there is just a symbol indicating 'no' (i've read the instructions from Tosheba and there is no help). I have not partitioned the drive using the GUID partition scheme - i dont know what this means?!
-
my apple id is not working when i sign in from my laptop it works but when i sign in from my iphone4 then its not working it gives the message of "your aapleid or password is incorrect"? how can i solve this problem please help
Hey nocillado,
Thanks for using Apple Support Communities.
It sounds like you have 2 things you want to address. These articles can help you use iCloud with your existing Apple ID.
Get help activating your iPhone
http://support.apple.com/kb/ts3424
Using your Apple ID for Apple services
http://support.apple.com/kb/ht4895
Using the same Apple ID for Store purchases and iCloud (recommended)
Have a nice day,
Mario -
BIP report security from Dashboard to Publisher is not working
Hi ,
I created a BIP report(.xdo) and placed it on Dashboard as a link . As admin , I can see the report . As a user , I am able to get into publisher but not able to see the report . Iam getting the below error message .
Error : Unauthorized Access: please contact the administrator.
I suspect that security model from Dashboard through BIP is not working . I tried searching the online resources but couldnt find right help .
Iam a newbie for BIP , I followed the regular BIP guides , configured eveything as per the docs and things work as admin . But I want to test the security as user .
Where Iam doing wrong , Any ideas please help .
Thanks
KarthikHello Vijay ,
I have grant permissions to the user and the report in BI webcatalog and also in BIP under admin tab I have addes the role which the user belongs to and also the shared folder . Still the problem exists.
My BI presentation servcies security is working . My user security is also working , all that I need is the user should be able to see the report when he clicks on BIP link placed in dashboard. -
why copy option from recent call numbers is not working on ios7 [recent call logs in phone]?
Here is a copy of my expressions and a copy of my data. The expressions match up going from left to right
Code.CalcPTD2(Lookupset(FORMAT(Fields!REALDATE.Value,"Long Date"),FORMAT(Fields!CallbackDate.Value,"Long Date"),Fields!DailyHours.Value,"DataSet4"))
sum(Code.CalcPTD2(Lookupset(FORMAT(Fields!REALDATE.Value,"Long Date"),FORMAT(Fields!CallbackDate.Value,"Long Date"),Fields!DailyHours.Value,"DataSet4")))
count(Code.CalcPTD2(Lookupset(FORMAT(Fields!REALDATE.Value,"Long Date"),FORMAT(Fields!CallbackDate.Value,"Long Date"),Fields!DailyHours.Value,"DataSet4")))
PUBLIC SHARED FUNCTION CalcPTD2(LookupArray AS OBJECT) AS INTEGER
DIM i,Total AS INTEGER
Total = 0
FOR i = 0 to UBOUND(LookupArray)
Total = Total + CINT(LookupArray(i))
NEXT i
NumberTimes = NumberTimes +1
RETURN Total
END FUNCTION -
Help....
Updated to 10.6.8 and HP F2100 and D2400 Printers stopped working.
Restored 10.6.7 and printers from Install CD's but not working.
Same with F2100 scanner
Am I glad I kept Windows desktop as without it I would be scre**ed now
What is going on with this latest update as its like a return to Windows with things crashing or hanging up every few minutes????
On a MacBook Air that has not been updated everything still works so what has 10.6.8 done and why won't the restore to 10.6.7 work?
SteveNone of those things you mentioned were what I suggested.
I'm guessing the "ctrl click in printer preferences" means you Reset the Printing System?
If so, that is what I would have suggested if deleting it by selecting the ( - ) button and then adding it with the ( + ) button.
But, if HP has a fix, it likely needs to update its drivers. -
My Itunes account was hacked and my Apple ID was disabled. I followed the instructions from APPLE to backup and restore from Itunes but that did not work. Any suggestions?? Thanks!!
Are you saying that you contacted Apple support and they instructed you to backup and restore your iPad? Or do you mean that you picked up this information from an online support article? If you spoke to an Apple rep or received these instructions via email, contact them again for further help.
I fail to see how restoring your iPad would enable yoyr Apple ID. -
My macbook pro is just back from repairs. It is not working with my apple led cinema display. I have followed the directions in the cinema display manual. am I missing something?
Take a look at the Displays preference panel to see if everything is ok, particularly the resolution and refresh rate. Displays will probably try to put the panel for the ACD on the ACD where you won't see it. So click "Gather Windows" to get the ACD panel on to your macbook.
One more thing, make sure you fully seated the mini displayport plug. They can be sneaky little devils in that they need to be fully pushed in. -
i bought an unlocked iphone 4s from dubai but it does not work with an indian idea sim..help
If you are both on the T-mobile network, the sim card should work. If you did a Erase All Content and Settings, then she should be at the point of activation as a new device...talk to T-mobile and be sure the sim she is using is a valid sim card.
-
My speakers from my iPhone 4S is not working I'm clicking on the buttons on the side nd the volume is not even showing getting louder or lower but when I plug in my ear phones I can hear it juss happen out of no where what sould I do ?
Your iPhone charging port may have a minor short, causing iPhone to falsely sense it is connected to a dock turning off its speaker. Clean iPhone charging port with a clean dry toothbrush.
-
If I purchase an app from iTunes and it does not work properly or meet expectations, is there a way to receive refund for the cost of the app?
First contact the Developer of the App...
If no joy...
Contact iTunes Customer Service and request assistance
Use this Link > Apple Support iTunes Store Contact -
I bought unlock I phone 5 from canada but it is not working in india
I bought Unlock iPhone 5 from canada but it is not working in india
If it is an unlocked iPhone then it should work. Have you inserted a local sim card?
Other than that and because the warranty is country specific, you'll have to get on a plane back to Canada and return the phone there. -
Installing Java 7 from Oracle just made Applets not work, how to fix
Mac 10.7.4. I tried installing Java 7 from Oracle, but all it did was remove half the prefs from Java and make Applets not work. How do I revert/reinstall Java?
Here you go!
Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
I am employed by HP -
I have moved from one company to another and they both use iphones I backed my phone up before it was shut down I tried to retrieve contacts from my PC it did not work will it work when I get my new iphone?
I updated my iPhone onto my friend's MacBook
Why would you do that, and not on your own computer? See the hassle it caused you?
can he just email me the folder
Backup files are too big to email. Use FTP, DropBox, etc...
how do I then put all that data back into my current phone from the new computer?
How to restore iPhone: http://lmgtfy.com/?q=how+to+restore+iphone
Maybe you are looking for
-
How do i create multiple databases on the same unix box?
Hello experts. Please send me some guidelines on how to create multiple databases on the same unix box and how to configure their startups including listeners. Please also, list me the possible precautions to takes especially if the existing database
-
I am reposting this from another area to see if get a response here. I have a G5 Dual 1.8 machine with a GeForce FX 5200 DVI-VGA and ADC-VGA adapters. It drives to 17in Daewoo LCD monitors. It all worked fine with dual monitors until I upgraded to 10
-
IPod Info for those who need it
Just thought I'd give some help to those who need it. - For those who are having trouble with their ipods accepting some videos and not others, try shortening the names of the video files. As long as the video files are in the proper format, this sho
-
How do I create tabs for pdf documents?
I need to create tabs for documents I am saving as a single pdf file.
-
Dear All, I want to make info record as mandatory without which no one should raise PO, where do I need to do this setting. Kindly Guide. Rgds Srini