Calculator 's functions. Difficult. need some help.

I did do for my own calculator,but i got problem with animation and sound for the calculator. Like :
Pressing a wrong combination of keys may generate a warning sound. Moreover an animated icon
should be used to indicate when:
+ the calculator is idle and free to be used
+ the calculator is busy ( being used )
This is my own program, anybody can show me how to add the warning sound and animation icon according above requirement ???? Or any online tutorial about this one. This program is working on the right way, but i don't know how to add some more feature like animation icon, and warning sound.Pleaseeeeeeeeeeeee help me, it is urgent.
import java.awt.event.*;
import java.awt.*;
public class Calculator extends Frame implements ActionListener
TextField name;
Label aHeader;
Button b[];
String expression;
// Calculator Constructor
// This operator constructor ( as with all constructors ) is executed when the new object
// is created. In this case we create all the buttons ( and the panels that contain them )
// then reset the calculator
public Calculator()
super("DUY 'S CALCULATOR");     
setLayout(new BorderLayout());     
Panel p1 = new Panel();
p1.setBackground(new Color(18,70,1));
p1.setLayout(new FlowLayout());
aHeader = new Label("DUY'S CALCULATOR");
aHeader.setFont(new Font("Times New Roman",Font.BOLD,24));
aHeader.setForeground(new Color(255,0,0));
p1.add(aHeader);
// Question: what does 'North' mean here ?
// The applet places a GridLayout on the 'North' side
add("North",p1);
Panel p2 = new Panel();
p2.setBackground(new Color(27,183,100));
p2.setLayout(new GridLayout(0,1));
// When you create p2 GridLayout you specify 'new GridLayout(0,1) 'which means create a new GridLayout with 1 column .( no row)
name = new TextField(20); // Var for Text field max of 20 characters
p2.add(name);
add("Center",p2);
Panel p3 = new Panel();
p3.setLayout(new GridLayout(0,6));
// When you create p3 GridLayout you specify 'new GridLayout(0,1) 'which means create a new GridLayout with 6 columns .( no row)
b = new Button[25];
b[0] = new Button("MC");     // Create Button MC
b[0].addActionListener(this);
b[1] = new Button("7");     // Create Button Seven
b[1].addActionListener(this);
b[2] = new Button("8");     // Create Button Eight
b[2].addActionListener(this);
b[3] = new Button("9");     // Create Button Nine
b[3].addActionListener(this);
b[4] = new Button("/");     // Create Button Div
b[4].addActionListener(this);
b[5] = new Button("sqrt");     // Create Button SQRT
b[5].addActionListener(this);
b[6] = new Button("CE");     // Create Button CE
b[6].addActionListener(this);
b[7] = new Button("4");     // Create Button Four
b[7].addActionListener(this);
b[8] = new Button("5");     // Create Button Five     
b[8].addActionListener(this);
b[9] = new Button("6");     // Create Button Six
b[9].addActionListener(this);
b[10] = new Button("*");     // Create Button Multi
b[10].addActionListener(this);
b[11] = new Button("%");     // Create Button Percent
b[11].addActionListener(this);
b[12] = new Button("MS");     // Create Button MS
b[12].addActionListener(this);
b[13] = new Button("1");     // Create Button One
b[13].addActionListener(this);
b[14] = new Button("2");     // Create Button Two
b[14].addActionListener(this);
b[15] = new Button("3");     // Create Button Three
b[15].addActionListener(this);
b[16] = new Button("-");     // Create Button Minus
b[16].addActionListener(this);
b[17] = new Button("1/x");     // Create Button Calculates the multiplicative inverse
b[17].addActionListener(this);
b[18] = new Button("M+");     // Create Button M+
b[18].addActionListener(this);
b[19] = new Button("0");     // Create Button Zero     
b[19].addActionListener(this);
b[20] = new Button("+/-");     // Create Button +/-
b[20].addActionListener(this);
b[21] = new Button(".");     // Create Button point
b[21].addActionListener(this);
b[22] = new Button("+");     // Create Button Plus
b[22].addActionListener(this);
b[23] = new Button("=");     // Create Button Equal     
b[23].addActionListener(this);
b[24] =new Button("exit");     // Create Button Exit
b[24].addActionListener(this);
// clearAll sets the attributes of the Calculator object to initial values ( this is
// the operation that is called when the user click on the "CE" button.
for(int i=0;i<=24;i++)
{      p3.add(b[i]);
add("South",p3);
// Question : what does 'South' mean here ? The applet places a GridLayout on the
// 'South' side
super.addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e)
{System.exit(0);}});
// Window Closing
// This operation is called in response to a window closing event. It should simply
// exit the program
setLocation(200,100);
pack();
setVisible(true);
// End of constructor
//* actionPerformed:: This operation is call whenever the user click a button .All
// this operation does is pass on the text on the button to ' evt '
public void actionPerformed(ActionEvent evt)
String command = evt.getActionCommand();
StringBuffer tmp, first, second;
int value, size, k;
char ch, op = ' ';
first = new StringBuffer();
second = new StringBuffer();
//* processButton:This operation takes action according to the user's input. It is called
// from two other operation :actionPerformed ( when user click a button ) andkeypressed
// ( when user press a key on the keyboard ). This operation examines the text on the button
// by ( the parameter 'command') and calls the appropriate operation to process it
if ("CE".equals(command))
name.setText("");
else if("7".equals(command))
expression = name.getText();
name.setText(expression+"7");
else if ("8".equals(command))
expression = name.getText();
name.setText(expression+"8");
else if ("9".equals(command))
expression = name.getText();
name.setText(expression+"9");
else if("4".equals(command))
expression = name.getText();
name.setText(expression+"4");
else if("5".equals(command))
expression = name.getText();
name.setText(expression+"5");
else if("6".equals(command))
expression = name.getText();
name.setText(expression+"6");
else if("1".equals(command))
expression = name.getText();
name.setText(expression+"1");
else if("2".equals(command))
expression = name.getText();
name.setText(expression+"2");
else if("3".equals(command))
expression = name.getText();
name.setText(expression+"3");
else if("0".equals(command))
expression = name.getText();
name.setText(expression+"0");
else if("+".equals(command))
expression = name.getText();
name.setText(expression+"+");
else if("-".equals(command))
expression = name.getText();
name.setText(expression+"-");
else if("*".equals(command))
expression = name.getText();
name.setText(expression+"*");
else if("/".equals(command))
expression = name.getText();
name.setText(expression+"/");
//processEquals : Deal with the user clicking the '=' button. This operation finishes
// the most recent calculator
else if("=".equals(command))
expression = name.getText();
size = expression.length();
tmp = new StringBuffer( expression );
for(int i = 0;i<size;i++)
ch = tmp.charAt(i);
if(ch != '+' && ch != '*' && ch != '-' && ch != '/')
first . insert(i, ch);
else
op = ch;
k = 0;
for(int j = i+1; j< size ; j++)
ch = tmp.charAt(j);
second.insert(k,ch);
k++;
break;
switch(op)
//* processLastOperator : Carries out the arithmetic operation specified by the last
// operator, the last number and the number in the display.If the operator causes an
// error condition ( ex : the user tries to devide something by zero), this operation an
// exception     
// Question : if the user click on the button '2' , '+', '3' what values will found ?
case '+' : value = Integer.parseInt(new String(first)) +
Integer.parseInt(new String(second));
name.setText(new Integer(value).toString());
break;      // plus button
case '-' : value = Integer.parseInt(new String(first)) -
Integer.parseInt(new String(second));
name.setText(new Integer(value).toString());
break;
case '*' : value = Integer.parseInt(new String(first)) *
Integer.parseInt(new String(second));
name.setText(new Integer(value).toString());
break;
case '/' : value = Integer.parseInt(new String(first)) /
Integer.parseInt(new String(second));
name.setText(new Integer(value).toString());
break;
} //end of actionPerformed
/**main method to invoke from JVM.*/
public static void main(String args[])
new Calculator(); // Create a new instance of the Calculator object

