Catching cancel event of inputListOfValues
How i can get event when user clicks cancel button in inputlostofvalues popup
For the cancel button click, there is no public event defined. If you have used your own implementation of ListOfValuesModel then the method searchCancelled() is provided as a hook when the cancel button is clicked in the lov popup.
-Thanks,
Srinath.
Similar Messages
-
How do I catch cancel dialogEvent from a popup?
Guys and Gals,
I was wondering about this myself and after doing a little googling and forum spelunking, thought I'd share what I came up with.
Setup:
<ol>Edit dialog inside of a popup. PopupCanceledListener and DialogListener defined</ol>
Requirement:
<ol>Need to catch cancel event to perform operation, most often a rollback</ol>
Issues:
<ol>By default, it does not appear that the "cancel" event triggers the dialog's dialogEventListener. Changing the dialog to yes/no has its own problems and so does inserting your own af:commandButtons. (TP4: ok/cancel dialogEvent - how to undo work?
Proposed Solution:
<ol>Record the state of the last dialog's event in a string. Compare that string's state to your PopupCanceledListener to perform an operation.</ol>
private String dialog = "cancel";
public void partDialogListener(DialogEvent dialogEvent)
BindingContainer bindings = getBindings();
if (dialogEvent.getOutcome().name().equals("ok"))
dialog = "ok";
public void onPartPopupCancelListener(PopupCanceledEvent popupCanceledEvent)
if (dialog.equals("cancel"))
// perform cancel operations
dialog = "cancel";
}Hope it helps someone out.Hi,
the popup has a client side (JavaScript) cancel event
http://download.oracle.com/docs/cd/E15523_01/apirefs.1111/e12419/tagdoc/af_popup.html
Maybe this is a better option than setting a flag
Frank -
Hello,
I would like to know if it is possible to cancel an event.
For example :
My user want to delete a row in document lines
I catch those event Ctrl/k and MenuUID = "1293"
I verify if a user field is empty.
If it is empty, i allow the user to delete the row.
If it is not empty, The user is not allow to delete this line so I want to cancel the event.
Is there someone who have any idea ?
Thks for your help.
LaetitiaThis behaves the same for ItemEvents as well as for MenuEvents:
Setting BubbleEvent to false will stop SBO from processing the event.
Taken from UI-Help:
// to stop SAP Business One from processing this event
// unmark the following statement
// BubbleEvent = False -
How do I display cancelled events in iCal?
In a simple paper calendar, you can easily mark a cancelled event by drawing a big X over it. Why is that impossible with a €1000-computer? I just cannot get it into my head that it can't be done.
And another thing, in Sweden at least, Sundays and holidays are colored red in printed calendars. That way it is very easy to locate them when you glance at the calendar. Now, my computer has millions of colors - and yet it is evidently impossible to color certain dates to make the calendar more readable.
I suppose that at least some of the people who designed iCal must have used a paper calendar at one point or another in their life. So why not make a computer calendar program that can make everything a paper calendar can do AND all the things it can't?
MacBook Intel Core 2 Duo Mac OS X (10.4.9)Welcome to the discussions, Anders.
Tell Apple your suggestions at OS X Feedback.
You can subscribe to a Swedish holidays calendar at http://www.icalworld.com/intl.html - but I don't think it will be coloured!
AK -
How to get the cancel event of inlineDocument-style dialog.
Hi experts,
My customer has a question about ADF dialog framework.
When we open new inlineDocument-style dialog from af:commandButtton, how can we get dialog cancel event?
[Sample code]
<af:commandButton id="cb2" action="dialog:test"
windowModalityType="modeless"
text="dialog:test" windowHeight="500"
windowWidth="800"
windowEmbedStyle="inlineDocument"
useWindow="true"/>
When we use af:popup, it has popupCanceledlListener attribute so that we can handle the situation where users click close button or Esc button.
Does dialog have a similar feature?
We can set a returnListener for dialog, but it doesn't work in case users click close button.
Regards,
Atsushiis this what you are looking for [url http://www.oracle.com/technetwork/developer-tools/adf/learnmore/77-ok-cancel-support-in-dialog-351871.pdf]Handling the af:dialog Ok and CANCEL buttons
and [url https://blogs.oracle.com/jdevotnharvest/entry/strategies_for_controlling_the_af]Strategies for controlling the af:popup close event
Edited by: Mohammad Jabr on Apr 27, 2012 11:34 AM -
How to catch click event on BAR or a BAR GRAPH???
Hello
I want to implemnt following things,
1. there is Bar Graph containing 10 Bars.
2. So i want to navigate to 10 diff. pages on click of each bar.
So how to catch click event on BAR or a BAR GRAPH.????Hi,
You can set Destination URI on a graph. The URL can be specifically associated to a particular data point plotted in the graph.
Detail for the same is provided in OAF developer guide under 'Charts and Graphs' topic.
--Sushant -
Catching key events in application
I have a JFrame with a JDesktop containing lots of JInternalFrame with various of components such as JTextFields etc.
Now, i want to have a "main" listener that will catch key events no matter which component that has focus. For example pressing CTRL+A should produce something in the application no matter which component that has focus.
How do I implement this in an easy way?It doesnt seem to work to add a KeyListener to the JFrame...
this.addKeyListener(new KeyAdapter(){
public void keyTyped(KeyEvent e){
System.out.println("KeyTyped()");
public void keyPressed(KeyEvent e){
System.out.println("KeyTyped()");
});Adding that to the JFrame gives nothing to System.out when a JTextArea inside an JInternalFrame has focus. -
How to catch the event for change dropdown value in alv
it has a column output by dropdown in alv. the dropdown type cl_salv_wd_uie_dropdown_by_idx.
now the problem is if change the dropdown value, i want to catch the event to change another column value.
how can i do it?This part contains other ALV initialization code
*... init ColumnSettings
DATA:
lr_column_settings TYPE REF TO if_salv_wd_column_settings.
lr_column_settings ?= wd_this->r_table.
DATA:
lt_columns TYPE salv_wd_t_column_ref.
lt_columns = lr_column_settings->get_columns( ).
DATA:
ls_column TYPE salv_wd_s_column_ref,
lr_col_header TYPE REF TO cl_salv_wd_column_header,
l_tooltip TYPE string.
LOOP AT lt_columns INTO ls_column.
CASE ls_column-id.
WHEN 'PLANETYPE'.
DATA:
lr_drdn_by_key TYPE REF TO cl_salv_wd_uie_dropdown_by_key.
CREATE OBJECT lr_drdn_by_key
EXPORTING
selected_key_fieldname = ls_column-id.
lr_drdn_by_key->set_key_visible( abap_true ).
ls_column-r_column->set_cell_editor( lr_drdn_by_key ).
WHEN OTHERS.
ENDCASE.
ENDLOOP.
DATA:
node_info TYPE REF TO if_wd_context_node_info,
lt_valueset TYPE STANDARD TABLE OF wdr_context_attr_value,
l_value TYPE wdr_context_attr_value.
node_info = wd_context->get_node_info( ).
node_info = node_info->get_child_node( 'FLIGHT_INFO' ).
data : lt_sflight type STANDARD TABLE OF sflight,
ls_sflight like LINE OF lt_sflight.
SELECT * from sflight into TABLE lt_sflight.
LOOP at lt_sflight into ls_sflight.
l_value-value = ls_sflight-planetype.
l_value-text = ls_sflight-planetype.
INSERT l_value into TABLE lt_valueset.
ENDLOOP.
node_info->set_attribute_value_set(
name = 'PLANETYPE'
value_set = lt_valueset ). -
Where can we catch the event which leads to downloading a report to a local
Hi frnds,
can u help me out . actaully ,i have a classical interactive report. it has many headings.Because of the initial headings ,if i try to download that report to a local file ,the column allignments are disturbed.
So,one way i feel to get the download correctly ,is that ,some how i can catch the event whcih leads to the download of the report ,and based on the occurence of that event ,i can restrict the page headings to appear in the downloaded spreadsheet ,so that the there are no, unwanted columns getting inserted in between .
Regards
Rajesh.hi,
you can have selection screen field : "parameters : p_disvar like disvariant-variant." and at event selection scree you can call the below function and select the variant create for the report.
"at selection-screen on value-request for p_disvar.
call function 'REUSE_ALV_VARIANT_F4'
exporting
is_variant = g_variant
I_TABNAME_HEADER =
I_TABNAME_ITEM =
IT_DEFAULT_FIELDCAT =
i_save = g_variant_save
importing
e_exit = h_exit
es_variant = gx_variant
exceptions
not_found = 1
program_error = 2
others = 3.
if sy-subrc is initial and h_exit is initial.
g_variant-variant = gx_variant-variant.
p_disvar = gx_variant-variant.
else.
message id sy-msgid type 'S'
number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
Atul -
Catching Custom Events in Actionscript
I have a custom component that opens a new window with a video player in it. I need to pass a bunch of stuff into it, so there's a lot of binding expressions. I need to be able to catch it's complete event (when the video is finished playing). But the event I dispatch isn't working. Here's my custom component class:
[CODE]
<?xml version="1.0" encoding="utf-8"?>
<!-- This is a window component which creates a transparent window with no system chrome (no bars, close, min, max buttons, resize stuff) that contains a single video object to be able to play videos from a folder called "videos" in the root of this application. This screen is spawned from the main MXML WindowedApplication using AS 3. -->
<s:Window xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:customComponents="customComponents.*"
systemChrome="none" visible="true" transparent="true" showStatusBar="false" width="400" height="300"
>
<fx:Metadata>
[Event(name="MOVIE_LOAD", type="flash.events.Event")]
[Event(name="MOVIE_FINISH", type="flash.events.Event")]
</fx:Metadata>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:layout>
<s:BasicLayout />
</s:layout>
<fx:Script>
<![CDATA[
import org.osmf.events.TimeEvent;
[Bindable]
public var displayScreenWidth:int = 1024;
[Bindable]
public var displayScreenHeight:int = 768;
[Bindable]
public var videoName:String;
// Note that the following two variables are set to true by default because the screen saver goes in first.
[Bindable]
public var muteVideo:Boolean=true;
[Bindable]
public var loopVideo:Boolean=true;
// In order to allow it to play, I had to extend the play method for the VideoDisplay to a public function.
public function play():void
videoDisplay.play();
protected function dispatchMovieLoad(event:Event):void
var eventObj:Event = new Event("MOVIE_LOAD");
dispatchEvent(eventObj);
protected function dispatchMovieFinish(event:TimeEvent):void
var eventObj:Event = new Event("MOVIE_FINISH");
dispatchEvent(eventObj);
]]>
</fx:Script>
<s:VideoDisplay id="videoDisplay" x="0" y="0" width="{displayScreenWidth}" height="{displayScreenHeight}" source="videos/{videoName}"
autoPlay="true" muted="{muteVideo}" loop="{loopVideo}" complete="dispatchMovieFinish(event)" />
</s:Window>
[/CODE]
When I try to catch the event, I use this code:
[CODE]
/* Plays a video, and enables sound and disables looping. It also defines what do to when the video reaches completion. */
protected function playVideo(vidName:String):void
videoScreen.addEventListener(Event.MOVIE_FINISH, loadScreenSaver);
videoScreen.muteVideo = false;
videoScreen.loopVideo = false;
videoScreen.videoName = vidName;
videoScreen.play();
[/CODE]
The problem is, i get the error by the addEventListener line that reads:
Multiple markers at this line:
-1119: Access of possibly undefined property MOVIE_FINISH through a reference with static type Class.
-addEventListener
I don't know how to get around this. When I type "addEventListener(" and hit control+space bar, I see "Event.MOVIE_FINISH" on the list, citing my custom component as the source. Even when I had it called movieFinish in the component, I still saw "MOVIE_FINISH" for my event in the code help. So, I changed the name, but I cannot get rid of the error, and therefore my program won't compile fully. Any ideas?The first argument to addEventListener() is just a string. You can do:
videoScreen.addEventListener("MOVIE_FINISH", loadScreenSaver); -
Hi,
i have a idea for a program. I want to catch all actions from the users. If the user performed this action with the mouse, i wanna show him a notification with the shortcut of this actions. For example: The user open with the mouse a new tab in Safari the program recognize this and show him a message "Hey you can do this with: Apple + T".
I played around with the
Code:
addGlobalMonitorForEventsMatchingMask:NSLeftMouseDownMask
but i can't find a connection to the Event that has been performed. Is there anybody with a idea how i can do this with build in classes from Cocoa/Objective-c? Thank in advance for your help Greetings from Germany TobiInvestigate Display.addFilter().
"John Daly" <[email protected]> wrote in message
news:c2800n$fdg$[email protected]..
> How can I catch Global events in SWT. I want to carry out certain
> functionality when the user pressed a certain button on the keyboard.
> -
Hi experts:
As you can see in this document:
/people/thomas.jung3/blog/2005/12/15/portal-eventing-a-solution-for-global-peace-and-harmony
We can trigger and catch portal events if we send the event from one ABAP WD to another one.
I want to create a WD Page in the portal composed by standard WD and non Standard ones. So, my question is the next one: Is it posible to catch from a non standard ABAP WD an even triggered by clicking, for example, in a standard one?.
Thank you all ¡¡!!Hi Thomas:
Thank you for your answer ¡¡!!.
Now the next question is "How can I Know the standard JAVA WD event iD, and the parameter that this triggered event "published" and that I need to import to my ABAP WD?".
So, in my WD ABAP, I Just have to use the tipical code:
DATA LO_API_COMPONENT TYPE REF TO IF_WD_COMPONENT.
DATA LO_PORTAL_MANAGER TYPE REF TO IF_WD_PORTAL_INTEGRATION.
LO_API_COMPONENT = WD_COMP_CONTROLLER->WD_GET_API( ).
LO_PORTAL_MANAGER = LO_API_COMPONENT->GET_PORTAL_MANAGER( ).
DATA LO_API_CONTROLLER TYPE REF TO IF_WD_VIEW_CONTROLLER.
LO_API_CONTROLLER ?= WD_THIS->WD_GET_API( ).
CALL METHOD lo_portal_manager->SUBSCRIBE_EVENT
EXPORTING
PORTAL_EVENT_NAMESPACE = STANDARD_JAVA_WD_NAMESPACE
PORTAL_EVENT_NAME = STANDARD_JAVA_WD_EVENT_ID
VIEW = LO_API_CONTROLLER
ACTION = 'RECEIVE_PORTAL_EVENT'
Thank you in advance -
AWTEventListener: Catch all events after events are invoked
Hi,
i read here about catching all event of my application: http://developer.java.sun.com/developer/qow/archive/19/index.html
But: Is there a way to invoke my eventDispatched method after the
current event was calling?
For example: I need on selecting a Combobox the selected value, not the last
selection.
Thanks.
Regards.Thanks for reply!
I use an ItemListener on my ComboBox, but my problem was that the eventDispatched method was not
called. I did it like this:
getToolkit().addAWTEventListener(
new AWTEventListener() {
public void eventDispatched(AWTEvent e) {
System.out.println(e);
AWTEvent.ITEM_EVENT_MASK
);Is that a problem of JDK1.4.1 ???
So tried it with a AWTEvent.MOUSE_EVENT_MASK to check a combobox in my application
is clicked. It works, but i get always the last selection von the combobox.
74philip: Thanks for your solution, but my "code for the selected event here..."
should be in the eventDispatched method. I cant change my app for any comboboxes. -
How to catch click event on a link from an applet
how to catch click event on a link from an applet
The applet has to call a mouse listener:
public class Applet extends Applet
implements MouseListener, MouseMotionListener
The mouse methods must be included, here is the one to catch a click
public void mouseClicked(MouseEvent e) -
How to catch an event when the user change values in the project information dialog
hi,
i would like to know how to catch an event in my C# code when the user change values in the project information dialog?
taskChange doesn't catch these changes.
thanks.
Thanks, Sharon.You need to write save button event handler for project information dialog. Link is having same functionality described.
http://blogs.msdn.com/b/husainzgh/archive/2011/08/01/hooking-into-the-project-detail-page-ribbon-save-button-without-overriding-out-of-box-functionality-in-project-web-access-for-project-server-2010.aspx
http://www.projectserver2010blog.com/2010/01/sharepoint-2010-webpart-client-server.html
kirtesh
Maybe you are looking for
-
Multiple iPods / libraries on one computer
Hi All and thanks in advance for any help you can give me. Until recently I have had three ipods with three different libraries all managed through one computer running Windows XP. I accessed the different libraries by clicking onto iTunes and holdin
-
How do i copy a dvd movie to my hard drive
Can anyone please tell me how to copy a home made movie from DVD to my hard drive? I'm trying to add it to Apple tv, and it's in a TS format and I can do nothing with it. I mean, when I made it, I made a beginning, which my titles are sitting on. And
-
How to create a one-column collection from another multi-column collection?
Hi, I am describing a SQL statement to get it's column list:DECLARE cur NUMBER; col_cnt INTEGER; rec_tab DBMS_SQL.DESC_TAB; type my_colls_t is table of varchar2(30); my_colls my_colls_t; BEGIN cur := DBMS_SQL.OPEN_CURSOR; DBMS_S
-
Strange "Glow" to Iphone after 4.2 update
Phone now glows in the dark, what is going on??
-
Dear all, I have a report to view images from database,if the report photo doesn't exist then the report gives an error an doesn't run the photos are stored in a directory on server and the report reads them from their location I use oracle reports 6