How to populate the combo boxes that are created dynamically in jsp

Hi,
I am using JSP.
I am creating combo boxes dynamically (based on the num selected by the user). These dynamically created combo boxes need to have A-Z as options (each box) . Now, when the user chooses the option A in any of the combo-boxes,the rest should not have this option. so on..
how do i achieve this.Kindly help.

You'll need to use JavaScript...I have a complicated example and a simple example, however, I cannot really understand the complex example but I know how it works. The looping is too complex for me.
First you'll need to populate a server side variable...depending on how often the data is updated you may want this to run each time a new session is created...this example is run each time Tomcat is started and the application context is initialized:
package kms.web;
// Servlet imports
import javax.servlet.ServletContextListener;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContext;
// utility imports
import java.util.Map;
// domain imports
import kms.domain.LocationService;
import kms.domain.DeptService;
import kms.domain.PatentService;
* This listenter is used to initialize
* the Maps of Locations, Patents & Depts used to populate
* pulldown lists in JSPs
public class InitializeData implements ServletContextListener {
    * This method creates the Maps.
   public void contextInitialized(ServletContextEvent sce) {
      ServletContext context = sce.getServletContext();
      LocationService lServ = new LocationService();
      // Create the Maps
      Map campuses = lServ.getCampuses();
      Map buildings = lServ.getBuildings();
      Map floors = lServ.getFloors();
      Map locs = lServ.getLocations();
      // And store them in the "context" (application) scope
      context.setAttribute("campuses", campuses);
      context.setAttribute("buildings", buildings);
      context.setAttribute("floors", floors);
      context.setAttribute("locs", locs);
      DeptService dServ = new DeptService();
      Map depts = dServ.getDepts();
      context.setAttribute("depts", depts);
      PatentService pServ = new PatentService();
      Map patents = pServ.getPatents();
      context.setAttribute("patents", patents);
      //I did this one myself
/*    CodeService cServ = new CodeService();
      Map masterMks = cServ.getCodes();
      context.setAttribute("masterMks", masterMks);
    * This method is necessary for interface.
   public void contextDestroyed(ServletContextEvent sce) {
   // I have no clue what the heck this is for???
   // Let me know if you do!
}So now we travel into the PatentService method called 'getPatents();' which in turn calls a PatentDAO method
Map patents = pServ.getPatents();
Below is the code for the PatentService object:
package kms.domain;
import kms.util.ObjectNotFoundException;
import java.util.*;
* This object performs a variety of dept services, like retrieving
* a dept object from the database, or creating a new dept object.
public class PatentService {
   * The internal Data Access Object used for database CRUD operations.
  private PatentDAO patentDAO;
   * This constructor creates a Dept Service object.
  public PatentService() {
    patentDAO = new PatentDAO();
public Map getPatents() {
      Map patents = null;
      try {
        patents = patentDAO.retrieveAll();
      // If the dept object does not exist, simply return null
      } catch (ObjectNotFoundException onfe) {
        patents = null;
      return patents;
}It may be useful for you to see the code of the Patent class:
package kms.domain;
/*** This domain object represents a dept.
public class Patent implements java.io.Serializable {
  private int codeGgm;
  private String name = "";
  private String description = "";
  private int creator;
  private String creationDate = "";
  private int used;
   * This is the full constructor.
  public Patent(int codeGgm, String name, String desc, int creator, String creationDate, int used) {
    this.codeGgm = codeGgm;
    this.name = name;
    this.description = desc;
    this.creator = creator;
    this.creationDate = creationDate;
    this.used = used;
  public Patent() { }
  public int getCodeGgm() {
      return codeGgm;
  public void setCodeGgm(int codeGgm) {
       this.codeGgm = codeGgm;
  public String getName() {
    return name;
  public void setName(String name) {
      this.name = name;
  public String getDesc() {
    return description;
  public void setDesc(String desc) {
      this.description = desc;
  public int getCreator() {
      return creator;
  public void setCreator(int creator) {
         this.creator = creator;
  public String getCreationDate() {
      return creationDate;
  public void setCreationDate(String creationDate) {
         this.creationDate = creationDate;
  public int getUsed() {
       return used;
  public void setUsed(int used){
       this.used = used;
}And here is the Database table which stores the Patents:
DESC PATENT:
CODE_GGM NUMBER(3)
NAME VARCHAR2(15)
DESCRIPTION VARCHAR2(250)
CREATOR NUMBER(10)
CREATION_DATE DATE
USED NUMBER(1)
So, we then travel into the code of the PatentDAO to see how the DAO object executes the DB query to get all of the Data we need for the select list:
package kms.domain;
import javax.naming.*;
import javax.sql.*;
import java.util.*;
import java.sql.*;
import kms.util.*;
* This Data Access Object performs database operations on Patent objects.
class PatentDAO {
   * This constructor creates a Patent DAO object.
   * Keep this package-private, so no other classes have access
PatentDAO() {
* This method returns a Map of all the Dept names
* The key is the Dept id
Map retrieveAll()
       throws ObjectNotFoundException {
      Connection connection = null;
      ResultSet results = null;
      // Create the query statement
      PreparedStatement query_stmt = null;
      try {
        // Get a database connection
      Context initContext = new InitialContext();
       DataSource ds = (DataSource)initContext.lookup("java:/comp/env/jdbc/keymanOracle");
       connection = ds.getConnection();
        // Create SQL SELECT statement
        query_stmt = connection.prepareStatement(RETRIEVE_ALL_NAMES);
        results = query_stmt.executeQuery();
        int num_of_rows = 0;
      Map patents = new TreeMap();
         // Iterator over the query results
        while ( results.next() ) {
            patents.put(new Integer(results.getInt("code_ggm")), results.getString("name"));
         if ( patents != null ) {
                  return patents;
                } else {
                  throw new ObjectNotFoundException("patent");
       // Handle any SQL errors
     } catch (SQLException se) {
        se.printStackTrace();
       throw new RuntimeException("A database error occured. " + se.getMessage());
    } catch (NamingException se) {
      throw new RuntimeException("A JNDI error occured. " + se.getMessage());
      // Clean up JDBC resources
      } finally {
        if ( results != null ) {
          try { results.close(); }
          catch (SQLException se) { se.printStackTrace(System.err); }
        if ( query_stmt != null ) {
          try { query_stmt.close(); }
          catch (SQLException se) { se.printStackTrace(System.err); }
        if ( connection != null ) {
          try { connection.close(); }
          catch (Exception e) { e.printStackTrace(System.err); }
private static final String RETRIEVE_ALL_NAMES
      = "SELECT code_ggm, name FROM patent ";
}Now when you wish to use the 'combo box' (also called select lists), you insert this code into your jsp:
<TR>
<%@ include file="../incl/patent.jsp" %>
</TR>
depending on how your files on your server are organized, the "../incl/patent.jsp"
tells the container to look up one directory from where the main jsp is to find the 'patent.jsp' file in the 'incl' directory.
I need some help creating multi-level select lists with JavaScript:
Can anyone explain this code:
<%@ page import="java.util.*,kms.domain.*" %>
<jsp:useBean id="campuses" scope="application" class="java.util.Map" />
<TR><TD ALIGN='right'>Campus: </TD>
<TD>
<select name="campus" size="1" onChange="redirect(this.options.selectedIndex)">
<option value="0" selected>No Campus</option>
<% LocationService ls = new LocationService();
   Iterator c = campuses.keySet().iterator();
   Map[] bm = new Map[campuses.size()];
   Map[][] fm = new Map[campuses.size()][0];
   Map[][][] lm = new Map[campuses.size()][0][0];
   int i2 = 0;
   int j2 = 0;
   int k2 = 0;
   int jj = 0;
   int kk = 0;
   while (c.hasNext()) {
      Integer i = (Integer)c.next();
      out.print("<OPTION ");
      out.print("VALUE='" + i.intValue()+ "'>");
      out.print( (String) campuses.get(i) );
      out.print("</OPTION>");
      bm[i2] =  ls.getBuildingsByCampus(i.intValue());
      fm[i2] = new Map[bm[i2].size()];
      lm[i2] = new Map[bm[i2].size()][];
      Iterator b = bm[i2].keySet().iterator();
      j2 = 0;
      while (b.hasNext()) {
        Integer j = (Integer)b.next();
        fm[i2][j2] = ls.getFloorsByBuilding(j.intValue());
        lm[i2][j2] = new Map[fm[i2][j2].size()];
        Iterator f = fm[i2][j2].keySet().iterator();
        k2 = 0;
        while (f.hasNext()) {
          Integer k = (Integer)f.next();
          lm[i2][j2][k2] = ls.getLocationsByFloor(k.intValue());
          k2++;
          kk++;
        j2++;
        jj++;
      i2++;
   } %>
</select></TD>
</TR>
<TR><TD ALIGN='right'>Building: </TD>
<TD>
<select name="building" size="1" onChange="redirect1(this.options.selectedIndex)">
<option value="0" selected>No Building</option>
</select></TD>
</TR>
<TR><TD ALIGN='right'>Floor: </TD>
<TD>
<select name="floor" size="1" onChange="redirect2(this.options.selectedIndex)">
<option value="0" selected>No Floor</option>
</select></TD>
</TR>
<TR><TD ALIGN='right'>Room: </TD>
<TD>
<select name="location_id" size="1">
<option value="0" selected>No Room</option>
</select></TD>
</TR>
<script>
var cNum = <%=i2%>
var bNum = <%=jj%>
var fNum = <%=kk%>
var cc = 0
var bb = 0
var ff = 0
var temp=document.isc.building
function redirect(x){
cc = x
for (m=temp.options.length-1;m>0;m--)
  temp.options[m]=null
  temp.options[0]=new Option("No Building", "0")
  if (cc!=0) {
    for (i=1;i<=group[cc-1].length;i++){
      temp.options=new Option(group[cc-1][i-1].text,group[cc-1][i-1].value)
temp.options[0].selected=true
redirect1(0)
var group=new Array(cNum)
for (i=0; i<cNum; i++) {
group[i]=new Array()
<% for (int i=0; i< bm.length; i++) {
Iterator bldgs = bm[i].keySet().iterator();
int j = 0;
while (bldgs.hasNext()) {
Integer intJ =(Integer) bldgs.next(); %>
group[<%=i%>][<%=j%>] = new Option("<%=bm[i].get(intJ)%>", "<%=intJ%>");
<% j++;
} %>
var group2=new Array(cNum)
for (i=0; i<cNum; i++) {
group2[i] = new Array()
for (j=0; j<=bNum; j++) {
group2[i][j] = new Array()
<% for (int i=0; i< fm.length; i++) {
for (int j=0; j< fm[i].length; j++) {
Iterator flrs = fm[i][j].keySet().iterator();
int k = 0;
while (flrs.hasNext()) {
Integer intK =(Integer) flrs.next(); %>
group2[<%=i%>][<%=j%>][<%=k%>] = new Option("<%=fm[i][j].get(intK)%>", "<%=intK%>");
<% k++;
} %>
var temp1=document.isc.floor
var camp=document.isc.campus.options.selectedIndex
function redirect1(x){
bb = x
for (m=temp1.options.length-1;m>0;m--)
temp1.options[m]=null
temp1.options[0]=new Option("No Floor", "0")
if (cc!=0 && bb!=0) {
for (i=1;i<=group2[cc-1][bb-1].length;i++){
temp1.options[i]=new Option(group2[cc-1][bb-1][i-1].text,group2[cc-1][bb-1][i-1].value)
temp1.options[0].selected=true
redirect2(0)
var group3=new Array(cNum)
for (i=0; i<cNum; i++) {
group3[i] = new Array()
for (j=0; j<=bNum; j++) {
group3[i][j] = new Array()
for (k=0; k<=fNum; k++) {
group3[i][j][k] = new Array()
<% for (int i=0; i< lm.length; i++) {
for (int j=0; j< lm[i].length; j++) {
for (int k=0; k< lm[i][j].length; k++) {
Iterator locs = lm[i][j][k].keySet().iterator();
int m = 0;
while (locs.hasNext()) {
Integer intM =(Integer) locs.next(); %>
group3[<%=i%>][<%=j%>][<%=k%>][<%=m%>] = new Option("<%=lm[i][j][k].get(intM)%>", "<%=intM%>");
<% m++;
} %>
var temp2=document.isc.location_id
function redirect2(x){
ff = x
for (m=temp2.options.length-1;m>0;m--)
temp2.options[m]=null
temp2.options[0]=new Option("No Room", "0")
if (cc!=0 && bb!=0 && ff!=0) {
for (i=1;i<=group3[cc-1][bb-1][ff-1].length;i++){
temp2.options[i]=new Option(group3[cc-1][bb-1][ff-1][i-1].text,group3[cc-1][bb-1][ff-1][i-1].value)
temp2.options[0].selected=true
</script>
This produces a related select list with 4 related lists by outputting JavaScript to the page being served. It works the same way as the first example that I describe but I don't understand the looping...maybe someone could explain how to go from the single select list to a double and/or triple level drill down?

Similar Messages

  • How to use the Combo Box In MAtrix Colums

    HI Experts,
    Good Mornong.How to use the Combo Box In MAtrix Colums?
    Regards And Thanks,
    M.Thippa Reddy

    hi,
    loading data in to the combobox on form load.but, it should be done when atleast one row is active.
    the values what ever you are inserting in to combo should  be less than or eqhal to 100 or 150.if it exceeds beyond that performance issue arises.it takes more time to load all the data.so, it is better to have 100 or less.
    oMatrix.AddRow()
    RS = Nothing
    RS = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
    RS.DoQuery("select ItemCode,ItemName from oitm")
    oCombo = oMatrix.Columns.Item("ColumnUID").Cells.Item(oMatrix.RowCount).Specific
    For i = 1 To RS.RecordCount
          If RS.EoF = False Then
                oCombo.ValidValues.Add(RS.Fields.Item("ItemCode").Value,RS.Fields.Item("ItemName").Value)
                RS.MoveNext()
          End If
    Next
    the above code is inserting data from database to column combobox.
    you can fill combo directly also as shown below.
    oCombo.ValidValues.Add("x","1")
    oCombo.ValidValues.Add("y","2")
    oCombo.ValidValues.Add("z","3")
    oCombo.ValidValues.Add("","")
    and what ever the values you are filling into combo should be unique.other wise it shows valid value exists.
    regards,
    varma

  • Is there a way to find the temporary table that are created or read during?

    Hi All,
    I'm working on performance optimization where I have to find the temporary tablespaces that are created or read during runtime? Is there any way to find it?
    Can you please also tell me how the temporary tables are created? And after each run time whether the data is getting deleted or the whole table is getting deleted?
    Whether these tables are created only during runtime? What are the naming conventions for all the temporary tables that are created?
    Is the table creation has anything to do with Delta or Full load?
    Regards,
    Kartik

    Stephen Tyler Bloom wrote:
    When they come out with the next garageband, they should add that feature .
    be sure to let Apple know:
    http://www.bulletsandbones.com/GB/GBFAQ.html#sendfeedback
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • How to map the node which i have created dynamically into the view

    Hi All,
    Many thanks to all ur answers in advance.
    I have created a node dynamically.I want to display the fields which i have fetched in that node.
    i dont know how to map the node which i have created dynamically into the layout of the view.
    Other than Using ALV is there any other way to do.
    for example usin table control

    Hi,
    use the reference variable of view to access the corresponding UI element and then use the method of that UI element to do data binding with context node.
    for ex:
    Context node = flights
    element = inputfield, ID = inp_name
    data view type ref to if_wd_view.
    data lr_inp type ref to cl_wd_input_field.
    lr_inp ?= view->get_child_element( ' INP_NAME' ).
    use following methods of input field to define the data binding.
    SET__DDIC_BINDING( )
    BOUND__PROPERTY( ).
    BOUND__PRIMARY_PROPERTY( ). " for input field it is value property.
    Get the reference of view from wddomodifyview method as importing parameter(view). Store this parameter as controller attribute.
    Thanks,
    Rahul

  • How to get the  Checked box which are clicked

    for(int k=0;.....
    jsp code
    <input type=checkbox name=checkbox value='<%=k%>' >
    how to get the particular Checkbox which are checked???

    String[] checkedValues = request.getParameterValues("checkbox");You'll get an array filled with the values only for the checked boxes. In other words, if no boxes are checked, checkedValues will be null or checkedValues.length == 0, not sure, going from memory.
    Hope this helps!
    Patrick

  • How to retreive the value of a text box that is created dynamically

    hi this is ravi kiran,
    i am working on a project which requires creation of as many text boxes as the number records fetched from the database i.e, if the result set contains 3 records three text boxes must be created.
    here is the code for that
    if(rs1.next()) { %>     //rs1 is the result set object
    <tr>
    <td width="130" ><%= rs1.getString(1)%></td>
    <td width="130" ><%=rs1.getString(3) %></td>
    <td width="184" ><%= rs1.getInt(2)%></td>
    <td width="149"><input type=text size="20" ></td>
    </tr>
    %>
    here the problem is the text boxes are getting created but what ever the value that is entered in the created text boxes must be added and must be displayed in another text box.
    i am having no idea how to do this
    can any one help me
    thanx in advance.

    may be this helps u ,
    Create a counter and increment it every time when it comes to rs.next
    Set ids for the text box with the value of the counter.
    eg: textbox1 , textbox2
    the 1 and 2 shld be created by the counte just append the count value to the string and set it as id of the new text box dinamically created.
    then get the ement by id and get its value and do the process.

  • How to find the reports/Txs that are affected by changes made in NA30

    Hi All,
    Does anyone know how to find the reports and transactions that are affected by ISH Billing (Interim Billing /Final billing) in hte Tx NA30. I need to modify the some functiionality of Interim billing at NA30 and still maintain the consitenecy of NA30.
    Many thanks & Regards,
    Vijaya

    No idea about any such report but from SAP help got following list of billing reports. It might be helpful
    RNAABGR0 IS-H: Revenue Accrual
    RNAABRKZ IS-H: Change Billing Indicator of a Case
    RNABD000  IS-H: Patient Billing
    RNABILB0   IS-H: Change Billing Block via Conditions
    RNABILB1   IS-H: Change Billing Block via Conditions (Outpatient Cases)
    RNADIN03   IS-H: Billing Document Mass Print Program
    RNAFSPER  IS-H: Change Billing Block
    RNANFAL0 IS-H: Set Cases Without Billable Services to "Final Billed"
    RNANFAL1 IS-H: Set Outpatient Cases Without Services to "Final Billed"
    RNANFAL2 IS-H: Set Fully Billed Cases to "Final Billed"
    RNASED00 IS-H: Delete Case Selections
    RNASEK00 IS-H: Copy Case Selection
    RNASELM0 IS-H: Billing - Process Messages
    RNASEL00 IS-H: Case Selection
    RNASEL01 IS-H: Case Selection via Outpatient Visits
    RNASTO01 IS-H: Cancel Billing Documents for Case [Live Mode]
    RNASTO02 IS-H: Cancel Billing Documents for Case: Mass Partial Cancellation [Live Mode]
    RNASTO03 IS-H: Cancel Invoice Items per Case (Partial Cancellation) [Live Mode]
    RNASTO04 IS-H: Cancel Provisional Invoice
    RNAPRV04 IS-H: Cost Reimbursement u2013 Direct Patient Billing
    RNAENT00 IS-H: Billing Status of Inpatient Cases
    RNA_CASCADE_BILLING IS-H: Cascade Bill Processing

  • How to Change the PDF's that are generated once the Payment run completes

    Hello All,
    After the Payment run completes, it creates a bank file, and check registry etc.  Our system also creates a PDF which is sent out to the vendors via email.  I need to make some changes to this PDF that is being generated.  Where can I do this?  The pdf sits in the Business Workplace.   Any ideas?
    Thanks,
    Rashad

    It is not possible to change the PDF manually.
    You need to change the form assigned for payment advice in FBZP settings.
    However, these settings are uniform and across all the vendors.
    You cannot put different rules for different vendors.
    Regards,
    Ravi

  • How to Modify the Header/Footer that's created when printing to PDF?

    Hi all,
    How do I modify the header/footer that is added when I use the Adobe PDF printer in another application, like MS Word? Currently it adds the entire path of the file as the header, which is really annoying.
    I'm not talking about the Header/Footer command in Acrobat's "Document" menu. In fact, that command doesn't even recognise the header that's generated by the Adobe PDF printer.
    I'm using Acrobat Pro 8.1.3, btw.
    Thanks :)

    Generally you should set the whole look of the page in your application and then print to the Adobe PDF printer as you have been doing. If you are using a browser, there are header and footer commands for the printer that are typically set by the browser - those can be modified there. The PDF should look just like the preview in the application, that is the point of a PDF.

  • How to get the vendor number that was created using xk01..?

    Suppose i am creating a vendor with all the information by using a bdc program.
    In the same program if i want to go to the XK02 of that particular vendor that was created recently....how it possible..?
    Means how to get that particular vendor number that was created recently...?

    Hi...
    You Can Get the Vendor number after Calling the Transaction 'XK01' as below.
    <b>Declare a table for Collecting messages :</b>
    DATA: T_MSG TYPE TABLE OF BDCMSGCOLL,
              WA_MSG TYPE  BDCMSGCOLL.
    <b>Then Call Transaction Statment:</b>
    CALL TRANSACTION 'XK01'
               USING T_BDCDATA
               MODE 'N'
               MESSAGES INTO t_msg.
    if sy-subrc = 0.
      READ TABLE T_MSG INTO WA_MSG WITH MSGTYP = 'S'.
                                                                    MSGID = 'F2'
                                                                    MSGNR =  '175'.
    <b>Note: Bcoz the XK01 will issue this message</b>
      if sy-subrc = 0.
      write: / WA_MSG-MSGV1.  "This will contrain Vendor Number
    endif.
    endif.
    And you can also Try the Other method i.e. after the Call transaction statement
    <b> GET PARAMETER ID 'LIF' field V_LIFNR.
      WRITE:/ V_LIFNR.</b>
    Reward if Helpful.

  • How to get the text boxes and select lists dynamically?

    Hi,
    I have a requirement such that I need to create the text boxes and select lists depending on the user input at the run time. It means that if the user requires four text boxes/select lists then I need to have 4 such thing. If the user need 6 then I need to have 6.
    The design may be such that initially only one text box/select list will be available when the page launches. Then as ad when the user asks for more those will be available to the user accordingly.
    regards,
    Dipankar.

    You can use Ajax to call textboxes and select list based on what user enters.
    Otherwise make those items conditional and based on what user enters you can display textbox or select list.
    You can call Single Textbox and Select List using Ajax for any number of conditions.
    Regards
    Chandra

  • How to populate second combo box on the basis of first combo

    Hi All,
    Please help me on populating the second combo on the basis of the selected value from first combo.
    The values will come from database.
    I am using struts and jsp in JBOSS
    Regards,
    Dinesh

    Here's a snippet from one of my jsp's:
            TestDel del = new TestDel();
         String groups = del.getTestGroupsAsHTMLSelect(
                          model.getSponsorId(),
                          "groupCode",            //field name
                          null != values ? (String)values.get("groupCode") : "",                      // selected
                          "findTestTypes"); // on change       
           String tests = del.getTestsAsHTMLSelect(
                          null != values ? (String)values.get("groupCode") : "",
                          "test_code",
                          null != values ? (String)values.get("test_code") :"",
                          "findSchoolType");It basically returns a select box with the on change attribute set to do what your other reply was talking about. Using AJAX to retrieve the data and then pop it into the page...
    I did find that that with mozilla there was some refreshing issue so here's some javascript help:
    function findTestTypes(grp){
      var url = "/tests/lookup?cmd=test&gc="+grp.value;
         if (window.XMLHttpRequest) {
                req = new XMLHttpRequest();
            } else if (window.ActiveXObject) {
                req = new ActiveXObject("Microsoft.XMLHTTP");
         req.open("GET", url, true);
         req.onreadystatechange = showTestTypes;
         req.send(null); 
    function showTestTypes(){
         if (req.readyState == 4 && req.status == 200) {
             var html = req.responseText;
             var tt = getItem("tests");
             tt.innerHTML = html;
             fireChangeEvent("test_code");
    // for mozilla
    function fireChangeEvent(fieldName){
             if (window.ActiveXObject) {
                  getItem(fieldName).fireEvent('onchange');
             }else{
                     // target is some DOM node on which you wish to fire an event.
                   var target = getItem(fieldName);
                   var oEvent = document.createEvent( "Events" );
                   oEvent.initEvent(
                     "change",    // the type of mouse event
                     true,       // do you want the event to
                                 // bubble up through the tree?  (sure)
                     true,       // can the default action for this
                                 // event, on this element, be cancelled? (yep)
                     window,     // the 'AbstractView' for this event,
                                 // which I took to mean the thing sourcing
                                 // the mouse input.  Either way, this is
                                 // the only value I passed that would work
                     1,          // details -- for 'click' type events, this
                                 // contains the number of clicks. (single click here)
                     1,          // screenXArg - I just stuck 1 in cos I
                                 // really didn't care
                     1,          // screenYArg - ditto
                     1,          // clientXArg - ditto
                     1,          // clientYArg - ditto
                     false,      // is ctrl key depressed?
                     false,      // is alt key depressed?
                     false,      // is shift key depressed?
                     false,      // is meta key depressed?
                     0,          // which button is involved?
                                 // I believe that 0 = left, 1 = right,
                                 // 2 = middle
                     target           // the originator of the event
                                 // if you wanted to simulate a child
                                 // element firing the event you'd put
                                 // its handle here, and call this method
                                 // on the parent catcher.  In this case,
                                 // they are one and the same.
                   target.dispatchEvent( oEvent );        
    }

  • How to get the PDF documents that are currently opened in Adobe Reader?

    When a PDf file is opened in adobe reader, how can we know the details of the file which is currently opened.
    If I want a copy the PDF document to get saved on desktop automatically without asking to user, How can I do this in c#?
    If there are many PDF files opened, then also, I have to get all the details of PDF documents  which are opened.
    Thank You...

    Reader Forum http://forums.adobe.com/community/adobe_reader_forums

  • How to know the sites list that are browsed during "Private browsing" session?

    It'd be better for me to learn the history of "Private browsing" session.

    No history is stored by Firefox whilst using private browsing.

  • How to get values in the combo box in a XML form?

    Hi All,
        1. I have created a property which has "Default value" as "Clothings" and  "Allowed Values(csv)" as Real Estate - Sales , Clothings etc" by navigating to KM > CM > Global Services > Property Metadata > Properties.
       2. In the XML form builder when I drag this property I get a combo box for this property.
       3. But when I preview this by going to Content Management > Folder > New > FORMS > and select my XML form project I get a preview but it is not showing me the default values in the combo boxes which I created using the property in XML form builder.
    Please Suggest me as to how to get those values (which I mentioned in property) in the combo box ?
    Thanks in Advance,
    Jasmine.

    Hi All,
      I ll make the above Query Simple.
    1.In Xml Form Builder when you drag a property which has some 3-4 assigned values so you are  recomended to use a combo box.
    2.But the problem after using COMBOBOX is I am not getting these values in the preview of the combo box.
    3.Help Required please its urgent.
    Thanks in advance,
    Jasmine.

Maybe you are looking for