Collapse event for Tree GUIBB
Hi experts,
I am implementing a tree GUIBB. I need to react on a collapse event of one single node within the tree. ( The content of the row should change depending whether the code is expanded or collapsed).
The only event that can be fired in thie case is a Lead of selection event without meaningful information, to react on the selected tree node.
Is this a bug in the Tree GUIBB or a limitation?
Dow have any ideas how to solve this issue?
kind regards,
Sahla
Hi experts,
I found the answer to my problem.
The value of the column with column_type if_fpm_guibb_constants=>gc_guibb_tree_columns-expanded. is changed from outside in ct_data!!
ct_data is a parameter of get_data.
Therefore we have the information and we can react.
kind regards,
Sahla
Similar Messages
-
Handling event for Tree Control Collapse
Hi,
Can any one suggest how to handle an event for 'Tree Node Collapse' . I have checked with all the exised tree events.
thanks,
VenuHi Venugopal,
If you are doing tree control programmin then i can suggest you a approach for tree node collapse and expand.
for doing this follow these steps.
1. create a toolbar (use class cl_gui_toolbar), add a button and assign a FCODE to it.
2. here you register the following the event for the toolbar.
gs_event-eventid = cl_gui_toolbar=>m_id_function_selected.
3. here you set the handler for the toolbar events
SET HANDLER gref_application->handle_function_selected
FOR gref_toolbar.
4. now in your class for gref_application you write a definition and implementation.
definition
handle_function_selected FOR EVENT handle_function_selected OF cl_gui_toolbar IMPORTING fcode.
implementation
CASE fcode.
when 'collapse'.
CALL METHOD xref_tree->collapse_all_nodes.
this method might change depending upon the class you use for creating the tree.
i hope this will help you.
in case of clarification do get back to me.
regards,
Kinshuk Saxena
PS mark helpful answers -
CFDebug says, "widget: Firing selection change event for tree id: t1"
How do I capture this event and code against it. Previously used this code to trap click event:
YAHOO.example.onTreeViewAvailble = function() {
var curTree=ColdFusion.Tree.getTreeObject('t1');
curTree.subscribe("labelClick", function(node) {
TreeItemClick(1,node.data.id)
When the tree becomes available (ie. after the page loads),
this code will run the code above this.
"t1"- tree name in the cftree tag
YAHOO.util.Event.onAvailable("t1", YAHOO.example.onTreeViewAvailble);
I am obviously not an expert with the Yahoo widgets, but I'm learning.
This stopped working for some reason. However the CFDebug consistently shows the subject event happening on every mouse click. I'd rather just use that. Any ideas?Roy, have you tried to reduce the complexity of your user case?
Try your use case with a simple page without a region in it first and see if you get the eating them. If yes add a region to your page and verify you get the result you expect. Only then add the portal stuff.
This will help to narrow down the error.
Timo -
Regarding the event for expand/collapse of navigation panel
Hi All,
Is it possible to have an event for the exapnd/collapse for the navigation panel of the portal.
If yes, how to achieve it..
Can we add the event for this or not.
If yes, I want to fire this event from the webdynpro ABAP to collapse or expand the navigation panel of the portal based on some condition.
Is this possible....
Thanks Much.
Regards,
Lekha.Hi,
See my thread: Hide Detailed Navigation on how to edit the relevant par file.
I guess you can add EPCM event (subscribe) and raise it from your ABAP code.
Hope it helps,
Omri -
SIZE_CONTROL Event for docking container
Hi, Everybody
I'm trying to handle size_control event for a docking container. But the event is not trigged. See the code excerpt below:
* Create left docking container
CREATE OBJECT ao_docking_container_left
EXPORTING
side = cl_gui_docking_container=>dock_at_left
extension = 300
dynnr = cl_co=>ac_main_screen
repid = cl_co=>ac_main_prog.
* Register the event
ls_event-eventid = 12.
ls_event-appl_event = 'X'.
APPEND ls_event TO lt_events.
CALL METHOD ao_docking_container_left->set_registered_events
EXPORTING
events = lt_events
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
illegal_event_combination = 3
OTHERS = 4
* Set handler
SET HANDLER handle_doclist_resize FOR ao_docking_container_left.
I have set the handle_doclist_resize method as a handler for the SIZE_CONTROL event of the CL_GUI_DOCKING_CONTAINER class (by Class Builder).I have transfered my code just into the one programm. But it still doesn't work I guess the SIZE_CONTROL event is not implemented in CL_GUI_DOCKING_CONTAINER.
*& Report ZMMM_DOCK *
report zmmm_dock .
data: ao_docking_container_left type ref to cl_gui_docking_container,
lt_events type cntl_simple_events,
ls_event type cntl_simple_event.
*& Class CL_EVENT_HANDLER
* Text
class cl_event_handler definition.
public section.
class-methods:
handle_doclist_resize for event size_control
of cl_gui_docking_container.
endclass. "CL_EVENT_HANDLER
* Create left docking container
create object ao_docking_container_left
exporting
side = cl_gui_docking_container=>dock_at_left
extension = 600
dynnr = '0100'
repid = sy-repid.
ls_event-eventid = 12.
ls_event-appl_event = 'X'.
append ls_event to lt_events.
call method ao_docking_container_left->set_registered_events
exporting
events = lt_events
exceptions
cntl_error = 1
cntl_system_error = 2
illegal_event_combination = 3
others = 4.
set handler cl_event_handler=>handle_doclist_resize
for ao_docking_container_left.
call screen 100.
*& Class (Implementation) cl_event_handler
* Text
class cl_event_handler implementation.
method handle_doclist_resize.
*Handles tree resizing
data: lv_result type sysubrc,
lv_width type i.
call method ao_docking_container_left->get_width
importing
width = lv_width
exceptions
cntl_error = 1
others = 2.
leave program.
endmethod. "handle_doclist_resize
endclass. "cl_event_handler
include zmmm_dock_status_0100o01.
include zmmm_dock_user_command_0100i01. -
Abap WD ALV: Event for calculation row?
Hi,
i have one Abap WebDynpro ALV Component. It is possible to register an event (ON_CLICK) for Cells which are an Link_to_action for example.
My Table:
ID | Group | Var
A1 | Test | 4
A2 | Test | 5
A3 | Dev | 4
A4 | Dev | 6
If i create the ON_CLICK event for the last row, which is then a link_to_action column, i can click on the numbers and the event is triggered
Now i have a table which uses the ALV Calculation feature and the Intermediate Results for the grouping.
My new output view is:
ID | Group | Var
->---Test 9
A1 | Test | 4
A2 | Test | 5
->---Dev 10
A3 | Dev | 4
A4 | Dev | 6
(It calculates the sum of the vars and groups it by the second column)
Now I need an Event if someone clicks on the numbers in the Var Row of the intermediate results row (here: 9 and 10). How can i do this?
If this is not possible, how can i register an event if someone expands or collapses a intermediate result row?
Kind Regards,
Thomas
Edited by: Thomas Rodemer on Oct 9, 2008 3:30 PM
Edited by: Thomas Rodemer on Oct 9, 2008 3:30 PMHi,
Is the DDLBK is filled with support function? if yes then look if you can enhance the method by post method exit etc..
Thanks,
Chandra -
How to implement expand/collapse property for custome components
can any one tell me how to implement the expand/collapse
property for the custom components in flex. i need something like
hierarchy of custom components which on the expand should be able
to show the children of the corresponding component and a line
linking between them and collapsing property too.. can any one help
me out.."hanu106" <[email protected]> wrote in
message
news:gfr2co$biq$[email protected]..
> can any one tell me how to implement the expand/collapse
property for the
> custom components in flex. i need something like
hierarchy of custom
> components
> which on the expand should be able to show the children
of the
> corresponding
> component and a line linking between them and collapsing
property too..
> can any
> one help me out..
Tree?
AdvancedDataGrid?
Nested Acordions -
Hello,
May I know if it is possible to change the background or the font of one line in a GUIBB tree.
E.g. After we select a line and want to highlight this line.
Thank you very much.
ShuminHi,
As the previous answer was a little oriented on pure WD ABAP rather than FPM, I will try to give the FPM answer: YES and NO
YES -> Yes, you can set the color for the line/cell.
NO -> No, you cannot set a color for the master column. (Issue addressed to FPM, but if you have any channels please also address it...maybe it gets promoted then )
To set the color for a line or cell you first have to create an additional attribute in the table structure used by the Tree GUIBB. After that you have to redefine the method
IF_FPM_GUIBB_TREE~GET_DEFINITION
in the Tree feeder class
CL_GUIBB_BOL_TREE
and link the cell you want to color to the new cell containing the value of the color:
LOOP AT et_field_description ASSIGNING <ls_field_description>.
CASE <ls_field_description>-name.
* set color for last column
WHEN 'AMOUNT_09'.
<ls_field_description>-cell_design_ref = 'CELL_COLOR'. "name of cell with color value
So now, after telling FPM where to find the color value, you have to define which color to use. Best place - or at least where we did it - is the method
IF_FPM_GUIBB_TREE~GET_DATA
of the Tree feeder class:
LOOP AT ct_data ASSIGNING <ls_data>.
ASSIGN COMPONENT 'AMOUNT_09' OF STRUCTURE <ls_data> TO <l_amount>.
ASSIGN COMPONENT 'CELL_COLOR' OF STRUCTURE <ls_data> TO <l_cell_color>.
IF <l_amount> < '100-'.
<l_cell_color> = '06'."set red color for negative value
ELSE [...]
I hope I could help you!
Kind Regards,
Robert -
Deep Linking/URLKit for Tree
Does anyone know if its possible (and if so, how) to use Deep Linking and URLKit to take a user to a particular node in a tree and open that branch item?
Thanks,
Danaaaaand? what? nobody knows how to implement urlkit to Tree?
UPD: oh. sorry. i fix it in my head))
UPD2:hmm, fix it not enough
i use this...
protected function tree_changeHandler(event:ListEvent):void
blablabla
stringa =tree.selectedItem.@name;
+
<url:UrlValueRule id="Rule" stringValue="{stringa}" sourceValue="tree.selectedIndex" change="stringa = Rule.stringValue" urlFormat="|*" defaultValue="0"/>
... for my Tree and its change url, but when i enter my new url in browser its reset url and spit in my face...
whyyyyyyyyyyy!
ps:leaving one of stringValue/sourceValue don't make it work.
maybe this forum have some people who implement urlkit for Tree well? -
When previewing images by clicking on the thumbnail in an Event for example, I've been finding that many images preview in a 'zoomed in' way so only a small part of the photos is previewed in a highly magnified view.
Initially I could find no cause. Then I tried right click - Edit and on the affected images, always get this warning:
"Image Cannot Be Edited - This photo was previously edited with another application or with an early version of Iphoto. Duplicate this photo to edit it." and a "Duplicate To Edit" Button is displayed.
The external Editor defined for iPhoto is Adobe Photoshop Elements.
Now, I reckon the MUST be others out there affected by this same apparent Preview bug, yet my searches have not revealed any answers. Also seems impossible to find a contact number for adobe???
ThanksStart '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Firefox in Safe Mode]''' {web Link} by holding down the '''<Shift ''(Mac Options)'' >''' key, and then starting Firefox. Is the problem still there?
-
Client side event for h:outputText... and other JSF component
Hello friends...
I need client side (to use Java script ) event for change in <h:outputText /> or <h:inputText...>.
I want to open a popup window when there is a change in there. I donot want to use onblur() for this. Is there any thing for achiev it.
Thanks.
Regard
Roshan Lal ( I don't know why there is "DOG" display in LIST )
:-)Hi Jacek,
Unfortunately I think you may be stuck extending Renderer. Another possibility is creating your component via a template, which will be available in JSF 2.0. However, as JSF 2.0 won't be out for a while... you can use JSFTemplating in the meantime:
http://java.sun.com/developer/technicalArticles/J2EE/jsf_templating/
http://www.theserverside.com/tt/articles/article.tss?l=JSFTemplateComponent
Good luck!
Ken Paulsen
https://jsftemplating.dev.java.net -
Need To Return Calendar Events For Current Day
Hello,
I have a calendar which includes seperate start and end date fields. I need to write a query that will return events for each day in a month, but I need to be mindful of the fact that some events span multiple days. Here is my query so far which isn't working quite right.
<cfquery name="qTodayEvents" datasource="#getDatasource()#">
SELECT eventID, title, summary, code, description
FROM events INNER JOIN eventTypes ON events.typeID=eventTypes.typeID
WHERE deleted=0
AND
startDate >= <cfqueryparam cfsqltype="cf_sql_timestamp" value="#todayStartTime#" />
AND startDate <= <cfqueryparam cfsqltype="cf_sql_timestamp" value="#todayEndTime#" />
) OR (
endDate >= <cfqueryparam cfsqltype="cf_sql_timestamp" value="#todayStartTime#" />
AND endDate <= <cfqueryparam cfsqltype="cf_sql_timestamp" value="#todayEndTime#" />
) OR (
startDate <= <cfqueryparam cfsqltype="cf_sql_timestamp" value="#todayStartTime#" />
AND endDate >= <cfqueryparam cfsqltype="cf_sql_timestamp" value="#todayEndTime#" />
</cfquery>
The query is located inside a loop which loops through the days in a given month.
Does anyone know what I am doing wrong? Any assistance would be appreciated.
Many thanks,
SimonYou have to do nested loops - one for the days of the month, and once for the query. It probably does not matter which is nested inside of what. You want your query ordered by EndDate. Then you can do something like this.
ControlDate = Date1;
MaxDate = arraymax(yourquery["enddate"]);
<cfloop condition = ControlDate lt Date2>
<cfloop from = "1" to = yourquery.recordcount index = 1>
<cfif ControlDate >= StartDate and ControlDate <= EndDate>
your code goes here
<cfelse>
break
</cfif>
<cfloop>
add a day to ControlDate
maybe break if the control date is greater than the max date.
</cfloop> -
Looking for help in organizing my photos. I would like to organize them so that i can put all of the events for a year into one folder (i would like to keep multiple events under a folder)? Help please?!
Like Larry suggested:
Click to view full size
The top folder could be named 2011. In it could be 12 smart folders each with the following criteria:
Date is in the range" mm/01/yyyy to mm/31/yyyy.
So the 2011 folder would have 12 month smart albums each with the photos for that particular month.
Or you can use the search by date function at the bottom of the window to search by year, month, week or day.
OT -
How to set fire action event for particular rows in a table
HI All,
I have a requirement in which I want to set fire action event for particular rows in a table based on some condition.
The table has columns like fullname,employee id etc.
So i want to set fire action event for particulars rows only which will saisfy some condition.Atanu,
Your approach(setting fire action for few rows) seems not possible. Better to go ahead with workaround.
Do you want this functionality in processRequest(while page loading) or processFromRequest(on some event) method ? Give more explanation regd. your requirement ?
In either case loop through the rows and when your condition is met write the action to be performed in controller.
Regards,
Anand -
How can I export a list of events for one of many calendars - e.g. "sailing" to use in Excel?
See this thread here
Display number of emails by sender
Maybe you are looking for
-
Oracle 9i Installer Won't Even Launch??
Hi, I have a brand new installation of Windows 2000 Server with SP 3 on a P-II 366 with 256 megs ram. When I try to run setup.exe on CD 1, I get the following error right away: "The Java Runtime Environment was not found at c:\docume~1\admini~1\local
-
Mac goes to repeated sleep/instant-wake at night, Sleep Cause 5
Hi There i have a new MacBook Pro 15" 16GB. - No USB Disks attached - Thunderbolt Display - Thunderbolt Gigabit Ethernet - USB Mice and Keyboards - Synology NAS for Shares and TimeMachine over Gigabit Ethernet Adapter not WLan My macbook has to run o
-
Text is overriding above layer
I have text in layer one (bottom) and i have a tooltip widget in the top layer, and the text from layer one is overriding the tooltip widget? What is going wrong?
-
Dear Gurus, In my MRP views in material master, In House Production Time is defaulted in days, could anyone please tell me if I can maintain this in Hours, If Yes, How? Regards Sri
-
I have rocketmail, which ages ago was acquired by yahoo. So my email is @rocketmail.com, but I log in with a Yahoo id, and my email is yahoo. Now the question is has anyone figured out how to remove the pre-populated @yahoo.com in mail. Or have sugge