Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help Need Regarding Radio Button.

    I have retrive the values from database and it is displaying in front end using radio button.This radio button values are read only. i have to use separate Buttons to do below task


    Archive - Move the record status to Archive (disabled for Archive status records, enabled for others)

    I tried but script functionality not working. In database the status value are updating

    // Database Code

    if("ARCHIVE".equals(a)) {
    try {
    PreparedStatement pst;
    String sqll="update DB_FCICONNECTOR.T_CONTACT_TEST set ID_STATUS=3 where ID_COUNTRY=? and ID_DIVISION=? and ID_LANGUAGE=?";
    pst= conn.prepareStatement(sqll);
    pst.setString(1, ID_COUNTRY);
    pst.setString(2, ID_DIVISION);
    pst.setString(3, ID_LANGUAGE);
    pst.executeUpdate();
    }
    catch(SQLException e){
    System.out.println("I am Caught"+e);
    }
    }

    // JavaScript Code:

    function valbutton3(){
    document.fci_contact.a.value="ARCHIVE";
    document.fci_contact.submit();
    checkval(thisform);

    }


    function checkval(thisform){
    if(thisform.ID_STATUS[2].checked == true){
    thisform.bt_ARCHIVE.disabled=true;
    thisform.bt_purge.disabled=false;
    thisform.bt_publish.disabled=false;
    }
    }

    <input type="button" name="bt_ARCHIVE" value="Publish" onclick="valbutton3()">


    Please try to solve this probs

  • #2
    Regular Coder
    Join Date
    Aug 2005
    Location
    Toronto, ON, Canada
    Posts
    231
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by chocks
    Please try to solve this probs
    I made a try and gave up as well as you did.
    rm -f /


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •