How i can catch de close ovent on a ShowDetailItem?

I need ask if the user wants to close the DetailItem with a popup dialog. i use itemListener(ItemEvent itemEvent) in my MB but i can't stop the close action.
Edited by: user12982724 on 10-feb-2012 10:46

Ok, the requeriments has change, IF the user do a change, for example delete a row in a table (delete method of adf binding) and the user doesn't click un the save button and attends to close de browser windows HOW I CAN WARNING THE USER THAT THERE ARE CHANGES WICH ARE NOT SAVED????

Similar Messages

  • How i can Catch perticular data from internet and update SAP R/3 data?

    Hi All,
    I want to catch data from internet and want to update those data into SAP R/3 database. So how i can catch those data ?. what will be format of data to update SAP R/3 database?

    Hi,
    You need to create your own BSP pages which would be displayed on internet/HTML.
    Transaction SE80 => Select BSP application.
    Best regards,
    Prashant

  • How I can catch the word that was spoken in a string??

    Hi
    i'm doing a java aplication with speech recognition jsapi and i want know how  i can convert tag form FinalRuleResult  to string??
    i want  catch the word that was spoken in a string to  evaluate the string in the sentences if                               
    this is the code that i have developed:
    public static void main(String[] args)
         {prueba inst = new prueba();
                   inst.setVisible(true);
              try {
                   RecognizerModeDesc descripcion = new RecognizerModeDesc(null, Boolean.TRUE);
                   SpeechEngineChooser chooser = SpeechEngineChooser.getRecognizerDialog(descripcion);
                   chooser.show();
                   descripcion = chooser.getRecognizerModeDesc();
                   reconocedor = Central.createRecognizer(descripcion);
                   reconocedor.addEngineListener(new TestEngineListener());
                   RecognizerAudioAdapter raud = new TestAudioListener();
                   reconocedor.getAudioManager().addAudioListener(raud);
                   reconocedor.allocate();
                   reconocedor.waitEngineState(Recognizer.ALLOCATED);
                   RuleSequence secuencia = new RuleSequence();
                   RuleTag comando1 = new RuleTag(new RuleToken("vol"),"VOL");
                   RuleTag comando2 = new RuleTag(new RuleToken("channel"),"CHANNEL");
                   RuleTag comando3 = new RuleTag(new RuleToken("end"),"END");
                   RuleTag comando4 = new RuleTag(new RuleToken("up"),"UP");
                   RuleTag comando5 = new RuleTag(new RuleToken("down"),"DOWN");
                   RuleAlternatives comandos = new RuleAlternatives();
                   comandos.append(comando1);
                   comandos.append(comando2);
                   comandos.append(comando3);
                   secuencia.append(comandos);
                   RuleGrammar gramatica = reconocedor.newRuleGrammar("basepatrones");
                   gramatica.setRule("testRule",secuencia,true);
                   gramatica.setEnabled(true);
                   reconocedor.suspend();
                   reconocedor.commitChanges();
                   reconocedor.waitEngineState(Recognizer.LISTENING);
                   reconocedor.requestFocus();
                   reconocedor.resume();
                   reconocedor.addResultListener(new ResultAdapter() {
                        public void resultAccepted(final ResultEvent e)
                             try {
                                  FinalRuleResult r = (FinalRuleResult)(e.getSource());
                                  System.out.println("Obtenido el resultado "+r);
                                  String tags[] = r.getTags();
    if(tags == null) return;
                        //comparacion de :::     
    // in this point i want catch the word that was spoken in a string to evaluate the string in the sentences if                               
                                  if(tags[0].equals("VOL"))
                                       JOptionPane.showMessageDialog(null,"has selecciuonado el volumen");
                                       jLabel1.setIcon(new ImageIcon(getClass().getClassLoader().getResource("control/controltv+.gif")));
                                       enviar("s");     
                                  if(tags[0].equals("CHANNEL"))
                                            JOptionPane.showMessageDialog(null,"QUIERES CAMBIAR CANAL???");
                                            jLabel1.setIcon(new ImageIcon(getClass().getClassLoader().getResource("control/controlt0.gif")));
                                            enviar("c");
                                  if(tags[0].equals("END"))
                                  JOptionPane.showMessageDialog(null,"SESION DE RECONOCIMIENTO TERMINADA");
                                  jLabel1.setIcon(new ImageIcon(getClass().getClassLoader().getResource("control/controlt1.gif")));
                                  System.exit(-1);
                                  else return;
                             } catch(Exception e1) {}
              } catch (Exception e) {
                   e.printStackTrace();
                   System.exit(-1); }
         }

    I donot know about Java Speech API.
    But it is possible to recognize with Sphinx API.
    you get it from [http://cmusphinx.sourceforge.net/sphinx4/]

  • Can you please let me know how i can catch all the orgunits

    Dear Freinds,
                  i have a particular scenario in my development where when i pass only the
    orgunit i have to call the personnel no.s of that orgunit on the selection screen , and
    for the personnelnos. i have to retrived from  the  PYXX_READ_PAYROLL_RESULT and get all the wage types  and corresonding amount (betrg)  .
      Scenario 1)  i am able to get for the orgunit which iam entering on the selection screen ,get pernr is giving me all the prsonnels no.s  for that orgunit  and for this personnels iam able to  retrive 's the amounts for the respective wage types from the FM PYXX_READ_PAYROLL_RESULT.
      Scenario 2)    but now the problem which iam facing is if the orgunit which iam entering on the selection screen if it has more than one orgunit ( ex it has 3 orgunits) i have to check for that orgunit also all the personnel no.s the orgunit's its  having and check the correspong wagetype and amount and show in the output. But iam only getting for the orgunit for which iam entering on the screen it is checking and giving me the personnel nos.
    then i have used the FM  RH_READ_INFTY_1001 and pass the orgunit and iam able to collect allt he orgunits correspoding for the orgunit on the selection screen . But how i can check the personnel no.s which this new orgunit is having ........ only in INTER-WPBP only i have orgunit  .where i can check a condition ....but me to reach to the WPWP i require the personnel no.s
    can any body give me idea how i can get the personnel no.s corresponding to this orgunit ...retrived from the selection screen orgunit.
    regards
    syamala

    Dear Suresh,
              If you mean to say change the report category and modify the selection screen
    using the logical database PNP only , in that case yes now i have modified and kept only payroll area , dates and ORGUNIT only . So that user can enter only the orgunits only. Please correct me if this not you have said.
    i have one more question is when user  pass an orgunit on unit then i have to fetch all the orgunit then again i have to get all the pernr which are under this orgunits .....and get the payroll results .....can i use below logic ? because i feel this is too length so is there any better way.  For the orgunit entered on the selection screen and capturing all the payroll results based on the perns of the respective orgunits ....
    ....based ont he function module rh_struc_get i will get all the orgunits , based on the orgunits i i will capture all the related position and for this position correspoinding pernr .......witht he relation ship O-S-P .. for all these Pernr's then i will get from the FM PYXX_READ_PAYROLL_RESULT. ...... get the payroll results.
    Thanks and regards
    syamala.

  • HOW I CAN CATCH AN EXCEPTION??

    HI FRIENDS
    I HAVE A PROBLEM
    I AM USING THIS CODE
    try
    fileTemplate=fileReader(TemplatePath);
    catch (FileNotFoundException ioex)
    where filereader is a function to read files.
    but on complining i am getting this error
    exception java.io.FileNotFoundException is never thrown in the body...
    CAN ANY BODY HELP ME????

    Well, have you forgotten some "new" ??
    your piece of code is simply method call fileReader(templatepath) , and a reference.
    And even there, FileNotFoundException isn't thrown at instantiation, you can make
    File f = new File("nonexistingpath_or_file");
    The FNF Exception comes when you try to open the file, or try to read from, so the compiler tells you that this Exception will never occur in your statement.

  • How i can dissable/remove close buttons from popup window

    We have an web application so i want to dissable/remove the close button , so please help me as soon as possible.
    we are using only firefox for our web application and also for private use.
    Thank you.

    Just to be sure, you want to '''Remove''' the close button?
    I called the big guys for you.

  • How to catch browser close event excluding navigation events

    Hi,
    I tried using onBeforeUnload event and onUnload events.. but they are catching navigation events within the same site. Could you please let me know how I can catch browser close events without catching Navigation events?
    Thanks.

    Just set them to null when navigation takes place.
    Said that, you should be asking Javascript/DHTML related questions in a forum devoted to Javascript/DHTML. There are ones at webdeveloper.com and dynamicdrive.com. This has nothing to do with Java.

  • How I can close Database connection?

    I am using the following to open Database connections in Java class.
    Class.forName("oracle.jdbc.driver.OracleDriver");
    con = DriverManager.getConnection("URL","user","password");
    But I do not know how I can have it closed.
    This cause an SQL error: Maximum open cursors exceeded.

    Thanks so much. Your explanation is so clear.
    Here is the whole code. Thanks for your help.
    package xxx.xx.xxx;
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    public class Format_BaseTable {
    Connection con = null;
    Statement stmt = null;
    Statement stmt1 = null;
    ResultSet rs = null;
    ResultSet rs1 = null;
    PreparedStatement ps = null;
    PreparedStatement ps1 = null;
    public Format_BaseTable() {}
    public static String valueOf(String oldStr)
    StringTokenizer st = new StringTokenizer(oldStr.trim(), "-");
    char zero = '0';
    String dem_zero = ".0";
    String newStr = "";
    while(st.hasMoreTokens()) {
    String degree = st.nextToken();
    String minute = st.nextToken();
    String second = st.nextToken();     
    if (minute.length() == 1) {
    minute = zero + minute;
    if (second.length() == 1) {
    second = zero + second;
    if (second.length() == 2) {
    second = second + dem_zero;
    if (second.length() == 3) {
    second = zero + second;
    if (second.length() == 5) {
    double d = Double.parseDouble(second);
    second = String.valueOf(Math.round(d));
    newStr = degree + " " + minute + " " + second;
    return newStr;
    public static double feetToMeter(int ft)
    double mt = ft * 0.305;
    return mt;
    public void doConvert() { 
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    con = DriverManager.getConnection("url","user","password");
    stmt = con.createStatement();
    stmt1 = con.createStatement();
    rs = stmt.executeQuery("SELECT cla_seqnum, str_leased, nad27_lat, nad27_lon, nad83_lat, nad83_lon, ge_ft, sh_ft, osh_ft, ov_faa_approv_ft, ant_tip_ft, ant_ctr_line_ft FROM cl_antenna_base WHERE application_user_id = 'SQL LOADER'");
    rs1 = stmt1.executeQuery("SELECT mwa_seqnum, nad27_lat, nad27_lon, nad83_lat, nad83_lon, ge_ft, osh_ft, cl_ft FROM mw_antenna_base WHERE application_user_id = 'SQL LOADER'");
    int cl_seqnum = 0;
    String leased = "";
    String ownership = "";
    String str_code = "";
    String cl_nad27_lat = "";
    String cl_nad27_lon = "";
    String cl_nad83_lat = "";
    String cl_nad83_lon = "";
    int cl_ge_ft = 0;
    int cl_ge_mt = 0;
    int cl_sh_ft = 0;
    int cl_sh_mt = 0;
    int cl_osh_ft = 0;
    int cl_osh_mt = 0;
    int cl_ov_faa_approv_ft = 0;
    int cl_ov_faa_approv_mt = 0;
    int cl_ant_tip_ft = 0;
    int cl_ant_tip_mt = 0;
    int cl_ant_ctr_line_ft = 0;
    int cl_ant_ctr_line_mt = 0;
    int i = 1;
    int mw_seqnum = 0;
    String mw_nad27_lat = "";
    String mw_nad27_lon = "";
    String mw_nad83_lat = "";
    String mw_nad83_lon = "";
    int mw_ge_ft = 0;
    int mw_ge_mt = 0;
    int mw_osh_ft = 0;
    int mw_osh_mt = 0;
    int mw_cl_ft = 0;
    int mw_cl_mt = 0;
    int j = 1;
    while(rs.next())                    // For Cellular/PCS
    System.out.println("\n\nCellular/PCS Record #" + i);
    cl_seqnum = rs.getInt("cla_seqnum");
    System.out.println("cla_seqnum =" + cl_seqnum);
    if (rs.getString("str_leased") != null) {
    leased = rs.getString("str_leased");
    } else {
    leased = "";
         StringTokenizer st = new StringTokenizer(leased, "/");
    while(st.hasMoreTokens()) {
         ownership = st.nextToken();
         str_code = st.nextToken();
    if (rs.getString("nad27_lat") != null) {
    cl_nad27_lat = valueOf(rs.getString("nad27_lat"));
    } else {
    cl_nad27_lat = "";
         System.out.println("cl_nad27_lat = " + cl_nad27_lat);
    if (rs.getString("nad27_lon") != null) {
    cl_nad27_lon = valueOf(rs.getString("nad27_lon"));
    } else {
    cl_nad27_lon = "";
    System.out.println("cl_nad27_lon = " + cl_nad27_lon);
    if (rs.getString("nad83_lat") != null) {
    cl_nad83_lat = valueOf(rs.getString("nad83_lat"));
    } else {
    cl_nad83_lat = "";
    System.out.println("cl_nad83_lat = " + cl_nad83_lat);
    if (rs.getString("nad83_lon") != null) {
    cl_nad83_lon = valueOf(rs.getString("nad83_lon"));
    } else {
    cl_nad83_lon = "";
    System.out.println("cl_nad83_lon = " + cl_nad83_lon);
    cl_ge_mt = (int)feetToMeter(rs.getInt("ge_ft"));
    System.out.println("&&&&&&&&&&&&&&&&&&&cl_ge_mt = " + cl_ge_mt);
    cl_sh_mt = (int)feetToMeter(rs.getInt("sh_ft"));
    System.out.println("&&&&&&&&&&&&&&&&&&&cl_sh_mt = " + cl_sh_mt);
    cl_osh_mt = (int)feetToMeter(rs.getInt("osh_ft"));
    System.out.println("&&&&&&&&&&&&&&&&&&&cl_osh_mt = " + cl_osh_mt);
    cl_ov_faa_approv_mt = (int)feetToMeter(rs.getInt("ov_faa_approv_ft"));
    System.out.println("&&&&&&&&&&&&&&&&&&&cl_ov_faa_approv_mt = " + cl_ov_faa_approv_mt);
    cl_ant_tip_mt = (int)feetToMeter(rs.getInt("ant_tip_ft"));
    System.out.println("&&&&&&&&&&&&&&&&&&&cl_ant_tip_mt = " + cl_ant_tip_mt);
    cl_ant_ctr_line_mt = (int)feetToMeter(rs.getInt("ant_ctr_line_ft"));
    System.out.println("&&&&&&&&&&&&&&&&&&&cl_ant_ctr_line_mt = " + cl_ant_ctr_line_mt);
         // update NAD27 and NAD83 data in CL_ANTENNA table
    ps = con.prepareStatement("UPDATE cl_antenna_base SET str_leased = ?, structure_code = ?, nad27_lat = ?, nad27_lon =?, nad83_lat = ?, nad83_lon = ?, ge_mt = ?, sh_mt = ?, osh_mt = ?, ov_faa_approv_mt = ?, ant_tip_mt = ?, ant_ctr_line_mt = ? WHERE cla_seqnum = " + cl_seqnum);
    ps.setString(1, ownership);
    ps.setString(2, str_code);
    ps.setString(3, cl_nad27_lat);
    ps.setString(4, cl_nad27_lon);
    ps.setString(5, cl_nad83_lat);
    ps.setString(6, cl_nad83_lon);
    ps.setInt(7, cl_ge_mt);
    ps.setInt(8, cl_sh_mt);
    ps.setInt(9, cl_osh_mt);
    ps.setInt(10, cl_ov_faa_approv_mt);
    ps.setInt(11, cl_ant_tip_mt);
    ps.setInt(12, cl_ant_ctr_line_mt);
         ps.executeUpdate();          
         i++;
    } // end of while
    while(rs1.next())                    // For Microwave
    System.out.println("\n\nMicrowave Record #" + j);
    mw_seqnum = rs1.getInt("mwa_seqnum");
    System.out.println("mw_seqnum =" + mw_seqnum);
    if (rs1.getString("nad27_lat") != null) {
    mw_nad27_lat = valueOf(rs1.getString("nad27_lat"));
    } else {
    mw_nad27_lat = "";
    System.out.println("mw_nad27_lat = " + mw_nad27_lat);
    if (rs1.getString("nad27_lon") != null) {
    mw_nad27_lon = valueOf(rs1.getString("nad27_lon"));
    } else {
    mw_nad27_lon = "";
    System.out.println("mw_nad27_lon = " + mw_nad27_lon);
    if (rs1.getString("nad83_lat") != null) {
    mw_nad83_lat = valueOf(rs1.getString("nad83_lat"));
    } else {
    mw_nad83_lat = "";
    System.out.println("mw_nad83_lat = " + mw_nad83_lat);
    if (rs1.getString("nad83_lon") != null) {
    mw_nad83_lon = valueOf(rs1.getString("nad83_lon"));
    } else {
    mw_nad83_lon = "";
    System.out.println("mw_nad83_lon = " + mw_nad83_lon);
    mw_ge_mt = (int)feetToMeter(rs1.getInt("ge_ft"));
    System.out.println("&&&&&&&&&&&&&&&&&&&mw_ge_mt = " + mw_ge_mt);
    mw_osh_mt = (int)feetToMeter(rs1.getInt("osh_ft"));
    System.out.println("&&&&&&&&&&&&&&&&&&&mw_osh_mt = " + mw_osh_mt);
    mw_cl_mt = (int)feetToMeter(rs1.getInt("cl_ft"));
    System.out.println("&&&&&&&&&&&&&&&&&&&mw_cl_mt = " + mw_cl_mt);
    // update NAD27 and NAD83 data in MW_ANTENNA table
    ps1 = con.prepareStatement("UPDATE mw_antenna_base SET nad27_lat = ?, nad27_lon =?, nad83_lat = ?, nad83_lon = ?, ge_mt = ?, osh_mt = ?, cl_mt = ? WHERE mwa_seqnum = " + mw_seqnum);
    ps1.setString(1, mw_nad27_lat);
    ps1.setString(2, mw_nad27_lon);
    ps1.setString(3, mw_nad83_lat);
    ps1.setString(4, mw_nad83_lon);
    ps1.setInt(5, mw_ge_mt);
    ps1.setInt(6, mw_osh_mt);
    ps1.setInt(7, mw_cl_mt);
    ps1.executeUpdate();
    j++;
    } // end of while
    } catch(SQLException se) {
         System.out.println("SQL Exc" + se.getMessage());
    se.printStackTrace();
    } catch(Exception e) {
    System.out.println(" Exc" + e.getMessage());
    e.printStackTrace();
    finally
              try
                   rs.close();
                   stmt.close();
                   dbConn.freeConnection("system", conn);
                   conn.close();
              } catch (SQLException e)
    } // end of doConvert
    public static void main(String args[]) {
    Format_BaseTable old_nad = new Format_BaseTable();
    old_nad.doConvert();
    } // end of class

  • How can I automatically close a dialog box using Javascript after I click the OK button to submit it?

    How can I automatically close a dialog box using Javascript after I click the OK button to submit it? I don't want to have to X out of the dialog box after I am done.
    Thanks
    Linda

    JS can not interact with open dialogs in any way, unless it's a dialog
    created in JS using the Dialog object.
    On Thu, Jul 24, 2014 at 11:13 PM, lindaeliseruble <[email protected]>

  • When I close my iPhone and I want to open it to use it again, the opening process takes more than an hour, I regretted to buy the iPhone because of this problem that you do not suffer at all with Nokia,how I can solve this problem?

    When I close my iPhone and I want to open it to use it again, the opening process takes more than an hour, I regretted to buy the iPhone because of this problem that you do not suffer at all with Nokia,how I can solve this problem?

    mostafa182 wrote:
    ... how I can solve this problem?
    The Basic Troubleshooting Steps are:
    Restart... Reset... Restore from Backup...  Restore as New...
    Restart / Reset
    http://support.apple.com/kb/ht1430
    Backing up, Updating and Restoring
    http://support.apple.com/kb/HT1414
    If you try all these steps and you still have issues... Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step...
    Be sure to make an appointment first...

  • HT4864 How can I delete / close my iCloud email but not my iCloud account

    How can I delete / close my iCloud email but not my iCloud account

    On your iOS device, go to Settings>iCloud and turn Mail off.  On a Mac, go to System Preferences>iCloud and uncheck Mail.

  • How can I quit (close) Photoshop and keep all windows so that the next time I open Photoshop the fil

    How can I quit (close) Photoshop and keep all windows so that the next time I open Photoshop all the files that I had open are there already in the same position as when I closed Photoshop?
    I've been a Fireworks user for over 10 years and just switched to Photoshop. I cannot find a setting that will enable all my file windows to reopen when I quit Photoshop. This is really a problem since I often work on several files at the same time.
    Please let me know if the feature exists or point me to where I can post a message for a new feature to be implemented. The feature is a must for any designer working on large projects.
    Thanks!

    There is no such functionality. You could perhaps create a script that stores that info in a custom text file and arranges them accordingly in the workspace, but that's as good as it gets...
    Mylenium

  • How can I open/close the switches of HP34903A independently via the subvi "HP34970A switch.vi"separated from "HP34970A GP Switch DEMO.vi" in HP34970A driver?

    I separated the subvi HP34970A switch.vi from the HP34970A GP Swich DEMO.vi in HP34970A driver. But I found that first I ran the subvi to close switch2 and switch3, then I ran the subvi to open switch3,but the result is both channels were open. Finally I found whenever you run the subvi HP34970A switch to close some switches, all other switches will be open. Can anyone tell me how I can open/close the switches of HP34903A independently?

    I use this VI and have no problem independently opening and closing the relays. Check that the Close Exclusive input is set to "Normal". Also, are you sure that the Channel List input only has a single entry? Using your example, the first time you run it, the channel list should be 102,103 with Open/Close set to close. The second time, the channel list should be 103 and Open/Close set to open.

  • How can i have close option for JTabbedPane.

    In My product I use JTabbedPane for several tabs,so i need an option to close each tab ,currently I have an toolbar close button and menu button,but these two are global options,so how can I have close option in the same tab??

    For a similer problem I did it like this
    I creates a subclass of JPanel called TabPanel which having a BorderLayout and in the North section of it there is a tool bar with close button. And it has a reference to the Parent JTabbedPane.
    When ever the close button is clicked it just call the remove on parent TabbedPane giving itself as the parameter.
    and every tab page added to JTabbedPane is a instance of it or an instance of its subclass.
    I think that you can do things on your own from here....

  • Downloads - I want to open some PDFs/other file types from the internet but not have to save them; I can't figure out how to view them and close them without having to save them first.

    Downloads - I want to open some PDFs/other file types from the internet but not have to save them. I can't figure out how to view them and close them without having to save them first. When I click on a file, the downloads box opens and depending on the setting, it auto saves the file or asks me where to save the file. What if I don't want to save it anywhere, I just want to view it and close it?

    https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox
    https://support.mozilla.com/en-US/kb/Opening+PDF+files+within+Firefox

Maybe you are looking for

  • I would like to buy an app not available in India.how can I buy it

    I need to buy an app on decisions of golf which is not available in iTunes India.there has to be another way of purchasing it.when I registered there was no iTunes India and I could use an international credit card.why should this change now.

  • Does the dock from a fourth generation ipod shuffle work with a second generation ipod shuffle?

    Does the dock from a fourth generation ipod shuffle work with a second generation ipod shuffle?

  • IPhoto 6 upgrade - won't lauch

    I just installed iLife 06 (upgraded from '05). When I open iPhoto, it just hangs after the message to import the iPhoto Library into the new version. The spinwheel spins forever, no photos ever load. Also, when I right-click on the app icon, it shows

  • Hardware requirement for Web Dynpro for ABAP

    Hi Friends,                 I am a  starter in Web Dynpro for ABAP and about to develop web dynpro application in ABAP.Can anyone please guide me on the hardware requirement for this application of SAP?        Presently I have ECC 5.0 installed in 1

  • I can't install update to iTunes 10.1

    I'm using Mac OS X 10.5.8 with czech localization. When i tried install update to iTunes 10.1, then installer says "This software does not contain support for the system language." Settings to english in Control panels (+ restart of computer) haven't