How to handle form close event or escape key press event for user defined f
Experts,
Please let me know how to handle form close event or escape key press event for user defined form...
Thanks & Regards,
Pravin.
Hi
You can catch the form close event like this
If ((pVal.FormType = 139 And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_CLOSE)) And (pVal.Before_Action = True)) Then
Try
SBO_Application.SetStatusBarMessage(pVal.EventType.ToString())
Catch ex As Exception
SBO_Application.SetStatusBarMessage(ex.Message)
End Try
End If
Hope this helps
Regards
Arun
Similar Messages
-
How to handle Text change event in text box in SAP B1
Hello Expert...
How to handle Text change event in source.
Please define the Event when i change the text in textbox..
currently i am using the Lost focus event but it is only occur when tab focus lost from that text box.
So please required solution ASAP..
Regards,
Abhinav Lalpurwala
Edited by: Abhinav Lalpurwala on Aug 5, 2011 3:19 PMHi,
Catch the et_VALIDATE event, when InnerEvent = False and ItemChanged = True.
If pVal.EventType = BoEventTypes.et_VALIDATE Then
If pVal.InnerEvent = False And pVal.ItemChanged Then
'TODO Your code here...
End If
End If
Regards,
Vítor Vieira -
How to handle double click event in a text control
Hi,
Will u please send me information on handling double click events inside text control and also about locking and unlocking of DB tables for updation.
Regards,
Praba.Hi Prabhavathi,
Here is how you handle double click events in Textedit control.
1)Create a custom control in screen (say TEXT_CONTROL)
2)In main program,
a) Declarations:
data: obj type ref to cl_gui_custiom_control.
text type ref to cl_gui_textedit.
b) Create the instance of custom container
c) Create the instance of textedit control.
3)Now to handle double click events , create a local class as follows.
class shail_event definition.
public section.
methods:
handle_doubleclick for event dblclick of cl_gui_textedit .
endclass.
class shail_event implementation.
method handle_doubleclick .
here do the coding for handling the double click.
endmethod.
endclass.
4) Create an instance of the handler class(ie.ZSHAIL_EVENT).Let it be named hand.
5) Define varibles for event.
DATA: i_events TYPE cntl_simple_events,
wa_events TYPE cntl_simple_event.
SET HANDLER hand->handle_doubleclick for text.
wa_events-eventid = cl_gui_textedit=>event_double_click.
wa_events-appl_event = 'X'. "This is an application event
APPEND wa_events TO i_events.
6)
CALL METHOD texte->set_registered_events
EXPORTING
events = i_events
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
illegal_event_combination = 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.
These are the basic steps needed for handling events in Textedit control.You can go to SE24 and type CL_GUI_TEXTEDIT to find the associated events of the class.
If you want the program, kindly send your mail-id so that I can mail it to you.
Regards,
Sylendra. -
Hi everyone,
Now I'm developing the function about drag-drop source(image & text) from Panel Tree to the document.
I also have a look at the basic drag/drop & Panel Treeview, but all of them is not the source code mentions to how to handle the drop event, almost about drag event only.
Now when user Drags(image, text) from PanelTreeView(example) and drops them to document and then new page Item contains source(image, text) created, so I want to get the page item after drop event.
so anyone know about this please give me suggestion
thanks so much.i dont think you can.
~~~~~~~~~~~~~~~~
--> Adobe Certified Expert
--> www.mudbubble.com
--> www.keyframer.com
~~~~~~~~~~~~~~~~
keyoke_za wrote:
> Hi,
> How can I get my flash movie to handle the drop event
when dropping objects from outside the flash window.
> Thanks for your help.. -
How to detect browser close event in flex ?
How to detect browser close event in flex ?
This link may help:
http://cookbooks.adobe.com/post_Close_event_of_browser_or_browser_tab-18211.html
Best, -
How to detect window close event and do some task before exiting
Hi
Anyone knows how to detect window close event and do some task before exiting ?
Sridhar
Solved!
Go to Solution.
Attachments:
window close event.JPG 34 KBYes .You can discard the panel close event by passing "TRUE" boolean value to the "discard ?" terminal which is lied in the right side of that panel close(filter) event.& It will work in executables. See attached picture.
Attachments:
Panel Close.JPG 12 KB -
Hi.
I'd like to handle tab leave event before user selected tab shown.
because I'm making Settings dialog.
So I want to validate tab contents when user leaving the tab.
And stay the tab if invalid user input.
Thanks.With apologies for the slow reply, I'm currently travelling.
Two things to note:
1) The af:document uncommittedDataWarning flag was designed to stop users navigating away from half entered records. More about this flag can be found here:
http://docs.oracle.com/cd/E23943_01/web.1111/b31973/af_orgpage.htm#CACDDDFH (see point 4)
http://www.oracle.com/technetwork/developer-tools/adf/unsaveddatawarning-096556.html
....please note our documentation from time to time spells this flag wrong with only one "t" in the word committed, so if you're attempting a bulk search check for this (and I'll raise document bugs to get this fixed in the future).
2) On addressing the ADF UI Shell, if you're switching between "pages" in the UI Shell, as separate to switching between dynamic tabs within a single page using the UI Shell, the UI Shell will actually restart the currently running task flow in the page you're returning too. You can verify this by implementing an initializer on your task flow with a log message, and watching when the initializer is called.
In addressing your last question, at this stage I think you need to assess my first answer then come back if you think you sill need to execute the code on the tab click. I also need to know are you talking about the primary level of tabs that represent each page in the UI Shell, or are you referring to the dynamic tabs within a single UI Shell page that hold your task flows?
CM. -
Handling future dated events for automated provisioning
Hi experts,
has anyone implemented or knows how to handle future dated events such as going on and returning from leave for an employee within Identity Manager that it will schedule a provisioning process when the leave start end dates are given? any help is appreciated.
birkoff77There is no explicit documentation on this requirement but if you look further in to the deferred task scanner and how to handle date events you will get any further probably. The point is that a provisioning process should start on a certain date for a certain user.
One action to check for a date, another action to set up this process.
Some hints:
This is something you arange using the deferred task scanner which you can call by using 'application' as subprocess in the workflow....With the configuration of a task instance you can call a workflow (provisioning)...further specify a date argument and a name argument (the account Id). -
I movie 11: how do i find an event for a particular clip in my project
I movie 11: how do i find an event for a particular clip in my project
Thanks so much for your response. I tried that though and it did not work... any other suggestions?
-
How to handle table control in BDC while uploading item details for anorder
How to handle table control in BDC while uploading item details for an order?
What is the use of CTU_PARAMS structure in BDC?
In Finance I have done some changes to the layout set by coping to a zscript(duning letter) and how can assign the print program?
What is the process to test the finance script?
How can I see the print preview whether it is coming correctly or not?
Thanks in advance.
Regards.
Abhilash.hi,
for the bdc control refer the following link:
http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
ctu_params:
refer to the link
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/dataTransfers-LSMW%2CALE%2C+BDC
reward if useful,
thanks and regards -
How to handle an update of the same record from two different user in JSP
how to handle an update of the same record from two different user
how do you handle an update of the same record from two different users in JSP... if one person updates the record from one drop downs should be updated as well.. is the possible.Usually, if two users try to update the same row at the same time, you want the first to commit to succeed, and when the second commits, they should fail with the error that the row was being concurrently updated. They you may want to show them the new row values and give them the opportunity to merge their values with the new row values...
How can you achieve this? Google optimistic locking. -
How to find the BTE event for FBCJ transaction code
Hi All,
i need to find the BTE event for Finance related transaction codes.i checked in the SWEL transaction code, didnt find any event triggered and the standard BADI doesnt suite my requirement.The transaction code which i tried is FBCJ.can anyone help me how to find the BTE event for the above mentioned transaction.
Thanks in Advance,
lokesh kumar.KHello Lokesh,
The following is one of the process of finding a BTE and implementing it.
(1)Goto transction FIBF .Execute it with Attribute type = 'A'. Then in the menubar Environment->Info System (P/S )
Go through the list of BTE's available with the description available beside.
(2)Select the BTE you want to implement.
(3)Press button Sample function module
(4)This brings you to SE37 - Copy the sample function module to a Z-function module (First create a new function group for the function module) . Note: The name of the Z-functionmodule is not important
(5)Edit the code in the new function module
(6)Go back to transaction FIBF - Menu Settings->Products -> Of a customer and create a new product whicj identifies the new product . Remember to mark the Active field.
(7)Go back to FIBF menu Settings->P/S function modules->of a customer - Create an entry that links the BTE and Product with the new function module
Hope this will help.
Regards,
Samson -
Base Document and Target Document Menu for User Defined Forms
Hi Experts,
I am facing a problem regarding enabling the menu "Base Document" Menu UID="5898" and "Target Document" Menu UID="5899" . Both of these menu Items are not enabled for User Defined Form .Actually I have developed a user Defined form for Purchase Requisition that targets Purchase Order . User can Copy Line Items From Purchase Requisition to Purchase Order and I am tracking the DocEntry and LineId of PR into PO Item's using UDS . I want to Open this PR Document upon Click of BaseDocument Menu .I have tried all the options. I have used Form.enableMenu() method also . But none of those options work for this menu . I ahve also searched about this problem i this forum also but there is no soultion so far posted regarding this.
I really want to confirm whether it is possible or not using SDK for User Defined Forms . Is there any possiblity of implementing any WorkArounds and Having this feature implemented .
I am Expecting a true solutions as this Forum has so many Experienced Experts .
Thanks and Regards,
Pooja Singh.Hello Poja,
It is not possible, because the requested menus are depending on the forms, and the are not exists,
WorkAround:
add the menus to the User Defined forms, and use right click to activate them:
oForm.Menu.Add("5898", "Base Document", BoMenuType.mt_STRING, oForm.Menu.Count)
oForm.EnableMenu("5898", True)
And hanle the menu event when you clicked them and the form is your custom form.
Regards,
János -
How to handle Scrollbar's event in the Form Block !
I want to create three Block like
Block : X-axis , Source From View
Block : Y-axis , Source From View
Block : Cell , Source From Stored Procedure.
The relation is (X-axis , Cell) , (Y-axis ,Cell).
Then , if i scroll X-axis or Y-axis Scrollbar , then Cell will change !
Problem : If X-axis Cursor record does not change , the Cell's Data will not refresh.
Can tell me how to handle the scrollbar's event , Thank.Thank you.
The Cell's behavior is a matrix , the relation will execute when X,Y record is changed !
if you move the scrollbar , will chanage block's data , but the cursor record does not change another!.
If i use JaveBean to handle it , possible ?
Using Form 6i . -
How To Get The CLOSE Event In a JSP File?
Hello everybody,
Right now I am working in a JSP project which is about access log, when the users start , oprate, or close the system, the access log system works. I am in trouble in that when the users close the system, how can I get the close event?
The JSP file contains the following fields :
Close Window
How to add code to get the CLOSE Event and submit to the service?
And If I hit the "Close Button"(on the right-top of the window), how can I get the CLOSE event, too?
Can anyone tell me?1. Add a hidden field:
<input type="hidden" id="status" value="">2. modify <a href="index.jsp" onclick ="parent.window.close( );">Close Window</a> with <a href="index.jsp" onclick ="closefn();">Close Window</a>3. Add a javascript
<script language="javascript">function closefn(){
document.getElementById('status').value="close";
document.form.action="";
document.form.method="post";
document.form.submit();
parent.window.close( );
}4. Now on the action page get the value of status by request.getParameter("status"); and log it.
Maybe you are looking for
-
When I export my Indesign document to an epub why is the first image smaller than the rest?
All of the images are intended to be full page, and appear so in Indesign, however when I export the document to an epub, and view it on the iPad, the first image displays at about half the size of the other images. When creating the images in photos
-
Pls help.. Issue with plug in installation
I am facing some issues in installing pulgins with flex builder3 through updater. Actually i am trying to install updates from flex builder for UML diagramming tools. After installing all the required packages, still the feature is not visible in the
-
Export long list of iMessages?
I have a lengthy history of iMessages which I would like to delete but still save. Is there a way to export or save a long trail of messages to a computer? I see clicking "Edit" allows you to move individual messages, but I'm talking about hundreds.
-
Proper use of RequestDispatcher.forward()
I have a servlet, and want to forward on to an error JSP page for exceptions. Is RequestDispatcher.forward() supposed to return to the source servlet when the target is finished? I am using a return to stop the source se
-
Can i ever get my photos back if i have deleted them and then emptied the trash?
can i ever get my photos back if i have deleted them and then emptied the trash?