Here's your code fixed up the enw way. It works the same, except it is half the size
package jExplorer;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
public class Calculator extends Frame implements ActionListener
  final static String[] bNames = {"7", "8", "9", "/", "sqrt", "CE", "4", "5", "6", "*", "%", "MS", "1", "2", "3", "-", "1/x", "M+", "0", "+/-", ".", "+", "=", "exit"};
  final static int NUM_BUTTONS = bNames.length;
  private TextField name;
* Calculator Constructor
* This operator constructor ( as with all constructors ) is executed when the new object
* is created. In this case we create all the buttons ( and the panels that contain them )
* then reset the calculator
  public Calculator()
    super( "DUSTPANTS CALCULATOR" );
    setLayout( new BorderLayout() );
    Panel p1 = new Panel();
    p1.setBackground( new Color( 18, 70, 1 ) );
    p1.setLayout( new FlowLayout() );
    Label aHeader;
    aHeader = new Label( "DUSTPANTS CALCULATOR" );
    aHeader.setFont( new Font( "Times New Roman", Font.BOLD, 24 ) );
    aHeader.setForeground( new Color( 255, 0, 0 ) );
    p1.add( aHeader );
// Question: what does 'North' mean here ?
// The applet places a GridLayout on the 'North' side
    add( "North", p1 );
    Panel p2 = new Panel();
    p2.setBackground( new Color( 27, 183, 100 ) );
    p2.setLayout( new GridLayout( 0, 1 ) );
    name = new TextField( 20 ); // Var for Text field max of 20 characters
    p2.add( name );
    add( "Center", p2 );
    Panel p3 = new Panel();
    p3.setLayout( new GridLayout( 0, 6 ) );
