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.

Similar Messages

  • Adding Multiple Records with Express

    Hello All,
    We have a CRUD application written in Express 2.0 that allows users to
    enter part numbers and associated information. Our part numbers are
    structured as a prefix, alpha, suffix and 'M' or 'P' number variations :
    1 AB 2 P3 for example. We have provided functionality to allow the
    user to enter multiple P or M variations all at once, say 1 AB 2 P1 thru
    P100,
    using a dialog box where they enter the starting number, ending number
    and step.
    The problem comes in the AddRecordsToSave method.
    This method correctly builds the array of BusinessClass needed to be
    passed to the Save method, however, the Save method adds only the
    initial record (the one from the original Express data entry screen)
    to the database.
    I have traced the problem to the BusinessClient.Update method called
    from
    Save. I believe I am missing some query information that should be
    built into
    AddRecordsToSave, but I am completely unsure of how to provide this.
    As you can see in the attached code, we are using the LogAttr method to
    post
    changes. Apparently this is not enough. What am I missing here?
    The InstanceStatus key of the added records is set to ST_EMPTY by
    default....
    I have tried forcing this to ST_UPDATE, only to receive an error that it
    should
    be ST_EMPTY......?? I am confused. If anyone can shed some light on this
    for me,
    I would appreciate it. Thanks for any help.
    Scott Guman E-mail: [email protected]
    IRM Analyst II Phone: (610) 709-2144
    Mack Trucks, Inc. Fax: (610) 709-4713
    Allentown, PA 18105

    Hi There,
    If attr is not specified in your LogAttr() call, the
    BusinessClass
    will be put in the update state but not attributes will
    be logged.
    That may be the reason why only the displayed record(
    fetched from
    the DB ) is getting logged, but not the new records.
    I think you should use ATTR_SIMPLE with LogAttr. This
    will cause
    all the attributes to be logged and a proper query to
    be built
    to insert the newly created record. I am no Express
    Guru,
    but it works fine for me. Also, try not to modify
    InstanceStatus directly.
    Sometimes it might lead to inconsistencies. The online
    help
    The Add Records to Save example really helps.
    Good luck!
    Ajith Kallambella. M.
    Forte Systems Engineer,
    International Business Corporation
    -----Original Message-----
    From: Scott Guman [SMTP:[email protected]]
    Sent: Wednesday, September 16, 1998 9:34 AM
    To: 'Forte Users'
    Subject: Adding Multiple Records with Express
    Hello All,
    We have a CRUD application written in Express 2.0 that
    allows users to
    enter part numbers and associated information. Our
    part numbers are
    structured as a prefix, alpha, suffix and 'M' or 'P'
    number variations :
    1 AB 2 P3 for example. We have provided functionality
    to allow the
    user to enter multiple P or M variations all at once,
    say 1 AB 2 P1 thru
    P100,
    using a dialog box where they enter the starting
    number, ending number
    and step.
    The problem comes in the AddRecordsToSave method.
    This method correctly builds the array of BusinessClass
    needed to be
    passed to the Save method, however, the Save method
    adds only the
    initial record (the one from the original Express
    data entry screen)
    to the database.
    I have traced the problem to the BusinessClient.Update
    method called
    from
    Save. I believe I am missing some query information
    that should be
    built into
    AddRecordsToSave, but I am completely unsure of how to
    provide this.
    As you can see in the attached code, we are using the
    LogAttr method to
    post
    changes. Apparently this is not enough. What am I
    missing here?
    The InstanceStatus key of the added records is set to
    ST_EMPTY by
    default....
    I have tried forcing this to ST_UPDATE, only to receive
    an error that it
    should
    be ST_EMPTY......?? I am confused. If anyone can shed
    some light on this
    for me,
    I would appreciate it. Thanks for any help.
    Scott Guman E-mail:
    [email protected]
    IRM Analyst II Phone: (610) 709-2144
    Mack Trucks, Inc. Fax: (610) 709-4713
    Allentown, PA 18105
    << File: AddRecordsToSave.txt >>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Multiple records with select option

    i have to use select option in selection screen, which wl take the multiple values but that select option wont act as a range, the select option is a session name  from sm35, the table from where data is retrieved is APQI, i have used  a parameter before using select option ,like:
    selection-screen begin of line.
    parameters: P_grpid like apqi-groupid.
    select-options: s_grpid like apqi-groupid.
    selection-screen end of line.
    AT-SELECTION SCREEN ON VALUE REQUEST FOR p-GRPID. " previous situation
    {the code starts
    FM F4 selection is called}
    AT-SELECTION SCREEN ON VALUE REQUEST FOR S_GRPID-low. " CURRENT situation
    FM F4 selection is called}
    now when i give data in slection screen for s_grpid-low then it works as a parametr, but it doesnt take multiple values at s_grpid when i have alos mentioned the same for s_grpid-high.
    Please tell me how to achive multiple records with select option, or u can also send a sample code if you have..
    Thanks
    Swarnali

    Hello Swarnali,
    You need to fill internal table of select-option once you got into the event AT SELECTION-SCREEN ON VALUE REQUEST FOR so_carr-LOW.
    so sudo code will be:
    AT SELECTION-SCREEN ON VALUE REQUEST FOR so_carr-LOW.
    Select data from table.
       so_carr-LOW = value
       append so_carr.
    You can also use NO INTERVAL to suppress the so_carr-HIGH value on selection screen.
    Thanks,
    Augustin.

  • Sort multiple record block

    Hi,
    i want to sort a multiple record block by pressing a key on a non updatable field in the block.
    Example:
    i have a list of adresses in the block. Now i want to jump to all Adresses which starts with B.
    Does anybody know a solution ?
    Thanks in advance. MM

    No problem:
    When your records are ordered by the name (using block's order-by-clause),
    use a procedure like the following:
    procedure find_name(p_letter in varchar2) is
    begin
      go_block('BLOCK');
      loop
        exit when :system.last_record = 'TRUE' or :block.name >= p_letter;
        next_record;
      end loop;
    end;

  • Loading Hex Files with multiple records with each line starting with : record marker, how do I load this hex file into a front panel table ? thanks in advance, Jeff.

    I have written a routine that loads a Hex file, checks for record marker,length,address etc then loads the data into a table on front panel. However, my routine only loads single record hex files. I need to be able to load multiple record files, I need to identify the ':' colon record marker start for each record in the hex file, I just can't see how to loop my routine so that all records with ':' prefix marker are loaded.

    Jeff,
    I'm not exactly sure of what you are trying to do. Is it possible you could post your code, or a screen shot of the diagram in question, so that I can get a better understanding, and possibly offer some assistance?
    I am familiar with hex files, but not with the : marker separating records. This may be able to be solved with simple text parsing, and as I am not familiar with how you are retrieving and/or displaying the files, I require more information.
    Thanks

  • Delete multiple records with MDM WebService

    Hi everyone!
    I'm using an MDM Web Service with delete functionality. It identifies records to be deleted either by internal ID or by defined field value. The point is that i need this web service to delete all records with one specific value in specific field (lets say all the records with value "hidden" in field "VISIBILITY").
    But when I try to map value "hidden" of the field "VISIBILITY" to the web service input in BPM it says in tracing that there are multiple fields with that value in the table (certainly there are) and that it can't process them. Cause it doesn't support multiple processing. Is there any way to do that?
    Thanks in advance,
    Peter

    Hi Peter,
    I guess you can do that if you first retrieve the internalIDs of the to be deleted records:
    Do a search for the records with the field value.
    Then you will receive the internalIds of them.
    Then you can put these internalIds to the delete records webservice. Each in a new element of the record identification.
    I hope this helps!
    Best regards,
    Stefan Brauneis

  • Display multiple records with CSS

    PHP MySQL
    I have a MySQL table with several columns and multiple
    records... it is easy
    to display these records in a <table> using the repeat
    record server
    behavior applied to the <tr> that displays the records.
    I would like to do this with CSS and eleminate
    <table>'s
    My question is can this be done displaying the records in a
    <div> using the
    repeat record server behavior?
    Or is this just one of those things that a <table> is
    required?
    Jeff

    Displaying rows of data is actually the reason tables were
    originally
    invented. :)
    You need a table with the number of columns for your data and
    two rows. The
    first row is for the column headers. The second row is for
    the PHP
    placeholder that will be replaced with data. Apply the repeat
    region to
    this second row either for all rows or the number of rows you
    desire to
    display on one page .. in which case you would also use
    recordset paging.
    (previous, next)
    Nancy Gill
    Adobe Community Expert
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
    A Beginner''s
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "Jeff" <[email protected]> wrote in message
    news:erindt$i70$[email protected]..
    > PHP MySQL
    > I have a MySQL table with several columns and multiple
    records... it is
    > easy to display these records in a <table> using
    the repeat record server
    > behavior applied to the <tr> that displays the
    records.
    >
    > I would like to do this with CSS and eleminate
    <table>'s
    > My question is can this be done displaying the records
    in a <div> using
    > the repeat record server behavior?
    > Or is this just one of those things that a <table>
    is required?
    >
    > Jeff
    >

  • Edit multiple records with BC4J and Struts-JSP

    Hi everybody,
    I'm building BC4J components using entities and views and JSP business components. How can I edit and update multiple records at a time with Struts-Jsp ? Have someone already an example (with JSP and ActionForm code) ?
    thank you

    Hi,
    Nobody have an example ? Is it so difficult ?
    Thanks

  • Multiple Records with USB-5113

    Does the high speed digitizer USB-5133 has the multi-records feature?
    I tried many ways to program this feature with error "not suffisent memory on board"
    Need help.
    Harold Hebert
    National Research Council Canada

    Hi Harold,
    The NI 5132/5133 does not support Multiple Record Acquisition or Continuous Acquisition, which is why you are running into problems. I have included a link to a KnowledgeBase Article that discusses this issue and includes some benchmarks.
    NI USB-5132/5133 Acquisition Benchmarks
    http://digital.ni.com/public.nsf/allkb/ED7EC255D9FC1C1E862573A10059C902?OpenDocument
    Steve B

  • Insert multiple records with php

    please help me
    I have a problem in a multiple input records
    please help ...............
    example script:
    <?php require_once('Connections/koneksi.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $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']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO mhs (NIM, NAMAMHS, ALAMAT) VALUES (%s, %s, %s)",
                           GetSQLValueString($_POST['NIM'], "text"),
                           GetSQLValueString($_POST['NAMAMHS'], "text"),
                           GetSQLValueString($_POST['ALAMAT'], "text"));
      mysql_select_db($database_koneksi, $koneksi);
      $Result1 = mysql_query($insertSQL, $koneksi) or die(mysql_error());
      $insertGoTo = "baru.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    $maxRows_Recordset1 = 10;
    $pageNum_Recordset1 = 0;
    if (isset($_GET['pageNum_Recordset1'])) {
      $pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
    $startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;
    mysql_select_db($database_koneksi, $koneksi);
    $query_Recordset1 = "SELECT * FROM mhs";
    $query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
    $Recordset1 = mysql_query($query_limit_Recordset1, $koneksi) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    if (isset($_GET['totalRows_Recordset1'])) {
      $totalRows_Recordset1 = $_GET['totalRows_Recordset1'];
    } else {
      $all_Recordset1 = mysql_query($query_Recordset1);
      $totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
    $totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;
    ?><!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>Untitled Document</title>
    </head>
    <body>
    <p> </p>
    <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
      <table border="1">
        <tr>
          <td>NIM</td>
          <td>NAMAMHS</td>
          <td>ALAMAT</td>
          <td> </td>
        </tr>
        <?php do { ?>
        <tr>
          <td><?php echo $row_Recordset1['NIM']; ?></td>
          <td><?php echo $row_Recordset1['NAMAMHS']; ?></td>
          <td><?php echo $row_Recordset1['ALAMAT']; ?></td>
          <td><table align="center">
            <tr valign="baseline">
              <td nowrap="nowrap" align="right">NIM:</td>
              <td><input type="text" name="NIM" value="" size="32" /></td>
            </tr>
            <tr valign="baseline">
              <td nowrap="nowrap" align="right">NAMAMHS:</td>
              <td><input type="text" name="NAMAMHS" value="<?php echo $row_Recordset1['NAMAMHS']; ?>" size="32" /></td>
            </tr>
            <tr valign="baseline">
              <td nowrap="nowrap" align="right">ALAMAT:</td>
              <td><input type="text" name="ALAMAT" value="<?php echo $row_Recordset1['ALAMAT']; ?>" size="32" /></td>
            </tr>
            <tr valign="baseline">
              <td nowrap="nowrap" align="right"> </td>
              <td> </td>
            </tr>
          </table></td>
        </tr>
        <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
      </table>
      <input type="hidden" name="MM_insert" value="form1" />
      <input type="submit" value="Insert record" />
    </form>
    <p> </p>
    </body>
    </html>
    <?php
    mysql_free_result($Recordset1);
    ?>

    PowerMilk wrote:
     I want to update multiple rows with one click on the submit button.Unfortunately, it doesn't work. What is wrong in the code?
    It would be more helpful if you were to say what happens. "It doesn't work" isn't very helpful.
    However, a quick look at your code reveals that your hidden field that contains the ID is outside the loop (repeat region) in your form. Move it inside the loop like this:
    <?php do { ?>
    <tr>
       <td><input name="dag[]" type="text" value="<?php
    echo $row_rsWijzigOpeningsuren['dag']; ?>" size="15" maxlength="15"
    /></td>
       <td><input name="voormiddag[]" type="text" value="<?php echo
    $row_rsWijzigOpeningsuren['voormiddag']; ?>" size="15" maxlength="15"
    /></td>
       <td><input name="namiddag[]" type="text" value="<?php echo
    $row_rsWijzigOpeningsuren['namiddag']; ?>" size="15" maxlength="15"
    /></td>
    </tr>
    <input name="id[]" type="hidden" value="<?php echo $row_rsWijzigOpeningsuren['id']; ?>" />
    <?php } while ($row_rsWijzigOpeningsuren = mysql_fetch_assoc($rsWijzigOpeningsuren)); ?>

  • 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

  • How to return multiple record with Oracle Native Web Service?

    Dear all,
    I would like to know that the oracle native web service can be able to return multiple records to client or not?
    I successfully developed the oracle native web service for returning single record but the next challenge is to develop web service in order to return multiple record (like Employees data base on each department)
    Thank and Regards,
    Zenoni

    I successfully developed the oracle native web service for returning single record but the next challenge is to develop web service in order to return multiple record (like Employees data base on each department)You could return a list (multiple values/records) in XML format (using XMLType or CLOB), or CSV, or JSON, or whatever.
    function get_employees (p_department_id in number) return clob
    as
    begin
      return 'your_xml_string_here';
    end get_employees;It would be up to the client (the caller of the web service) to extract the values from whatever format you decide upon, of course.
    - Morten
    http://ora-00001.blogspot.com

  • Getting Multiple Records with Same Key throws Access Violation

    Are there any known issues with PInvoke Signatures for GET .. Im gettign consistently AVL's when attempting to read Multiple Values under single key ..
    Error doesn't happens while debugging in VS 2007 , Tried turning off optimizations with no luck ..
    Im using VS 2010 and .NET 4.0 ( WIN XP) . I do have a repro. ( Im using latest bits from Oracle site as of 9/10/2010 )
    Unhandled Exception: System.AccessViolationException: Attempted to read or write
    protected memory. This is often an indication that other memory is corrupt.
    at BerkeleyDB.Internal.libdb_csharpPINVOKE.db_strerror(Int32 jarg1)
    at BerkeleyDB.DatabaseException..ctor(Int32 err) in C:\Users\gmf\db\db-5.0.26
    \csharp\DatabaseException.cs:line 78
    at BerkeleyDB.DatabaseException.ThrowException(Int32 err) in C:\Users\gmf\db\
    db-5.0.26\csharp\DatabaseException.cs:line 34
    at BerkeleyDB.Internal.DB.get(DB_TXN txn, DatabaseEntry key, DatabaseEntry da
    ta, UInt32 flags) in C:\Users\gmf\db\db-5.0.26\csharp\Internal\DB.cs:line 187
    at BerkeleyDB.BaseDatabase.Get(DatabaseEntry key, DatabaseEntry data, Transac
    tion txn, LockingInfo info, UInt32 flags) in C:\Users\gmf\db\db-5.0.26\csharp\Ba
    seDatabase.cs:line 900
    at BerkeleyDB.Database.GetMultiple(DatabaseEntry key, Int32 BufferSize, Trans
    action txn, LockingInfo info) in C:\Users\gmf\db\db-5.0.26\csharp\Database.cs:li
    ne 494
    at helloworld.Program.Main(String[] args) in C:\bdm\helloworld\helloworld\Pro
    gram.cs:line 53
    Appreciate any help.
    Thanks
    Nirmal
    Edited by: user8050299 on Sep 10, 2010 3:29 PM
    Updated with OS

    seems like oracle .NET bindings doesnt work for new CLR . It works fine with .NET 2.0
    May be Oracle folks will release new version for 4.0

  • How to produce xsd for  multiple record with header

    Hi
    I tried with native format builder but that's of no use for me
    I have a flat file like this
    0+022+
    1+012+
    2+022+
    2+032+
    1+021+
    2+025+
    5+036+
    I need a schema for repeating records. My record starts for each 0 and ends for 5
    0=header 1=page 2=word 5=end
    Can somebody help me please.
    for now I have this schema but I get more number of xml elements than the data when I transform in bpel
    Also When i parse, as my records end with + {eol}, I get + at the end of the last element, how to get rid of that
    <?xml version="1.0" encoding="US-ASCII"?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    xmlns:tns="http://www.oracle.com/ias/processconnect"
    targetNamespace="http://www.oracle.com/ias/processconnect"
    elementFormDefault="qualified" attributeFormDefault="unqualified"
    nxsd:stream="chars" nxsd:version="NXSD" nxsd:validateNxsd="true">
    <element name="PFW16">
    <complexType>
    <sequence>
    <element ref="tns:Header" nxsd:conditionValue="0"/>
    <element ref="tns:Pager" nxsd:conditionValue="1" maxOccurs="unbounded"/>
    <element ref="tns:Tail" nxsd:conditionValue="5" />
    </sequence>
    </complexType>
    </element>
    <!--Header Record -->
    <element name="Header" type="tns:HeaderType"/>
    <complexType name="HeaderType">
    <sequence>
    <element name="RecordTypeIndicator" type="string"
    nxsd:style="terminated" nxsd:terminatedBy="+"/>
    <element name="VersionNumber" type="string"
    nxsd:style="terminated" nxsd:terminatedBy="${eol}"/>
    </sequence>
    </complexType>
    <!-- Pager Record -->
    <element name="Pager" type="tns:PagerRecordType"/>
    <complexType name="PagerRecordType">
    <sequence>
    <element name="RecordTypeIndicator" type="int"
    nxsd:style="terminated" nxsd:terminatedBy="+"/>
    <element name="VersionNumber" type="string"
    nxsd:style="terminated" nxsd:terminatedBy="${eol}"/>
    <element name="words">
    <complexType>
    <sequence>
    <element name="Detail-Item" minOccurs="1"
    maxOccurs="unbounded">
    <complexType>
    <group ref="tns:WordsRecord"
    nxsd:conditionValue="2"/>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    <group name="WordsRecord">
    <sequence>
    <element name="RecordTypeIndicator" type="int"
    nxsd:style="terminated" nxsd:terminatedBy="+"/>
    <element name="VersionNumber" type="string"
    nxsd:style="terminated" nxsd:terminatedBy="${eol}"/>
    </sequence>
    </group>
         <element name="Tail" type="tns:EndType"/>
    <complexType name="EndType">
    <sequence>
    <element name="RecordTypeIndicator" type="string"
    nxsd:style="terminated" nxsd:terminatedBy="+"/>
    <element name="VersionNumber" type="string"
    nxsd:style="terminated" nxsd:terminatedBy="${eol}"/>
    </sequence>
    </complexType>
    </schema>

    You can get value into variable using a simple select sql line.
    Create a variable -> go to refreshing tab -> add sql code there with proper schema.
    Use variable in package in refresh variable mode.
    You are done . Enjoy.

  • Inserting multiple records with DW CS3

    I have a page with several input fields:
    input: city1 input: state1
    input: city2 input: state2
    input: city3 input: state3
    input: city4 input: state4
    input: city5 input: state5
    My current sql statement does retrieve the data correctly but
    I can't figure out how to insert 5 new records at once.
    INSERT INTO CS ( CID, Ccity1, Cstate1 ) SELECT
    Contractors.CID, CS.Ccity1, CS.Cstate1
    FROM Contractors INNER JOIN CS ON Contractors.CID = CS.CID
    WHERE (((Contractors.CEmail)='[email protected]'));
    The above values need to go into the table like:
    CID | City | State
    ID1 | city1 | state1
    ID1 | city2 | state2
    ID1 | city3 | state3
    ID1 | city4 | state4
    ID1 | city5 | state5
    I need some help with my insert statement and how to insert
    all my form inputs as I've shown above.

    >I have a page with several input fields:
    >
    > input: city1 input: state1
    > input: city2 input: state2
    > input: city3 input: state3
    > input: city4 input: state4
    > input: city5 input: state5
    >
    > My current sql statement does retrieve the data
    correctly but I can't
    > figure
    > out how to insert 5 new records at once.
    > INSERT INTO CS ( CID, Ccity1, Cstate1 ) SELECT
    Contractors.CID, CS.Ccity1,
    > CS.Cstate1
    > FROM Contractors INNER JOIN CS ON Contractors.CID =
    CS.CID WHERE
    > (((Contractors.CEmail)='[email protected]'));
    >
    > The above values need to go into the table like:
    > CID | City | State
    > ID1 | city1 | state1
    > ID1 | city2 | state2
    > ID1 | city3 | state3
    > ID1 | city4 | state4
    > ID1 | city5 | state5
    >
    > I need some help with my insert statement and how to
    insert all my form
    > inputs
    > as I've shown above.
    You'll need to utilize the Commands implementation... hope
    you're not using
    ASP Classic 'cause it's broken in CS3.

Maybe you are looking for

  • How to use Transaction in Stateless SessionBean?

    I want to use a transaction in a stateless sessionbean.Here is the code I am using: public void createQuestion(QuestionModel questionModel,Collection outcomeList) throws Exception{ UserTransaction ut=getUserTransaction(); try{ QuestionHome qHome=EJBU

  • Flex 10 error 0x80240031 when upgrade to 8.1

     I am facing this error code 0x80240031 while updating to 8.1 at 50%. I trying everything (download last windows update, command prompt and type/run: "sfc /scannow, Dism /Online /Cleanup-Image /RestoreHealth, change ISP and uninstall Antivirus). My l

  • Using airport extreme in china - can't get it to work

    I just moved to china and have been trying to set up a new Airport Extreme dual band to my high speed internet connection but can't get it to work (bought the AE in the US and worked fine there). I have a Green light on the physical AE, and in Networ

  • Reg file adapter with Synchronous

    Hi , i have sce like send IDOCs to File ,get back the response  to PI with CSV formate.it is possible to do without BPM. Thanks

  • Printing quality problem with Photosmart D110

    The printing quality is very bad after we changed the catridge. The printer keeps saying that there is catridge jam. But after I followed the steps by the printer, the problem is still unsolved. What is the possible reason and how could I solve it?