Command button not working

Hi,
I have a
<h:panelGrid><td><h:commandButton id="aButton" value="Add" action="#{hubreceivingbean.createRecord}" /></td></h:panelGrid> this is not working, I'm not sure what wrong I'm doing, my code is
============ hubReceiving.jsp=======================
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<tiles:importAttribute scope="request"/>
<f:view>
<f:loadBundle basename="com.fcpa.him.columnheading" var="chdr"/>
<f:loadBundle basename="com.fcpa.him.Messages" var="msg"/>
<div id="location"></div>
<div class="bfrm" style="width: 720px;" >
<div style="height: 600px" class="cv_c">
<h:form id="rcvTxn">
<h:panelGroup>
<h:panelGrid columns="1">
<h:panelGrid>
<h:dataTable >
<h:column>
<f:facet name="header">
<td> <h:outputFormat style="width: 730px;" value="Receiving"/></td>
</f:facet>
</h:column>
</h:dataTable>
</h:panelGrid>
<h:panelGrid columns="3">
<h:panelGrid columns="5" style="width: 560px">
<h:column>
<h:panelGrid><td><h:outputText id="errorMessage" value="#{hubreceivingbean.errorMessage}" style="color: red; font-weight: bold;" /></td></h:panelGrid>
</h:column>
<h:column>
<h:panelGrid>
<h:panelGrid><td><h:outputText id="hRcvDate" value="Receiving Date:" style="width: 90px" /></td></h:panelGrid>
<h:panelGrid><td><h:outputText id="hHubName" value="Receiving At:" style="width: 90px" /></td></h:panelGrid>
<h:panelGrid><td><h:outputText id="hPackageType" value="Package Type:" style="width: 90px" /></td></h:panelGrid>
<h:panelGrid><td><h:outputText id="hPackageValue" value="Scan / Enter:" style="width: 90px" /></td></h:panelGrid>
</h:panelGrid>
</h:column>
<h:column>
<h:panelGrid>
<h:panelGrid><td><h:outputText id="vRcvDate" value="#{hubreceivingbean.date}" style="width: 130px"/></td></h:panelGrid>
<h:panelGrid><td><h:selectOneMenu id="vHubName" value="#{hubreceivingbean.hubName}" style="width: 130px">
<f:selectItems value="#{hubreceivingbean.hubList}"/>
</h:selectOneMenu></td></h:panelGrid>
<h:panelGrid><td><h:selectOneMenu id="vPackageType" value="#{hubreceivingbean.sourceType}" style="width: 130px" onchange="submit()" >
<f:selectItems value="#{hubreceivingbean.sourceTypeList}" />
</h:selectOneMenu></td></h:panelGrid>
<h:panelGrid><td><h:inputText id="vPackageValue" value="#{hubreceivingbean.sourceValue}" style="width: 130px" /></td></h:panelGrid>
</h:panelGrid>
</h:column>
<h:column>
<h:panelGrid>
<h:panelGrid><td><h:outputText style="width: 80px"/></td></h:panelGrid>
<h:panelGrid><td><h:outputText id="hTxnNum" value="Txn ID:" style="width: 80px"/></td></h:panelGrid>
<h:panelGrid><td><h:outputText id="hPartNumber" value="Part Number:" style="width: 80px; #{hubreceivingbean.componetEnableDisableStyle};"/></td></h:panelGrid>
<h:panelGrid><td><h:outputText id="hQty" value="Quantity:" style="width: 80px; #{hubreceivingbean.componetEnableDisableStyle};"/></td></h:panelGrid>
</h:panelGrid>
</h:column>
<h:column>
<h:panelGrid>
<h:panelGrid><td><h:outputText style="width: 130px" /></td></h:panelGrid>
<h:panelGrid><td><h:inputText id="vTxnNum" value="#{hubreceivingbean.rcvTxnHeaderID}" style="width: 130px" /></td></h:panelGrid>
<h:panelGrid><td><h:inputText id="vPartNum" value="#{hubreceivingbean.partNumber}" style="width: 130px; #{hubreceivingbean.componetEnableDisableStyle};" /></td></h:panelGrid>
<h:panelGrid><td><h:inputText id="vQty" value="#{hubreceivingbean.quantity}" style="width: 130px; #{hubreceivingbean.componetEnableDisableStyle};" /></td></h:panelGrid>
</h:panelGrid>
</h:column>
</h:panelGrid>
<h:panelGrid>
<f:subview id="rtMenu">
<tiles:insert definition="mainMenu" flush="false"/>
</f:subview>
</h:panelGrid>
</h:panelGrid>
<h:panelGrid><td><h:commandButton id="aButton" value="Add" action="#{hubreceivingbean.createRecord}" /></td></h:panelGrid>
<h:panelGrid>
<h:dataTable styleClass="standard">
<h:column >
<f:facet name="header">
<td> <h:outputFormat style="width: 70px; " value="#{chdr.rcvRefType}"/></td>
</f:facet>
</h:column>
<h:column>
<f:facet name="header">
<td> <h:outputText style="width: 80px;" value="#{chdr.rcvRefTypeValue}"/> </td>
</f:facet>
</h:column>
<h:column>
<f:facet name="header">
<td> <h:outputText style="width: 80px;" value="#{chdr.palletNumber}"/> </td>
</f:facet>
</h:column>
<h:column>
<f:facet name="header">
<td> <h:outputText style="width: 175px;" value="#{chdr.partNumber}"/></td>
</f:facet>
</h:column>
<h:column>
<f:facet name="header">
<td> <h:outputText style="width: 75px;" value="#{chdr.asnQty}"/> </td>
</f:facet>
</h:column>
<h:column>
<f:facet name="header">
<td> <h:outputText style="width: 75px;" value="#{chdr.rcvQty}"/> </td>
</f:facet>
</h:column>
<h:column>
<f:facet name="header">
<td> <h:outputText style="width: 100px;" value="#{chdr.remarks}"/> </td>
</f:facet>
</h:column>
<h:column>
<f:facet name="header">
<td> <h:outputText style="width: 50px;" value="#{chdr.delete}"/> </td>
</f:facet>
</h:column>
</h:dataTable>
</h:panelGrid>
<h:panelGrid styleClass="scrollPane" columns="1" style="width: 720px;">
<h:panelGroup>
<f:verbatim><DIV STYLE="overflow: auto; height: 170px;" styleClass="standard"></f:verbatim>
<h:dataTable value="#{hubreceivingbean.rcvDataArray}" var="databean" styleClass="standard">
<h:column>
<h:outputText style="width: 70px;" value="#{databean.referenceType}"/>
</h:column>
<h:column>
<h:outputText style="width: 80px;" value="#{databean.referenceValue}"/>
</h:column>
<h:column>
<h:outputText style="width: 80px;" value="#{databean.palletNumber}"/>
</h:column>
<h:column>
<h:outputText style="width: 175px;" value="#{databean.partNumber}"/>
</h:column>
<h:column>
<h:outputText style="width: 75px;" value="#{databean.asnQuantity}" />
</h:column>
<h:column>
<h:inputText id="rcvQty" style="width: 75px;" value="#{databean.rcvQuantity}" required="true"/>
<h:message for="rcvQty" errorClass="errors" />
<f:attribute name="rcvQty" value="Please Enter" />
</h:column>
<h:column>
<h:inputText style="width: 100px;" value="#{databean.rcvComments}" />
</h:column>
</h:dataTable>
<f:verbatim></DIV></f:verbatim>
</h:panelGroup>
</h:panelGrid>
</h:panelGrid>
</h:panelGroup>
</h:form>
</div>
</div>
</f:view>
====================HubReceivingBean.java=================
* HubReceivingBean.java
* Created on February 1, 2006, 6:09 PM
* To change this template, choose Tools | Options and locate the template under
* the Source Creation and Management node. Right-click the template and choose
* Open. You can then make changes to the template in the Source Editor.
package com.fcpa.him;
* @author vburla
import java.sql.*;
import java.util.*;
import java.text.*;
import java.io.*;
import java.util.Date;
import javax.faces.model.SelectItem;
import javax.faces.application.*;
import javax.faces.context.FacesContext;
import java.util.Locale;
import javax.servlet.jsp.jstl.sql.ResultSupport;
import javax.servlet.jsp.jstl.sql.Result;
import javax.faces.component.UIComponent;
import javax.faces.component.UIComponentBase;
import javax.faces.component.UIInput;
import javax.faces.component.UIViewRoot;
import javax.faces.validator.*;
import javax.faces.el.ValueBinding;
import java.io.Serializable;
import javax.swing.JOptionPane;
import java.net.*;
import com.fcpa.reportal.*;
import com.fcpa.eapps.*;
public class HubReceivingBean {
private String sourceType;
private String sourceValue;
private String rcvTxnHeaderID;
private Date date = new Date();
private static ArrayList sourceList;
private static ArrayList hubList;
private SysLogger log;
private JDBCConnPool db;
private String hubName;
private boolean hubNameEditable =true;
private ArrayList rcvDataArray = new ArrayList();
private String componetEnableDisableStyle = "display:none";
private String txnRefEnableDisable = "display:none";
private String partNumber;
private String quantity;
private String useDataSource = "Y";
private String errorMessage;
//private static final String[] SOURCE_TYPE = { "CARTON", "PALLET", "INVOICE","IO"};
//private static final String[] COLUMN_NAMES = {"Ref_Type","Ref_Value","Part_Number","ASN_Qty","RCV_Qty","Notes"};
/**Create connection */
public void setJdbcConnPoolClass(JDBCConnPool j) {
this.db = j;
public JDBCConnPool getJdbcConnPoolClass() {
return this.db;
public void setSysLoggerClass(SysLogger s) {
this.log = s;
public SysLogger getSysLoggerClass() {
return this.log;
/** Creates a new instance of HubReceivingBean */
public HubReceivingBean(){
private void fillRcvDataArray() throws Exception{
if ( (getRcvTxnHeaderID()!="") && (getRcvTxnHeaderID()!=null) ){
String strSQLstr = "SELECT lines.txn_line_id Txn_Line_ID, lines.reference_type Ref_Type,lines.reference_value Ref_Value,"+
" lines.pallet_number Pallet_Number, lines.part_number Part_Number,lines.asn_quantity ASN_Qty,"+
" lines.received_quantity RCV_Qty,lines.comments Notes "+
" FROM hif_rcv_txn_headers headers, hif_rcv_txn_lines lines "+
" WHERE headers.txn_header_id = lines.txn_header_id "+
" AND headers.txn_header_id = "+getRcvTxnHeaderID()+
" AND nvl(headers.txn_complete_flag,'N') = 'N' "+
" ORDER BY lines.txn_line_id desc";
System.out.println("Inside fill data-strSQLstr: "+strSQLstr);
ResultSet rs = db.getResultSet(strSQLstr);
while (rs.next()){
RcvTableDataBean bean = new RcvTableDataBean();
bean.setTxnLineID(rs.getString("Txn_Line_ID"));
bean.setReferenceType(rs.getString("Ref_Type"));
bean.setReferenceValue(rs.getString("Ref_Value"));
bean.setPalletNumber(rs.getString("Pallet_Number"));
bean.setPartNumber(rs.getString("Part_Number"));
bean.setAsnQuantity(rs.getString("ASN_Qty"));
bean.setRcvQuantity(rs.getString("RCV_Qty"));
bean.setRcvComments(rs.getString("Notes"));
rcvDataArray.add(bean);
public ArrayList getRcvDataArray()throws Exception {
rcvDataArray.clear();
fillRcvDataArray();
return rcvDataArray;
// PROPERTY: current date
public void setDate(Date newValue) { date = newValue; }
public String getDate() {
Date now = new Date();
DateFormat df = DateFormat.getDateInstance();
String s = df.format(now);
System.out.println("Today is " + s);
return s;
// PROPERTY: Hub Name
public void setHubName(String newValue) {
// System.out.println("Inside setSourceType");
hubName = newValue; }
public String getHubName() {
//System.out.println("Inside getSourceType");
return hubName; }
// PROPERTY: source type
public void setSourceType(String newValue) {
// System.out.println("Inside setSourceType");
sourceType = newValue; }
public String getSourceType() {
//System.out.println("Inside getSourceType");
return sourceType; }
// PROPERTY: source value
public void setSourceValue(String newValue) {
//System.out.println("Inside setSourceValue");
sourceValue = newValue; }
public String getSourceValue() {
//System.out.println("Inside getSourceValue");
return sourceValue; }
// PROPERTY: source type
public void setRcvTxnHeaderID(String newValue) {
// System.out.println("Inside setSourceType");
rcvTxnHeaderID = newValue; }
public String getRcvTxnHeaderID() {
//System.out.println("Inside getSourceType");
return rcvTxnHeaderID; }
// PROPERTY: Enable Disable
public void setComponetEnableDisableStyle(String newValue) {
// System.out.println("Inside setSourceType");
componetEnableDisableStyle = newValue; }
public String getComponetEnableDisableStyle() {
//System.out.println("Inside getSourceType");
return componetEnableDisableStyle; }
// PROPERTY: Enable Disable Txn Ref
public void setTxnRefEnableDisable(String newValue) {
// System.out.println("Inside setSourceType");
txnRefEnableDisable = newValue; }
public String getTxnRefEnableDisable() {
//System.out.println("Inside getSourceType");
return txnRefEnableDisable; }
// PROPERTY: part Number
public void setPartNumber(String newValue) {
// System.out.println("Inside setSourceType");
partNumber = newValue; }
public String getPartNumber() {
//System.out.println("Inside getSourceType");
return partNumber; }
// PROPERTY: Quantity
public void setQuantity(String newValue) {
// System.out.println("Inside setSourceType");
quantity = newValue; }
public String getQuantity() {
//System.out.println("Inside getSourceType");
return quantity; }
// PROPERTY: UseData Source
public void setUseDataSource(String newValue) {
// System.out.println("Inside setSourceType");
useDataSource = newValue; }
public String getUseDataSource() {
//System.out.println("Inside getSourceType");
return useDataSource; }
// PROPERTY: Error Message
public void setErrorMessage(String newValue) {
// System.out.println("Inside setSourceType");
errorMessage = newValue; }
public String getErrorMessage() {
//System.out.println("Inside getSourceType");
return errorMessage; }
// PROPERTY: User ID
public String getUserID() {
// System.out.println("Inside setSourceType");
return("1048"); }
// PROPERTY: Hub Name Editable
public boolean isHubNameEditable() {
return hubNameEditable; }
public void setHubNameEditable(boolean newValue) {
hubNameEditable = newValue; }
//PROPERTY: Hub List
public Collection getHubList() throws Exception {
log.general("Inside getSourceTypeList");
String strSQLstr = " SELECT hub_name hubName "+
" FROM eaf_hub_master "+
" WHERE nvl(enabled_flag,'N') = 'Y' "+
" AND nvl(end_date_active,sysdate+1) > sysdate";
ResultSet sl = db.getResultSet(strSQLstr);
hubList = new ArrayList();
int hubCt = 0;
while (sl.next()){
hubCt = hubCt + 1;
hubList.add(new SelectItem(sl.getString("hubName")));
//System.out.println("hubCt: "+hubCt);
if (hubCt > 1) {
setHubNameEditable(true);
// System.out.println("Setting setHubNameEditable as true");
} else{
setHubNameEditable(false);
// System.out.println("Setting setHubNameEditable as false");
setHubName("One Hub");
return(hubList);
//PROPERTY: source List
public Collection getSourceTypeList() throws Exception {
System.out.println("Inside getSourceType:"+getSourceType());
String sourceType = getSourceType();
System.out.println("sourceType:"+sourceType);
if (sourceType != null){
if (sourceType.equals("OTHERS")){
System.out.println("Inside getSourceType for OTHERS");
setComponetEnableDisableStyle("");
setUseDataSource("N");
}else {
System.out.println("Inside getSourceType for not OTHERS");
setComponetEnableDisableStyle("display:none");
setUseDataSource("Y");
}else{
System.out.println("Source Type is null");
setComponetEnableDisableStyle("display:none");
setUseDataSource("Y");
setErrorMessage(null);
log.general("Inside getSourceTypeList");
String strSQLstr =" SELECT lookup_code sourceType "+
" FROM hif_lookup_values "+
" WHERE lookup_type = 'RCV_SOURCE_TYPE' "+
" AND nvl(enabled_flag,'N') = 'Y' "+
" AND nvl(end_date_active,sysdate+1) > sysdate ";
ResultSet sl = db.getResultSet(strSQLstr);
sourceList = new ArrayList();
while (sl.next()){
sourceList.add(new SelectItem(sl.getString("sourceType")));
return(sourceList);
//PROPERTY: validate and insert data
public void createRecord() throws Exception{
updateTxn();
System.out.println("Inside createRecord");
System.out.println("getSourceValue()"+getSourceValue());
if ( !(getSourceValue()!="")){
System.out.println("getSourceValue()"+getSourceValue());
//JOptionPane.showMessageDialog(JOptionPane.getRootFrame(), "Please Scan / Enter value for "+getSourceType());
} else if ((getUseDataSource()=="N") &&
(!(getPartNumber()!="")||!(getQuantity()!=""))) {
System.out.println( "Please Enter Part Number and Quantity");
//JOptionPane.showMessageDialog(JOptionPane.getRootFrame(), "Please Enter Part Number and Quantity" );
else{
Connection con = db.getConnection();
try{
try{
System.out.println("SourceValue: "+sourceValue);
System.out.println("Hub Name"+getHubName());
String insertQuery = "begin "+
" hif_rcv_pkg.create_record(?,?,?,?,?,?,?,?,?,?,?);"+
"end; ";
CallableStatement cs = con.prepareCall(insertQuery);
cs.registerOutParameter(1,Types.VARCHAR);
cs.registerOutParameter(2,Types.VARCHAR);
cs.registerOutParameter(3,Types.VARCHAR);
cs.setString(3,getRcvTxnHeaderID());
cs.setString(4,getIP());
cs.setString(5,getUserID());
cs.setString(6,getHubName());
cs.setString(7,getSourceType());
cs.setString(8, getSourceValue());
cs.setString(9,getUseDataSource());
cs.setString(10,getPartNumber());
cs.setString(11,getQuantity());
cs.execute();
con.commit();
String txnHeaderID = cs.getString(3);
String errorCode = cs.getString(1);
String errorMessage = cs.getString(2);
if (errorMessage != null) {
setErrorMessage(errorMessage);
} else{
if (txnHeaderID != null ){
setRcvTxnHeaderID(txnHeaderID);
txnRefEnableDisable= " ";
setComponetEnableDisableStyle("display:none");
setUseDataSource("Y");
setSourceValue(null);
setPartNumber(null);
setQuantity(null);
}catch (Exception e) {
System.out.println("Error "+ e);
} finally {
con.close();
public void updateRcvQty() throws Exception{
System.out.println("Inside updateRcvQty");
//System.out.println("RcvRecord: "+rcvRecord.toString());
updateTxn();
Connection con = db.getConnection();
try{
try{
System.out.println("SourceValue: "+sourceValue);
System.out.println("getRcvTxnHeaderID: "+getRcvTxnHeaderID());
System.out.println("");
String insertQuery = "begin "+
" hif_rcv_pkg.update_rcv_qty (?,?,?,?,?,?,?);"+
"end; ";
CallableStatement cs = con.prepareCall(insertQuery);
cs.registerOutParameter(1,Types.VARCHAR);
cs.registerOutParameter(2,Types.VARCHAR);
cs.setString(3,getRcvTxnHeaderID());
cs.setString(4,getIP());
cs.setString(5,getUserID());
cs.setString(6,getSourceType());
cs.setString(7,getSourceValue());
cs.executeUpdate();
con.commit();
//setSourceValue(null);
}catch (Exception e) {
System.out.println("Error "+ e);
} finally {
con.close();
public void deleteRecord() throws Exception{
updateTxn();
System.out.println("Inside deleteRecord");
//System.out.println("RcvRecord: "+rcvRecord.toString());
Connection con = db.getConnection();
try{
try{
System.out.println("SourceValue: "+sourceValue);
System.out.println("");
String insertQuery = "begin "+
" hif_rcv_pkg.delete_record (?,?,?,?,?,?,?);"+
"end; ";
CallableStatement cs = con.prepareCall(insertQuery);
cs.registerOutParameter(1,Types.VARCHAR);
cs.registerOutParameter(2,Types.VARCHAR);
cs.setString(3,getRcvTxnHeaderID());
cs.setString(4,getIP());
cs.setString(5,getUserID());
cs.setString(6,getSourceType());
cs.setString(7, getSourceValue());
cs.executeUpdate();
con.commit();
setSourceValue(null);
}catch (Exception e) {
System.out.println("Error "+ e);
} finally {
con.close();
public void updateTxn()throws Exception{
System.out.println("Inside updateTxn");
int len = rcvDataArray.size();
Connection con = db.getConnection();
try{
for (int i = 0; i < len; i++) {
RcvTableDataBean bean = (RcvTableDataBean)rcvDataArray.get(i);
try{
System.out.println("Updateing Reference Value: "+ bean.getReferenceValue());
System.out.println("Updateing Comment Value: "+ bean.getRcvComments());
System.out.println("Updateing Receiving Qty: "+ bean.getRcvQuantity());
System.out.println("Updateing Receiving Qty: "+ bean.getRcvQuantity());
String updateQuery = "begin "+
" hif_rcv_pkg.update_txn(?,?,?,?,?,?,?,?,?);"+
"end; ";
CallableStatement cs = con.prepareCall(updateQuery);
cs.registerOutParameter(1,Types.VARCHAR);
cs.registerOutParameter(2,Types.VARCHAR);
cs.setString(3,getIP());
cs.setString(4,getUserID());
cs.setString(5,getRcvTxnHeaderID());
cs.setString(6,bean.getTxnLineID());
cs.setString(7,bean.getReferenceValue());
cs.setString(8,bean.getRcvQuantity());
cs.setString(9,bean.getRcvComments());
cs.execute();
con.commit();
}catch (Exception e) {
System.out.println("Error "+ e

1) Please use code tags in the future. Lengthy, unformatted code isn't likely to read be most people here who are trying to help you for free.
2) Next time, please use a short, compilable example that demonstrates your problem. Again, that is a lot of code to expect a volunteer to debug.
3) This does not appear to be a Swing question. Perhaps you should have posted this in one of the web-based forums.
Good luck.

Similar Messages

  • Host command is not working on linux

    Hi
    I m using linux for application server n windows for client. I need to create folder from client machine by cliking a button of forms10g runtime.HOST command is not working which was working fine in windows.
    Any help is appriciateable.
    kazi mokarem

    Hi
    I had the same issue on linux a few weeks back. What tuned out was, when you install the Oracle app svr it does not include the system paths by default.
    The path where mkdir is located may not be visible to the app.
    Try to hardcode the path for mkdir as /bin/mkdir .... and seee if that works.
    If the above statement works then add that path in the paths variable in default.env file located in $ORACLE_HOME/forms/server directory
    HTH
    Arvind

  • 6120 classic:My voice commands do not work

    Please help.
    Don’t know if I'm just being stupid or there is something not right with my 6120c.
    My voice commands do not work.
    If I press the button for a voice command, it says that there are no voice tags saved.
    If I go into the voice command application (Which should create the voice tags on opening), I cant playback the voice tags, its give a 'voice system error' error message.
    Is there something that is not set up properly? In the voice command settings, the synthesizer is 'on'?
    Also, I don’t have voice tags on my contacts??
    I read somewhere that this is a firmware problem and the phone should be taken back to nokia. Is this the case?
    Somebody please help.

    I formated my nokia n6120 using the code *#7370#. It deletes !everything! (settings, aplications...), but I have no voice sytem error now.

  • Cancel and Exit button not working

    Dear Experts,
    <u>Cancel and Exit button not working</u>
    I am calling a screen from inside a report program
    using SET SCREEN 9000.
    2 of the date fields(start date end date)
    on this screen are Mandatory.
    I am not able to Come out of this screen 9000 using
    CANCEL or EXIT button
    without giving a date entry in both of
    Mandatory fields (start date end date).
    Can someone help me with a solution?
    Appreciate your valuable help;
    Points assured
    Thanks,
    Aby Jacob

    Hi..
    To avoid this problem you have to use AT EXIT-COMMAND Module.
    1. In the GUI Status for both EXIT and CANCEL buttons assign the Function type E (Exit Command)
    2. In the PAI of the Screen Call this module.
       MODULE EXIT_SCREEN AT EXIT COMMAND.
    3. Now check the OK_CODE or Sy-ucomm in this module to Leave the Screen
       MODULE EXIT_SCREEN  INPUT.
           CASE OK_CODE.
          WHEN 'EXIT' .
                LEAVE TO SCREEN 0.
          WHEN 'CANCEL'.
          ENDCASE.
       ENDMODULE.
    This will surely work.
    <b>reward if Helpful.</b>

  • Home button not work repetitly

    my new ipad and iphone 4s home button sometimes get stucked(the command does obey),but i have just 1 month i have bought them.On my ipad once all the apps where not opening and i had to restore the ipad from the beggining.Is this something normal or should i do something?

    Try:
    http://snapguide.com/guides/calibrate-your-home-button/?utm_expid=69945963-15
    fix for Home button
    iPhone Home Button Not Working or Unresponsive? Try This Fix
    - If you have iOS 5 and later you can turn on Assistive Touch it add the Home and other buttons to the iPods screen. Settings>General>Accessibility>Assistive Touch
    - If not under warranty Apple will exchange your iPod for a refurbished one for:
    Apple - Support - iPod - Repair pricing
    You can do it an an Apple store by:
    Apple Retail Store - Genius Bar
    or sent it in to Apple. See:
    Apple - Support - iPod - Service FAQ
    - There are third-party places like the following that will repair the Home button. Google for more.
      iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

  • Logitech mouse buttons not working in photoshop cc 2014

    logitech mouse buttons not working in photoshop cc 2014 winds 8.1. Is this a common problem?
    I have updated the latest drivers and have a few buttons programmed with keyboard shortcuts that used to work in previous versions of Photoshop but don't work now.
    Scrolling with mouse in bridge stopped working in cc butI see it is now working.
    any ideas?

    Many Photoshop extensions are not compatible with Photoshop CC 2014 for Adobe removed support for Flash Panels in CC 2014. Many extensions panels are flash based.  Check with the developer to see if their blendmein extension works with CC 2014.
    Adobe does not maintain Photoshop so it backward compatible with prior versions of Photoshop.  This brakes things like action scripts plugins extensions etc. Keep old version of Photoshop installed....

  • IPhone 4 middle button not working

    Having problems with the iPhone 4 middle button not working anyone else with the same problem ?
    Thanks

    i have the same problem. since you're software is already iOS 5.1 go to settings>general> accessibility>the settings after triple click home, i forgot what is it called but that would help.

  • Iphone 4 Home button not working after upgrade to OS 4.3.5

    Iphone 4 Home button not working after upgrade to OS 4.3.5.Please help!!!!!!!!

    It seems that settings of mail accounts have something to do with it. I've delete my gmail account and am now using Microsoft Exchange. It seems better, yet not perfect. The issue is definitely due to OS 4.3.1
    Apple answer is - no answer. It is a shame that the quality of their products, in terms of design and concept, is not match by a care for customers. It is not normal that I, as a customer, have to spend hours reading Apple Discussions forum to try to understand what the problem is. A little more respect for a customer that spend big $$$ buying their products wouldn't hurt.

  • Iphone 4: Home Button Not Working. The home button only works when it is connected to iTunes, once i disconnet it does not work, i have tried a restore to factory settings but it still is not working. Any suggestions?

    iphone 4: Home Button Not Working. The home button only works when it is connected to iTunes, once i disconnet it does not work, i have tried a restore to factory settings but it still is not working. Any suggestions?

    Apple, as I said, does not repair your iPhone. All hardware service issues are handled by replacing the unit. So they can't handle the home-button issue without also addressing the issue of the cracked screen, for which they'll almost certainly charge you. But you can make an appointment at an Apple Store or call Apple tech support and plead your case.
    Regards.

  • Iphone 4 home button not working, called never fixed, then cracked screen before bringing it back again, will they blame the cracked screen if i bring it back?

    I bought an iPhone 4 less than a year ago, then one day the home button randomly stopped working, I bought the warranty so I decided to call in and see what was wrong with it. The girl said that restoring the phone would correct the problem which it did. But it is only a temporary fix, it happens more often now. So I was meaning to call in soon, but the other day my phone fell out of my pocket IN CASE from a foot height and cracked the screen. I nearly threw up. All the years I have had a phone I have never cracked or broken one, strongest screen my ***. Anyway, if I contact them again now will they fix the home button problem? or will they say that the cracked screen is obviously the cause of the home button not working? which it is not!! I don't care about the screen being cracked its not on the actual screen just on the side so its irrelevant to me. Plus I heard it is outrageosly pricey to replace.

    Apple, as I said, does not repair your iPhone. All hardware service issues are handled by replacing the unit. So they can't handle the home-button issue without also addressing the issue of the cracked screen, for which they'll almost certainly charge you. But you can make an appointment at an Apple Store or call Apple tech support and plead your case.
    Regards.

  • Iphone 4 Home button not working after upgrade to OS 4.3.1

    I've just upgrade my iphone 4 to OS 4.3.1 and I'm having issues with home button not working. Need to hit it several times before I can close an app or wake the iphone. Any one having this issue?

    It seems that settings of mail accounts have something to do with it. I've delete my gmail account and am now using Microsoft Exchange. It seems better, yet not perfect. The issue is definitely due to OS 4.3.1
    Apple answer is - no answer. It is a shame that the quality of their products, in terms of design and concept, is not match by a care for customers. It is not normal that I, as a customer, have to spend hours reading Apple Discussions forum to try to understand what the problem is. A little more respect for a customer that spend big $$$ buying their products wouldn't hurt.

  • Iphone 4 volume buttons not working

    iphone 4 volume and mute buttons not working, checked all settings they are all fine and when headphones in it works??? When I take out headphones the volum buttons do not work, when phone rings or text receives only vibrates???? HELP!!!!

    This could be due to some debris or dirt inside the  headphones jack that makes the iPhone think that the headphones are connected even when they are not.
    Try to see if you can clean the jack being very careful, with canned air as sold in electronics store.  Some people have been successful by introducing and withdrawing the headphones jack several times in a row to displace whatever is in there if it is lodged in.
    Avoid introducing anything else like a pointed object.  You could damage the jack.
    If all of this does not work, I would try first resetting the phone by holding the home button and the power button together for about 15 seconds or until the whilte apple appears, then waiting until the phone resets.  If the problem continues after this, take it to an Apple Store to see what they believe should be done.

  • Button not working in browser

    I am coding a video player in Netbeans 6.8. just find two problems:
    1. the browser button not working in browser when I run the project from Netbeans under "run in browser" mode. however under "standard execution" mode, everything is fine.
    2. can not run the jar file in the project's dist directory directly. in other word, I can not run the jar file outside of Netbeans.
    I appreciate any help. thanks.
    Main.fx:
    package gui;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.paint.Color.*;
    * @author Jethro
    var face=Face{};
    function run(){
        Stage{
            title: "player"
            resizable:false
            scene: Scene{
                width:800
                height:600
                fill:DARKBLUE
                content: [face]
    }Face.fx:
    package gui;
    import javafx.scene.CustomNode;
    import javafx.scene.Group;
    import javafx.scene.Node;
    import javafx.scene.control.Button;
    import javafx.scene.layout.VBox;
    import javafx.scene.media.Media;
    import javafx.scene.media.MediaPlayer;
    import javafx.scene.media.MediaError;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.media.MediaView;
    import javafx.scene.control.ProgressBar;
    * @author Jethro
    public class Face extends CustomNode {
        public var lbf=LBF{};
        public var enable=true;
        public var mark="play";
        public var sourceOfMedia:String;
        public def player=MediaPlayer {
            repeatCount:MediaPlayer.REPEAT_FOREVER
            onError:function(e:MediaError){
                var er=e.message;
         media : bind Media {
              source: sourceOfMedia
        public def view=MediaView {
                mediaPlayer:bind player
                preserveRatio: true                    
        public def bar=ProgressBar {
                height:10
                width:bind scene.width
                progress: bind
                    if(player.media !=null){
                        player.currentTime.toMillis()
                            /player.media.duration.toMillis();
                    }else{
                        0.0
        public var play=Button {      
            onMousePressed:function(e:MouseEvent){
                if(enable and player.media != null){
                            mark="pause"; println("playing...");                       
                            sourceOfMedia=lbf.uri;
                            player.play();
                            enable=false;
                }else{
                    mark="play";
                    player.pause();println("paused...");
                    enable=true;
         text: bind mark       
        public override function create(): Node {
            return Group {
                content: [
                    VBox{
                        content: [
                            lbf,
                            bar,
                            play,
                            view,
    }LBF.fx:
    package gui;
    import javafx.scene.CustomNode;
    import javafx.scene.Group;
    import javafx.scene.control.TextBox;
    import javafx.scene.layout.HBox;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Rectangle;
    import javafx.scene.text.Font;
    import javafx.scene.text.Text;
    import javafx.scene.Node;
    import javafx.geometry.HPos;
    import javafx.geometry.VPos;
    import javafx.scene.control.Button;
    import javax.swing.JFileChooser;
    * @author Jethro
    public class LBF extends CustomNode{
        public var uri:String;
        public var whereis=Text {
            fill:Color.BLUE
         font : Font {
              size: 20
         x: 10, y: 30
         content: "location: "
        public var location=TextBox{
            text:"the song's location"
            columns:40
            selectOnFocus:true
        public var browser=Button {
         text: "Browser"
         action: function() {
                    var jfc=new JFileChooser();               
              jfc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
                    var val = jfc.showOpenDialog(null);
                    if(val == JFileChooser.APPROVE_OPTION) {                   
                        location.text = jfc.getSelectedFile().getAbsolutePath();
                        uri=jfc.getSelectedFile().toURI().toString();
                        println(location.text);
        public var face=Group {
         content: [
              Rectangle {
                        x: 0, y: 0
                        width: 800, height: 50
                        fill: Color.SILVER
                     HBox{
                         width:800
                         height:50
                         hpos:HPos.CENTER
                         vpos:VPos.CENTER
                         spacing:5
                         content: [whereis,location,browser]
        public override function create():Node{
            return face;
    }

    thanks for your reply but I need more specific operation.
    maybe I am not very clear about the problem one. I mean when I run the code in standard mode, if I click the browse button, a window will pop out and I can choose a video file from my local harddisk. but if I run it in "web start execution" mode and "run in browser" mode. the browse button make no response when I click it.
    Edited by: Phoenix2006 on Feb 8, 2010 2:35 PM
    Edited by: Phoenix2006 on Feb 8, 2010 2:37 PM
    Edited by: Phoenix2006 on Feb 8, 2010 2:42 PM

  • Ipod 4th gen volume buttons not working. Volume bar not showing in music or video apps, not a speaker problem as this works fine when testing built in alarm tones???

    Ipod 4th gen volume buttons not working. Volume bar not showing in music or video apps, not a speaker problem as this works fine when testing built in alarm tones???

    Have you tried the standard fixes:
    - Reset:
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - Restore the iPod from backup via iTunes
    - Restore the iPod to factory defaults/new iPod.
    If still problem you likely have a hardware problem and an appointment at the Genus Bar of an Apple store is in order.

  • IPod touch 5th gen. Home button stuck and power button not working! Please help!

    I have an iPod 5th Generation and the home button is jammed down! It felt sticky earlier but now it's stuck down. I used it when the home button wasn't working and had to use my notifications to change from app to app (as I didn't know about assistive touch). I turned it off, but now the power button is no longer responsive! The button isn't stuck, but it doesn't work anymore. It was working fine before, but now it won't respond. Please help!

    Try:
    http://snapguide.com/guides/calibrate-your-home-button/?utm_expid=69945963-15
    fix for Home button
    iPhone Home Button Not Working or Unresponsive? Try This Fix
    - If you have iOS 5 and later you can turn on Assistive Touch it add the Home and other buttons to the iPods screen. Settings>General>Accessibility>Assistive Touch
    - If not under warranty Apple will exchange your iPod for a refurbished one for:
    Apple - Support - iPod - Repair pricing
    You can do it an an Apple store by:
    Apple Retail Store - Genius Bar
    or sent it in to Apple. See:
    Apple - Support - iPod - Service FAQ
    - There are third-party places like the following that will repair the Home button. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

Maybe you are looking for

  • GL account missing

    hi, when i am saving mine sales order i am receiving a incompletion log as GL account missing can i know which gl is missing and why we need a gl account when we save sales order Regards Vini

  • Using a control in a web service

    Hi, I've got a problem where I using a WebServiceControl in a web service is giving me errors when I build. The error is: Error with publish task 'WebServicesProjectBuildTask'. Web services in payment have errors Web services with errors cannot be co

  • HT1212 how do i take my ipod of disabled?

    how do i take my ipod of disabled?

  • Helppppp pleas

    My laptop ideapad lenovo u450p shutdown after windows rady. One time after 5 minutes .and outher time after 1 houser .

  • When replying to a message in iMail, the message isn't being marked as "replied"

    I am running OS X Lion 10.7.4 on a new MacBook Pro (mid 2012). I am noticing that when I reply to a message in iMail, often times the message is not marked as being replied to. This stays true if I forward the message also. Any thoughts? Mike