// Create buttons & their ActionListeners, and add them to the panel
    Button b[];
    b = new Button[NUM_BUTTONS];
    for( int x = 0; x < NUM_BUTTONS; x++ )
      b[x] = new Button( bNames[x] );
      b[x].addActionListener( this );
      p3.add( b[x] );
    add( "South", p3 );
    super.addWindowListener( new WindowAdapter()
      public void windowClosing( WindowEvent e )
        System.exit( 0 );
    setLocation( 200, 100 );
    pack();
    setVisible( true );
* actionPerformed:: This operation is call whenever the user click a button .All
* this operation does is pass on the text on the button to ' evt '
  public void actionPerformed( ActionEvent evt )
    String command = evt.getActionCommand();
    String expression;
    int value, size, k;
    char ch, op = ' ';
    StringBuffer tmp;
    StringBuffer first = new StringBuffer();
    StringBuffer second = new StringBuffer();
    if( "CE".equals( command ) )
      name.setText( "" );
    else if( "=".equals( command ) )
      expression = name.getText();
      tmp = new StringBuffer( expression );
      size = tmp.length();
      for( int i = 0; i < size; i++ )
        ch = tmp.charAt( i );
        if( ch != '+' && ch != '*' && ch != '-' && ch != '/' )
        { first.insert( i, ch ); }
        else
          op = ch;
          k = 0;
          for( int j = i + 1; j < size; j++ )
            ch = tmp.charAt( j );
            second.insert( k, ch );
            k++;
          break;
    else if( validButton( command ) )
      expression = name.getText();
      name.setText( expression + command );
    else
      Toolkit.getDefaultToolkit().beep();
   * processLastOperator : Carries out the arithmetic operation specified by the last
   * operator, the last number and the number in the display.If the operator causes an
   * error condition ( ex : the user tries to devide something by zero), this operation an
   * exception
   * Question : if the user click on the button '2' , '+', '3' what values will found ?
    switch( op )
      case '+':
        value = Integer.parseInt( new String( first ) ) +
          Integer.parseInt( new String( second ) );
        name.setText( new Integer( value ).toString() );
        break; // plus button
      case '-':
        value = Integer.parseInt( new String( first ) ) -
          Integer.parseInt( new String( second ) );
        name.setText( new Integer( value ).toString() );
        break;
      case '*':
        value = Integer.parseInt( new String( first ) ) *
          Integer.parseInt( new String( second ) );
        name.setText( new Integer( value ).toString() );
        break;
      case '/':
        value = Integer.parseInt( new String( first ) ) /
          Integer.parseInt( new String( second ) );
        name.setText( new Integer( value ).toString() );
        break;
  private static final boolean validButton( String command )
    for( int x = 0; x < NUM_BUTTONS; x++ )
      if( bNames[x].equals( command ) ) ;
        return true;
    return false;
  /** main method to invoke from JVM. */
  public static void main( String args[] )
    new Calculator(); // Create a new instance of the Calculator object
}

