ViewcontainerUIElement Event
hi
how can i create a pop up in alv rowselection event.
and how can i hide a column in alv ?
Hi Mesut,
Making a column visible/invisible:
To do this you first need to get the reference of the desired column using method GET_COLUMN of IF_SALV_WD_COLUMN_SETTINGS and then set the desired visible/invisible property using the method SET_VISIBLE of CL_SALV_WD_COLUMN. Go through the sample fragment shown below:
Sample Fragment:
data lo_cmp_usage_alv type ref to if_wd_component_usage.
* Instantiate the ALV Component
lo_cmp_usage_alv = wd_this->wd_cpuse_ywdcu_src_icx_alv( ).
if lo_cmp_usage_alv->has_active_component( ) is initial.
lo_cmp_usage_alv->create_component( ).
endif.
* Get reference to model
DATA lo_value TYPE ref to cl_salv_wd_config_table.
lo_value = lo_interfacecontroller->get_model( ).
DATA: LR_COLUMN_SETTINGS TYPE REF TO IF_SALV_WD_COLUMN_SETTINGS.
LR_COLUMN_SETTINGS ?= lo_value,
LR_COLUMN_TAR_DATE_TIME TYPE REF TO CL_SALV_WD_COLUMN.
" Get the reference of the desired column
LR_COLUMN_TAR_DATE_TIME = LR_COLUMN_SETTINGS->GET_COLUMN( '<context_attribute_name>' ).
" Set the visibility of the column to the desired value. Below line sets its as invisible
LR_COLUMN_TAR_DATE_TIME->SET_VISIBLE( IF_WDL_CORE=>VISIBILITY_BLANK ).
Displaying a popup on row selection:
To be able to display a popup on selecting a row in ALV you need to make use of the ALV event ON_LEAD_SELECT. Create an event handler method for this event & write the code for generating the popup in this method. (You can use the code wizard for taking care of this coding. Just go to code wizard & select the "Generate popup" option. Specify the component usage & press enter. All the necessary coding would be automatically generated for you.)
Sample Fragment:
METHOD on_lead_select .
DATA: lo_window_manager TYPE REF TO if_wd_window_manager,
lo_api_component TYPE REF TO if_wd_component,
lo_window TYPE REF TO if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->create_window(
window_name = 'TEMP'
message_display_mode = if_wd_window=>co_msg_display_mode_selected
button_kind = if_wd_window=>co_buttons_ok
message_type = if_wd_window=>co_msg_type_none
default_button = if_wd_window=>co_button_ok ).
lo_window->open( ).
ENDMETHOD.
If you want to know the default selected row in the ALV & the index of the new row which was selected by the user you can get the information from the 2 instance variables of CL_SALV_WD_TABLE_LEAD_SELECT:
IF_SALV_WD_TABLE_LEAD_SELECTINDEX & IF_SALV_WD_TABLE_LEAD_SELECTOLD_INDEX
Try go through this [link |https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40794172-b95a-2910-fb98-b86d8a0918b4]for more information about using ALV & popups in WebDynpro ABAP.
Regards,
Uday
Similar Messages
-
Between two ViewContainerUIElements want to add RadioButton & Its Events ch
Hi friends,
I have requirement using the WebDynpro JAVA that between the DropdownList and TableView I want to add Radio Button. And want to change the even accordingly.
There is a ViewContainerUIElement_A which contained the Single DropDownList and another ViewContainerUIElement_B which contained the TableView. So based on the selection of dropdown list (ViewContainerUIElement_A) displayed records in the TableView(ViewContainerUIElement_B). Dropdown and tableView are both use the Adaptive RFC Model. Which is working fine.
Now i try to modify like this :
I have created the RadioButton as per requirement, after selection of DropDownList , I am getting the radioButton values and able to select and see the change values while clicking the Radio button which is perfectly working fine but tableView is not refreshing at all.now my question is how to call the TableView(ViewContainerUIElement_B) using the Radiobutton?
So do I need to create the ViewContainerUIElement_C for RadioButton also, currently I am using the simple Radiobuton and Group for this.
Do I need to create ViewContainerUIElement_C for RadioButton also? How to link with inbound plugs with this and how to call the even.
Suggest me plz.
Thanks
AliHi Suresh,
Since TableView is ViewContainerUIElement and creating dynamically so not able to see much codes here. Any Idea how to refresh the TableView using onSelect.
I already assigned one method under the OnSelect of RadioButton using that i can see the selected values as message.
Is there any way to call the Dropdown list event in the Radio Button?
Thanks
Ali -
TabStrip and ViewContainerUIElement
Hello Experts,
I have MAIN view which contains one tabstrip control having 3 tabs. Each tab consists of one ViewContainerUIElement. Currently when I test the main View, All the views are displaying correctly, and control goes as follows:
1. WDINIT of MAIN
2. WDINIT of First view which is present in first tab's ViewContainerUIElement
3. WDINIT of Second view which is present in second tab's ViewContainerUIElement
4. WDINIT of Third view which is present in third tab's ViewContainerUIElement
But my requirement is as discussed below.
Each time view's WDINIT should be called when use clicks on Tab. That means initially first tab is displayed and when user click on second tab, WDINIT of view present in second tabs's ViewContainerUIElement should be called and same for third view as well.
Could you please give me any pointers on this? I tried to set Lifetime property of views but no success.
Thanks,
PrashantYou are going to have to change the way the tabstrip itself works. By default the tabstrip renders all the inner tabs at once and then does the tab switch on the client side wihtout a return to the server. This causes more initial processing but saves time on each tab switch.
If you want a server event on each tab switch, then you need to use onSelect event of the tabStrip. In this event you will need to trigger a navigation plug in the Window. Within the processing of this navigation plug, you fire additional plugs that will switch between EMPTYVIEW and the real view in each tab/viewContainer. Any currently invisible tabs should be switched to the dummy EMPTYVIEW. This action combined with the lifetime setting will cause the inner view to be destroyed. Consequently when the user reselects this tab it will be recreated and the WDDOINIT will fire again. -
Training and Event Management - report on list of cancelled courses
Hi All,
Is there any standard report available to get the list of cancelled courses (be it business event grp , type or business event) Would appreciate your inputs on this.
Kind regards
SathyaS_AHR_61016216 - Cancellations per Attendee , i think there is no standard report for cencelation of business events, type and group.
for cancellations per attendee reports is available in the system.
good luck
Devi -
How can I see Calendar event END times at a glance?
How can I display my Calendar event titles exactly as I type them? I do not want Calendar to remove duration from the titles of my events. Otherwise I can't see event END times at a glance in month view; only start times. How can I "trick" Calendar to just show my titles as I type them - as I always could before I upgraded. I used to be able to enter "Seminar 9am-5:45" and it would appear that way regardless of how or what I chose to enter (or not enter) for duration.
I am running OSX 10.9.3.It's a bit weird, but if you type in the time info TWICE into the event title then Calendar uses/deletes one of them to populate the event details and leaves the other.
Apple - Mac OS X - Feedback -
Event List view in iCal?
I would love to have an Event List view in iCal like I do on the calendar on my iPhone. Is there such a thing? The particular reason for wanting it (this time) is that one of the calendars in the ON MY MAC list has a number in a oval to the right.
I believe this is trying to tell me that there is a new event that I need to do something about. Problem is, I don't know where to find it.ecernek,
There is no event list option on iCal like the one on the iPhone.
That number means that you have an event invitation. Use iCal>View>Show Notifications to choose what to do with the notification. -
In the Monthly view of iCal the only events that show a color bar in the event is the Birthday Calendar. All other events in all my other calendars only show a color bullet next to the event (unless I click on that event which then shows as a color bar). I would like to know if it is possible for all the calendar events to have a color bar in the monthly view instead of just that tiny color bullet.
Greetings Judith,
Before making any attempts at deleting calendar data, backup what you have just in case:
Click on each calendar on the left hand side of iCal one at a time highlighting it's name and then going to File Export > Export and saving the resulting calendar file to a logical location for safekeeping.
iCal has an automated function located in iCal > Preferences > Advanced > Delete events "X" days after they have passed. By typing in a value for days you can tell iCal to delete all events before that time frame.
Example:
Today is 4-16-2012.
If I wanted to delete all events prior to 1 year ago (4-16-2011) I would type in "365" for the number of days.
Once you type in the number of days you want kept in iCal, close the preferences and then quit iCal.
Re-open iCal and check to see if the events are gone. If not you may want to leave it open for several minutes and then quit again.
Once the events are removed go back to iCal > Preferences > Advanced > Delete events "X" days after they have passed and make sure the check mark is removed to prevent future deletion.
Hope that helps. -
Can you show at a glance which event images are in albums?
Say I had an event containing multiple similar but different images, is there a way to show in the grid view for example which images have already been used in one or more albums?
Would be handy to be able to select a 'show list of albums containing this image'dialogue box. I guess you could hide images you've used but that wouldn't work automatically, nor would any other tagging/rating.
Another approach would be to make albums containing everything in a given event, then move the images out of that album once used, just seems fiddly to me.
ACAC
Would be handy to be able to select a 'show list of albums containing this image'dialogue box.
Yes it would and many people have suggested tit. Add your voice to the chorus at iPhoto Menu -> Provide Apple Feedback.
A workaround - and it's no better - is to go to an album and select al, then give all those pics a keyword. Then in grid view you can see which pics have the keyword. (View -> Keywords)
Regards
TD -
Unable to capture startup and shutdown event of Photoshop in automation Plugin.
Hi,
I am creating an automation plugin and I want to register some events. I have seen listener plugin sample to register event in startup and unregister event in shutdown. I have used same code in my plugin but I am unable to capture the startup nad shutdown event of Photoshop. On clicking the menu item of my plugin the calls come inside the AutoPluginMain but during the startup or shutdown of plugin, the calls does not come inside the AutoPluginMain.
I am unable to detect the cause of the problem. Can someone please giude me??
Thanks in advance.Hi Tom,
Thanks for the suggestion.
Yes, I am working on Windows. As you suggested, I compiled .rc file but the compile option for .r file was disabled. After compiling the .rc file, I again rebuild the complete project and tested my build. But still I was not able to achive the desired result.
Any other thing that I need to do to make it work?
Thanks -
Unable to capture button event in pageLayout Controller
Hi Guys,
I have the following layout
pageLayout
pageLayoutCO (controller)
----header (Region)
----------messageComponentLayout (Region)
-----------------MessageLovInpurt
-----------------MessageChoice(Item)
-----------------MessageTextInput
-----------------MessageLayout
----------HideShow (Region)
-----------------MessageLovInpurt(Item)
-----------------MessageChoice(Item)
-----------------MessageTextInput(Item)
-----------MessageComponentLayout (Region)
-----------------MessageLayout
------------------------SubmitButton(ID:SearchBtn)
------------------------SubmitButton(ID:ClearBtn, fires partial action named clear)
-----------header(Region)
I am not able to capture the event fired by the button ClearBtn in the controller of the pagelayout.....
The two methods I used as follows aren't worked:
if ("clear".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
if (pageContext.getParameter("ClearBtn") != null) {
what should i do in order to capture the button event in the pageLayout Controller
Thanks in advance
Mandy
Edited by: user8898100 on 2011-8-2 上午7:49Mandy,
Its really strange that its not able to caputure the event in CO.
Below is the way in which we handle to Submit action at CO level.
/Check whether ClearBtn is same in case too.
if(pageContext.getParameter("ClearBtn")!=null){
System.out.println("Inside the Clear Btn Action");
Regards,
Gyan -
SAP event not triggering in B1if
Hi,
Facing an issue when creating JE in one company on trigger of this b1if scenario gets activated and create JE in another company,earlier it was working fine, after upgrading Integration Component from SAP 9.0 PL12 to SAP 9.0 PL15 issue occurred.
In message log in b1if can't see any log(Success,Failure,Processing,Filtered).
Any help would be appreciated.
ThanksHi,
Please check on event sender setup.
Have you click on "Create Complete Journal Entry Events" on 4th step of Event sender in Event Filter option ?
Thanks,
Tushar -
I am using Snow Leopard on a MacBook. I have an iPod touch 3G. I do not use iSync it Mobile Me. When I sync my iPod through iTunes new events on my iPod do not show up on my Mac and old events do not delete. I have read help instructions that include deleting the data on the iPod. The iPod has the correct data and the Mac does not so I have not followed those instructions. I need help as the only reason I bought the Mac was to be able to sync, back up, view and print my calendar. Currently it is useless. If only Apple could have learned from the elegance of the Palm software.
Start here:
iPhone, iPad, or iPod touch: Device not recognized in iTunes for Windows -
Get All Values From NewForm.aspx using Event Receiver Item Adding
HI All,
I have conditions to check before the insertion of "Calendar Event".For this I am using Item Adding Event Receiver ,When Click on Save button I need to get all the values of Items filled in NewForm.aspx and check
the condition,If condition satisfies make them insert else show alert info as"Not Valid",Below is code and error message
public override void ItemAdding(SPItemEventProperties properties)
base.ItemAdding(properties);
string StartTime = properties.AfterProperties["Start Time"].ToString();
string EndTime = properties.AfterProperties["End Time"].ToString();
Error
Object reference not set to an instance of an object.
Use the New "Keyword to create an object instance
Can any one help me how can I do it.
Thanks,
Quality Communication Provides
Quality Work.
http://siddiq-sharepoint2010.blogspot.in/
Siddiqali Mohammad .Hi,
Have you tried with the code snippet as mentioned below
string EndDate = Convert.ToString(properties.AfterProperties["EndDate"]);
string StartDate = Convert.ToString(properties.AfterProperties["EventDate"]);
If my post is helpful - please click on the green arrow to mark it as answer -
Problem with flash in events packaged application
Hi,
I´v installed the Events packaged application.
On page 24 you can show some flash-reports. But I get an error: xml loading failed (flow_flash_chart_Rxxxxx).
What can be the reason? serverside or desktopside?
Any reaction will be appreciated.
LeoTry the following
close all browser windows and open Windows Explorer
in the address bar type %appdata%\Adobe
delete the 'Flash Player' folder in there
in the address bar type %appdata%\Macromedia
delete the 'Flash Player' folder in there
Now try again to change any Flash Player settings. -
Each time I try to synch photos from my Windows7 PC to my iPad2, iTunes stops working and the error message is:
Problem Event Name: APPCRASH
Application Name: iTunes.exe
Application Version: 10.3.1.55
Application Timestamp: 4deec351
Fault Module Name: ntdll.dll
Fault Module Version: 6.1.7601.17514
Fault Module Timestamp: 4ce7ba58
Exception Code: c0000005
Exception Offset: 0002e3fb
OS Version: 6.1.7601.2.1.0.768.3
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
I reloaded iTunes 10 (64 bit) successfully, but the problem remains the same.
Any suggestions?I looked in the folder from which I want to synch photos, but there is no such thing as an "ipod photo cache" in that folder, or sub-folders, as suggested in the link which you were nice enough to provide.
I have also tried removing photos from my iPad2 Photos App, and "iTunes has stopped working" shows up again as soon as I click on the "Synch photos from" button.
Maybe you are looking for
-
Removing extra spaces from a long document
Hello I have seen a number of find/change and GREP formulas to do similar things. I have NO scripting or coding experience and have labored to understand GREP. So I am a little afraid to use it as I don't know what all the modifiers refer to (I do ha
-
BI 7.0 Question on RDA (Real Time Data Acquisition)
Those who have all implemented RDA (real Time Data Acquisition) in BI 7.0, could you please tell me if this is limited to only a few of the extractors or available to all the business content extractors. Reason I ask this question is I read that if y
-
I have an iMac, iMac, 10,1 10.8. I would like to have iCloud downloaded to my computer. Does my computer have the system requirement necessary. I use iCal on my Apple Notebook and Iphone 4S and want it to my Mac Desktop to sinc with all my Apple Pro
-
Problem with JuniperSetupClientInstaller. Does not run, only save option
Firefox is a optional application used in our organization. There about 2000 Firefox users. We have VPN portal running from web interface, which uses Juniper Client to connect intranet. Until Firefox version 6 it was working ok. Since Firefox 7, when
-
Wireless Music - trouble with accents in artist's na
Is anybody else having this problem? On the remote if a artist has special character in his name like a accent over the e, like you might see in a Spanish or Portuguese name, there is music listings under his name, but if you go to the album name whi