Swing Form = JNI = Delphi DLL = Delphi Form works but small issue

Hi all
I'm trying to call a delphi dll from a java form.
This is the procedure
swing button action => jni => call procedure in delphi dll => create delphi formThis works for me but the problem is when click the button it create the delphi form by calling the dll but it's stucked for ever(frame not the whole form). Never return to do something else. Means that it's stay remain in clicked postion.
I do not know whether the problem exist with the swings' single threaded behavior. I have used another thread to call natives. But the problem persist.
So can any one suggest any answer.
Wish U all HAPPY NEW YEAR!
Here is the compact code
native calls
public class LoadLib
    public native void createForm();
    public native void forward();
    static
        System.loadLibrary("testjni");
}calling class
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.Container;
import java.awt.event.ActionListener;
public class RUNClient extends JFrame {
     JFrame frame = new JFrame();
     JFrame frame2 = new JFrame();
     LoadLib lib = new LoadLib();
     JButton b1 = new JButton("OK");
     JButton b2 = new JButton("Forwad");
     private RUNClient() {
          frame.setLayout(null);
          frame.add(b1);
          frame.add(b2);
          b1.setBounds(110, 80, 80, 20);
          b2.setBounds(110, 50, 80, 20);
          b1.addActionListener(new ActionListener() {
               public void actionPerformed(ActionEvent e) {
                    lib.createForm();     // create form in dll
                    // after this call frame is stucked
          b2.addActionListener(new ActionListener() {
               public void actionPerformed(ActionEvent e) {
                    lib.forward();          // call another native to do some in created form
                    // this cannot be called because frame is stuck
          // other frame operation
     public static void main(String args[]) {
          new RUNClient();
}delphi code
library testjni;
uses
  JNI,Unit1;
  var
  f : TForm1;
procedure Java_LoadLib_createForm(PEnv: PJNIEnv; Obj: JObject); {$IFDEF WIN32} stdcall; {$ENDIF} {$IFDEF LINUX} cdecl; {$ENDIF}
begin
try
  f := TForm1.Create(nil);
  f.ShowModal;    
   finally
     f.Free;
     f.Release;
   end;
end;
procedure Java_LoadLib_forward(PEnv: PJNIEnv; Obj: JObject); {$IFDEF WIN32} stdcall; {$ENDIF} {$IFDEF LINUX} cdecl; {$ENDIF}
begin
Form1.Top := Form1.Top - 50;
end;
exports
  Java_LoadLib_createForm,
  Java_LoadLib_forward;
begin
end.

Hi deshan,
To realize the problem you should know principles of Java GUI (SWING or AWT) implementation in JVM:
1) Java GUI is implemented in a single thread with EventQueue static object, which is created with JVM when Java Application GUI starts.
2) Any painting or event calls are done on this thread (the same approach was used by Microsoft in .NET GUI).
3) While your code handles an event EventQueue waits for return from your event method. Some calls to GUI components can stick the whole Java GUI (this is the problem of SUN Java architecture, I did not have this in Microsoft Java). To avoid this problem you should use InvokeLater method that works like PostMessage to the main thread in Windows Application. InvokeLater generate an event that is posted to EventQueue and your code passed to InvokeLater method will be executed asynchronously in GUI Thread.
4) If you call any Java (SWING or AWT) component from the thread other than EventQueue thread you must synchronize these calls with locks by the object got from getTreeLock() method of the component you call. But you should be accurate with locks because they can cause deadlocks.
Your code does not return from Click Event where you try to create some GUI component but EventQueue is still waiting for “return” and the main GUI thread is suspended.

Similar Messages

  • HT4628 My macbook pro doesn't connect to the Wi-Fi at home while my iPad connects to the same Wi-Fi. When I try connecting my macbook to my iPhone's personal hotspot, the internet works but the issue is connecting my macbook to the Wi-Fi. Please help!!

    My macbook doesn't connect to the Wi-Fi at home while my iPad connects to the same Wi-Fi. When I try connecting my macbook to my iPhone's personal hotspot, the internet works but the issue is connecting my macbook to the Wi-Fi. Please help!!
    I don't understand how to fix this and I don't seem to understand where the problem is coming from.

    Let's try the simple approach first. Restart your router. Any change?

  • When i use HTML forms in firefox 6, they dont work, but do in IE and safari and firefox 3.6

    i have the following code in a php script, but in firefox 6 it fails, but works in firefox 3.6, safari, IE .......
    <pre><nowiki>
    echo ' <FORM method="post" action="FindPerGetNo.php">';
    echo ' <tr>';
    echo ' <SELECT name="SelectionString">';
    echo '<OPTION selected value="12">12</option>';
    while($row = mysql_fetch_array($query))
    echo '<OPTION value=" -'.$row['sTableID'].'-">'.$row['sTableName'].'</OPTION>';
    echo ' </SELECT> '; }
    echo ' </tr>';
    echo ' <tr> ';
    echo ' <p align="left">';
    echo ' <td colspan="2"><div align="left"><input type="submit" value="Submit"></div></td>';
    echo ' </tr> ';
    echo ' </FORM>';
    </nowiki></pre><br />
    <br />
    the called script has no value for SelectionString in firefox 6, but it does in the other browsers i mentioned

    A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.<br />
    You need to register at the mozillaZine forum site in order to post at that forum.<br />
    See http://forums.mozillazine.org/viewforum.php?f=25

  • When browsing a Form PDF on my MAC is working but on my site it don't work

    Could you help me. It's so strange. I work in acrobat Pro and run the preview in acrobat and everything is ok. But when upload it to my site it don't work. The submit don't work and the required file does not scan.

    Well, I'm in UK and I picked NY as the closest offered city.  The test reported 9.61Mbs download, and the upload test hung.  I tried again with a broadly similar result - the upload hung again.  Indeed everytime I have run the OOKLA provided tests the upload has hung.  My ISP uses the OOKLA test as well.

  • No sound comes out of my speaker but ok when on the phone the ipod ring tone any kind of tone not working but perfect with ear phones

    hi no sounds come out of my speaker form i pod key tones dont work but when on phone can hear everthing and works perfect with ear phones
    as any one had same problem

    Clean the iPhone charging port with a clean dry toothbrush.

  • Register dll (delphi) forms 6i?

    I have an application in developper 6i. A applicattion's proccess calls a function from dll (using ora_ffi), but when i try to run the process, it failed.
    I don´t know if i need to register the dll in forms or something like that? the dll is localized on forms_path
    I work with windows NT and XP?
    have you any idea?

    Hi Nilakshak,
    In Visual Basic you could make ActiveX DLL and you could call it from Forms client/server using OLE2 package.
    See: http://www.tigralen.spb.ru/download/vb_dll.zip, http://www.tigralen.spb.ru/oracle/vb/index.htm.
    I think it helpful for you
    Thanks
    Bhujendra

  • Can I create a form in muse and have it work with a different hosting service?

    I contacted a hosting service that I need to upload the site I built in MUSE to. (Hosting has already been purchased). I asked OMNIS:
    I want to create a form with Muse and then upload my site to OMNIS, not muse, the forms will display as I designed them, but they will not  function. I have someone to help me who is experienced in working with code. I can use Muse to export my site and then open the files in an HTML editor. "Update the source code of the form to make it compatible with the form processing technology used by your hosting provider (OMNIS) before you upload the files to their server." Can you help me with this? Do I need to get a script or something from you?
    OMNIS ASKED me:
    What are MUSE's site requirements?
    I will be building other sites and my clients may want to have the site hosted elsewhere. Can you give me the easiest way to deal with forms?

    Thank you for getting back to me Morgan.
    I read in another forum:
    There's a handy piece of software from CoffeeCup Software called "Web Form Builder". It's pretty affordable and easy to use and it can be hosted on the server of your choice provided that server uses an up-to-date PHP script.
    This is what I have been using....but I would rather not have to deal with a third party form builder at all.
    Do you reccommend this?

  • I updated to iOS 5.1 but my camera buttone form the lock screen is not working what should i do

    i updated to iOS 5.1 but my camera buttone form the lock screen is not working what should i do. i tryed restoring but it didnt work .
    When i try the camera loncher  but  it's not working

    i feel stupid now because i didnt know to swipe it up lol
    thanks

  • Hi - I created a form in Adobe Livecycle and have a button on it to send the form via email.  t worked, but only for those with PC.  I could not get it to work with Apple Yosemite even with reader installed .  is there a way i can make it work for apple /

    Hi - I created a form in Adobe Livecycle and have a button on it to send the form via email. It worked, but only for those with PC. However,  I could not get it to work with Apple loaded with Yosemite even with reader installed .  Is there a way i can make it work for apple / Mac? It worked fine on a mac using Mountain Lion and reader
    Thanks

    LiveCycle = XFA forms.
    afaik - These cannot be used in Apple OSs.
    Be well...

  • Hi - I created a form in Adobe Livecycle and have a button on it to send the form via email.  the button did not work and i looked online and saw where you could change it to a regular button and enter the email for it to go.  it worked, but only for thos

    Hi - I created a form in Adobe Livecycle and have a button on it to send the form via email.  the button did not work and i looked online and saw where you could change it to a regular button and enter the email for it to go.  it worked, but only for those with adobe pro.  i could not get it to work with reader.  is there a way i can make it work for reader?

    Noted.
    The LiveCycle user to user forum is across town at:
    Adobe LiveCycle 
    Be well...

  • Now the form works but data captured is not writing to the database table

    Hi
    I have a form that works but does not move from where it is after the submit button is clicked.
    Please advice

    <?php require_once('Connections/dbAttendance.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO attendlist (Windowsid, title, firstname, surname, extension, mobile, jobrole, course, cpg, mgrname, room) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['Wid'], "text"),
                           GetSQLValueString($_POST['title'], "text"),
                           GetSQLValueString($_POST['firstname'], "text"),
                           GetSQLValueString($_POST['surname'], "text"),
                           GetSQLValueString($_POST['contactno'], "text"),
                           GetSQLValueString($_POST['mobile'], "text"),
                           GetSQLValueString($_POST['jobrole'], "text"),
                           GetSQLValueString($_POST['courses'], "text"),
                           GetSQLValueString($_POST['cpg2'], "text"),
                           GetSQLValueString($_POST['mgrname2'], "text"),
                           GetSQLValueString($_POST['troom'], "text"));
      mysql_select_db($database_attending, $attending);
      $Result1 = mysql_query($insertSQL, $attending) or die(mysql_error());
      $insertGoTo = "ReportbyAll.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    mysql_select_db($database_dbAttendance, $dbAttendance);
    $query_rsattendance = "SELECT * FROM attendlist";
    $rsattendance = mysql_query($query_rsattendance, $dbAttendance) or die(mysql_error());
    $row_rsattendance = mysql_fetch_assoc($rsattendance);
    $totalRows_rsattendance = mysql_num_rows($rsattendance);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO attendlist (title, firstname, surname, extension, mobile, jobrole, course, cpg, mgrname, room, Adate) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['title'], "text"),
                           GetSQLValueString($_POST['firstname'], "text"),
                           GetSQLValueString($_POST['surname'], "text"),
                           GetSQLValueString($_POST['contactno'], "text"),
                           GetSQLValueString($_POST['mobile'], "text"),
                           GetSQLValueString($_POST['jobrole'], "text"),
                           GetSQLValueString($_POST['courses'], "text"),
                           GetSQLValueString($_POST['cpg2'], "text"),
                           GetSQLValueString($_POST['mgrname2'], "text"),
                           GetSQLValueString($_POST['troom'], "text"),
                           GetSQLValueString($_POST['Adate2'], "date"));
      mysql_select_db($database_attending, $attending);
      $Result1 = mysql_query($insertSQL, $attending) or die(mysql_error());
      $insertGoTo = "Listing.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    } ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Register</title>
    <style type="text/css">
    body {
              font: 100%/0.8 Verdana, Arial, Helvetica, sans-serif;
              background-color: #4E5869;
              margin: 0;
              padding: 0;
              color: #000;
    /* ~~ Element/tag selectors ~~ */
    ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
              padding: 0;
              margin: 0;
    h1, h2, h3, h4, h5, h6, p {
              margin-top: 0;           /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
              padding-right: 15px;
              padding-left: 15px; /* adding the padding to the sides of the elements within the divs, instead of the divs themselves, gets rid of any box model math. A nested div with side padding can also be used as an alternate method. */
    a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
              border: none;
    /* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
    a:link {
              color:#414958;
              text-decoration: underline; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
    a:visited {
              color: #4E5869;
              text-decoration: underline;
    a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
              text-decoration: none;
    /* ~~ this container surrounds all other divs giving them their percentage-based width ~~ */
    .container {
              width: 80%;
              max-width: 960px;/* a max-width may be desirable to keep this layout from getting too wide on a large monitor. This keeps line length more readable. IE6 does not respect this declaration. */
              min-width: 780px;/* a min-width may be desirable to keep this layout from getting too narrow. This keeps line length more readable in the side columns. IE6 does not respect this declaration. */
              background-color: #FFF;
              margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout. It is not needed if you set the .container's width to 100%. */
    /* ~~the header is not given a width. It will extend the full width of your layout. It contains an image placeholder that should be replaced with your own linked logo~~ */
    .header {
              background-color: #6F7D94;
    /* ~~ This is the layout information. ~~
    1) Padding is only placed on the top and/or bottom of the div. The elements within this div have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the div itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the div and place a second div within it with no width and the padding necessary for your design.
    .content {
              padding: 10px 0;
    /* ~~ This grouped selector gives the lists in the .content area space ~~ */
    .content ul, .content ol {
              padding: 0 15px 15px 40px; /* this padding mirrors the right padding in the headings and paragraph rule above. Padding was placed on the bottom for space between other elements on the lists and on the left to create the indention. These may be adjusted as you wish. */
    /* ~~ The footer ~~ */
    .footer {
              padding: 10px 0;
              background-color: #6F7D94;
    /* ~~ miscellaneous float/clear classes ~~ */
    .fltrt {  /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
              float: right;
              margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
              float: left;
              margin-right: 8px;
    .clearfloat { /* this class can be placed on a or empty div as the final element following the last floated div (within the #container) if the #footer is removed or taken out of the #container */
              clear:both;
              height:0;
              font-size: 1px;
              line-height: 0px;
    </style>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationSelect.js" type="text/javascript"></script>
    <script language='JavaScript' type='text/javascript' src='TSScript/yahoo.js'></script>
    <script language='JavaScript' type='text/javascript' src='TSScript/event.js'></script>
    <script language='JavaScript' type='text/javascript' src='TSScript/dom.js'></script>
    <script language='JavaScript' type='text/javascript' src='TSScript/calendar.js'></script>
    <link rel='stylesheet' type='text/css' href='TSScript/TSCalendar/calendar.css' />
    <script language='JavaScript' type='text/javascript' src='TSScript/TSCalendar/TSCalendar.js'></script>
    </head>
    <body>
    <div class="container">
      <div class="header">
      <img src="Cerner At Imperial2.jpg" width="960" height="150" alt="" />
      </div>
      <div class="content">
        <h3>Attendance Register: </h3>
              <p><?php echo "Date  ".date("d/m/Y");?></p>
        <form action="<?php echo $editFormAction;?>" id="form1" name="form1" method="post">
          <table width="780" border="0" cellspacing="10" summary="Cerner@Imperial">
            <tr>
              <td><div align="right">* User ID</div></td>
              <td colspan="2"><span id="sprytextfield1">
                <input name="Wid" type="text" id="Wid" tabindex="1" size="18" maxlength="10" />
              <span class="textfieldRequiredMsg"> a value is required.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* Title</div></td>
              <td colspan="2"><span id="spryselect1">
                <select name="title" id="title" tabindex="2">
                  <option value="0">Select</option>
                  <option value="Ms">Ms</option>
                  <option value="Mrs">Mrs</option>
                  <option value="Mdm">Mdm</option>
                  <option value="Mr">Mr</option>
                  <option value="Dr">Dr</option>
                  <option value="Professor">Prof</option>
                </select>
    <span class="selectRequiredMsg">    Please select an item.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* First name</div></td>
              <td colspan="2"><span id="sprytextfield2">
                <input name="firstname" type="text" id="firstname" tabindex="3" size="40" maxlength="30" />
              <span class="textfieldRequiredMsg"> a value is required.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* Surname</div></td>
              <td colspan="2"><span id="sprytextfield5">
                <input name="surname" type="text" id="surname" tabindex="4" size="40" maxlength="30" />
              <span class="textfieldRequiredMsg"> a value is required.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* Contact/ Bleep</div></td>
              <td colspan="2"><span id="sprytextfield3">
                <input name="contactno" type="text" id="contactno" tabindex="5" size="10" maxlength="6" />
              <span class="textfieldRequiredMsg">a value is required.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">Mobile (optional)</div></td>
              <td colspan="2"><input name="mobile" type="text" id="mobile" tabindex="6" size="25" maxlength="18" />          <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td colspan="2"> </td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* Job role</div></td>
              <td colspan="2"><span id="spryselect2">
                <select name="jobrole" id="jobrole" tabindex="7">
                  <option value="0">Select</option>
                  <option value="Doctor">Doctor</option>
                  <option value="CNS/NP">CNS/NP</option>
                  <option value="Midwife">Midwife</option>
                  <option value="Other Staff">Other Staff</option>
                  <option value="Nurse IP HCA">Nurse IP &amp; HCA</option>
                  <option value="Nurse OP HCA">Nurse OP &amp; HCA</option>
                  <option value="IP Physician Assitant">IP Physician Assistant</option>
                  <option value="OP Phlebotomist">OP Phlebotmist</option>
                  <option value="Pharmacists">Pharmacists</option>
                  <option value="Therapist AHP">Therapist &amp; AHP</option>
                  <option value="Medical Secretary">Medical Secretary</option>
                  <option value="Bed Manager">Bed Manager</option>
                  <option value="Medical Record Staff">Medical Records</option>
                  <option value="Medical Records Manager">Medical Records Mgr</option>
                  <option value="OP Booking Clerk">OP Booking Clerk</option>
                  <option value="OP Receptionist">OP Receptionist</option>
                  <option value="ED Admin">ED Admin</option>
                  <option value="Ward Administrator">Ward Administrator</option>
                  <option value="IP Wait List Clerk/Mgr">IP Wait List Clerk/Mgr</option>
                  <option value="Antenatal Supervisor">Antenatal Supervisor</option>
                  <option value="Clinical Coder">Clinical Coder</option>
                  <option value="Clinical Coding Mgr">Clinical Coding Mgr</option>
                  <option value="Pi Help Desk Backoffice">Pi Help Desk Analyst/Back Office</option>
                </select>
              <span class="selectInvalidMsg">Please select a valid item.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* Manager's Name</div></td>
              <td colspan="2"><span id="sprytextfield4">
              <input name="mgrname2" type="text" id="mgrname2" tabindex="8" size="40" maxlength="30" />
              <span class="textfieldRequiredMsg"> a value is required.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right"></div></td>
              <td colspan="2"> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td colspan="2"> </td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* Course</div></td>
              <td colspan="2"><span id="spryselect3">
                <select name="courses" id="courses" tabindex="10" title="course">
                  <option value="0">Select</option>
                  <option value="Doctors">Doctors</option>
                  <option value="Nurse IP">Nurse IP</option>
                  <option value="Nurse OP">Nurse OP</option>
                  <option value="Midwife">Midwife</option>
                  <option value="HCA">HCA</option>
                  <option value="Pharmacist">Pharmacist</option>
                  <option value="Back Office Staff">Back Office Staff</option>
                  <option value="AHP">AHP</option>
                  <option value="Pi Help Desk Analyst">Pi Help Desk Analyst</option>
                  <option value="Medical Secretary">Medical Secretary</option>
                  <option value="OP Phlebotmist">OP Phlebotmist</option>
                  <option value="Champion Users Doctors">Champion Users Doctors</option>
                  <option value="Champion Users Nurse IP">Champion Users Nurse IP</option>
                </select>
              <span class="selectRequiredMsg">Please select an item.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* Training Location </div></td>
              <td><span id="spryselect4">
                <select name="troom" id="troom"  tabindex="11" title="location">
                  <option value="0">Select</option>
                  <option value="CXH">Charing Cross</option>
                  <option value="HH">Hammersmith Hammersmith</option>
                  <option value="QEH">Queen Charlottee Hospital</option>
                  <option value="SMH">St Mary's Hospital</option>
                  <option value="WEH">Western Eye Hospital</option>
                  <option value="SCC">St Charles Community</option>
                </select>
              <span class="selectRequiredMsg">Please select an item.</span></span></td>
              <td> </td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* CPG</div></td>
              <td><span id="spryselect5">
                <select name="cpg2"  id="cpg2"  tabindex="12" title="cpg">
                  <option value="0">Select</option>
                  <option value="CPG 1 Medicine">CPG1 - Medicine</option>
                  <option value="CPG 2 Surgery &amp; Cancer">CPG2 - Surgery and Cancer</option>
                  <option value="CPG3 Specialist Services">CPG3 - Specialist Services</option>
                  <option value="CPG4 Circulatory Services and Renal Medicine">CPG4 - Circulatory Services and Renal Medicine</option>
                  <option value="CPG5 Womens and Childrens">CPG5 - Womens and Childrens</option>
                  <option value="CPG6 Clinical and Investigative Sciences">CPG6 - Clinical and Investigative Sciences</option>
                  <option value="CP7 Private Patients">CPG7 - Private Patients</option>
                  <option value="Others">Others</option>
                </select>
              <span class="selectRequiredMsg">Please select an item.</span></span></td>
              <td> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td><input type="submit" name="submitbt" id="submitbt" value="Submit" /></td>
              <td> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td colspan="2"> </td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="center">* Mandatory Fields</div></td>
              <td colspan="2"> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td colspan="2"> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td colspan="2"> </td>
              <td> </td>
            </tr>
          </table>
          <input type="hidden" name="MM_insert" value="form1" />
        </form>
        <p> </p>
        <p> </p>
      <div class="footer">
    <script type="text/javascript">
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none", {validateOn:["blur", "change"]});
    var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1", {validateOn:["blur", "change"]});
    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "none", {validateOn:["blur", "change"]});
    var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3", "none", {validateOn:["blur", "change"]});
    var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "integer", {validateOn:["blur", "change"]});
    var spryselect2 = new Spry.Widget.ValidationSelect("spryselect2", {invalidValue:"-1", isRequired:false, validateOn:["blur", "change"]});
    var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "none", {validateOn:["blur"]});
    var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5", "none", {validateOn:["blur", "change"]});
    var spryselect3 = new Spry.Widget.ValidationSelect("spryselect3");
    var spryselect4 = new Spry.Widget.ValidationSelect("spryselect4");
    var spryselect5 = new Spry.Widget.ValidationSelect("spryselect5", {validateOn:["blur", "change"]});
    </script>
    </div>
    </div>
    <p>
        <a href="http://validator.w3.org/check?uri=referer"><img
          src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a>
      </p>
      <P></P>
    </div>
    </body>
    </html>
    <?php
    mysql_free_result($rsattendance);
    ?>

  • I am trying to delete one entry in forms data by highlighting and deleting it but it is not working. Thanks.

    I am trying to delete one entry in forms data by highlighting and deleting it but it is not working. Thank

    Lightroom - all versions
    Windows
    http://www.adobe.com/support/downloads/product.jsp?product=113&platform=Windows
    Mac
    http://www.adobe.com/support/downloads/product.jsp?product=113&platform=Macintosh

  • FORM RUNTIME record=collect is not working.

    Hi
    FORM RUNTIME record=collect is not working which is set to user level.what to do?
    rgrds

    Pl post details of OS and EBS versions, along with the complete steps you took to enable this profile option. What does "not working" mean ?
    MOS Doc 438652.1 - R12: Forms Runtime Diagnostics (FRD), Tracing And Logging For Forms In Oracle Applications
    HTH
    Srini

  • Multiple h:forms inside one f:view not working.

    Hi,
    Iam using myfaces 1.1.5 with tomahawk components.
    Iam having t:panelTabbedPane under one f:view tag.
    Inside t:panelTabbedPane, iam using four t:panelTab's.
    For every t:panelTab, if i have one h:form, the page is displayed but the commandLink's are not working.
    if i have only one h:form for all the tabs its working. why?
    I want h:form for every tab.
    help me,.

    As long as you don't nest forms, it should indeed work.

  • Prepopulate process form of Disconnected Application Instance not working

    Hi All,
    I have a created a Disconnected application instance (OIM 11.1.2) and need to prepopulate Process form when this will be requested from catalog.
    Prepopulating is working but not as expected.
    Exact Situation
    1) Login to self service page and select a user
    2) from accounts tab -> click request Account
    3) Catalog page will be opened and select the disconnected application instance
    4) check out
    5) In the check out page, process form and child form are displayed(I attached child form also)
    6) "Prepopulate adapters are not populating the fields in check out page"
    7) Submit the request with blank details (blank form fields).
    8) Log out and Login as 'Xelsysadm' (By default request goes to 'XELSYSADM'). When opened the request, Here fields are prepopulated
    Required
    1) Fields should be prepopulated in check Out page, before submiting the request.So, that the requestor could view the details before submitting.
    The following are checked
    1) In the process definition (from design Console) of disconnected app instance, 'Auto save form' and 'Auto prepopulate' is checked
    Please tell me, what else could be done, to make this work
    Thanks in advance....
    Edited by: kavatam on May 30, 2013 3:21 AM

    Thanks for reply..
    I could not find "oracle.iam.request.plugins.PrePopulationAdapter" details in OIM 11.1.2 API http://docs.oracle.com/cd/E27559_01/apirefs.1112/e28159/toc.htm
    Could u please share API details, and link where I can find its details....
    praveen....

Maybe you are looking for

  • Recordset per message in Sender File Adapter

    Hi Friends I have configured a sender file adapter to pick up *.txt files from a specific path, Since the file is having thousands of records it is failing to process the file at  PI level . In order to avoid the problem I have kept Recordset Set Per

  • ITunes 7.1

    Downloaded iTunes 7.1. won't open, getting the following "iTunes can't run because it has detected a problem with your audio configuration". Any advise, please.

  • A puzzle game using Flash Builder Burrito

    I used the Flash Builder Burrito and AIR 2.5.1 to build a simple puzzle game for the Android market. It is called 'Ramanujam's Magic Square' and is live. Performance on Galaxy S is as good at it can be with a native app. considering that the puzzle i

  • GDS Performance in a Cluster - Database or Shared File Folder

    Has anyone seen any significant performance differences between Windows ES4 clusters using the DB GDS and File Folder GDS?

  • Unable to download itunes on 64bit windows 7

    Received error 126 when downloading itunes to windows 7, 64 bit computer.  download was unable to finish.