How do you use two scripts for a button?

Hi all!
I'm referring to my earlier question posted in this topic:
Object not found with myContext.getParamIdForComponent
In short: when I had the attribute 'jsObjectNeeded="true"'  on a button and that was for a script that would start a function validating a field, and then at the same time had a script in the button that would activate the "pressing" of it through the hit of the "return" button, I got javascript error saying "Error: Objekt doesn't support this property or method"
Do you know a way to have both functionalitys connected to the button?
Best regards
Benny

HI Benny Lange,
<hbj: button
id="Button1"
text="Logon"
width="125px"
onClientClick="javascript func for validation"
//first onClientClick will be executed
onClick="call the method in JSPDYNPAGE"
//second onclick will be executed
disabled="false"
design="STANDARD" />
jsobjectneeded has nothing to do with onclick.this should work.post your code if you need help.
Message was edited by: Kirupanand venkatapathi

Similar Messages

  • How do you configure two counters for a single task?

    Hello Everyone,
    I would like to know how to configure two counters for a single task. At first, I have put two start task for two counters and it did not work. Now, I have put Control Task to control the task of the other counter. Appreantly, all what it does is that it makes one counter work while other is stopped or not working. I have attached a picture of the VI below.
    Thanks.
    Mechanical Engineer

    Hello Mike,
    We are currently using NI-cDAQ 9191 chassis with NI 9401 Digital I/O module that can use counters. I don't know if the lines for the counters are multiplexed or not. I have attached the VI for you to look at it.
    Thank you for your effort.
    Mechanical Engineer
    Attachments:
    VI_Degrees(test2).vi ‏187 KB

  • How do you use two ipods in the same itunes???

    My brother recently bought an ipod (15GB) i have been fine using my one (20GB) with my itunes on my computer. When i plug my brothers ipod in to my computer and open itunes i expect the music only about (5GB) to transfer to his ipod instead it just says Do not disconnect like usual, but no music is being transfered. Can anyone help?
      Windows XP  

    Read this article to find out how to set up your computer for multiple iPods.
    If you don't want to create a separate user account, you have to set up different playlists to sync with different iPods.
    Hope this helps.
    M

  • Do you use two iPhones for developing?

    One iPhone as a consumer device and the other purely for development. I'd think two iPhones gets expensive though. But if you use one, that's a big hassle and risk. Just wondering what the nornal methods are. Thanks.

    Can't afford too but in reality I ought too. Apple should allow developers to buy carrier free iPhones purely for development.
    Android are doing this....

  • How do you use your pictures for web, iPad & smartphones? All the same size??

    i realy think back and froth about this question.
    i guess it makes sense - to use all the same size -  because newest Ipads and Iphones are with retina-screens !??
    on the other hand i use background-pictures for the website with a lenght of 1800px (it's 400 kbit) so it may slow down my the mobile version
    but i know , people always scroll and zoom into evrything with an Ipad and  smartphone ... So what to do?  What is your hint ?
    Thank you for your time ;-))
    Nachricht geändert durch Ideenautomat

    For me anyways, I 'always' create my images to the size I need and then bring them into what ever web design tool I am using wether it is Muse, Dreamweaver, Coda or a number of others. It takes a few minutes longer but I always get the results I need and expect.

  • How do you use two ipods on the same computer?

    Okay i got a ipod for christmas and my brother got one for his b-day a few days ago & i already had itunes installed for my ipod now do i have to install it agian or what?
    Also my brothers ipod has the picture of the ipod with the ! thing.
    HELP?? please?
    XP   Windows XP Pro  

    hiya!
    Okay i got a ipod for christmas and my brother got one for his b-day a few days ago & i already had itunes installed for my ipod now do i have to install it agian or what?
    these resources might be helpful with that:
    Natalie Beresford: multiple iPod/iTunes installations
    How to use multiple iPods with one computer
    iTunes: How to share music between different accounts on a single computer
    Also my brothers ipod has the picture of the ipod with the ! thing.
    these resources might be helpful with that:
    iPod does not appear in iTunes or on the desktop, an exclamation point or sad iPod icon appears onscreen
    iPod shows a folder icon with exclamation point when you turn it on
    love, b

  • How do you use two seperate iTunes accounts on one computer?

    My wife and I have seperate iTunes accounts and content. We both have an iPod and iPhone. We purchased a new Macbook Pro because our other computers were fried. How do we both use the same computer to access our own iTunes accounts and sync our own iPhone and iPod to it to update our respective toys? I have already transferred all my content to the new laptop and am able to sync my iPhone and iPod. Now I just need to figure out how to get my wife's content on this new laptop so she can sync her iPhone and iPod. Does anyone know how to do this? I assume this is a common request.

    one option would be to create a separate user account for your wife. click here to learn "how to share music between different accounts on a single computer"
    another option would be to authorize iTunes to use/play content purchased with both your iTunes accounts.that's basically very easy. all you have to do is +log out+ of one account (click on the account name in the Store window and select +sign out+ from the pop-up dialog) and into the other, and then they will both be authorized. (be sure to just *log out*, not de-authorize ).
    JGG

  • How can you use the Keyboard for a JComboBox within a JTable without F2

    I am brand new to Java and I can't seem to figure this out. I have a JTable with 4 columns. The first column is a jCheckBox which is working fine. The other three are JComboBoxes. They work fine when you click them and select from the list, but our end users only want to navigate with the keyboard. They want to be able to tab to the column and just start typing the first letter of the item that they want to choose from the list and have that pop up the list and scroll to the first item in the list that starts with the letter the typed. Does anyone know how to do this? I have been playing with this for a week now and I can't seem to make it work. Please help. Below is the code for my table. Any help would be appreciated greatly. Thanks,
    Lisa
         private void LoadSTCGTable(){
         //Connect to database
            try {
                    connection = ConnecttoDB.connect();
                    // Tell me why I couldn't connect
                } catch (ClassNotFoundException ex) {
                    ex.printStackTrace();
                } catch (SQLException ex) {
                    ex.printStackTrace();
         try {
                // Get listing of Squad Types
                tblSTCG.setModel(new javax.swing.table.DefaultTableModel(
                new Object [][] {
                    {new Boolean(false), null, null, null},
                new String [] {
                    "SELECT", "SQUAD TYPE", "SQUAD CLASS", "SQUAD GROUP"
              //Add Checkbox column
               tblSTCG.getColumnModel().getColumn(0).setCellEditor(tblSTCG.getDefaultEditor(Boolean.class));
               tblSTCG.getColumnModel().getColumn(0).setCellRenderer(tblSTCG.getDefaultRenderer(Boolean.class));      
               tblSTCG.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
               Whichquerytoread = 1;
               GetSql();
               sql = textfileinfo;
               stmt = connection.createStatement();
               rs = stmt.executeQuery(sql);
               md = rs.getMetaData();
               typelist = new ArrayList();
               // Loop Through Results
               typelist.add(new PairedDescriptionCodeDesc("",""));
               while (rs.next())
                  int i = 1;
                 typelist.add( new PairedDescriptionCodeDesc(rs.getString(2),rs.getString(1)));
              s1 = new TreeSet(typelist);
              typelist = new ArrayList(s1);
              AllTypeList = new PairedDescriptionCodeDesc[typelist.size()];
              for (int i = 0; i<typelist.size(); i++)
                 AllTypeList=(PairedDescriptionCodeDesc)typelist.get(i);
    rs.close();
    catch (SQLException ex) {
    ex.printStackTrace();
    Vector typedata = new Vector();
    for (int i=0;i<typelist.size();i++)
    typedata.addElement((PairedDescriptionCodeDesc)typelist.get(i));
    cmboType = new JComboBox();
    cmboType.setModel(new DefaultComboBoxModel(typedata));
    cmboType.putClientProperty("JComboBox.isTableCellEditor", Boolean.TRUE);
    cmboType = new JComboBox(AllTypeList);
    cmboType.setBorder(BorderFactory.createEmptyBorder());
    squadcol = tblSTCG.getColumnModel().getColumn(1);
    DefaultCellEditor cmboTypeEditor = new DefaultCellEditor(cmboType);
    cmboTypeEditor.addCellEditorListener(new NewRowCellEditorListener(tblSTCG));
    squadcol.setCellEditor(cmboTypeEditor);
    try {
    // Get listing of Squad Class
    Whichquerytoread = 2;
    GetSql();
    sql = textfileinfo;
    stmt = connection.createStatement();
    rs = stmt.executeQuery(sql);
    md = rs.getMetaData();
    classlist = new ArrayList();
    // Loop Through Results
    classlist.add(new PairedDescriptionCodeDesc("",""));
    while (rs.next())
    classlist.add(new PairedDescriptionCodeDesc(rs.getString(2),rs.getString(1)));
    s1 = new TreeSet(classlist);
    classlist = new ArrayList(s1);
    AllClassList = new PairedDescriptionCodeDesc[classlist.size()];
    for (int i = 1; i<classlist.size(); i++)
    AllClassList[i]=(PairedDescriptionCodeDesc)classlist.get(i);
    rs.close();
    catch (SQLException ex) {
    ex.printStackTrace();
    Vector classdata = new Vector();
    for (int i=0;i<classlist.size();i++)
    classdata.addElement((PairedDescriptionCodeDesc)classlist.get(i));
    cmboClass = new JComboBox();
    cmboClass.setModel(new DefaultComboBoxModel(classdata));
    cmboClass = new JComboBox(AllClassList);
    classcol = tblSTCG.getColumnModel().getColumn(2);
    DefaultCellEditor cmboClassEditor = new DefaultCellEditor(cmboClass);
    classcol.setCellEditor(new DefaultCellEditor(cmboClass));
    cmboClassEditor.addCellEditorListener(new NewRowCellEditorListener(tblSTCG));
    try {
    // Get listing of Squad Group
    Whichquerytoread = 3;
    GetSql();
    sql = textfileinfo;
    stmt = connection.createStatement();
    rs = stmt.executeQuery(sql);
    md = rs.getMetaData();
    grouplist = new ArrayList();
    // Loop Through Results
    grouplist.add(new PairedDescriptionCodeDesc("",""));
    while (rs.next())
    int i = 0;
    grouplist.add( new PairedDescriptionCodeDesc(rs.getString(2), rs.getString(1)));
    s1 = new TreeSet(grouplist);
    grouplist = new ArrayList(s1);
    AllGroupList = new PairedDescriptionCodeDesc[grouplist.size()];
    for (int i = 0; i<grouplist.size(); i++)
    AllGroupList[i]=(PairedDescriptionCodeDesc)grouplist.get(i);
    rs.close();
    catch (SQLException ex) {
    ex.printStackTrace();
    Vector groupdata = new Vector();
    for (int i=0;i<grouplist.size();i++)
    groupdata.addElement((PairedDescriptionCodeDesc)grouplist.get(i));
    cmboGroup = new JComboBox();
    cmboGroup.setModel(new DefaultComboBoxModel(groupdata));
    cmboGroup = new JComboBox(AllGroupList);
    groupcol = tblSTCG.getColumnModel().getColumn(3);
    DefaultCellEditor cmboEditor = new DefaultCellEditor(cmboGroup);
    cmboEditor.addCellEditorListener(new NewRowCellEditorListener(tblSTCG));
    groupcol.setCellEditor(cmboEditor);
    tblSTCG.setShowHorizontalLines(false);
    tblSTCG.setShowVerticalLines(false);
    TableColumnModel columnModel = tblSTCG.getColumnModel();
    TableColumn column;
    tblSTCG.getColumnModel().getColumn(0).setPreferredWidth(5);
    tblSTCG.getColumnModel().getColumn(1).setPreferredWidth(100);
    tblSTCG.getColumnModel().getColumn(2).setPreferredWidth(100);
    tblSTCG.getColumnModel().getColumn(3).setPreferredWidth(100);
    scpSTCG.setViewportView(tblSTCG);
    private class NewRowCellEditorListener implements CellEditorListener
    JTable editingTable;
    public NewRowCellEditorListener(JTable table)
    editingTable = table;
    public void editingStopped(ChangeEvent e)
    if(editingTable.getRowCount() == editingTable.getSelectedRow() + 1)
    ((DefaultTableModel)editingTable.getModel()).addRow(new Object [] {null, null, null, null});
    public void editingCanceled(ChangeEvent e)

    Final Cut Pro menu > Audio / Video Settings... (Cmd Opt Q) will show you al the various presets currently loaded
    Sequence menu > Settings... (Cmd Zero) will show you the current sequence's settings
    Edit > Item Properties > Format... (Cmd 9) will show you the selected clip's properties

  • How do you use a field for 255 characters plus in HCM?

    There is a 255 character max on the fields in the HCM process and forms.
    I see some types in there:
    QISR_TAB_TYPE
    QISR_TAB_TYPE_TEXT
    QISR_TAB_TYPE_STRING
    I see the text one is for no length restriction, but when I apply it to the field in designtime interface but still everything truncated at 255.
    Is there anyway to use more than 255 characters in a form field in adobe livecycle designer - SAP HCM?

    1694040 - SAP_PD process description fields truncated - 1429386  DTT - wrong data element visible for generic service fields - 1492109  Wrong generation of fields of type pad_long_text 2. In form scenario - change the data element of affected field from You will have to specify long text using multiple field indices. In form scenario - change the data element of affected field from STRING to PAD_LONG_TEXT. check your generic service again Kindly use the data element PAD_LONG_TEXT for the fields which are to hold more than 255 characters. For the usage of this data element, you may refer to the note 1401338 released by PA-ER for the requisition request process.

  • How do you use forward and back button on mouse and use "zoom" in web browser.

    Ok so apparently this forum is ruled with an iron fist or something my very honest and truthful problems with these issues seem to have been instantly deleted in my last discussion?
    I'll try this once more.
    1) How do you use the forward and back button on a mouse without having to buy a product like Steer Mouse? There must be a way to do this without having to buy a program given it's such a useful feature that 99% of users need. I don't want to spend hours researching something that should already work. Any advice?
    2) How do you zoom in for web browsers like Chrome without it globally zooming in everything on the monitor (even background applications). I don't want to zoom in background applications. I want to be able to zoom in the web browser and still maintain all the features like the side bar, not just a little magnifying glass type thing.
    I'm currently zooming in with the CTRL-Middle Mouse button, but I can't find a way to use this feature so it's useful to browse the web it seems to not scale the browser correctly but rather is a global zoom. Any solution for this?

    Thanks so much!
    Like I said I am new to Apple products so it's still unclear to me which programs I do or don't need as I'm setting up and configuring all my software and devices.
    The Logitech Control Center appears to work perfectly for what I was trying to do!
    I accidently clicked "This helped me" instead of "This Solved My Question", sorry about that this was a solve!

  • How can we use two BOM

    Dear all,
    my scenario is in this way way-
    how can we use two BOM for same material.first BOM for inhouse production. Second one for Subcontracting.(means i have to create Purchase order for partial qty.

    Dear
    1.Goto MM02-MRP4 view -Maintain two Production Version based on two BOM ( Alternative1 with Routing will be PV1 will be used for production in house  where as Alt2 with routing having PP03 as control key for external operation -PV2 )
    2.Assign the relavant production Version-PV2 in Subcontracting Info Record in ME11
    Now, based on the production version assigned in Info Record system suggests the BOM while BOM explosion in Subcon Purchase Order
    REFER : Subcontracting & BOM  alternative
    Hope this will solve your issue
    Regards
    JH
    Edited by: Jiaul Haque on Sep 29, 2010 1:27 PM

  • How can you use the same e-mail address for multiple ipads?

    I have two iPads.. an iPad and an ipad 2.  I registared my new ipad 2 and now my old ipad is will not let me log on and is telling me that my e-mail address is already in use.  how can you use the same e-mail address for multiple ipads?

    And by using the same Apple ID you can also share purchases.  If you have a different Apple ID for each iPhone then you can't share purchases.

  • HT204053 Hello, I have two iphones but one Apple ID. How can I use localization apps for a dedicated device? Tx

    Hello, I have two iphones but one Apple ID. How can I use localization apps for a dedicated device? Tx

    On the iPad open Settings/iCloud and delete the account using the button at the bottom. Once deleted log in using the other account. For iTunes Stores use Settings/iTunes & Apps Stores, tapp on the Apple ID at the top then sign out. Once done sign in using the other account. Once you are happy with the changes plug your iPad into your computer to update the backup.

  • How do you swap two variables A and B without using a 3rd variable?  No fun

    How do you swap two variables A and B without using a 3rd variable? No function or method allowed.
    For example:
    Given:
    A = 35
    B = 10
    Result
    A = 10
    B = 35

    How do you swap two variables A and B without using a
    3rd variable? No function or method allowed.
    For example:
    Given:
    A = 35
    B = 10
    Result
    A = 10
    B = 35
    A = A + B  (A = 35 + 10 = 45)
    B = A - B (B = 45 - 10 = 35)
    A = A - B (A = 45 - 35 = 10)

  • How do you swap two variables A and B without using a 3rd variable?

    How do you swap two variables A and B without using a 3rd variable? No function or method allowed.
    For example:
    Given:
    A = 35
    B = 10
    Result
    A = 10
    B = 35

    How do you swap two variables A and B without using a
    3rd variable? No function or method allowed.
    For example:
    Given:
    A = 35
    B = 10
    Result
    A = 10
    B = 35
    A = A + B  (A = 10 + 35 = 45)
    B = A - B (B = 45 - 35 = 10)
    A = A - B (A = 45 - 10 = 35)

Maybe you are looking for