Updating a record with an enabled control

i need to implement enabled controls like text area with the following javascript :
document.forms[0].elements.disabled= false;
it works well but when i update records in a form, it always displays an error message from internet explorer: HTTP 404 impossible to find the page .
what can i do ?

Yes, you can extend the AbstractTableModel and write a method for updating a whole block.
lets say you've got a Vector with Float[] arrays as elements to hold a 2D array of Float. The you could write:
      TableModel dataModel = new AbstractTableModel() {
            public int getColumnCount() { return col_names.size(); }
            public int getRowCount() { return data.size();}
            public Object getValueAt(int row, int col) {
               return ((Float)((Float[])data.elementAt(row))[col]).toString();
            public String getColumnName(int col) {
             return ((String)col_names.elementAt(col));
            public Class getColumnClass(int col) {
             return String.class;
            public boolean isCellEditable(int row, int col) {
              return true;
            public void setValueAt(Object aValue, int row, int col) {
               try {
                 Float fv = Float.valueOf((String)aValue);
                ((Float[])data.elementAt(row))[col] = fv;
               } catch (Exception ex) {
            public void setBlock(Float block[][], int row, int col) {
               // copy the Arrays with System.arrayCopy into data
      };PS: I don't know, if the above is correct written, havn't test this. But I hope you can recognize the idea behind it.
wami

Similar Messages

  • Program to update info record with material master data

    I am trying to determine if there is a standard SAP program that can be run as a batch file  to update the fields in the info record with the same fields that are in the material master?  ie:  Planned delivery time, Tolerance, purchasing group etc.

    Hi,
    There is no standard report or transaction that can do this.
    The data from these fields in the material master is brought in as a default to the info record when it is created. beyond this point the Info record is treated as being the correct data regardless of what happens to the material master data and so no updates occur in the standard system.
    It would not be difficult to build an LSMW job to copy the data from the material master to the info records and this would be the recommendation if you want to do this.
    Steve B

  • Problems updating BP record with SOAP

    Trying to update a business partner record with the SOAP env. below I get the error message: "Key not supplied". Where in the XML should I insert the key (CardCode) of the business partner I wish to update?
    <?xml version="1.0" encoding="UTF-16"?>
    <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
    <env:Header>
    <SessionID>A9DE2062-4F96-F9E1-DE3C-81E0DB23F174</SessionID>
    </env:Header>
    <env:Body>
    <dis:UpdateObject xmlns:dis="http://www.sap.com/SBO/DIS">
    <BOM>
    <BO>
    <AdmInfo>
    <Object>oBusinessPartners</Object>
    </AdmInfo>
    <BusinessPartners>
    <row>
    <CardCode>31177</CardCode>
    <FederalTaxID>987280115</FederalTaxID>
    </row>
    </BusinessPartners>
    </BO>
    </BOM>
    </dis:UpdateObject>
    </env:Body>
    </env:Envelope>

    For those interested I succsesfully managed to update a business partner record  with the follwing XML:
    (Replace $session_id with valid session id)
    [code]<?xml version="1.0" encoding="UTF-16"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
         <env:Header>
              <SessionID>$session_id</SessionID>
         </env:Header>
         <env:Body>
              <dis:UpdateObject xmlns:dis="http://www.soap.com/SBO/DIS">
                   <BOM>
                        <BO>
                             <AdmInfo>
                                  <Object>2</Object>
                                  <Version>2</Version>
                             </AdmInfo>
                             <QueryParams>
                                  <CardCode>30001</CardCode>
                             </QueryParams>
                             <BusinessPartners>
                                  <row>
                                       <ZipCode>5265</ZipCode>
                                  </row>
                             </BusinessPartners>
                        </BO>
                   </BOM>
              </dis:UpdateObject>
         </env:Body>
    </env:Envelope>
    [/code]

  • Update multiple records with update button???

    I was wondering if someone could explain how I can use the developer tool box to update multiple records at once.
    I have a repeat region with a title and a check box if the item is active. I would like to update all records of the table at once. I have see folks state the developer tool box can do this. However I am not sure how..
    I am using php with mysql dreamweaver cs3

    Hi Chris,
    that can be done with first creating an ADDT "dynamic list", means to apply ADDT´s "Dynamic List Wizard" to an empty page -- this list will provide checkboxes for all displayed records, and here´s where you can select the to-be-updated (or deleted) records.
    Besides creating the list, this wizard will also be creating a blank "form" php page in the same directory, which is by default "tied" to the created list -- you´ll just need to open this blank document with DW and apply ADDT´s "Create Dynamic Form Wizard" to it. However, this form will contain all required routines for single and multiple updates, depending on how many records you select in the list.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Update Info record with PO data

    Hi,
    I have the material configured no purchase order unit of measure and Variable Purchase Order Unit Active with the value 1.
    When I create the first PO a Info record is created and in the general data the purchase order unit is set with one used on that PO.
    When I create a new PO the purchase order unit from the info record is copied to the PO. If I change that unit on the creation of the PO I would like to have it changed in the Info record but this is not the behavior. That field remains unchanged unless I change it manually in the Info record.
    Is there any standard way to make it updated with the creation of PO's?
    Thanks,
    Nelson Ribeiro.

    Hi,
    You can find control of info-update indicator  in following path, where it update automatically.You can set for own  data by assigning EVO with 01{Goto from menu bar---system-> user profile-->own data>Goto parameters---> enter parameter id as EVO parameter value as 01}
    SPRO> MM> Purchasing-> Environment  -> Define default values for buyers-->Settings for Default Values
    You can view Entries
    01     Default values for group 1
    02     Default values for group 2
    Regards,
    Biju K

  • Updating db records with createUUID() with CFLOOP

    I have 7
    00 subscribers in a db, and I've created a new column 'token' and I want to create a unique UUID for each row. Something like this, although this doesn't work. These are just tests on a test db with 15 records.
    <cfquery datasource="maillist" name="createtoken">
        UPDATE subscribers
    <cfloop from = "1" to = "15" index="token" step="1">
    SET token =
    <cfqueryparam cfsqltype="cf_sql_varchar" value="#createUUID()#">
    </cfloop>
    </cfquery>
    OR
    <cfloop from="1" to="15" step="1" index="i">
    <cfquery datasource="maillist">
        UPDATE subscribers
    SET token = <cfqueryparam cfsqltype="cf_sql_varchar" value="#createUUID()#">
    </cfquery>
    </cfloop>
    I've been able to run the #createUUID()#" but it puts the same UUID in each row. Is is possible to UPDATE with unique UUIDs in every row?

    As Adam stated, this is actually very simple, and you don't need to use CFLOOP.  With SQL Server, just do this:
    <cfquery datasource="maillist">
        UPDATE subscribers
        SET token = NewID()
    </cfquery>
    With that, each of your subscribers now has a unique ID!

  • Update multiple records with Update Command Dreamweaver 8.0.2 - ASP VBScript

    Dreamweaver 8.0.2 - Language ASP – VBScript
    I’m trying to update more than one record at a time
    using checkboxes. I’ve successfully done this numerous times
    prior to Dreamweaver 8.0.2.
    Before Dreamweaver 8.0.2, I would create a page with a
    recordset, form, checkbox and repeat region and pass the ID to
    another page containing an ‘Update Command’. The code
    on the Update page looked similar to the following:
    <%
    if(Request.QueryString("MemberID") <> "") then
    spMemberApproving__MMColParam = Request.QueryString("MemberID")
    %>
    <%
    set spMemberApproving = Server.CreateObject("ADODB.Command")
    spMemberApproving.ActiveConnection =
    MM_connIssuesManager_STRING
    spMemberApproving.CommandText = "UPDATE tblMembers SET
    MemberApproved = 1 WHERE MemberID IN (" +
    Replace(spMemberApproving__MMColParam, "'", "''") + ")"
    spMemberApproving.CommandType = 1
    spMemberApproving.CommandTimeout = 0
    spMemberApproving.Prepared = true
    spMemberApproving.Execute()
    Response.Redirect("default.asp")
    %>
    However, in Dreamweaver 8.0.2 when you fill out the Update
    Command dialog box, Dreamweaver asks you to provide the
    ‘Type’ and ‘Size’ for the variables (see:
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=4e6b330a
    That being said and done, the code on the Update page looks
    like the following:
    <%
    ' IIf implementation
    Function MM_IIf(condition, ifTrue, ifFalse)
    If condition = "" Then
    MM_IIf = ifFalse
    Else
    MM_IIf = ifTrue
    End If
    End Function
    %>
    <%
    if(Request.QueryString("MemberID") <> "") then
    spMemberApproving__MMColParam = Request.QueryString("MemberID")
    %>
    <%
    Set spMemberApproving = Server.CreateObject ("ADODB.Command")
    spMemberApproving.ActiveConnection =
    MM_connIssuesManager_STRING
    spMemberApproving.CommandText = "UPDATE tblMembers SET
    MemberApproved = 1 WHERE MemberID IN (?) "
    spMemberApproving.Parameters.Append
    spMemberApproving.CreateParameter("MMColParam", 202, 1, 10,
    MM_IIF(Request.QueryString("MemberID"),
    Request.QueryString("MemberID"), spMemberApproving__MMColParam
    spMemberApproving.CommandType = 1
    spMemberApproving.CommandTimeout = 0
    spMemberApproving.Prepared = true
    spMemberApproving.Execute()
    Response.Redirect("default.asp")
    %>
    The Update Command works perfectly when only 1 record is
    being updated. However, when I try to update more than one record I
    get the following error:
    Error Type:
    ADODB.Command (0x800A0D5D)
    Application uses a value of the wrong type for the current
    operation.
    /issues_manager/admin/members_approving.asp, line 27
    Can anyone help me out?

    Yes, this is a bug in Dreamweaver 8.0.2. The only workaround
    is to stay with
    8.0.1 or to hand-code the query. Adobe removed most of the
    useful ways to
    use Commands and Recordsets in 8.0.2 and limited it to basic
    queries.
    Tom Muck
    co-author Dreamweaver MX 2004: The Complete Reference
    http://www.tom-muck.com/
    Cartweaver Development Team
    http://www.cartweaver.com
    Extending Knowledge Daily
    http://www.communitymx.com/
    "Button1" <[email protected]> wrote in message
    news:[email protected]...
    > Dreamweaver 8.0.2 - Language ASP ? VBScript
    >
    > I?m trying to update more than one record at a time
    using checkboxes.
    > I?ve
    > successfully done this numerous times prior to
    Dreamweaver 8.0.2.
    >
    > Before Dreamweaver 8.0.2, I would create a page with a
    recordset, form,
    > checkbox and repeat region and pass the ID to another
    page containing an
    > ?Update Command?. The code on the Update page looked
    similar to the
    > following:
    >
    > <%
    > if(Request.QueryString("MemberID") <> "") then
    > spMemberApproving__MMColParam =
    > Request.QueryString("MemberID")
    > %>
    >
    > <%
    >
    > set spMemberApproving =
    Server.CreateObject("ADODB.Command")
    > spMemberApproving.ActiveConnection =
    MM_connIssuesManager_STRING
    > spMemberApproving.CommandText = "UPDATE tblMembers SET
    MemberApproved = 1
    > WHERE MemberID IN (" +
    Replace(spMemberApproving__MMColParam, "'", "''") +
    > ")"
    > spMemberApproving.CommandType = 1
    > spMemberApproving.CommandTimeout = 0
    > spMemberApproving.Prepared = true
    > spMemberApproving.Execute()
    >
    > Response.Redirect("default.asp")
    > %>
    >
    > However, in Dreamweaver 8.0.2 when you fill out the
    Update Command dialog
    > box,
    > Dreamweaver asks you to provide the ?Type? and ?Size?
    for the variables
    > (see:
    >
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=4e6b330a
    >
    >
    >
    > That being said and done, the code on the Update page
    looks like the
    > following:
    >
    > <%
    > ' IIf implementation
    > Function MM_IIf(condition, ifTrue, ifFalse)
    > If condition = "" Then
    > MM_IIf = ifFalse
    > Else
    > MM_IIf = ifTrue
    > End If
    > End Function
    > %>
    >
    > <%
    > if(Request.QueryString("MemberID") <> "") then
    > spMemberApproving__MMColParam =
    > Request.QueryString("MemberID")
    > %>
    > <%
    >
    > Set spMemberApproving = Server.CreateObject
    ("ADODB.Command")
    > spMemberApproving.ActiveConnection =
    MM_connIssuesManager_STRING
    > spMemberApproving.CommandText = "UPDATE tblMembers SET
    MemberApproved = 1
    > WHERE MemberID IN (?) "
    > spMemberApproving.Parameters.Append
    > spMemberApproving.CreateParameter("MMColParam", 202, 1,
    10,
    > MM_IIF(Request.QueryString("MemberID"),
    Request.QueryString("MemberID"),
    > spMemberApproving__MMColParam & ""))
    > spMemberApproving.CommandType = 1
    > spMemberApproving.CommandTimeout = 0
    > spMemberApproving.Prepared = true
    > spMemberApproving.Execute()
    >
    > Response.Redirect("default.asp")
    > %>
    >
    >
    > The Update Command works perfectly when only 1 record is
    being updated.
    > However, when I try to update more than one record I get
    the following
    > error:
    >
    > Error Type:
    > ADODB.Command (0x800A0D5D)
    > Application uses a value of the wrong type for the
    current operation.
    > /issues_manager/admin/members_approving.asp, line 27
    >
    >
    > Can anyone help me out?
    >
    >

  • Problem in update database record with torque

    Can anybody correct my mistake. please........
    Torque.init("E:/Upendra_working_directory/msh2.0/Torque.properties");
    System.out.println("State:     " + Torque.isInit());
    System.out.println("Connection Sucessfully........");
    Criteria crit = new Criteria();
    crit.add(AttachmentPeer.DISPOSITION, "buildfail09.xml");//selecting particular record
    List attachment = AttachmentPeer.doSelect(crit);
    System.out.println(attachment.size());
    Attachment obj = (Attachment)attachment.get(0);
    System.out.println("Attachment Location:     "+ obj.getAttachmentName());
    System.out.println("Attachment MessageID     "+ obj.getMessageId());
    obj.setAttachmentName("sssss"); //setting new value
    AttachmentPeer.doUpdate(obj); //update
    obj.save();
    System.out.println(Attachment Location:     (afterupdate)"+ obj.getAttachmentName());
    console print updated value.but if i check the table in database, it is not updated.
    Thanks in advance

    For anyone referencing this... I had missed adding the field to the MapBuilder so I can definitely suggest that you check the field is present everywhere it should be as no errors will be found if its only looking for the first 4 fields but you want 5 fields to be updated!!

  • Update multiple records with one submit?

    I can't for the life of me figure out how to do this. I have checkboxes with primary key id's listed as the value in a repeat region. I want to perform an update on 2 columns for all id's checked.
    SUDEO CODE
    <form>
    <cfoutput query ....
    other textfields...
               <input name="checkbox" type="checkbox" id="checkbox" value="#table.id#" />
    </cfoutput>
    SUBMIT BUTTON
    </form>
    My update statement:
    UPDATE table
    SET column1 = 1, column2 ='whatever'
    WHERE id IN (<cfqueryparam cfsqltype="cf_sql_integer" value="#TRIM(FORM.checkbox)#">)
    </cfquery>
    It only updates if I check one box, does nothing when more than one is selected.
    I also tried looping over the update statement but nothing seems to work.

    You were missing the list attribute to cfqueryparam (you can also
    replace the cfif with a null attribute on the cfqueryparam but it has
    the disadvantage of sending the query to the db: null="#Not
    Len(Trim(form.checkbox))#").
    <cfif Len(Trim(form.checkbox))>
    <cfquery ...>
    UPDATE table
    SET column1 = 1, column2 = 'whatever'
    WHERE id IN (<cfqueryparam cfsqltype="cf_sql_integer"
    value="#form.checkbox#" list="true">)
    </cfquery>
    </cfif>
    Mack

  • Event Structure: update the structure with a tab control

    Hi!
    I want to be able to update the code contained within an event structure by a tab control value change, in addition to the usual bool controller in the UI. 
    The problem is that the event structure don't seem to run when the bool has a value change for the tab control. I have made a short .vi to demonstrate. A counter is placed in the Event structure so it is possible to see if it is running or not. 
    Any ideas?
    Best regards
    Is my avatar the dog from the fraggle rock?
    Attachments:
    forum_question.vi ‏12 KB

    Here is a version of your code using a Value Signaling property node.
    I "think" it does what you want ...
    steve
    Help the forum when you get help. Click the "Solution?" icon on the reply that answers your
    question. Give "Kudos" to replies that help.
    Attachments:
    forum_question_mod 2009.vi ‏15 KB

  • Updating record with check out in Workflow by Import Server

    Hi,
    I have a Workflow starting with "Checkout". During the Workflow, a syndicate is executed, a WebService is called and the response is processed by Import Server.
    The record is not updated because it's u201Ccheckoutedu201D.
    The user that executes the Import Server is the Admin, which have all roles and the u201CAuto-Join checked out recordsu201D parameter is u201Cyesu201D.
    Can I update a record with check out by Import Server? The MDM version is 5.5.64.71
    Thank you,
    Evandro

    Lets start with this....
    1. Auto-Join checkout records -->Yes ; should join the record which is already checkedout as well as in workflow.
    2. Check the [owner] assigned to workflow record that might stop you to AUTO-JOIN this record to exisiting.
    please feel free to revert.
    thanks
    Alexander

  • Any BAPI/Function Module for adding new record with dates in PA0027

    Hi all,
    I am tryig to find is there any BAPI/Function module for updating new record with Start Date and End date for specified Personal Number in PA0027 Table.
    In PA0027 table i will be passing start date and end date for selected personal number, it needs to add new record with this details in the table checking the condition that this start date and end dates should not be between any of of start date and end dates for the specified personal number.
    thanks for ur time.
    Murali

    Hi Raj/Suresh thanks for ur answers.
    but i am having a problem,i gave this values.
    INFTY               -
                0027
    NUMBER              -
                00000010
    SUBTYPE             -
                010
    OBJECTID
    LOCKINDICATOR
    VALIDITYEND         -
                03/12/2006
    VALIDITYBEGIN       -
                03/01/2006
    RECORDNUMBER        -
                000
    RECORD              -
                P0027
    OPERATION           -
                CHK
    TCLAS               -
                A
    DIALOG_MODE         -
                0
    NOCOMMIT            -
                Y
    VIEW_IDENTIFIER
    SECONDARY_RECORD
    i am getting short dump saying that
    The source field is too short.
    The current program, "SAPLHRMM", tried to assign a field to a field symbo
    However, the field is shorter than the type of the field symbol, which
    is not allowed.
    The statement in question is in the form ASSIGN f TO <fs> CASTING or
    ASSIGN f TO <fs> with a field symbol that was created using the
    STRUCTURE addition.
    I tried  operation - Chage,Create (same thing for all inputs)
    is this correct funtion moduel for my requirment?
    what ever i am passing the start and end dates this should check in the table records with this personal number and if this start date and end dates are not between of any start and end dates then it should add new record with this dates.
    Thanks for ur time.
    Murali.

  • Sort multiple records with textfield

    Hi everyone!
    I want to sort from the backend all the products in a site.
    First, i use the repeat region server behavior, to list all the products. Added a textfield in each record, with the value of it's position (1, 2, 3, 4, etc).
    How can i update that?
    Just like Joomla! has in it's backend. A list with all the articles created, and the ability to change the order of the articles, changing it's number and pressing "save".
    Hope you guys understand me, my english is very very poor...
    Thanks in advance
    Cheers!
    A pic to better understanding:

    Since you refer to Joomla, I presume you want to do this with PHP/MySQL.
    Basically, you need to put your repeat region in a form, and submit the values of the product IDs and the new order numbers as arrays. To do this with PHP, you add a pair of square brackets after the form elements' names like this:
    <input type="text" name="product_id[]" value="....
    <input type="text" name="order[]" ...
    When the form is submitted, $_POST['product_id'] will contain an array of the primary keys, and $_POST['order'] will contain an array of the values inserted in the order text boxes.
    You then need to create a loop to update the existing records in the database. The following is not the full code, but should show you the basic principle:
    // connect to database
    for ($i = 0, $len = count($_POST['product_id']); $i < $len; $i++) {
        $sql = 'UPDATE products SET order = ' . mysql_real_escape_string($_POST['order'][$i]
               . ' WHERE product_id = ' . mysql_real_escape_string($_POST['product_id'][$i];
        mysql_query($sql);
    This loops through the $_POST['product_id'] array and updates each record with the appropriate value for order. The SQL query assumes that both product_id and order are numeric data types.

  • Update multiple records from list box

    The idea is to present a list box to allow for the selection
    of multiple records. The records' primary key field having been set
    up as the value parameter in the list box. Then use a single update
    statement to update all selected records with a common value.
    I have tried to do this using code similar to:
    UPDATE MyTable SET MyTable.MyColumn = 1 WHERE (
    MyTable.MyKeyField IN ( @ListOfIntegers ) )
    Where the parameter is configured thus:
    <Parameter Name="@ListOfIntegers" Value='<%#
    ((Request.Form["MyListBox"]' Type="Int" />
    The idea is that the multiple selection listbox will return a
    comma separated list, which should l work nicely with the WHERE
    [column] IN ( .. ) syntax.
    Unfortunatley if more than one record is selected the
    Complier throws a type conversion error.
    I want to do this using Dreamweaver and C# on .NET.
    Any ideas how to proceed ?

    Are you wanting to update multiple records with the same
    information or
    different information for each record?
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "lyleja" <[email protected]> wrote in
    message
    news:f1cpe5$jj1$[email protected]..
    > The idea is to present a list box to allow for the
    selection of multiple
    > records. The records' primary key field having been set
    up as the value
    > parameter in the list box. Then use a single update
    statement to update
    > all
    > selected records with a common value.
    >
    > I have tried to do this using code similar to:
    >
    > UPDATE MyTable SET MyTable.MyColumn = 1 WHERE (
    MyTable.MyKeyField IN (
    > @ListOfIntegers ) )
    >
    > Where the parameter is configured thus:
    > <Parameter Name="@ListOfIntegers" Value='<%#
    ((Request.Form["MyListBox"]'
    > Type="Int" />
    >
    >
    > The idea is that the multiple selection listbox will
    return a comma
    > separated
    > list, which should l work nicely with the WHERE [column]
    IN ( .. ) syntax.
    >
    > Unfortunatley if more than one record is selected the
    Complier throws a
    > type
    > conversion error.
    >
    > I want to do this using Dreamweaver and C# on .NET.
    >
    >
    > Any ideas how to proceed ?
    >
    >
    >

  • I have a m-audio producer usb microphone and since the update on Dec. 22, 2013 Logic hasn't been allowing me to record with it. Logic is reading the microphone as the input but the audio tracks don't have the record enable button. What's wrong?

    I have a m-audio producer usb microphone and since the update on Dec. 22, 2013 Logic hasn't been allowing me to record with it. Logic is reading the microphone as the input but the audio tracks don't have the record enable button and won't let me select an input for the audio track on the inspector panel. What are some possible solutions.

    Certain M-Audio USB devices (along with some other USB2 class compliant devices that don't use drivers) no longer work with Logic Pro X 10.0.5
    At this time it is unknown as to why this has happened. Nor is it known if Apple will need to fix it or if it is up to the Developers of said USB2 devices  to remedy the problem.
    In the mean time, assuming you made/could make backups prior to updating to 10.0.5.... the solution is to roll back to LPX 10.0.4...

Maybe you are looking for