Javascript validation on editable tableview column

Hi,
Sample scenario:
I have provided users with an option to enter say quantity in an editable column of tableview in all 5-6 rows. Now I want to check if the entered quantity is a numeric field or not.
Query:
had it been a single input field I could have written:
<_script for="Quantity" _event=onchange _type="text/javascript">
followed bt the required check
but in this case there is an editable column of a table view and so I am unable to identify the element to write the javascript.
Please help
Best Regards,
Saurabh Tripathi

Hi Saurabh,
Use tableView iterator method render_cell_start to define a call a javascript function for validation of entered value.
Something like...
case p_column_key
when 'QTY' .
IF p_edit_mode is not initial.
DATA: find type string,
            replace type string.
DATA: obj_fr type ref to cl_bsp_find_and_replace ,
           obj_bee type ref to cl_bsp_bee_table.
DATA: qty type ref to cl_htmlb_inputfield.
find = '<input' .
replace = `<input on_change="checkQTY(this.value,this.name);" . <--this line of code will call a JS function and pass it                                                                                the value of this field and name of this field.
obj_fr = cl_bsp_find_and_replace=>factory( find = find
                                                                        replace = replace
                                                                        mode = 'FIRST_OCCURANCE' ) .
qty = cl_htmlb_inputfied=>factory( id = p_cell_id
                                                        type = 'num'  ) .
CREATE OBJECT obj_bee.
obj_bee->add( level = 1 element = obj_fr ) .
obj_bee->add( level = 2 element = qty ) .
p_replacement_bee = obj_bee .
ENDIF.
Now in the layout of BSP page you define the JS function
checkQTY(val,name)
and check the entered value and the name of inputield where it was entered.
This name of inputfield will change dynamicaly when ever a new row is selected and page is refeshed.
Regards,
Anubhav

Similar Messages

  • Disabling validations if the first column is empty in an editable table

    Hi ,
    I'd want to disable validations if the first column in an editable table is empty - coz we'd assume that the user does not want to enter any data in the new row. How can this be done ?

    Hi Viren,
    It is correct that the first line for every Master Data is an empty row, if I am not wrong it derives from SEM settings.
    1.If you have some rows with 0CUST_SALES without any attribute it is because you are uploading this MAster Data with a source that does not consider compound objects: it is surely a Transactional DataSource (you do not upload Attributes). So for every Transactional record for which you do not upload also compound objects the system creates a record in your Master Data that is not correct.
    2. If you do not have Distr Channel update in Inventory Cube I think you must re-upload all your request starting from PSA. If you have deleted your PSA you can create a DataSource on your cube and feed once again your cube with its same data (built Update Rules that start from Cube and end in the same Cube). Make an upload of all your request and the delete all previous request.
    Ciao.
    Riccardo.

  • Client Side Javascript Validation not Working in Struts 1.x version

    hi,
    I'm following the steps provioded in the below link for Javascript Client side validation but still it is not working.I'm struggling to get this work.
    [http://www.visualbuilder.com/jsp/struts/tutorial2/pageorder/9/|http://www.visualbuilder.com/jsp/struts/tutorial2/pageorder/9/]
    "The framework automatically generates the browser specific JavaScript and validate the data only at the client side."From the above statement i undertstand that framework itself generates the javascript function for validating the field mentioned in validations.xml file so that we dont have to explicitly write a javascript function for
    validating the fields
    (or)
    Do we need to call an explicit function
    Please need help on this.
    I have followed all the steps mentioned on the above link but Client Side Javascript Validation not Working in Struts 1.x version....
    Thanks and Regards,
    Deepak

    Hi,
    Please find my steps below....still getting an error.
    2> which version of commons-validation.jar needs to be downloaded ...Link please
        downloaded the latest commons-validation.jar and placed in lib.refreshed the project,and did a build.
        3> which DTD name to be specified in "validator-rules.xml" which is in accordance to commons-validator.jar file.
    validator-rules.xml ::
    <!DOCTYPE form-validation PUBLIC
              "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
              "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd">validation.xml:
    <!DOCTYPE form-validation PUBLIC
    "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
    "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd">
    i did as u said and im gettiong the below errorNov 5, 2009 4:33:08 PM org.apache.struts.validator.ValidatorPlugIn initResources
    SEVERE: Invalid byte 2 of 2-byte UTF-8 sequence.
    org.apache.commons.digester.xmlrules.XmlLoadException: Invalid byte 2 of 2-byte UTF-8 sequence.
         at org.apache.commons.digester.xmlrules.FromXmlRuleSet.addRuleInstances(FromXmlRuleSet.java:139)
         at org.apache.commons.digester.Digester.addRuleSet(Digester.java:1610)
         at org.apache.commons.digester.xmlrules.DigesterLoader.createDigester(DigesterLoader.java:89)
         at org.apache.commons.validator.ValidatorResourcesInitializer.initialize(ValidatorResourcesInitializer.java:122)
         at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:238)
         at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:181)
         at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1036)
         at org.apache.struts.action.ActionServlet.init(ActionServlet.java:455)
         at javax.servlet.GenericServlet.init(GenericServlet.java:212)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
         at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:927)
         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:890)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
         at org.apache.catalina.core.StandardService.start(StandardService.java:448)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
    Need help forum members.....
    Please reply to my question 1  which has been asked before as belowDo i need to write explicit javascript function for validation in Struts (or) struts generates the javascript function by itself.??? Please explain with an example....
    Edited by: Deepak_A_L on Nov 5, 2009 4:37 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Htmlb tableview column width

    Hello
    I need to set the column width of tableview Columns. I have width information in number of char. Basically i know the Column data type length and column title length. and i have to set the width equal to maximum of above two.
    But in tableview Column, we can only set the width in pixel. And this option give different result on desktop computer and laptop.
    Please let me know if anyone faced this problem before. It is very urgent for me.
    Regards
    Saurabh Garg

    Hi Saurabh,
    Lets say you have 10 coulumns.....then keep the width of tableView as 100%...
    using 160% will make it bigger than the screen....and then set eaxch coulumn width as 10%.
    Also if you are using iterator or tableViewControltab ColoumnDefinitions, then use the wrapping property...This will wrap the text in multiple lines...provided there is a space in between....
    This should work...
    Thanks,
    Tatvagna.
    Message was edited by:
            Tatvagna Shah

  • JavaScript validation/override red borders?

    We are creating numerous forms in LiveCycle and are very averse to having to specify "User Entered - Required" for two main reasons:
    doing so places those ugly, red boarders around required fields
    most fields on most forms are required, we don't want to clutter our forms with red borders
    The problem we encounter is that users can submit empty forms/null values via email, and I yet to find a way around this. Incomplete forms/data, particularly on things like requisitions and the like, can lead to delays in processing. We want to mitigate that by forcing client-side validation before users submit their forms via email.
    I am very new to both LiveCycle and JavaScript.
    I have tried
    fieldname.mandatory = "This cannot be left blank.";
    tied to the validate event, but this does not seem to do anything: users can still submit forms, even if the value is null/empty.
    Where this would most be used is with text and numeric fields and, occasionally, with radio buttons/exclusion groups.
    Can someone please help me figure out simple client-side JavaScript validation (or other method) that would force users to enter values in these mandatory fields before submitting, preferably without having to subject our users to the hideous borders?

    Thank you; a blog post I found contained the answer I was looking for. Essentially:
    Now you see me, now you don’t.
    Interactive forms highlight where you should enter data. To turn this highlighting on, click the Highlight Existing Fields button.
    The fillable fields within the form (see example below) are highlighted in a light blue color. This lets you enter information into these fields. By default, Adobe® Reader® displays a red border around required fields. Pretty dang ugly, huh?
    Fortunately, it can be turned off.  This script (placed on a form:ready event) will do the trick:
        if (xfa.host.name == "Acrobat")
    app.runtimeHighlight = false;
    Here’s how we achieve this:
    Part 1:
    In the Object palette, click the Value tab. Under Type, choose User Entered – Required.
    First, we need to define which fields are mandantory/required. Click within the desired field to select it.
    You can assign as many mandatory fields as the form requires. When you are finished doing this, enter the Script Editor.
              Note:   To show or hide the Script Editor window as you need it, click the toggle.
    Select the form:ready event. Be sure JavaScript is the chosen scripting language to run on the Client.
    Type the following script into the window:
        if (xfa.host.name == "Acrobat")       app.runtimeHighlight = false;
    Save your work.
    Part 2:
    From the File menu, choose Form Properties.
    Click the Form Validation tab.
                   Click Color Failed Fields.               Check the box next to Color fields and fail their validations.
    To turn borders off, click the arrow next to Border Color, then click the box.
    To define a background color, click the arrow next to Background Color, the choose More Colors.
    Select the first available empty box, then click Define Custom Colors.
    Define a custom color per your visual identity guidelines.
    When you are finished, click on Add to Custom Colors, then click OK.
    Click OK on the Form Properties window.
    Save your work.
    The result? When the user tries to submit a form without first entering data into the required fields, an alert message is displayed.
    When the user clicks OK to clear the error message, form submission is cancelled.
    Failed fields are highlighted in an attractive way—without red borders.

  • How to put custom check box in a tableview column

    Hi,
    I would like to put a custom checkbox in a tableview column for each row of the table.
    Such that when the user selects the rows and among those rows if for fews rows this checkbox is active, i need to do some special processing. how can i add a custom check box to a tableview column.
    Can anyone help me in this regard?
    Thanks and Regards,
    Kumar

    Hi,
    You can use the checkbox code within your tableview column:
    <htmlb:tableView id = ".."
    >
    <htmlb:tableViewColumn id = " "
    type = "USER"
    >
    <htmlb:checkBox id = ".."
    selected = " "
    />
    </htmlb:tableViewColumn>
    </htmlb:tableView>
    I hope it helps.
    regards,
    Rohit

  • Form report with both edit and column link

    hi experts,
    How can we create form report with both edit and column link. Ie, the form should have both the Edit link and column link. When we click on the edit link(in page1) it should go for the page2 and the page2 should display the corresponding row fields which should be editable. but when i click the column link it should bring me to the next page but the corresponding values of the column should not be editable.
    Regars,
    KK

    hi,
    Here i have achieved this by making the column link and page navigation.

  • TableView: column header text alignment?

    How can I change the text alignment of a TableView column caption/header? I'd like some of my column headers to be right aligned for example?
    It works for regular table cells when I change f.i. the css of the custom DataFX MoneyTableCell cell:
    .money-cell {
       -fx-alignment: TOP_RIGHT;
    }but it won't work for the ".table-view .column-header" style of the standard TableView:
    .table-view .column-header,
    .table-view .filler,
    .table-view .column-drag-header {
        -fx-alignment: TOP_RIGHT;
    }

    Just after raising this I realised the problem is that the text is a label on top of the header. You can right align by using the following selector:
    .table-view .column-header .label {
        -fx-alignment: TOP_RIGHT;
    }

  • How to put javascript validation in the text form ?

    Hi,
    I would like to validate 1 of the field in the interactive form. where i can put the javascript validation script ?
    f.setAction(
    "Validate",
    u2018AFRange_Validate(true, 0, true, 100)u2019
    and also can i force setfocus() in the formal javascript in the interactive forms ? so if the validation not correct the user cannot quit from the field.
    Thank You and Best Regards
    Fernand Lesmana

    Hi
    Use the exit event.
    You can set focus to the fields as
    xfa.host.setFocus(xfa.form.form1.TextField);
    Kind Regards
    Mukesh

  • How to implement JavaScript validation in JSF

    Dear all,
    if i wish to implement JavaScript front end validation function in JSF. what should i do?
    thanks.

    Hi,
    in Core JSF from David Geary there is a chapter on using
    Jakarta Commons Validator for javaScript validation
    source could be found here:
    http://www.horstmann.com/corejsf/
    HTH,
    Matthias

  • JavaScript: Disabling textarea in report column cell  depending on flag

    Hi,
    I got an updateable report with the following behavior:
    - Depending on the value of column "PFT_PCODE" (1 or 2) the column gets a yellow or red background color.
    - If the value of column "PFT_PCODE" is 1 the next column (for remarks) gets a grey background color.
    - Some flags get values set.
    With the kind help of Andy (ATD) I got that running nicely. See also:
    Javascript - Referencing report column value and
    JavaScript: Disabling textarea in report column cell
    Now I want to add an additional feature:
    - If a flag ('P11_SPERR_FLAG') has the value '1' then the column (remarks) (var j) should be disabled.
    I tried the following (see additional code between asterisks) but it's not working. I feel a little stupid since I thought that shoud be an easy fix.
    Anyone has an idea what's wrong with the additional code? I find debugging quite difficult in JavaScript...
    ////////////////// PAGE HTM HEADER //////////////
    function hilite(f1) {
    var ft1 = document.getElementById('P11_FEHLERTYP1_FLAG');
    ft1.value = '0';
    var ft2 = document.getElementById('P11_FEHLERTYP2_FLAG');
    ft2.value = '0';
    *var sperrflag = document.getElementById('P11_SPERR_FLAG');*
    var h = 0;
    if (document.getElementById(f1)) {
         h = document.getElementById(f1);
         var t = h.parentNode;
         while (t.tagName != 'TABLE') {
              t = t.parentNode;
         var rows = t.rows;
         var k;
         var i;
         var j;
         var c;
         var headers = t.getElementsByTagName("TH");
         for (k = 0; k < headers.length; k++) {
              if (headers[k].id == f1) {
                   c = k;
         for (k = 1; k < rows.length; k++) {
              i = rows[k].cells[c];
              j = rows[k].cells[c+1].getElementsByTagName("TEXTAREA")[0];
              *if (sperrflag.value == '1') {*
    *               j.disabled = 'true';*
              if (i.innerHTML == '2') {
                   i.style.backgroundColor = 'yellow';
                   i.style.color = 'white';
                   i.style.fontWeight = 'bold';
                   i.style.fontSize = '18px';
                   ft2.value = '1';
              if (i.innerHTML == '1') {
                   i.style.backgroundColor = 'red';
                   i.style.color = 'white';
                   i.style.fontWeight = 'bold';
                   i.style.fontSize = '18px';
                   j.style.backgroundColor = 'grey';
                   ft1.value = '1';
                   //j.disabled = 'true'; //This would work.
    ////////////////// REGION FOOTER //////////////
    <script type="text/javascript">
    hilite('PFT_PCODE');
    </script>Thank you,
    Roger

    I found the solution, it had nothing to do with JavaScript:
    Item P11_SPERR_FLAG was of type Diplay as Text / Doesn't save state.
    Without saving state the JavaScript wouldn't work.
    Sorry to bother,
    Roger

  • While editing the columns in ADo net source not refresh the columns

    Hi,
    When i am editing the columns in the adonetsource can't able to edit it.
    EG:
    id       name     sal are the available columns
    select id, 'name' as ename,sal from emp.
    I Edited this query as :
    select  id, 'empname' as ename,sal from emp
    It won't affect in the source. & how to change the query using expression. in adonetsource there is no data access mode as from varible.   pls help on it.
    Thanks

    Hi Sai,
    Let me know what you are trying to Edit in columns. You want to alias the column name or you want to edit the string of column.
    Column Aliasing : 
    select id, name as EmpName, sal from emp
    Check with this and let me know if you still facing issues.
    Regards,
    Vaishu

  • Do editable a column of a ALV (object oriented programming)

    Hello,
    How I can do editable a column of a ALV (object oriented programming) ??
    What field of a fieldcatalog let it ??
    Thanks.
      wa_fieldcatalog-fieldname = 'NUM_KGS'.
      wa_fieldcatalog-seltext = 'Kg'.
      wa_fieldcatalog-coltext = 'Kg'.
      wa_fieldcatalog-just = 'L'.
      wa_fieldcatalog-tabname = 'IT_DATOS'.
       wa_fieldcatalog- ?????????

    In the program add the following field
    wa_fieldcatalog-EDIT = 'X'.
    append wa_fieldcatalog.
    you will get the column editable

  • Editing a Column in Hirerachial ALV

    Hi,
    I have ALV Report which had been displayed using CL_SALV_HIERSEQ_TABLE.
    Now I got a Requirement To add a column at Item level to add Comments.
    Is it possible to Edit a Column in Hirarichal ALV? Is any other way to add comments to the List in a column?
    your suggestions are valuable...Please reply..
    Thanks,
    J.

    Hi sekhar,
    the HIER_SEQ class is for classical LIST output, here (as in all SALV applications) you have no input possibility.
    You could add a COMMENT column to your table and program a (double-click?) event. This could issue a popup and ask for the commentary. Then you could modify and refresh the list.
    See program SALV_DEMO_HIERSEQ_EVENTS for catching the event. I hope, you can do the rest.
    Kind regards,
    Clemens

  • Can't edit certain column [MySQL/phpMyAdmin]

    Hi there,
    I got a little problem with my new website. The thing is that I got web page that edits entries in my phpmyAdmin database.
    This works with the only exeption that I can not edit the column "uhrzeit", everything else works like a charm. ;-)
    here is the php-code of that site: (I highlighted where ever the "uhrzeit" column appears)
    <?php require_once('../Connections/Ortner_db.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    $_POST['datum'] = date("Y-m-d", strtotime($_POST['datum'])); 
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
      $updateSQL = sprintf("UPDATE ortner_termine SET datum=%s, was=%s, beschreibung=%s, wo=%s, Uhrzeit=%s WHERE id=%s",
                           GetSQLValueString($_POST['datum'], "date"),
                           GetSQLValueString($_POST['was'], "text"),
                           GetSQLValueString($_POST['beschreibung'], "text"),
                           GetSQLValueString($_POST['wo'], "text"),
                           GetSQLValueString($_POST['uhrzeit'], "text"),
                           GetSQLValueString($_POST['id'], "int"));
      mysql_select_db($database_Ortner_db, $Ortner_db);
      $Result1 = mysql_query($updateSQL, $Ortner_db) or die(mysql_error());
    mysql_select_db($database_Ortner_db, $Ortner_db);
    $query_termin_auswahl = "SELECT id, datum, was, wo FROM ortner_termine ORDER BY id DESC";
    $termin_auswahl = mysql_query($query_termin_auswahl, $Ortner_db) or die(mysql_error());
    $row_termin_auswahl = mysql_fetch_assoc($termin_auswahl);
    $totalRows_termin_auswahl = mysql_num_rows($termin_auswahl);
    $colname_termin_edit = "-1";
    if (isset($_GET['Termineintrag'])) {
      $colname_termin_edit = $_GET['Termineintrag'];
    mysql_select_db($database_Ortner_db, $Ortner_db);
    $query_termin_edit = sprintf("SELECT * FROM ortner_termine WHERE id = %s", GetSQLValueString($colname_termin_edit, "int"));
    $termin_edit = mysql_query($query_termin_edit, $Ortner_db) or die(mysql_error());
    $row_termin_edit = mysql_fetch_assoc($termin_edit);
    $totalRows_termin_edit = mysql_num_rows($termin_edit);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Christian Ortner</title>
    <meta name="author" content="[email protected]"/>
    <meta name="copyright" content="Webdesign: Matthias Damoser / media powerplant"/>
    <link href="../styles.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="wrapper">
         <div id="header"><a href="../index.php"><img src="../bilder/header.jpg" width="616" height="109" alt="Christian Ortner Startseite" /></a></div><!-- end of header -->
        <div id="menu">
             <ul>
                 <li><a href="../bio.html">Biografie</a></li>
                <li><a href="../musik.html">Musik</a></li>
                <li><a href="../medien.html">Medien</a></li>
                <li><a href="../projekte.html"> Projekte</a></li>
                <li><a href="../termine.php">Termine</a></li>
                <li><a href="../kontakt.html">Kontakt</a></li>
            </ul>
        </div><!-- end of menu -->
      <div class="trenner"></div><!-- end of trenner -->
        <div id="redaktion">
        <h3>Willkommen im Administrationsbereich</h3>
        <p>Hier können Sie bereits bestehende Termine bearbeiten:</p>
        <form id="terminauswahl" name="terminauswahl" method="get" action="date_edit.php">
        Bitte auswählen:
          <select name="Termineintrag" id="Termineintrag" tabindex="10">
            <?php
    do { 
    ?>
            <option value="<?php echo $row_termin_auswahl['id']?>"><?php echo $row_termin_auswahl['was']?> (<?php echo $row_termin_auswahl['datum']?> )</option>
            <?php
    } while ($row_termin_auswahl = mysql_fetch_assoc($termin_auswahl));
      $rows = mysql_num_rows($termin_auswahl);
      if($rows > 0) {
          mysql_data_seek($termin_auswahl, 0);
           $row_termin_auswahl = mysql_fetch_assoc($termin_auswahl);
    ?>
          </select>
          <input type="submit" name="button" id="button" value="auswählen" />
        </form>
        <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
          <table align="center">
            <tr valign="baseline">
              <td nowrap="nowrap" align="right">Datum:</td>
              <td><input type="text" name="datum" value="<?php echo htmlentities($row_termin_edit['datum'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
            </tr>
            <tr valign="baseline">
              <td nowrap="nowrap" align="right">Art der Veranstaltung:</td>
              <td><input type="text" name="was" value="<?php echo htmlentities($row_termin_edit['was'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
            </tr>
            <tr valign="baseline">
              <td nowrap="nowrap" align="right">zusätzlich Beschreibung (optional):</td>
              <td><input type="text" name="beschreibung" value="<?php echo htmlentities($row_termin_edit['beschreibung'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
            </tr>
            <tr valign="baseline">
              <td nowrap="nowrap" align="right">Ort der Veranstaltung:</td>
              <td><input type="text" name="wo" value="<?php echo htmlentities($row_termin_edit['wo'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
            </tr>
            <tr valign="baseline">
              <td nowrap="nowrap" align="right">Uhrzeit:</td>
              <td><input type="text" name="Uhrzeit" value="<?php echo htmlentities($row_termin_edit['uhrzeit'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
            </tr>
            <tr valign="baseline">
              <td nowrap="nowrap" align="right"> </td>
              <td><input type="submit" value="Datensatz aktualisieren" /></td>
            </tr>
          </table>
          <input type="hidden" name="id" value="<?php echo $row_termin_edit['id']; ?>" />
          <input type="hidden" name="MM_update" value="form1" />
          <input type="hidden" name="id" value="<?php echo $row_termin_edit['id']; ?>" />
        </form>
    <p class="backlink"><a href="../redaktionssystem.php">zurück zur Termin Verwaltung</a></p>     
       </div><!-- end of redaktion -->
    <div id="rot"></div><!-- end of rot-->
        <div id="fotobereich"></div>
         <p>Copyright © 2010 | Alle Rechte vorbehalten | <a href="impressum.html">Impressum</a> | <a href="kontakt.html">Kontakt</a> | <a href="redaktionssystem_login.php">Log-In</a> |</p>
    </div><!-- end of wrapper -->
    </body>
    </html>
    <?php
    mysql_free_result($termin_auswahl);
    mysql_free_result($termin_edit);
    ?>
    Thank you very much for your help!

    I barely understand ur script because it's not fully in English but I guess I could say u are trying to update the ortner_terminate table right?I think for the date u should change like below.
    $date = date("Y-m-d", strtotime($_POST['datum'])); 
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
      $updateSQL = sprintf("UPDATE ortner_termine SET datum='$date', was=%s, beschreibung=%s, wo=%s, Uhrzeit=%s WHERE id=%s",
                           GetSQLValueString($_POST['was'], "text"),
                           GetSQLValueString($_POST['beschreibung'], "text"),
                           GetSQLValueString($_POST['wo'], "text"),
                           GetSQLValueString($_POST['uhrzeit'], "text"),
                           GetSQLValueString($_POST['id'], "int"));
      mysql_select_db($database_Ortner_db, $Ortner_db);
      $Result1 = mysql_query($updateSQL, $Ortner_db) or die(mysql_error());
    Well, I could say u are trying to display the data on form once u clicked the option from list menu. U have to change the termin_edit recordset by filter it as below.
    Not using the URL parameter since u are trying to view the data on the same page.

Maybe you are looking for

  • DELETING MUSIC FROM YOUR ITUNES LIBRARY AND COMPUTER

    I USED TO DELETE SONGS AND IT WOULD ASK ME IF I WANTED TO KEEP THE FILE OR MOVE TO TRASH, NOW IT DOESNT ASK ME THAT. WHEN I TRY TO DELETE IT JUST TELLS ME IF I DELETE IT WILL BE REMOVED FROM ALL IPODS, ETC. AND IF I DELETE IT IT DOESNT SHOW UP IN MY

  • HT1918 Would like to manage more than one iphone on my account

    My son now has an iPhone and I would like to manage both accounts under my account. Please tell me how to set this up.

  • MM- Contract purchase order

    Dear all, can any one tell me how  to create contract purchase order???? Regards, Shoiab

  • Proxy error in CRM

    Hello, The scenario is from XI->CRM,  the reciever communicaiton channel is as below. PROXY_INVOICE_Recv, Transport protocol : http 1.0. Now i need to debug the proxy in my recieving system CRM. Can some body guide about this. Thanks in advance. Best

  • Preview problem in Photoshop CS4

    When I open a folder in CS4, I get no preview. I'm running a mac with 4gigs of RAM on Snow Leopard 10.6.8. Do I need to upgrade just to get preview? Why aren't there any forums left for Photoshop CS4?