How to capture OK / Cancel Button response of warning type message in EBS D2K form using Form personalization
Hi Experts
We are working on one requirement in which on a standard D2K EBS form based on the response of a warning message we need to perform certain actions using Form Personalization.
The problem is that we are not able to capture response of OK and Cancel buttons of the warning.
If any one has come across such scenario, I would request to please share your valuable suggestions. 2898414
Thank You
Regards
Mirza Tanzeel
Figured out myself that this is mot possible using Form Personalization.
Only option possible is to try implementing by modifying custom.pll
Thanks
Mirza Tanzeel
Similar Messages
-
How to code a Cancel button in a frame
hello..i'm new to java..and i'm currently working on a project that displays a 'Quiz' screen, meaning a new frame from the main frame..
the problem is, how do i code the Cancel button in the 'Quiz' frame so that only the 'Quiz' frame disappears and leave the main frame for user to view? i've tried using setDefaultCloseOperation( EXIT_ON_CLOSE ); but it seems that it closes all the program..and i don't want that.
how should i do it??
please help me..thanks1. Check out my StandardDialog class as an example of how to implement a cancel button
2. use either the HIDE_ON_CLOSE or DISPOSE_ON_CLOSE standard closing operations -
How to disable the cancel button in InputDialogBox?
Can someone please tell me how to disable the cancel button in an input dialog box?
thanks,Cross posted: [http://www.coderanch.com/t/487888/Swing-AWT-SWT-JFace/java/disable-cancel-button-input-dialog]
-
How to capture previously clicked button(previous event)?
Hi guyz,
I have frame in which i have different panels. I would like to capture the last clicked button. My objective is to bring a pop-up box(dialog) when anything other than a specific button is clicked in one of the panels. So, i would like to know if i can see what button was clicked previously. Does anyone know?How to capture previously clicked button(previous event)?Store it somewhere and then you can use it later:
ActionListener previousActionEvent;
JButton b = new JButton();
b.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
previousActionEvent = evt;
}); -
Capturing the Cancel button with Before Print event handler
I put together a script that is triggered by a beforePrint event handler. Everything works fine but I can't figure out how and where to capture the user clicking on the Cancel button in the Print dialog?
Any ideas? Thanks, DanAlen,
My bet is you are using JDeveloper 11.1.1.5. This is a known ADF bug 12551764 in this release, not related to JHeadstart.
Here are the details:
http://adfbugs.blogspot.com/2011/05/jdeveloper-11115-serius-bug.html
I just checked the bug database, it is fixed in patch 12399372. You can go to metalink to download the patch.
Steven Davelaar,
JHeadstart Team. -
How to show ok & cancel button using showMessageDialog
hi to all, when i use showMessageDialog it gives only ok option,
like
JOptionPane.ShowMessageDialog(null,"are you sure you want to continue" ,"Confirmation",JOptionPane.QUESTION_MESSAGE);
this statement shows only ok option, i want ok and cancel option both.
and can u tell me how to put actions in ok & cancel option
like if user clicks ok option then he can continue the program , if user clicks cancel then he would exit from the program.
can u tell how to comapre that using if statement
please reply me as soon as possible.This is probably close to what you want. I believe messages can be replaced by null. You can probably figure out the rest from the API.
response = JOptionPane.showConfirmDialog(myFrame,
messages,
"Delete hard drive?",
JOptionPane.OK_CANCEL_OPTION);
// If User hit CANCEL button we jump out
if (response == JOptionPane.CANCEL_OPTION)
return; -
How to handle the "cancel" button and "close" icon of a popup ?
Hi,
I have a popup with "cancel button" and "close icon"(on the top right corner of the popup), I want the same operations to be performed on clicking of any of these two components.
Is there a way to handle such situation ?
I read about 2 cases to look into this but they didn't work too well for me.
1. I read about the "popcancellistener" but that listener is called whenever the popup closes, so suppose I have an "ok button" on the popup to create a record, after the record is created, the popup closes and goes into the "popcancellistener", now the question is "how do we know if it came there because of the 'ok button' or 'some other event'".
2. I even checked the "DialogListener", now I'm able to distinguish between the 'OK' and 'CANCEL' button in the dialoglistener using the "Dialog.Outcome.ok/cancel", but when a user clicks on the close icon, we do not enter the "DialogListener" at all, so in this case "how do we handle the close icon click event"
Do let me know if you need any more information from my side.
Thanks for the help in advance.The following mechanism responds to any of the following events: <Esc> key, Close icon ('x'), Cancel button
JavaScript part:
function popupClosedListener(event){
var source = event.getSource();
var popupId = source.getClientId();
var params = {};
params['popupId'] = popupId;
var type = "serverPopupClosed";
var immediate = true;
AdfCustomEvent.queue(source, type, params, immediate);
}JSF part:
<af:popup ....>
<af:clientListener method="popupClosedListener"
type="popupClosed"/>
<af:serverListener type="serverPopupClosed"
method="#{myBean.serverPopupClosedMetod}"/>
</af:popup>Finally, Java part:
public void serverPopupClosedMetod(ClientEvent event){
} -
How to enable the "Cancel button" so you can stop a report while loading ...
I have seen that some reports have a Cancel button located just below "the loading ..".
How can I enable that button in MS Reporting service 2005?The following mechanism responds to any of the following events: <Esc> key, Close icon ('x'), Cancel button
JavaScript part:
function popupClosedListener(event){
var source = event.getSource();
var popupId = source.getClientId();
var params = {};
params['popupId'] = popupId;
var type = "serverPopupClosed";
var immediate = true;
AdfCustomEvent.queue(source, type, params, immediate);
}JSF part:
<af:popup ....>
<af:clientListener method="popupClosedListener"
type="popupClosed"/>
<af:serverListener type="serverPopupClosed"
method="#{myBean.serverPopupClosedMetod}"/>
</af:popup>Finally, Java part:
public void serverPopupClosedMetod(ClientEvent event){
} -
How to disable the cancel button in the ProgressMonitor
hi,
I need to know, is there any way to disable/remove the (cancel)button in the ProgressMonitor?
One more problem is,
Once i click the cancel button, isCanceled() return true, how to make it false again so that the process continue....
It is very urgently.....
please help me out.
Thanks in advance.
Regards,
Deepa RaghuramanI don't think that's a good solution, because Cancel button itself is not disabled, so user is tempted to click it and nothing happens.
A better but dangerous solution is this:
progressMonitor = new ProgressMonitor(ProgressMonitorDemo.this,
"Running a Long Task",
"", 0, 100);
progressMonitor.setMillisToDecideToPopup(0);
progressMonitor.setMillisToPopup(0);
progressMonitor.setProgress(0);
JDialog dialog = (JDialog)progressMonitor.getAccessibleContext().getAccessibleParent();
JOptionPane pane = (JOptionPane)dialog.getContentPane().getComponent(0);
pane.setOptions(new Object[]{});Refer to the same question here [http://stackoverflow.com/questions/512151/how-do-i-disable-the-cancel-button-when-using-javax-swing-progressmonitor] . -
How to add Ok & Cancel Button--- [solved]
Hi,
i have two data blocks,M is master and D is detail
if the user checks the check box in M and D,i want the user to have option of canceling the process by clicking cancel button or processed by clicking ok .
i was able to create alert message for the user , but the user does not have the option of canceling the process when the message pop ups
IF :M .CHECKBOX = 1 and D.CHECKBOX = 1 THEN
message_handler_pkg.display_error('display message '||:M.dataitem,v_alert_response);
thanks in advance
Message was edited by:
Rowdheer
Message was edited by:
RowdheerCreate an alert in your form with required no of buttons, u will have an option of upto 3 buttons . Use this alert along with your messaging options ..
Provided your messaging package has options to include the alerts
try this procedure !
PROCEDURE disp_alert
( ALERT_NAME IN VARCHAR2,
ALERT_MESSAGE IN VARCHAR2,
ALERT_RETURN_VAL OUT NUMBER ) IS
AL_ID ALERT;
BEGIN
AL_ID := FIND_ALERT(ALERT_NAME);
SET_ALERT_PROPERTY(AL_ID,ALERT_MESSAGE_TEXT,ALERT_MESSAGE);
ALERT_RETURN_VAL := SHOW_ALERT(AL_ID);
IF IV_N_ALERT_RETURN_VAL = ALERT_BUTTON1 THEN
ALERT_RETURN_VAL := 1;
ELSIF IV_N_ALERT_RETURN_VAL = ALERT_BUTTON2 THEN
ALERT_RETURN_VAL := 2;
ELSIF IV_N_ALERT_RETURN_VAL = ALERT_BUTTON3 THEN
ALERT_RETURN_VAL := 3;
END IF;
END;
ssr -
How to make changes in HR Form using Form editor
Hi,
I am new to hr-abap..And I am working on HR form editor..and I wanted to generate a pay-slip using the hr forms..I had copied the standard form..and I am making the changes into that..
I want to add my own customization into it..like I wanted to display total in words...also, i wanted to display a message at the end of my report..This message should be allowed to change to end user...like for eg..Some Seasonal greetings...
I am using Tcode pe51 to make changes in my form...
Please tell me how to go about and where to implement all these changes so that they will get displayed in my form...Its urgent...When you go into HRFORM tcode, double click on your form name.
It will take you to Customization window where you can drag and drop all additional data yo want on form.
For designing and coding purpose click on the LAYOUT button on top of that window.
This will open the form in SMARTFORM.
Dont try to go directly as your Form name dont exist in Smartforms.
Check this link for more info -
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAXX/PYINT_FORMS.pdf
Regards,
Amit
Reward all helpful replies. -
How to Call a form using forms personalization ?
Hi All,
We have a requirement where we need call a form when we tab out of a field from one form. How can we call a from using forms personalization ??
Can anyone state the steps or point to any metalink note.
RegardsHi,
Please check whether following link help you:
http://oracleapps88.blogspot.com/2011/06/calling-another-form-parameters.html
Regards, -
How to capture when a button and menu item clicked by user?
Hi,
I am working in Acrobat 8 professional.
I want to capture when Comments->Publish comments is clicked by user.
My requirement is when Publish comments menu item is clicked then one alert have to be displayed.
Similarly when user clicks Publish comments button then also one alert have to be displayed.
How can i do this?
Thanks in advance...There is nothing in the Acrobat SDK to really help you. Your best bet it to use OS-level hooking functions.
-
How to capture the SSAS server response to an XMLA command issued in VB Script
Hi all,
I have an SSIS package that contains a VB script task that sends XMLA commands to my SSAS server. (I am using a script task and not the DDL task because there is lengthy logic required to build the XMLA command and send it to the appropriate
server.)
The problem I have is that while I have been able execute the XMLA command against the SSAS server, I am not able to capture the full response from the server. Warnings are not being captured and other data is missing. My code currently is as
follows:
Dim cn As New AdomdClient.AdomdConnection
Dim cmd As New AdomdClient.AdomdCommand
Dim returnValue As Object
cn.ConnectionString = "Data Source=MyServer;Initial Catalog=MyDB;Provider=MSOLAP.5;Integrated Security=SSPI;"
cn.Open()
cmd.Connection = cn
cmd.CommandText = fileReader
On Error Resume Next
returnValue = cmd.Execute()
MsgBox(Err.Description)
cn.Close()
Note that "fileReader" is the string containing the XMLA command.
If the xmla processes a dimension, and there are duplicate keys (for which it is set to error and stop), Management Studio give the response shown below, which includes the warning indicating there are duplicate keys:
<return xmlns="urn:schemas-microsoft-com:xml-analysis">
<results xmlns="http://schemas.microsoft.com/analysisservices/2003/xmla-multipleresults">
<root xmlns="urn:schemas-microsoft-com:xml-analysis:empty">
<Exception xmlns="urn:schemas-microsoft-com:xml-analysis:exception" />
<Messages xmlns="urn:schemas-microsoft-com:xml-analysis:exception">
<Warning WarningCode="1092550658" Description="Errors in the OLAP storage engine: A duplicate attribute key has been found when processing: Table: 'MyDim', Column: 'MyCol', Value: 'XYZ'. The attribute is 'MyAttr'." Source="Microsoft SQL Server 2012 Analysis Services" HelpFile="" />
<Error ErrorCode="3238002695" Description="Internal error: The operation terminated unsuccessfully." Source="Microsoft SQL Server 2012 Analysis Services" HelpFile="" />
However, in the VB script it captured in Err.description just some of the error: "Errors in the OLAP storage engine: An error occurred while the "MyAttr" attribute of the "MyDim" was being processed".
Is there anyway to capture in the VB Script the full XML error as it appears in Management Studio?
Help would be much appreciated!
Thanks
GuyAnother method for executing XMLA is using Microsoft.AnalysisServices.Xmla;
C# code will look like below:
using Microsoft.AnalysisServices.Xmla;
XmlaClient clnt = new XmlaClient();
string strOut = "", strMsg="";
string strXmla = File.ReadAllText(strXmlaFileName);
clnt.Connect(strServer);
clnt.Execute(strXmla, "", out strOut, false, true);
clnt.Disconnect();
//check status
//Create the XmlDocument.
XmlDocument doc = new XmlDocument();
doc.LoadXml(strOut);
//display Error
XmlNodeList elemList = doc.GetElementsByTagName("Error");
for (int i = 0; i < elemList.Count; i++)
Console.WriteLine(elemList[i].Attributes["Description"].Value);
strMsg += elemList[i].Attributes["Description"].Value + "\r\n" ;
++intExitCode;
//display warnings
elemList = doc.GetElementsByTagName("Warning");
for (int i = 0; i < elemList.Count; i++)
Console.WriteLine("Warning:" + elemList[i].Attributes["Description"].Value);
strMsg += elemList[i].Attributes["Description"].Value + "\r\n" ;
Hope this helps.
Arun -
How to capture the PrintScreen button event in keyboard
Hi
The JPanel consists of all components , and finally the panel is added to the JFrame.The problem is to avoid the user by capturing the page through "PrintScreen" button in the keyboard.
Thank u .Hi,
I believe that you must use JNI to access .dll to do that... you can not use any keyListeners for that!!!
JRG
Maybe you are looking for
-
Oracle Universal Installer not showing up
Hi Everyone, I try to install Oracle 9.2.0.2 on Linux Itanium 64 bit. The problem is, after invoking runInstaller as ./runInstaller, I see the following messages. Initializing Java Virtual Machine from /tmp/OraInstall2009-11-16_10-49-47AM/jre/bin/jav
-
Higher Edu.Cess is not populating in GR for Import POs
Hi Gurus, could you please let me know the exact reason why the higher education cess is not populating in Import P O MIGO. We are using TAXINN Procedure and all the excise default setting has been completed. We have not maintained any condition reco
-
Query on connecting two diff user interface systems?
Hi Friends Is it possible to connect MM system ECC 6.0 EPh4 and SuS system SRM 7.0 to a portal and both buyers from MM side and Suppliers from (SRM component)SuS side logs into portal and buyer should have a buyer role+display role of supplier so tha
-
Profit center/Business areas
Hi, can we track all the fucntinality of business area using profit center acc. instead if we decide not to use business areaa at all and not activate compna code ofr bus.area fi. statements. are there some eg pca reports whcih can list p&l and b
-
Oracle BIP API/WebService problem
Hi all, I have some doubts regarding the usage of new Oracle BIP 11g . 1.In BIP Admin Dev Guide 11.1.1.pdf ,the usage of BIP is only given using API's,so does that mean that the WebServices of BIP like PublicReportService is of no use.Please give me