Similar Messages

  • Need some help with a remove function

    Design and code a program that will maintain a list of product names. Use a String type to represent the product name and an array of strings to implement the list. Your program must implement the following methods:
    Add a product to the list
    Remove a product from the list
    Display then entire list
    Find out if a particular product is on the list.
    You need to create a command command loop with a menu() function. The program must continue asking for input until the user stops.
    This is the assignment and this is what I have so far. I need some help writing the remove function.
    Thanks
    * Title: SimpleSearchableList.java
    * Description: this example will show a reasonably efficient and
    * simple algorithm for rearranging the value in an array
    * in ascending order.
    public class SimpleSearchableList {
         private static String[] List = new String[25]; //These variables (field variables)
         private static int Size; //are common to the entire class, but unavailable
         //except to the methods of the class...
         public static void main(String[] args)
              String Cmd;
              for(;;) {
                   Menu();
                   System.out.print("Command: ");
                   Cmd = SimpleIO.inputString();
                   if(Cmd.equals("Quit"))
                        break;
                   else if(Cmd.equals("Fill"))
                        FillList();
                   else if(Cmd.equals("Search"))
                        SearchList();
                   else if(Cmd.equals("Show"))
                        ShowList();
                   else if(Cmd.equals("Remove"))
                        Remove();
         //Tells you what you can do...
         public static void Menu()
              System.out.println("Choices..................................");
              System.out.println("\tFill to Enter Product");
              System.out.println("\tShow to Show Products");
              System.out.println("\tSearch to Search for Product");
              System.out.println("\tRemove a Product");
              System.out.println("\tQuit");
              System.out.println(".........................................");
         //This method will allow the user to fill an array with values...
         public static void FillList()
              int Count;
              System.out.println("Type Stop to Stop");
              for(Count = 0 ; Count < List.length ; Count++)
                   System.out.print("Enter Product: ");
                   List[Count] = SimpleIO.inputString();
                   if(List[Count].equals("Stop"))
                        break;
              Size = Count;
         //This method will rearrange the values in the array so that
         // go from smallest to largest (ascending) order...
         public static void SearchList()
              String KeyValue;
              boolean NotFoundFlag;
              int Z;
              System.out.println("Enter Product Names Below, Stop To Quit");
              while(true)
                   System.out.print("Enter: ");
                   KeyValue = SimpleIO.inputString();
                   if(KeyValue.equals("Stop")) //Note the use of a method for testing
                        break; // for equality...
                   NotFoundFlag = true; //We'll assume the negative
                   for(Z = 0 ; Z < Size ; Z++)
                        if(List[Z].equals(KeyValue)) {
                             NotFoundFlag = false; //If we fine the name, we'll reset the flag
              System.out.println(List[Z] + " was found");
                   if(NotFoundFlag)
                        System.out.println(KeyValue + " was not found");     
         //This method will display the contents of the array...
         public static void ShowList()
              int Z;
              for(Z = 0 ; Z < Size ; Z++)
                   System.out.println("Product " + (Z+1) + " = " + List[Z]);
         public static void Remove()
    }

    I need help removing a product from the arrayYes. So what's your problem?
    "Doctor, I need help."
    "What's wrong?"
    "I need help!"
    Great.
    By the way, you can't remove anything from an array. You'll have to copy the remaining stuff into a new one, or maybe maintain a list of "empty" slots. Or null the slots and handle that. The first way will be the easiest though.

  • Need some help in creating Search Help for standard screen/field

    I need some help in adding a search-help to a standard screen-field.
    Transaction Code - PP01,
    Plan Version - Current Plan (PLVAR = '01'),
    Object Type - Position ( OTYPE = 'S'),
    Click on Infotype Name - Object ( Infotype 1000) and Create.
    I need to add search help to fields Object Abbr (P1000-SHORT) / Object Name (P1000-STEXT).
    I want to create one custom table with fields, Position Abb, Position Name, Job. Position Abb should be Primary Key. And when object type is Position (S), I should be able to press F4 for Object Abb/Object Name fields and should return Position Abbr and Position Name.
    I specify again, I have to add a new search help to standard screen/field and not to enhance it.
    This is HR specific transaction. If someone has done similar thing with some other transation, please let me know.
    There is no existing search help for these fields. If sm1 ever tried or has an idea how to add new search help to a standard screen/field.
    It's urgent.
    Thanks in advace. Suitable answers will be rewarded

    Hi Pradeep,
    Please have a look into the below site which might be useful
    Enhancing a Standard Search Help
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/daeda0d7-0701-0010-8caa-
    edc983384237
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee93446011d189700000e8322d00/frameset.htm
    A search help exit is a function module for making the input help process described by the search help more flexible than possible with the standard version.
    This function module must have the same interface as function module F4IF_SHLP_EXIT_EXAMPLE. The search help exit may also have further optional parameters (in particular any EXPORTING parameters).
    A search help exit is called at certain timepoints in the input help process.
    Note: The source text and long documentation of the above-specified function module (including the long documentation about the parameters) contain information about using search help exits.
    Function modules are provided in the function library for operations that are frequently executed in search help exits. The names of these function modules begin with the prefix F4UT_. These function modules can either be used directly as search help exits or used within other search help exits. You can find precise instructions for use in the long documentation for the corresponding function module.
    During the input help process, a number of timepoints are defined that each define the beginning of an important operation of the input help process.
    If the input help process is defined with a search help having a search help exit, this search help exit is called at each of these timepoints. If required, the search help exit can also influence the process and even determine that the process should be continued at a different timepoint.
    timepoints
    The following timepoints are defined:
    1. SELONE
    Call before selecting an elementary search help. The possible elementary search helps are already in SHLP_TAB. This timepoint can be used in a search help exit of a collective search help to restrict the selection possibilities for the elementary search helps.
    Entries that are deleted from SHLP_TAB in this step are not offered in the elementary search help selection. If there is only one entry remaining in SHLP_TAB, the dialog box for selecting elementary search helps is skipped. You may not change the next timepoint.
    The timepoint is not accessed again if another elementary search help is to be selected during the dialog.
    2. PRESEL1
    After selecting an elementary search help. Table INTERFACE has not yet been copied to table SELOPT at this timepoint in the definition of the search help (type SHLP_DESCR_T). This means that you can still influence the attachment of the search help to the screen here. (Table INTERFACE contains the information about how the search help parameters are related to the screen fields).
    3. PRESEL
    Before sending the dialog box for restricting values. This timepoint is suitable for predefining the value restriction or for completely suppressing or copying the dialog.
    4. SELECT
    Before selecting the values. If you do not want the default selection, you should copy this timepoint with a search help exit. DISP should be set as the next timepoint.
    5. DISP
    Before displaying the hit list. This timepoint is suitable for restricting the values to be displayed, e.g. depending on authorizations.
    6. RETURN (usually as return value for the next timepoint)
    The RETURN timepoint should be returned as the next step if a single hit was selected in a search help exit.
    It can make sense to change the F4 flow at this timepoint if control of the process sequence of the Transaction should depend on the selected value (typical example: setting SET/GET parameters). However, you should note that the process will then depend on whether a value was entered manually or with an input help.
    7. RETTOP
    You only go to this timepoint if the input help is controlled by a collective search help. It directly follows the timepoint RETURN. The search help exit of the collective search help, however, is called at timepoint RETTOP.
    8. EXIT (only for return as next timepoint)
    The EXIT timepoint should be returned as the next step if the user had the opportunity to terminate the dialog within the search help exit.
    9. CREATE
    The CREATE timepoint is only accessed if the user selects the function "Create new values". This function is only available if field CUSTTAB of the control string CALLCONTROL was given a value not equal to SPACE earlier on.
    The name of the (customizing) table to be maintained is normally entered there. The next step returned after CREATE should be SELECT so that the newly entered value can be selected and then displayed.
    10. APP1, APP2, APP3
    If further pushbuttons are introduced in the hit list with function module F4UT_LIST_EXIT, these timepoints are introduced. They are accessed when the user presses the corresponding pushbutton.
    Note: If the F4 help is controlled by a collective search help, the search help exit of the collective search help is called at timepoints SELONE and RETTOP. (RETTOP only if the user selects a value.) At all other timepoints the search help exit of the selected elementary search help is called.
    If the F4 help is controlled by an elementary search help, timepoint RETTOP is not executed. The search help exit of the elementary search help is called at timepoint SELONE (at the
    F4IF_SHLP_EXIT_EXAMPLE
    This module has been created as an example for the interface and design of Search help exits in Search help.
    All the interface parameters defined here are mandatory for a function module to be used as a search help exit, because the calling program does not know which parameters are actually used internally.
    A search help exit is called repeatedly in connection with several
    events during the F4 process. The relevant step of the process is passed on in the CALLCONTROL step. If the module is intended to perform only a few modifications before the step, CALLCONTROL-STEP should remain unchanged.
    However, if the step is performed completely by the module, the following step must be returned in CALLCONTROL-STEP.
    The module must react with an immediate EXIT to all steps that it does not know or does not want to handle.
    Hope this info will help you.
    ***Reward points if found useful
    Regards,
    Naresh

  • Need some help in Rounding a double value to a whole number

    Hey Peeps,
    Need some help here, I got a method that returns a value in double after a series of calculation.
    I need to know how can I round the double value, so for example,
    1. if the value is 62222.22222222, it rounds to 62222 and
    2. if the value is 15555.555555, it rounds to 15556
    How can i do this
    Zub

    Hi Keerthi- Try this...
    1. if the value is 62222.22222222, it rounds to 62222 and
    double d = 62222.22222222;long l = (int)Math.round(d * 100); // truncatesd = l / 100.0;
    double d = 62222.22222222;
    System.out.println(d);
    long l = (int)Math.round(d * 100);
    // truncatesSystem.out.println(l);
    d = l / 100.0;System.out.println(d);
    for (int i = 0; i < 1000; i++)
    {    d -= 0.1;}
    for (int i = 0; i < 1000; i++)
    {    d += 0.1;}System.out.println(d);
    regards- Julie Bunavicz
    Output:
    62222.22222222
    62222
    62222.22
    62222.22000000000001

  • Trying to make a photo contest need some help

    Trying to make a photo contest need some help. I am running a
    fish photo contest on my website and was wondering if any of you
    could give me some advice on some good extensions to help me do
    this easier. Basically I want a page where people upload a file and
    then it automatically resizes the image and puts it on a page,
    where people can vote on the pictures.

    Hi Pilot,
    Column B contains the sale amounts.
    Column C will contain the tax amounts.
    I'm assuming a header row, and the first line of data to be row 2.
    In C2, enter: =B*20%
    Click Accept, then use the mouse to drag the small round handle at the lower right of the selected cell (C2) to fill the formula into the rest of the cells in column C.
    This simple version of the formula will put zeros in all column C cells where no amount has been entered in the corresponding cell in column B. The revised formula below takes care of that.
    C2: =IF(B,B*20%,"")
    I'd strongly suggest that 'rookies', as you describe yourself, download and read both the Numbers User Guide and the Functions and Formulas User Guide. Both are available from the Help menu in Numbers. If you use Pages and Keynote, you should use the Help menu in those applications to download their User Guides as well. The guides are searchable pdf files, well written, easy to read, and useful to rookies and old hands as well.
    Regards,
    Barry

  • Need some help with: implement email notification on note board within a page layout (javascript)

    Dear all,
    I have a quite specific issue in which I'm in need of some guidance and help!
    Within our SharePoint I have created a custom page layout. This is a simple page to post some content (news) and a standard Note Board is implemented.
    Every time a news item is placed, this is done by our communication departement, this page with standard layout is placed as a page in a page library. When there are no comments on that particular item/subject I found a solution to replace the standard SharePoint_no_posts-text
    by placing a contenteditor web part in the Page Layout with a reference to a textfile with some javascript in it. This works perfectely.
    The only thing left is that I want to automatically send an email to the contact (which is defined when making the news item) everytime someone posts a new comment. Here is where I need some help!
    We don't really use mysites so I was wondering if someone could tell how I could do this by for example some code (javascript) which I can implement in the Page Layout.
    Can anyone help me?
    Thanks in advance,
    Gr Matt

    Try below code:
    function sendMail() {
    var link = 'mailto:?subject=insert subject line&body=';
    var curntLoc=window.location.href;
    link +=escape(curntLoc);
    window.location.href = link;
    // window.location.href = link;
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/9cfe7884-fc9e-4c7c-a44c-f740d2edcafc/sending-email-using-javascript-in-sharepoint-2010
    Also check below:
    http://spjsblog.com/2010/06/16/send-email-with-javascript-with-the-help-of-a-workflow-in-a-dedicated-send-email-list/

  • Need some help with computation

    Hi, I need some help with the following:
    My page 3 is a form thats shows, among other things, a document ID (:P3_DOC_ID). Next to this item I have created a button that calls a document selection form (page 10).
    On selection this forms sets 2 items:
    P10_SELECTED (Y or N)
    P10_DOC_ID (the selected documents ID value)
    When the user selects a document he returns to the calling form.
    On page 3 I now try to capture the selected values. For a test item I managed to do this by defining this items source as:
    [PL/SQL function body]
    begin
    if V('P10_SELECTED') = 'Y'
    then
    return V('P10_DOC_ID'); -- selected value
    else
    return V('P3_TEST'); -- else the original value
    end if;
    end;
    However I want P3_DOC_ID to capture the selected value. I tried using a computation but that did not work. Any ideas?
    thanks Rene

    You might want to check if the "Source Used" attribute for P3_DOC_ID is set to always or to "only when ..." it sounds like you need it set to "only when ..."
    If that does not work try this
    Place the following in a pl/sql anonymous block and turn off your
    computation.
    if :P10_SELECTED = 'Y'
    then
    :P3_DOC_ID := :P10_DOC_ID; -- selected value
    else
    :P3_DOC_ID := :P3_TEST; -- else the original value
    end if;
    Justin

  • Need some help with strange sounds in Logic Pro 8

    Hi!
    I need some help with a problem I have in Logic Pro 8.
    When I have arrange window open, suddley strange high tones starts to make noise in my headphones. I don't know where these sounds comes from or why, but I need some help to get them away. Should I just try to contact Apple?
    Martin

    Hi Martin
    Welcome to the forum. Give everyone here some more info about your set up otherwise it may be difficult to figure out what is wrong.
    Which mac?
    Which OS?
    any hardware devices?
    if you are listening through headphones using the built in audio from the mac, you may be hearing fan noise or a hard drive spin noise.
    Don

  • TS1702 New IPhone4s using primarily for Internet overseas and FaceTime states it is waiting to activate need some help

    Need some help activating my face time on my new phone. Am overseas and not in phone range so trouble shooting is difficult

    I maybe completely off base (i don't have t-mobile) but it was my understanding that you would still need a 'data' plan for a) most of the applications to work and b) to receive service books etc and that the wi-fi would only give you access to 'website' and not the email etc.
    If the unit is rebooting, then it would be sign of a bad BB, I would recommend reinstalling the OS using the desktop manager but if you just got the unit and are still in the 15-30 day period (not sure how long t-mobile does a return) I would ask for a replacement unit.
    Again, not sure on the top part so hopefully someone else may have an answer for you.

  • Totally Clueless & Need some help!

    Ok so i have my first Macbook Pro... im not a computer wizz and really know nothing about them. So i need some help!
    I have tried to install Snow Leopard and the installation finishes but nothing has changed? I dont have any of the new functions im still running on the normal Safari not Safari4, I have tried to download Safari4 but it says "Safari cannot be installed on this disk, this update requires Mac OS X 10.5.8 or newer"
    I went into the apple menu and into 'about this mac' and it says im running on OS X 10.6.
    Its like it has installed SL.. but nothing has been actually installed properly!
    HELP! And dumb it down for me!!! LOL

    Thank you for your help. One more if I may.
    If I open my MacBook Pro 10.6 SL in the normal manner then go to About This Mac > More Info > Software, the System Software Overview among other things shows. 64-bit Kernel and Extensions: No.
    If I Restart my computer holding down the 6 and 4 keys the answer then becomes Yes.
    My question is do I really have to concern myself about this or, can I just start my computer in the normal manner and forget the No or Yes?

  • Remote App on iPad connects but drops after about  20 mins. Need to turn  off wait about 1 minute then turn on wifi on iMac before it can reconnect. Need some help please.

    Remote App on iPad connects but drops after about  20 mins. Need to turn  off wait about 1 minute, then turn on wifi on iMac before it can reconnect. Need some help please.
    Already gone through troubleshooting guide a zillion times. Thanks.

    This worked for me... A little time consuming but once you get rolling it goes GREAT... Thanks....
    I got my artwork and saved it to my Desktop
    Opened up Microsoft Paint and clicked on "File" and "Open" and found it to get it on the screen to resize it
    Clicked "resize" and a box for changing it opened up
    Checked the box "Pixels" and "Unchecked maintain aspect ratio"
    Set Horizontal for 640 and Vertical for 480
    Clicked on "OK" and went back to "File" and did a "Save As" and chose JPEG Picture
    It came up "File Already Existed" and clicked "OK" (really did not care about the original artwork I found because wrong size)
    Went to iTunes and on the movie right clicked on "Get Info", clicked on "Details", then "Artwork"
    Go to the little box on the top left that shows your old artwork and click on it to get the little blue border to appear around it and hit "Delete" to make it gone
    Click on "Add Artwork" and find it where you put the one from above on your Desktop and hit "Open" and OK and your new artwork is now there and all good.
    Sounds like a lot of steps to follow but after around 5 or so you will fly through it. This worked perfect on my iPhone 6 Plus and I have artwork on my Home Videos now.

  • TS1702 I need some help the apps were downloading slowly

    The apps downloaded but it didn't cause it's stuck in downloading mode what should I do?
    The iOS 6 update didn't work.
    Please I need some help.
    The apps didn't download.
    Talking Angela and Ginger didn't download.
    Talking Santa didn't update.

    Try moving the existing backup file to a safe location so that iTunes has to create an entire new file.  The backup file is located here. You can delete that backup once you get a successfull backup.
    iTunes places the backup files in the following places:
    Mac: ~/Library/Application Support/MobileSync/Backup/
    Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    Windows Vista and Windows 7: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
    Note: If you do not see the AppData or Application Data folders, you may need to show hidden files (Windows XP,  Windows Vista and Windows 7), or iTunes may not be installed in the default location. Show hidden files and then search the hard drive for the Backup directory.

  • Need some help: my itunes won't sync with my iphone anymore. Both softwares are up to date and I've reinstalled itunes. After I reinstall, it syncs. But then when I reboot my computer, it no longer syncs anymore and I have to keep reinstalling itunes. Tho

    Need some help: my itunes won't sync with my iphone anymore. Both softwares are up to date and I've reinstalled itunes. After I reinstall, it syncs. But then when I reboot my computer, it no longer syncs anymore and I have to keep reinstalling itunes. Thoughts???

    thought that it was possible to have the same iTunes library on any machine that was authorised, a kind of cloud-iTunes I guess. 
    That would convenient, but sadly it is not the case. Sorry!
    Either way your welcome and best of luck!
    B-rock

  • Need some help in debugging this exported script

    Below is DDL generated by visio forward engineering tool . The example below consists of 2 test tables with one foreign key.
    Forward engineering generated DDL script
    IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Table1]') AND type in (N'U'))
    DROP TABLE [dbo].[Table1]
    GO
    CREATE TABLE [dbo].[Table1] (
    [test] CHAR(10) NOT NULL
    , [test2] CHAR(10) NULL
    GO
    ALTER TABLE [dbo].[Table1] ADD CONSTRAINT [Table1_PK] PRIMARY KEY CLUSTERED (
    [test]
    GO
    GO
    IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Table2]') AND type in (N'U'))
    DROP TABLE [dbo].[Table2]
    GO
    CREATE TABLE [dbo].[Table2] (
    [test2] CHAR(10) NOT NULL
    GO
    ALTER TABLE [dbo].[Table2] ADD CONSTRAINT [Table2_PK] PRIMARY KEY CLUSTERED (
    [test2]
    GO
    GO
    ALTER TABLE [dbo].[Table1] WITH CHECK ADD CONSTRAINT [Table2_Table1_FK1] FOREIGN KEY (
    [test2]
    REFERENCES [dbo].[Table2] (
    [test2]
    GO
    GO
    When i converted this DDL script using scratch editor the migration tool gave some errors can anyone help me to resolve below
    DECLARE
    v_temp NUMBER(1, 0) := 0;
    BEGIN
    BEGIN
    SELECT 1 INTO v_temp
    FROM DUAL
    WHERE EXISTS ( SELECT *
    FROM objects
    WHERE OBJECT_ID_ = NULL/*TODO:OBJECT_ID(N'[OPS].[Table1]')*/
    AND TYPE IN ( N'U' )
    EXCEPTION
    WHEN OTHERS THEN
    NULL;
    END;
    IF v_temp = 1 THEN
    TRUNCATE TABLE Table1;
    END IF;
    END;
    CREATE TABLE Table1
    test CHAR(10) NOT NULL,
    test2 CHAR(10)
    ALTER TABLE Table1
    ADD
    CONSTRAINT Table1_PK PRIMARY KEY( test );
    --SQLDEV:Following Line Not Recognized
    DECLARE
    v_temp NUMBER(1, 0) := 0;
    BEGIN
    BEGIN
    SELECT 1 INTO v_temp
    FROM DUAL
    WHERE EXISTS ( SELECT *
    FROM objects
    WHERE OBJECT_ID_ = NULL/*TODO:OBJECT_ID(N'[OPS].[Table2]')*/
    AND TYPE IN ( N'U' )
    EXCEPTION
    WHEN OTHERS THEN
    NULL;
    END;
    IF v_temp = 1 THEN
    TRUNCATE TABLE Table2;
    END IF;
    END;
    CREATE TABLE Table2
    test2 CHAR(10) NOT NULL
    ALTER TABLE Table2
    ADD
    CONSTRAINT Table2_PK PRIMARY KEY( test2 );
    --SQLDEV:Following Line Not Recognized
    ALTER TABLE Table1
    ADD
    CONSTRAINT Table2_Table1_FK1 FOREIGN KEY( test2 ) REFERENCES Table2 (test2)
    --SQLDEV:Following Line Not Recognized
    ;

    Pl do not post duplicates - Need some help in debugging this script

  • Need some help in Los Angeles

    working on a music video that needs some help. I own Final Cut and Color. Done the edit and it looks great but it needs help polishing and I have no idea what to do. Planning on showing the video this friday night in hollywood and I want it to blow people away. Is there anyone in the area would be willing to help? Please contact me ASAP. Thanks Ray

    if you can give me a call that would be best, I can tell you what I need to accomplish. Thanks
    818 935 5079

Maybe you are looking for

  • Can I enable both a bluetooth audio device and digital-out port at the same time?

    Hi!  I just got a bluetooth speaker and want to use it at the same time as my audio-out port which drives speakers in another room.  In preferences, the iMac wants me to choose one or the other...  Is there a way to enable both at once? Thanks!

  • Corrupted and can't be found on mycomputer or iTunes?!?

    When connecting to iTunes it said my ipod has been corrupted? I have no idea what this means or why it happened. My PC does not recognize the ipod nor does iTunes. Is there anyone that can help?! Any input would be greatly appreciated. Thank you!

  • External widescreen monitor not working properly

    Hi! i have an LG Flatron 2243S monitor and i just hooked it up to my late 2011 macbook pro 15" through the mini display port and vga cable since the monitor does not have DVI input, Im having issues with the resolution it shows. if i put it in 1920x1

  • Is there any standard SAP report to see all active,inactive, retiree employ

    SAP experts Is there any standard SAP report where I can look all the employees whose employment specific status is 0 (terminated), 1(employee with the company but inactive), 2(retiree), 3(active). please help regards renu

  • Single Serial Packet vs Multiple Packets

    Hello, I am trying to program a stepper controller (Anahiem Automation DPE25601) via a usb to serial connector.  Their manual doesn't say how to load a program onto it, so I got a serial port listener used their sample program and found out how to do