Impossible to double-click on a todo item when another's title is highlighted
Can anyone reproduce this?
1) Double-click on a todo item. Its title gets automatically highlighted.
2) Double-click on another todo item
Expected Results:
After 2), the info bubble for the second todo item is displayed.
Actual Results:
After 2), a new info bubble pops up, but it is still for the same initial todo item.
If that is a main video for your project (rather than just for a motion menu), yes. If you import as asset, and you want a timeline, then you have to create a timeline for it.
See help:
Encore Help | Create and manage timelines
Similar Messages
-
Occasionally, some of the image borders turn dark grey (medium grey is the default) and then random other images cannot be opened with a double click. They only open when selected using the arrows on the keyboard. They also cannot be moved to collections. Anyone have a solution for this?
When you say "could not be opened"- what are you referring to? A double click of the mouse should view the clicked image in Loupe view- the same as pressing [E] on the keyboard for an enlarged view. (And a second double-click will take you back to library grid view.)
To "open" an image in the Development module requires you to select the image then press [D] or click on the [Develop] button.
When you say "could not be ...moved" -what are you referring to? Are you trying to move an image file from its place in a folder to another folder? Are you just wanting it in a collection? When you drag an image to a collection you are only placing a link to the image in the collection- not actually moving any file. The image will stay exactly where it is in its original folder and will remain as a thumbnail preview in the Library Grid view.
Are you having any "mouse" problems that may be changing its actions in LR ?
Do you see an exclamation mark on any image borders ?
Let's keep working on this. I am curious to see you find an answer.
Rob -
Double Click to Activate Tree Item Editor
Hi, I have an mx:Tree that uses an MXML component as an item
editor. I only want to activate the editor when the user double
clicks on a tree's node. As a default, a single click will open the
the item editor on the Tree list. Can anyone help me with
this?I am pretty sure it is possible, but I have not done it. You
will probably need to cancel the default behavior of click event.
Tracy -
Double-click problem on JList items
I wrote codes in double-click function on JList selected items and used the codes below (the same as those in the Java1.3 document).But I find sometimes the code can't catch the mouseClicked event and do nothing at all. Is there any other trick to implement the function properly? Thanks a lot!
final JList list = new JList(dataModel);
MouseListener mouseListener = new MouseAdapter() {
public void mouseClicked(MouseEvent e) {
if (e.getClickCount() == 2) {
int index = list.locationToIndex(e.getPoint());
System.out.println("Double clicked on Item " + index);
list.addMouseListener(mouseListener);Hi Amjad,
instead of adding the doubleclick-event on every list item, you can just check which item was clicked in the dobuleclick-event of the list-box.
In the mentioned example, you can replace the ondblclick listener with the following:
oSimpleListBox.ondblclick = function(e){
alert(e.target.innerHTML)
This will output the text of the clicked list item
Greets,
ben -
I notice in iPhoto that if I used to be able to single/double click on a photo to view it but now if I click CONTROL and then the TRACK PAD, the options don't allow me to open JUST that photo in nearly full page format. Any suggestions?
"nearly full page" means that I used to be able to double click on a photo in iPhoto, and it would open up to a full image within iPhoto itself. Now, there is absolutely no option to enlarge a photo unless you go to slideshow - no option to double click or side click or Control+click or Command+click or anything at all. The small white arrow at the bottom right corner of every photo gives you options, but none are options that include enlarging a photo to see it bigger. And no, you cannot double click it at all to even open it up in any other app unless you click/drag onto desktop and then open in Photoshop, or equivalent app. Yes, checked TP preferences. No, it doesn't help.
-
After my last and latest upgrade to Iphone 5, i can no longer delete open app by tapping the home button twice, and then swiping off the screen. In effect these apps are open and using data. This has only just occured since the upgrade to ios 7.1.1 After many attempts to press home button twice....nothing happens, and so app are open. Please advise? any answers?
Hey there 111brownyn
Go to Settings>General>Accessability>Assistive touch(in the bottom)
and switch the toggle on. You'll find now a smaal square around your screen.
Touch it aand perform the double click gesture with the virtual home button on the screen.
I think your Home button has been damaged.
Do let me know if it worked -
I have to "single-click" twice (not double click) to open an item in the Dock.
Can someone confirm if this is Expected Behavior?? (OS = Mavericks)
If you have Assigned an application in your Dock to a Desktop & Display in the application's Dock >> Options (ex: Assigned To: Desktop on Display 2):
Click once on the application icon in the Dock, the application's Menu will populate on the top of your screen, but not the application itself (yet), click the application icon a second time, the application will now show too.
Docked Applications that do not have an Assigned To: Desktop & Display in the Dock options, you only need to single click.
FYI:
For odd Dock behaviors otherwise try this:
You may have a corrupted Dock preferences file.
Open the Finder. From the Finder menu bar click Go > Go to Folder
Type or copy paste the following:
~/Library/Preferences/com.apple.dock.plist (plist = preference list file)
Click Go then move the com.apple.dock.plist file to the Trash, or move it to your Desktop.
Restart your Mac and see if the behavior is resolved. You will have re-configure your Dock settings.From where are you launching Mail? The only place, unless I've missed or forgotten something, you can launch an application with a single click is from the Dock. Is this what you're doing, or are you attempting to launch Mail from the Applications folder?
Regards. -
How to add one item when another item get added into the iProcurement Cart
Hi,
Please help me to do the following customization in iProcurement Cart:
Requirement-1:
1. Login to iProcurement and add one Item ITEM1 to Cart.
2. Make another Item ITEM2 mandatory or get added automatically when Item ITEM1 gets added into the iProcurement Cart
OR
Requirement-2:
1. Login to iProcurement and add one Item ITEM1 to Cart.
2. Go to Cart and click Checkout.
3. While checking out Item ITEM1, we need some validation to make another Item ITEM2 mandatory or get added automatically with Item ITEM1.
Thanks in Advance,
SBHi tiff512:
The way is:
SAP NetWeaver > General Settings > Check Units of Measurement.
The help documentation says the following in relation to the creation of new units of measure:
"If required, define new units of measurement according to the international system of units (SI) with the menu function Unit of meaurement -> Create.
Here you have to make make specifications for:
Display (including a descriptive Units of measurement text)
Conversion (not applicable to units of measurement without dimensions)
Data exchange (EDI) (optional)
Application parameters"
I hope it is helpful to you.
Regards,
David -
Auto calculate column item when another column items are changed in report
Hello,
I have a report which consists of some editable text items. These editable items correspond to different columns in the table. Now in the report I want to make one column item to be automated so that it can perform some calculations based on other columns data entered by the user in the report. Like, for example if the user changes text item data for col3, col4 then it should automatically perform the calculations for col10 ; similar to onchage event. Consider a situation where in a user comes and enters data in the report throught the text item for col3, so whenever user changes the data for col3 it should perform the calculations for col10 automatically.
Can anyone please help me with this issue.
Thanks,
Ortoncan anyone please help me with this one.
thanks,
Orton -
Impossible to bring up the info pane about a todo item outside the current view
Can anyone reproduce this?
1) Set iCal to hide todo items whose deadlines are outside the current view.
2) Create a todo item whose deadline is outside the current view.
3) Search for the todo item.
4) In the search results, double-click on the todo item.
Expected Results:
The same thing happens as with events: the view switches to the week containing the event, and its info pane is displayed.
Actual Results:
Nothing happens.Your site was built using tables, whose sizes are defined in your site.
If we look at your first table definition, we can see:
<table width="861" height="1449" border="3" cellpadding="0" cellspacing="0" bordercolor="#868787">
Your table has a width of 861 pixels and an overall height of 1449 pixels. Anything you put into that overall box must fit those dimensions, else
it won't be visible. Anything you add above it will push everything down. You can redefine your sizing to let you edit more inside of the table elements.
This is why, when you type in more text, things act weird. If you are in Dreamweaver, you must find the right cell to put your text into and then enter
text there. Unfortunately, this is going to push things around, which were all lined up using tables. And this gets everything offset with respect to
everything else in your website.
And that is why everyone is saying, "Start Over!"
I just inherited a website that has been put together using tables. I'm going to have to expend considerable effort in rewriting the entire design of the
website because of that. because everything I intend to add to the pages on the site is going to need to be deconstructed in order to get it to work
properly if I'm adding text and pictures that need to line up with each other.
You need something done quick and dirty and the only way I can recommend you do that is to use Dreamweaver to show you the tables you have
and put what you need in a new table that is defined above or below the tables you all ready have defined. Do that and then get back to someone here
who knows how to make a website correctly to clean up your entire website and make it editable -- which will cost you some money, but it will be
money well-spent.
I like to quote this maxim: Good, Fast, Cheap. Pick any two. This works for website design. You can get it fast and cheap, but it won't be good. I
think you may have chosen that route. -
Nautilus 3.16 Cannot double-click with Icon-View to open items
I'm updated testing/nautilus-3.16, and it cannot double-click to open ever items.
But goto Preferences -> Behavior to set ' Single click to open items '
Single click is working on nautilus, It's can single click to open items.
And goto Preferences -> Default View to set 'List View'
Double click is working with 'List View'.
Not have anything error code in Terminal.
And I reset gconf and dconf, Icon View with double-click still not work.
How to solve it?
Last edited by MayKiller (2015-04-02 10:55:18)ewaller wrote:
Moving to testing.
Maykiller, you reported the thread to the moderators. Did you perhaps mean to reply to the thread?
Sorry for that, I clicked 'report', it's wrong.
I was mean it is reply for that user...
Last edited by MayKiller (2015-04-04 12:42:22) -
ALV TREE - Double click on an item
Hi all,
I need to handle the double click action on an Item of ad ALV_TREE defined cl_gui_alv_tree_simple
What I did at now is:
u2026
DATA tree1 TYPE REF TO cl_gui_alv_tree_simple.
u2026
CREATE OBJECT event_receiver.
SET HANDLER event_receiver->item_double_click FOR tree1.
SET HANDLER event_receiver->node_double_click FOR tree1.
u2026
CLASS lcl_event_receiver DEFINITION.
PUBLIC SECTION.
METHODS:
*Double-click control
item_double_click FOR EVENT item_double_click OF cl_gui_alv_tree_simple
IMPORTING index_outtab
fieldname
grouplevel,
*Double-click control
node_double_click FOR EVENT node_double_click OF cl_gui_alv_tree_simple
IMPORTING index_outtab
grouplevel.
PRIVATE SECTION.
ENDCLASS. "lcl_event_receiver DEFINITION
CLASS lcl_event_receiver IMPLEMENTATION.
METHOD item_double_click.
break <my_user_id>.
ENDMETHOD. "handle_double_click
METHOD node_double_click.
break <my_user_id>.
ENDMETHOD. "handle_double_click
ENDCLASS. "lcl_event_receiver IMPLEMENTATION
When I double click on item the program do nothing and I donu2019t understand the why.
Note: I think I could try to define the events passed, using the method et_registered_events, but I donu2019t know how to obtain the id of method item_double_click defined in class cl_gui_alv_tree_simple.
Any Idea?
Thank you in advance.Register the events with the below code...
data: lt_events type cntl_simple_events,
l_event type cntl_simple_event.
l_event-eventid = cl_gui_column_tree=>eventid_node_double_click.
append l_event to lt_events.
l_event-eventid = cl_gui_column_tree=>eventid_item_double_CLICK.
append l_event to lt_events.
call method tree1->set_registered_events
exporting
events = lt_events
exceptions
cntl_error = 1
cntl_system_error = 2
illegal_event_combination = 3. -
Hi,
I'm just trying to perform an action by double-clicking a list item, but doesn't seem to work. code:
WHEN-MOUSE-DOUBLE-CLICK trigger on List item (TList).
DECLARE
v_verwalten VARCHAR2(40);
BEGIN
v_verwalten := :CONTROL.LIST;
IF v_verwalten = 'Codes verwalten'
THEN NEW_FORM('COD_VER');
END IF;
END;Hi all,
When the list item type is tlist, the trigger 'WHEN-LIST-ACTIVATED' will fire for "mouse double click" and "key enter".
Try with placing the code in 'WHEN-LIST-ACTIVATED' trigger.
Cheers,
Zakiy -
LR 5.5 double-click behavior on WB sliders (and other sliders in Basic tab)
i recently upgraded to LR 5.5 from 5.4.
sometimes i check the auto-WB recommendation by using the ability to Shift + double-click on a WB slider (in Dev. Module). (this feature was introduced in LR 5, i believe, maybe LR 4.)
before the upgrade, whether the WB sliders were already at a custom setting or still on the "as-shot" setting, you could Shift + double-click on either the Temp or Tint slider and get the "auto" recommendation. Then, you could undo and redo, toggling back and forth between the auto setting and whatever you had before that.
now, however, when i Shift + double-click, before the slider registers the double-click and produces the auto setting, it responds to the first part of the double-click. that means that FIRST it moves the slider a little one way or the other, and THEN goes to the auto setting.
this behavior makes it impossible to toggle back and forth between the auto setting and whatever it was before that. instead, it now toggles between auto and that little adjustment that was registered in the first part of the double-click.
for example:
the Temp slider is set to a custom value of 5200 on a certain photo.
i'm curious what is the auto recommendation, so i Shift + double-click on the slider.
the slider registers the first part of my double-click, moving for an instant to 5384, before understanding that i actually double-clicked and producing the auto setting.
this is annoying in any case, but it's a problem because now when i undo and redo to toggle between my custom setting (5200) and the auto recommendation, it's instead toggling between the auto and 5384. (or whatever value happened to register in the first part of the double-click.)
this changed behavior also affects the other sliders in the Basic tab where you can Shift + double-click to check an auto value. personally, i never use this feature on the other sliders, but i do use it quite a bit on the WB sliders as a step in arriving at my custom WB.
also, i just noticed that it also happens sometimes on black-and-white images, when adjusting the Black and White Mix sliders. (these sliders can also revert to their auto value if you adjust one and then Shift + double-click. this is beneficial for when you don't want to return the whole group of sliders to auto mix.
note:
i do not adjust the sliders by dragging. instead, i mouse over a slider, and use up or down arrow keys to adjust in regular increments (or Shift + arrow key for a larger increment). i find this is a much better way to work for a number of reasons, and especially with large numbers of images. if i want to make a finer adjustment, i just click in the value field of a slider and use arrow keys to go in single-unit increments. (or use Option + arrow key for a smaller-than-default increment.)
For color Temp, camera settings already use 50-degree increments (5600, 5650, 5700, etc.), so they appear in LR with those kinds of rounded numbers, never 5611 or whatever. using the arrow keys to adjust color temp also goes in 50-degree increments, and using Shift+arrow key goes in 200-degree increments. For Tint, however, the camera does use single-unit increments, like 7 or 11. the arrow key method of adjusting Tint goes in increments of 5 or 20, which for Tint is usually too broad of an adjustment.
sorry for the long post. anyone else having this problem? as someone who does a lot of toggling back-and-forth to compare things, i find this fairly small change in behavior incredibly disruptive.
my system:
late 2013, 15-inch rMBP; 2.3 GHz i7; 500gb SSD; 16gb RAM
OS 10.9.2 (not yet on 10.9.3 as there seem to be problems)
no Adobe CC items.bob,
you are correct—what you said does work.
{for the sake of clarity and consistency, when i say double-click on the "slider", i mean on the value-marker, the triangular point that actually moves (or what ssprengel is calling the "slider-thumb/handle" if i'm understanding him correctly)—not the range on which it moves, nor the label to the left side of the range.}
but have i gone crazy?? has the behavior not changed at all?? i could have sworn that in the past, i was double-clicking (with or w/o shift key) on the value-marker of the slider, instead of on the label as you mention (although that instruction does sound familiar now, too). this is not a rare action for me, but something i've done countless times on the WB sliders, and also on the Black and White Mix sliders to return them to their auto value.
actually—now that i think about it, i do this action a ton on the HSL sliders, also: use the arrow keys (or Shift+arrow) to adjust HSL values, which go in increments of 5 (arrow) or 20 (shift+arrow). sometimes to return to zero i use the arrow keys again, but sometimes just double-click on the slider.
Or, if i want to see a very large, imprecise adjustment, i don't use the arrow keys but just click once towards the extemes of the range: +83 or -100 or whatever. and then to return to zero, i just double-click on that same spot—meaning on the slider/value-marker, wherever it happened to land on my first click.
however, in the last couple major releases (LR4 and now LR5), i've noticed that feature doesn't work quite as well as it used to. it used to be very easy to click once, get an extreme value, then very soon afterwards double-click and return to zero. you could do it easily, without even looking carefully at the sliders (so you could look instead at the picture changing). now, however, i find that i usually have to double-click two or three times before the slider responds and goes back to zero. sometimes i have to reposition the mouse very slightly and double-click again for that action to happen (and not because my mouse strayed from the slider).
i have noticed this to be true across many changing conditions:
major releases and smaller updates of LR;
different OS (10.6.8 snow leopard through 10.7, 10.8, and 10.9 mavericks);
different machines: 2007 MBP and late 2013 rMBP;
even different mice: used to have an old Kensington mouse; now using Logitech G500s, a fairly high-end gaming mouse (even though i don't do any gaming).
when i first noticed this less-responsive behavior, i thought it was due to my mouse and/or computer being old, maybe outdated. the kensington mouseworks software didn't really work, even on the older 2007 MBP. so i chalked it up to mouse issues. but it's exactly the same with my new, much more sophisticated mouse, whose software does work on my late 2013 rMBP.
(and now, with LR5.5, there's the issue i mentioned originally, where the first part of the double-click records a value shift before LR realizes i was actually double-clicking.)
why am i bothering to say all this??
first, it's an additional problem, but similar to what i originally posted about. second, it offers (at least some) support for my original idea—that in the past, i was, in fact, double-clicking on the slider itself, not on the label, to get auto or as-shot values.
does anyone else have any thoughts on this? am i the only one who "remembers" double-clicking on the slider, not the label, to get the auto or as-shot WB, or reset HSL sliders, or return to auto values of individual sliders in Black and White Mix? -
Double click in ALV tree output????
Hi all,
I am able to display output in tree format. But I want to add the double click functionality to some of the fields in output. Means if I double click on some value in output tree, it should call some transaction. Please help me with this issue of double clicking.
Please tell how to handle events in this report tree display.
For the following code its displaying output in tree format and in right way. But i need to add double click functionality to this.
So provide me some sample program for this one....
* create hierarchy
CALL METHOD tree1->set_table_for_first_display
EXPORTING
it_list_commentary = lt_list_commentary
i_background_id = 'ALV_BACKGROUND'
i_save = 'A'
is_variant = ls_variant
CHANGING
it_sort = gt_sort[]
it_outtab = itab_outtab
it_fieldcatalog = t_fieldcat. "gt_fieldcatalog.
* expand first level
CALL METHOD tree1->expand_tree
EXPORTING
i_level = 1.
* optimize column-width
CALL METHOD tree1->column_optimize
EXPORTING
i_start_column = tree1->c_hierarchy_column_name
i_end_column = tree1->c_hierarchy_column_name.
In grid ALV we can have double cilck functionality using code:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = w_repid
i_callback_pf_status_set = 'PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
is_layout = ls_layout
it_fieldcat = gt_fc[]
Here we can write subroutine for USER_COMMAND and handle the double click evenet. But tell me how to provide this in tree ALV.
<REMOVED BY MODERATOR>
Regards,
Sachin
Edited by: Alvaro Tejada Galindo on Feb 14, 2008 1:47 PMHello Sachin
The following sample report ZUS_SDN_ALV_TREE_DEMO demonstrates the crucial parts for double-click event handling (nodes & items) in ALV trees.
*& Report ZUS_SDN_ALV_TREE_DEMO
*& Thread: double click in ALV tree output????
*& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="742412"></a>
REPORT zus_sdn_alv_tree_demo.
CLASS cl_gui_column_tree DEFINITION LOAD.
CLASS cl_gui_cfw DEFINITION LOAD.
TYPE-POOLS: abap.
TYPES: BEGIN OF ty_s_outtab.
INCLUDE TYPE knvv AS data.
TYPES: nkey TYPE lvc_nkey.
TYPES: parent_key TYPE lvc_nkey.
TYPES: END OF ty_s_outtab.
TYPES: ty_t_outtab TYPE STANDARD TABLE OF ty_s_outtab
WITH DEFAULT KEY.
DATA: gt_outtab TYPE ty_t_outtab.
DATA:
gd_okcode TYPE ui_func,
gd_repid TYPE syst-repid,
gt_fcat TYPE lvc_t_fcat,
gs_layout TYPE lvc_s_layo,
gs_variant TYPE disvariant,
go_docking TYPE REF TO cl_gui_docking_container,
go_tree TYPE REF TO cl_gui_alv_tree.
* CLASS lcl_eventhandler DEFINITION
CLASS lcl_eventhandler DEFINITION.
PUBLIC SECTION.
CLASS-METHODS:
handle_node_double_click
FOR EVENT node_double_click OF cl_gui_alv_tree
IMPORTING node_key,
handle_item_double_click
FOR EVENT item_double_click OF cl_gui_alv_tree
IMPORTING node_key
fieldname.
ENDCLASS. "lcl_eventhandler DEFINITION
* CLASS lcl_eventhandler IMPLEMENTATION
CLASS lcl_eventhandler IMPLEMENTATION.
METHOD handle_node_double_click.
message 'Event=Double-Click on Node' type 'I'.
call transaction 'XD03'.
ENDMETHOD. "handle_node_double_click
METHOD handle_item_double_click.
message 'Event=Double-Click on Item' type 'I'.
call transaction 'VA03'.
ENDMETHOD. "handle_item_double_click
ENDCLASS. "lcl_eventhandler IMPLEMENTATION
START-OF-SELECTION.
PERFORM init_controls.
gd_repid = syst-repid.
CALL METHOD go_docking->link
EXPORTING
repid = gd_repid
dynnr = '0100'
* container =
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
lifetime_dynpro_dynpro_link = 3
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL SCREEN '0100'.
** NOTE: no elements on screen
** PROCESS BEFORE OUTPUT.
** MODULE STATUS_0100.
** PROCESS AFTER INPUT.
** MODULE USER_COMMAND_0100.
END-OF-SELECTION.
*& Module STATUS_0100 OUTPUT
* text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'STATUS_0100'.
* SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE user_command_0100 INPUT.
TRANSLATE gd_okcode TO UPPER CASE.
CASE gd_okcode.
WHEN 'BACK' OR
'EXIT' OR
'CANC'.
SET SCREEN 0. LEAVE SCREEN.
WHEN 'REFRESH'.
WHEN OTHERS.
ENDCASE.
CLEAR: gd_okcode.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Form init_controls
* text
* --> p1 text
* <-- p2 text
FORM init_controls .
* Create docking container
CREATE OBJECT go_docking
EXPORTING
parent = cl_gui_container=>screen0
ratio = 90
EXCEPTIONS
OTHERS = 6.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* create tree control
CREATE OBJECT go_tree
EXPORTING
parent = go_docking
node_selection_mode = cl_gui_column_tree=>node_sel_mode_multiple
item_selection = 'X' " required for double-click event on item
no_html_header = ''
no_toolbar = ''
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
illegal_node_selection_mode = 5
failed = 6
illegal_column_name = 7.
IF sy-subrc <> 0.
MESSAGE x208(00) WITH 'ERROR'. "#EC NOTEXT
ENDIF.
* create Hierarchy-header
DATA ls_hierarchy_header TYPE treev_hhdr.
PERFORM build_hierarchy_header CHANGING ls_hierarchy_header.
PERFORM build_fieldcatalog.
PERFORM set_layout_and_variant.
* create emty tree-control
CALL METHOD go_tree->set_table_for_first_display
EXPORTING
** i_structure_name = 'KNVV'
is_variant = gs_variant
i_save = 'A'
* i_default = 'X'
is_hierarchy_header = ls_hierarchy_header
* is_exception_field =
* it_special_groups =
* it_list_commentary =
* i_logo =
* i_background_id =
* it_toolbar_excluding =
* it_except_qinfo =
CHANGING
it_outtab = gt_outtab
* it_filter =
it_fieldcatalog = gt_fcat.
* create hierarchy
PERFORM create_hierarchy.
* register events
PERFORM register_events.
* adjust column_width
CALL METHOD go_tree->column_optimize.
ENDFORM. " init_controls
*& Form build_hierarchy_header
* build hierarchy-header-information
* -->P_L_HIERARCHY_HEADER strucxture for hierarchy-header
FORM build_hierarchy_header CHANGING
p_hierarchy_header TYPE treev_hhdr.
p_hierarchy_header-heading = 'Hierarchy Header'. "#EC NOTEXT
p_hierarchy_header-tooltip =
'This is the Hierarchy Header !'. "#EC NOTEXT
p_hierarchy_header-width = 30.
p_hierarchy_header-width_pix = ''.
ENDFORM. " build_hierarchy_header
*& Form BUILD_FIELDCATALOG
* text
* --> p1 text
* <-- p2 text
FORM build_fieldcatalog .
REFRESH: gt_fcat.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
* I_BUFFER_ACTIVE =
i_structure_name = 'KNVV'
* I_CLIENT_NEVER_DISPLAY = 'X'
* I_BYPASSING_BUFFER =
* I_INTERNAL_TABNAME =
CHANGING
ct_fieldcat = gt_fcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
DELETE gt_fcat FROM 8.
ENDFORM. " BUILD_FIELDCATALOG
*& Form SET_LAYOUT_AND_VARIANT
* text
* --> p1 text
* <-- p2 text
FORM set_layout_and_variant .
CLEAR: gs_layout,
gs_variant.
gs_variant-report = syst-repid.
gs_variant-handle = 'TREE'.
ENDFORM. " SET_LAYOUT_AND_VARIANT
*& Form create_hierarchy
* text
* --> p1 text
* <-- p2 text
FORM create_hierarchy .
DATA: ls_knvv TYPE sflight,
ls_outtab TYPE ty_s_outtab,
lt_outtab TYPE ty_t_outtab.
* get data
SELECT * FROM knvv INTO CORRESPONDING FIELDS OF TABLE lt_outtab
UP TO 200 ROWS . "#EC CI_NOWHERE
SORT lt_outtab BY kunnr vkorg.
* add data to tree
DATA: ld_kunnr_key TYPE lvc_nkey,
ld_vkorg_key TYPE lvc_nkey,
ld_last_key TYPE lvc_nkey.
LOOP AT lt_outtab INTO ls_outtab.
ON CHANGE OF ls_outtab-kunnr.
PERFORM add_customer_line USING ls_outtab-data
CHANGING ld_kunnr_key.
ENDON.
ON CHANGE OF ls_outtab-vkorg.
PERFORM add_salesorg_line USING ls_outtab-data
ld_kunnr_key
CHANGING ld_vkorg_key.
ENDON.
PERFORM add_complete_line USING ls_outtab-data
ld_vkorg_key
CHANGING ld_last_key.
ENDLOOP.
* calculate totals
CALL METHOD go_tree->update_calculations.
* this method must be called to send the data to the frontend
CALL METHOD go_tree->frontend_update.
ENDFORM. " create_hierarchy
*& Form add_customer_line
* add hierarchy-level 1 to tree
* -->P_LS_SFLIGHT sflight
* -->P_RELEATKEY relatkey
* <-->p_node_key new node-key
FORM add_customer_line USING us_data TYPE ty_s_outtab-data
ud_relat_key TYPE lvc_nkey
CHANGING cd_node_key TYPE lvc_nkey.
DATA: l_node_text TYPE lvc_value,
ls_data TYPE ty_s_outtab-data.
* set item-layout
DATA: lt_item_layout TYPE lvc_t_layi,
ls_item_layout TYPE lvc_s_layi.
ls_item_layout-t_image = '@A0@'. " icon_customer.
ls_item_layout-fieldname = go_tree->c_hierarchy_column_name.
ls_item_layout-style =
cl_gui_column_tree=>style_intensifd_critical.
APPEND ls_item_layout TO lt_item_layout.
* add node
l_node_text = us_data-kunnr.
DATA: ls_node TYPE lvc_s_layn.
ls_node-n_image = space.
ls_node-exp_image = space.
CALL METHOD go_tree->add_node
EXPORTING
i_relat_node_key = ud_relat_key
i_relationship = cl_gui_column_tree=>relat_last_child
i_node_text = l_node_text
is_outtab_line = ls_data
is_node_layout = ls_node
it_item_layout = lt_item_layout
IMPORTING
e_new_node_key = cd_node_key.
ENDFORM. " add_customer_line
*& Form add_salesorg_line
* add hierarchy-level 1 to tree
* -->P_LS_SFLIGHT sflight
* -->P_RELEATKEY relatkey
* <-->p_node_key new node-key
FORM add_salesorg_line USING us_data TYPE ty_s_outtab-data
ud_relat_key TYPE lvc_nkey
CHANGING cd_node_key TYPE lvc_nkey.
DATA: l_node_text TYPE lvc_value,
ls_data TYPE ty_s_outtab-data.
* set item-layout
DATA: lt_item_layout TYPE lvc_t_layi,
ls_item_layout TYPE lvc_s_layi.
ls_item_layout-t_image = '@DS@'. " ICON_PARTNER_SALES_ACTIVITY
ls_item_layout-fieldname = go_tree->c_hierarchy_column_name.
ls_item_layout-style =
cl_gui_column_tree=>style_intensifd_critical.
APPEND ls_item_layout TO lt_item_layout.
* add node
l_node_text = us_data-vkorg.
DATA: ls_node TYPE lvc_s_layn.
ls_node-n_image = space.
ls_node-exp_image = space.
CALL METHOD go_tree->add_node
EXPORTING
i_relat_node_key = ud_relat_key
i_relationship = cl_gui_column_tree=>relat_last_child
i_node_text = l_node_text
is_outtab_line = ls_data
is_node_layout = ls_node
it_item_layout = lt_item_layout
IMPORTING
e_new_node_key = cd_node_key.
ENDFORM. " add_salesorg_line
*& Form add_cmplete_line
* add hierarchy-level 3 to tree
* -->P_LS_SFLIGHT sflight
* -->P_RELEATKEY relatkey
* <-->p_node_key new node-key
FORM add_complete_line USING us_data TYPE ty_s_outtab-data
ud_relat_key TYPE lvc_nkey
CHANGING cd_node_key TYPE lvc_nkey.
DATA: l_node_text TYPE lvc_value.
* set item-layout
DATA: lt_item_layout TYPE lvc_t_layi,
ls_item_layout TYPE lvc_s_layi.
ls_item_layout-fieldname = go_tree->c_hierarchy_column_name.
ls_item_layout-class = cl_gui_column_tree=>item_class_checkbox.
** ls_item_layout-editable = 'X'.
APPEND ls_item_layout TO lt_item_layout.
** CLEAR ls_item_layout.
** ls_item_layout-fieldname = 'PLANETYPE'.
** ls_item_layout-alignment = cl_gui_column_tree=>align_right.
** APPEND ls_item_layout TO lt_item_layout.
l_node_text = us_data-vtweg.
DATA: ls_node TYPE lvc_s_layn.
ls_node-n_image = space.
ls_node-exp_image = space.
CALL METHOD go_tree->add_node
EXPORTING
i_relat_node_key = ud_relat_key
i_relationship = cl_gui_column_tree=>relat_last_child
is_outtab_line = us_data
i_node_text = l_node_text
is_node_layout = ls_node
it_item_layout = lt_item_layout
IMPORTING
e_new_node_key = cd_node_key.
ENDFORM. " add_complete_line
*& Form register_events
* text
* --> p1 text
* <-- p2 text
FORM register_events.
* define the events which will be passed to the backend
DATA: lt_events TYPE cntl_simple_events,
l_event TYPE cntl_simple_event.
* define the events which will be passed to the backend
l_event-eventid = cl_gui_column_tree=>eventid_expand_no_children.
APPEND l_event TO lt_events.
** l_event-eventid = cl_gui_column_tree=>eventid_checkbox_change.
** APPEND l_event TO lt_events.
** l_event-eventid = cl_gui_column_tree=>eventid_header_context_men_req.
** APPEND l_event TO lt_events.
** l_event-eventid = cl_gui_column_tree=>eventid_node_context_menu_req.
** APPEND l_event TO lt_events.
** l_event-eventid = cl_gui_column_tree=>eventid_item_context_menu_req.
** APPEND l_event TO lt_events.
** l_event-eventid = cl_gui_column_tree=>eventid_header_click.
** APPEND l_event TO lt_events.
** l_event-eventid = cl_gui_column_tree=>eventid_item_keypress.
** APPEND l_event TO lt_events.
l_event-eventid = cl_gui_column_tree=>eventid_node_double_click.
APPEND l_event TO lt_events.
l_event-eventid = cl_gui_column_tree=>eventid_item_double_click.
APPEND l_event TO lt_events.
CALL METHOD go_tree->set_registered_events
EXPORTING
events = lt_events
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
illegal_event_combination = 3.
IF sy-subrc <> 0.
MESSAGE x208(00) WITH 'ERROR'. "#EC NOTEXT
ENDIF.
* set Handler
set handler:
lcl_eventhandler=>handle_node_double_click for go_tree,
lcl_eventhandler=>handle_item_double_click for go_tree.
** DATA: l_event_receiver TYPE REF TO lcl_tree_event_receiver.
** CREATE OBJECT l_event_receiver.
** SET HANDLER l_event_receiver->handle_node_ctmenu_request
** FOR tree1.
** SET HANDLER l_event_receiver->handle_node_ctmenu_selected
** FOR tree1.
** SET HANDLER l_event_receiver->handle_item_ctmenu_request
** FOR tree1.
** SET HANDLER l_event_receiver->handle_item_ctmenu_selected
** FOR tree1.
** SET HANDLER l_event_receiver->handle_checkbox_change FOR tree1.
ENDFORM. " register_events
Regards
Uwe
Maybe you are looking for
-
How Can I Properly Align Content in a Horizontal Accordion?
I am having trouble aligning text after rotating the accordion widget horizontally. Everything is properly aligned and sized in the design page, but it becomes jumbled and the content area's width expands when I preview it in any browser. All I have
-
APEX_COLLECTION Ordered?
Hi, Can anyone tell me how the APEX_COLLECTION is ordered or if it even is? I have a collection that is selecting the columns out of an updateable report and inserting them into a table. But it seems to be messing the ordering up as the incorrect val
-
Cisco 3750x no ethernet connection
Hi, I seems to have a weird problem whereby clients are unable to get an ethernet connection (Port no LED lit/not connected) when using mac. Sometimes there is connection after multiple insert/disconnect using the same cable to the Mac client. This
-
Creation of an additional Literal in the cartdetaillistblock.ascx
Hi all, My question would be: How can i create, in the ./cartdetaillistblock.ascx control, a Local Literal, similar to the Literal with the ID="sysPrice" so that I can manipluate the Price value without breaking the Data flow while updating the Quan
-
Essbase add-in locked on network
Hi,We have the Essbase add-in file on a network drive and all users connect to this file.It works fine, but from time to time the add-in is locked by a user and nobody can connect anymore.Do you know why the add-in gets locked ?