Array of Values

Hi,
Could anybody tell whats the best way to hold an array (1-D) of values in a variable and use them at a later point in the transaction? Thanks.
Regards,
V M.

For future posts it might be worth your time to be less vague in your questions - the more detailed the question, the easier it will be for people to respond.
Even with your 'exact description' it is still somewhat unclear as to where you are having the problems. 
You send an input document into a TRX, call a BAPI with the data, and then return an output document.  In another TRX that calls this one you are trying to realign the unique identifier (assumedly a database ID or something like that) with the output document.
Does the order remain unchanged?  If so it should be as simple as using xpath to request the row by position index and you will be able to resolve your issue:  /Rowset/Rowset/Row[x]/ColName

Similar Messages

  • Rookie Question: Swap values? Declare an array and values of its indices?

    Hello,
    I hope this is the right forum: I have a simple Java Problem but i do not get it.
    Is like that: I have to swap values within an array e.g i have one array with 3 indices. Indice 0 (the first indice) has value 12. The middle indice has no value, and the second indice has value 9. How to swap 9 to 12 and 12 to 9 without direct swap, in other words, by using the middle indice that has no value or is zero? And how do i write it in an array?
    My other questions: How do i Declare an array and values of its indices?
    I hope this is the right forum or site at all, in cas enot, i hope you still can help or give me links that could help. I really need this.

    Hi Rookie,
         http://forum.sun.com is the best place to get answers for your queries.
         Answer to you first question:
         array[0]=array[0]+array[2]; // array[0] will have 21, because 9+12.
         array[2]=array[0]-array[2]; // array[2] will have 9, because 21-12.
         array[0]=array0]-array[2];  // array[0] will have 12, because 21-9.   
         Hope your first query is resolved.
         I will answer your next query in my next reply.
    Thanks & Regards,
    Charan.  

  • Passing array of values from front panel to menu

    I am working with a group programming a multichannel current stimulation device and we are currently having trouble setting up the run time menu. The burning question that we have is trying to figure out how to pass an array of values from the front panel to the menu that we are setting up in the block diagram, any advice?
    Thank you

    Take a look at this. Its just a simple menu update using a for loop. Uses whatever your values are as the item tag and item names. Remember, item tags need to be unique. This specifically goes under the sub menu of channel, which has to be created before.
    Attachments:
    menu.vi ‏12 KB

  • Populating array of values in GlobalContainer.

    Dear Friends,
    I have a doubt in excecuting the GlobalContainer in UDF. It will be great if you guys help me out in solving it.
    I'm passing some array of values into UDF.After doing some validations I need to set these values in array of Global Container.Later in other UDF I've to retrieve the array of values from the Global Container.
    Can you  guys shed some light on what logic needs to be done ?
    Best regards,
    raj.

    Use Java Sections instead of GlobalContainer.
    Check this link: http://help.sap.com/saphelp_nw2004s/helpdata/en/49/1ebc6111ea2f45a9946c702b685299/frameset.htm
    on the java sections part.
    Basically you define the global variable in the Global Variables section. For example:
    List list = null;
    Then in initalization section, you initialize the global variable:
    list = new Vector();
    Then you could have your UDFs filling and later reading the variable (just read/write the <i>list</i> variable).
    In the Cleanup section, you can do for example:
    list.clear();
    Regards,
    Henrique.

  • Best Way to Create Array of Values From ArrayCollection

    I often use Arrays of values from ArrayCollections in my
    application in order to facilitate faster performance when
    filtering other Collections.
    For instance, let's say I have an ArrayCollection of Objects
    with the properties "id", "name", "label", and "isActive". What
    would be the best way to get an Array of all the "id" values?
    Right now, I am looping over the ArrayCollection, and adding
    the value of the property I need to an Array using Array.push().
    For larger Collections, this seems like overkill. I was wondering
    if anyone knew of some quicker way to get an Array of values of one
    property from an Array Collection.
    My current method for doing this is attached below...
    Thanks.

    No, that won't work - toArray() simply returns the entire
    Collection as an Array.

  • Updating a JTable with an array of values

    Ther is a constructor that allows for the cretion of the table with an iniital array of values. However subsequent updates of blocks of data- say you received an array of updated data form a database- reuiqre you to update ince cell at a time. Is ther any way fo updating a whole block at once. I should point out that I am asking this because I am using JTables in the Matlab programming environment where arrays are the basic unit and looping through is a comparatively slow process

    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

  • Show biggest index in array with value "True"

    Hello,
    Is it possible to show the maximum index number with value "true", like shown underneath?
    I can show the value on what index the series of "true" ends with the "Array Max & Min" function, but when there is
    one False between those True's, it will show the index of the True left of the False.
    I don't need to know the size of the array, because it has to stay 8
    File is attached
    Solved!
    Go to Solution.
    Attachments:
    Biggest index of array with value 1.vi ‏8 KB

    Hi Stef,
    here you go:
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Need help with persistance using an array of values

    I have an array of values, say:
    String[] fruit = {apples, oranges, pears}
    And I want to know how to send this into a database table that is separate from the rest of the class. for example, the fruit array is part of a class Food. Food has the following fields:
    @Column(Name= food_type)
    private String foodType;
    String[] fruit
    Say that the Food class places the foodType variable in the Food table, but I want to place each item of the fruit array into a separate table that has the fruit type, and Food_id that links it back to the food table.
    What is the correct code for this?

    jobocop17 wrote:
    I have an array of values, say:
    String[] fruit = {apples, oranges, pears}that won't compile without quotes around the strings
    And I want to know how to send this into a database table that is separate from the rest of the class. there are a number of ways to do this
    i recommend you start with JDBC
    for example, the fruit array is part of a class Food. Food has the following fields:
    @Column(Name= food_type)
    private String foodType;
    String[] fruit
    Say that the Food class places the foodType variable in the Food table, but I want to place each item of the fruit array into a separate table that has the fruit type, and Food_id that links it back to the food table.
    What is the correct code for this?When you write the code and it does what you want, you will then know the answer to this question.

  • I controled voltage output by vertical pointer slide In my vi.Now,I try tocontrol it by a series accurate values. I want to get output according to the array's value.

    I controled voltage output by vertical pointer slide In my vi.Now,I try to
    control it by a series accurate values. I want to get output according to
    the array's value.
    Attachments:
    input+output.vi ‏51 KB

    Yun,
    Here's a simple example I wrote that does what you are trying to do. You can wire an array into an Analog Out 1D DBL 1 chan N Samples. Then I wired the size of the array into the number of samples per channel on the timing vi.
    Regards,
    Danny F
    Danny Funk -- Staff Product Support Engineer -- InsightCM R&D -- National Instruments
    Attachments:
    AnalogOut Array.vi ‏20 KB

  • How to write array of values to cluster of indicators(tank sliders)??

    I am trying to write a 1-D array of values to thier corresponding 8 tank sliders.
    So each element of the array will be displayed as the value of the slider.
    How can I do this?
    It works if you display it to a cluster of numeric values, but not the sliders.
    I also tried writing the array to the "value" property  of the each of the sliders, but still doesn't seem to work.
    Any suggestions?
    Solved!
    Go to Solution.

    001,
    How did you create those sliders? They are actaully clusters of two elements, both of which appear to be identical sliders sitting on top of each other.
    That is probably why you are having so much trouble wiring your data to them.  I suggest that you create a new cluster with standard sliders.  Then you can use the Array to Cluster primitive to move the data.
    Two cautions: 1. The Array to Cluster defaults to 9 elements in the cluster regardless of the number of elements in the array.  Pop up on the cluster output terminal to change the number of elements if needed.
    2. You apparently added items to the cluster out of order.  The cluster order is important if you want to get the data to the right places.
    Also, it would be much easier for us to test your code if you included some data in 2D Array Input.  Put the data in there then Edit >> Make Current Values Default. Then save.
    Lynn

  • Is it possible to pass an array by value?

    I am trying to create a list of String arrays holding all the different possible combinations for a little problem I was working on. the function Solve takes a String array argument that is passed by reference and so when I add a value to it all of the previous String array values for str get that value when I want each of them to have their own values. Can I pass the string array by value? or do I just need to change my code....and if it is the latter, any tips on structuring my code?
    Thanks
    import java.util.ArrayList;
    public class Solution
         Solution()
         public ArrayList<String[]> solve = new ArrayList<String[]>();
         public String[] Direction = {"LEFT","RIGHT","TOP","BOTTOM","C_LEFT","C_RIGHT","C_TOP","C_BOTTOM","FSLASH","BSLASH"};
         public boolean isNextTo(String a, String b)
              return true;
         public boolean notUsed(String[] s, String a)
              for(int i=0;i<s.length;i++)
                   if(s[i] == a)
                        return false;
              return true;
         public String[] Solve(String[] str, int element)
              //solve.add(str);
              int index = solve.size()-1;
              for(int dir=0;dir<10;dir++)
                   System.out.println("\nchecking " + Direction[dir] + " for element " + element);
                   printList();
                   //if(isNextTo(str[element], Direction[dir]));
                        if(notUsed(str, Direction[dir]))
                             System.out.println("\nadding " + Direction[dir] + " to the list ");
                             str[element+1] = Direction[dir];
                             solve.add(Solve(str,element+1));
              return str;          
         public void printList()
              for(int i=0;i<solve.size();i++)
                   System.out.println("\nSolution " + i + ":");
                   for(int j=0;j<10;j++)
                        System.out.print(solve.get(i)[j] + ", ");
         public static void main(String args[])
              Solution s = new Solution();
              String[] a = new String[10];
              a[0] = "LEFT";
              s.solve.add(a);
              s.Solve(a, 0);
              s.printList();
    }Edited by: newms86 on May 19, 2008 2:10 AM

    I tried adding in a clone array like this:
    public String[] Solve(String[] str, int element)
              //solve.add(str);
              String[] a = str;
              for(int dir=0;dir<10;dir++)
                   System.out.println("\nchecking " + Direction[dir] + " for element " + element);
                   printList();
                   if(isNextTo(str[element], Direction[dir]));
                        if(notUsed(str, Direction[dir]))
                             System.out.println("\nadding " + Direction[dir] + " to the list ");
                             a[element+1] = Direction[dir];
                             solve.add(Solve(a,element+1));
              return str;          
         }but all the elements in the ArrayList are the same. What do I need to change?
    Edited by: newms86 on May 19, 2008 2:23 AM

  • Returning array of values from a PL/SQL stored procedure

    I try to run the following example, always happen errors: Run-time error'91' Object variable or With block variable not set.(in line: Set myRS.Source = myCmd1 and Set myRS.Source = myCmd2) Who can tell me where is wrong? I check variable, all set.
    Option Explicit
    Dim myCnn As ADODB.Connection
    Dim myCmd1 As ADODB.Command
    Dim myCmd2 As ADODB.Command
    Dim myRS As ADODB.Recordset
    Dim myConnStr As String
    Dim mySQL As String
    Dim inputssn As Long
    Private Sub cmdGetEveryone_Click()
      Dim myLine As String
      Set myRS.Source = myCmd1
      myRS.Open
      myLine = ""
      While Not myRS.EOF
          myLine = myLine & myRS.AbsolutePosition & " " & _
                   myRS(0) & ", " & myRS(1) & ", " & myRS(2) & vbCrLf
          myRS.MoveNext
      Wend
      MsgBox myLine
      myRS.Close
    End Sub
    Private Sub cmdGetOne_Click()
      Set myRS.Source = myCmd2
      inputssn = InputBox("Enter the SSN you wish to retrieve:")
      myCmd2(0) = inputssn
      myRS.Open
      If myRS.RecordCount = 0 Then
         MsgBox "No data found"
      Else
         MsgBox "Person data: " & myRS(0) & ", " & myRS(1) & ", " & myRS(2)
      End If
      myRS.Close
    End Sub
    Private Sub Form_Load()
      'Using an "On-the-fly" nameless ODBC connection
      'Replace <User ID>, <Password>, and <Server> with the
      'appropriate parameters.
      '  myConnStr = "UID=*****;PWD=*****;driver=" _
      '         & "{Microsoft ODBC for Oracle};SERVER=dseOracle;"
      ' myConnStr = "UID=CSUPerson;pwd=euclid;driver={Microsoft ODBC for Oracle};SERVER=company;"
      'you may also use a named connection DSN such as "myOracleODBC" as follows
      myConnStr = "user id=csuperson;password=euclid;DSN=myOracleODBC;"
      Set myCnn = New ADODB.Connection
      With myCnn
          .ConnectionString = myConnStr
          .CursorLocation = adUseClient
          .Open
      End With
      'the entry RESULTSET 99 indicates the arguments (ssn, fname, lname)
      'are arrays of up to 99 cells each.
      'The binding vars (ssn, fname, lname) should be retrieved in VB using a recordSet
      mySQL = "{call packperson.allperson({RESULTSET 99, ssn, fname, lname})}"
      Set myCmd1 = New ADODB.Command
      With myCmd1
          Set .ActiveConnection = myCnn
          .CommandText = mySQL
          .CommandType = adCmdText
      End With
      mySQL = "{call packperson.oneperson(?,{RESULTSET 2, ssn, fname, " _
             & "lname})}"
      Set myCmd2 = New ADODB.Command
      With myCmd2
          Set .ActiveConnection = myCnn
          .CommandText = mySQL
          .CommandType = adCmdText
          .Parameters.Append .CreateParameter(, adInteger, adParamInput)
      End With
      Set myRS = New ADODB.Recordset
      With myRS
          .CursorType = adOpenStatic
          .LockType = adLockReadOnly
      End With
    End Sub
    Private Sub Form_Unload(Cancel As Integer)
      myCnn.Close
      Set myCnn = Nothing
      Set myCmd1 = Nothing
      Set myCmd2 = Nothing
      Set myRS = Nothing
    End Sub
    Package:
    PACKAGE packperson AS
    TYPE tssn is TABLE of NUMBER(10)
    INDEX BY BINARY_INTEGER;
    TYPE tfname is TABLE of VARCHAR2(15)
    INDEX BY BINARY_INTEGER;
    TYPE tlname is TABLE of VARCHAR2(20)
    INDEX BY BINARY_INTEGER;
    PROCEDURE allperson
    (ssn OUT tssn,
    fname OUT tfname,
    lname OUT tlname);
    PROCEDURE oneperson
    (onessn IN NUMBER,
    ssn OUT tssn,
    fname OUT tfname,
    lname OUT tlname);
    END packperson;
    BODY:
    PACKAGE BODY packperson
    AS
    PROCEDURE allperson
    (ssn OUT tssn,
    fname OUT tfname,
    lname OUT tlname)
    IS
    CURSOR person_cur IS
    SELECT ssn, fname, lname
    FROM employee;
    percount NUMBER DEFAULT 1;
    BEGIN
    FOR singleperson IN person_cur
    LOOP
    ssn(percount) := singleperson.ssn;
    fname(percount) := singleperson.fname;
    lname(percount) := singleperson.lname;
    percount := percount + 1;
    END LOOP;
    END;
    PROCEDURE oneperson
    (onessn IN NUMBER,
    ssn OUT tssn,
    fname OUT tfname,
    lname OUT tlname)
    IS
    CURSOR person_cur IS
    SELECT ssn, fname, lname
    FROM employee
    WHERE ssn = onessn;
    percount NUMBER DEFAULT 1;
    BEGIN
    FOR singleperson IN person_cur
    LOOP
    ssn(percount) := singleperson.ssn;
    fname(percount) := singleperson.fname;
    lname(percount) := singleperson.lname;
    percount := percount + 1;
    END LOOP;
    END;
    END;DB table:
    CREATE TABLE EMPLOYEE
    (FNAME VARCHAR2(15) NOT NULL,
    MINIT    CHAR,
    LNAME VARCHAR2(15) NOT NULL,
    SSN VARCHAR2(9) NOT NULL,
    BDATE DATE,
    ADDRESS VARCHAR2(30),
    SEX CHAR,
    SALARY NUMBER(10,2),
    SUPERSSN VARCHAR2(9),
    DNO NUMBER NOT NULL,
    PRIMARY KEY(SSN));
    DESC EMPLOYEE;
    INSERT INTO EMPLOYEE VALUES
    ('John','B', 'Smith', '123456789','09-JAN-65',
      '731 fONDREN, hOUSTON, TX', 'M', 30000, '333445555',5);
    INSERT INTO EMPLOYEE VALUES
    ('Frankin','T', 'Wong', '333445555','08-DEC-55',
      '683 Voss, Houston,Tx', 'M', 40000, '888665555',5);
    INSERT INTO EMPLOYEE VALUES
    ('Alicia','J', 'Zelaya', '999887777','19-JUL-68',
      '3321Castle, Spring, TX', 'F',25000 , '987654321',4);
    INSERT INTO EMPLOYEE VALUES
    ('Jennifer','S', 'Wallace', '987654321','20-JUN-41',
      '291 Berry, Bellaire, TX', 'F',43000 , '888665555',4);
    INSERT INTO EMPLOYEE VALUES
    ('Ramesh','K', 'Narayan', '666884444','15-SEP-62',
      '975 Fire Oak, Humble, TX', 'F',38000 , '333445555',5);
    INSERT INTO EMPLOYEE VALUES
    ('Joyce','A', 'English', '453453453','31-JUL-72',
      '5631 Rice,Houston,TX', 'F',25000 , '333445555',5);
    INSERT INTO EMPLOYEE VALUES
    ('Ahmad','V', 'Jabbar', '987987987','29-MAR-69',
      '980 Dallas,Houston, TX', 'M',25000 , '987654321',4);
    INSERT INTO EMPLOYEE VALUES
    ('James','E', 'Borg', '888665555','10-NOV-37',
      '450 Stone, Houston, TX', 'M',55000 , null,1);All help I will appreciat it.

    I can't comment on the problem returning PL/SQL arrays, but I will suggest that a more appropriate method of achieving your goal is to call a procedure which returns a REF CURSOR.
    See the examples here:
    http://asktom.oracle.com/~tkyte/ResultSets/index.html

  • How to change the frequency of pulse train on the fly using an array of values?

    Hi all!
    First I want to thank U for the great job you are doing for this forum.
    Iam still busy trying to control a stepper motor, by sending pulses from my E-series 6024 to a compumotor s6- stepper Driver. I've managed to get it working. I desperately need to control the motor using the values from an array. I believe we can use two approaches for that:
    1st - I can get an array of the "numbers of pulses". Each element must run for 10 milliseconds. Using that we can calculate the array of frequencies to send the number of pulses within 10 milliseconds for each specific element. Could we use the arrays of "number of pulses" and frequencies in a "finite pulse train " and up
    date with each element every 10 millisecond?
    2nd - Or Could we use of the frequency array in a "continuous pulse train vi" and update it every 10 milliseconds?
    Please note that I must use the values as they are.
    Can someone please built a good example for me? Your help will be appreciated.
    Regards
    Chris
    Attachments:
    number_of_steps.txt ‏17 KB
    frequency.txt ‏15 KB

    Tiano,
    I will try to better explain the paragraph on LabVIEW. The original paragraph reads ...
    "While in a loop for continuous pulse train generation, make two calls to Counter Set Attribute.vi to set the values for "pulse spec 1" (constant 14) and "pulse spec 2" (constant 15). Following these calls you would make a call to Counter Control.vi with the control code set to "switch cycle" (constant 7). The attached LabVIEW programs demonstrate this flow."
    You can make two calls to Counter Set Attribute or you can make a call to Set Pulse Specs which, if you open this VI, you will see that it is just making two calls to Counter Set Attribute. What you are doing with the Counter Set Attribute VIs is setting two registers called "pulse s
    pec 1" and "pulse spec 2". These two registers are used to configure the frequency and duty cycle of your output frequency.
    The example program which is attached to this Knowledge Base demonstrates how to change the frequency of a continuous generation on the fly. Why continuous? Because changing the frequency of a finite train would be easy. When the train completes it's finite generation you would just change the frequency and run a finite train again. You would not care about the time delay due to reconfiguration of the counter.
    If you would like to change the frequency of the pulse train using a knob, this functionality will have to be added in the while loop. The while loop will be continuously checking for the new value of the knob and using the knob value to set the pulse specs.
    LabVIEW is a language, and as with learning all new languages (spoken or programatic) there is a lot of learning to be accomplished. The great thing is that LabVIEW is much easier than mo
    st languages and the learning curve should be much smaller. Don't fret, you'll be an expert before you know it. Especially since you're tackling a challenging first project.
    Regards,
    Justin Britten

  • How to send an array of values to stored procedures in java

    can anyone tell me how ican send a two dimensional array of string values can be send to a data base at one go.
    actually i am a java developer and the technolgies i am using are servlets and java data base connectivity(JDBC). the oracle developer with whom i have worked has created aprocedure for taking the two values. she has created a record and she has used the the record as an in parameter to the procedure. that particular record has two columns and i need to send it as a two dimensional array.

    The PL/SQL webservice functionality in Oracle WebServices can expose PL/SQL procedures as webservices.
    If you are just looking for Java solution, check out JPublisher, which maps PL/SQL stored procedure into JDBC programs.

  • Is it normal for a waveform graph to truncate arrays of values that are longer than others when displaying multiple waveforms on the same graph?

    I am reading back values of several waveforms that were saved to disk using the write to spreadsheet vi. Some of the data sets are longer than others eg. 35 seconds vs 45 seconds. All have the same sample rate.
    See the code segment below. If I select the larger files first then all the data will show. If I select a smaller file first the larger ones will be truncated to the size of the small file. I am using LV 7.0.
    Attachments:
    codesnippet.vi ‏41 KB

    I needed to make some grammatical/ nomelclature changes, But, Could not edit the previous post.
    so posting again
    "Thats because you are inserting into an array of a predefined size.
    For ex,
    When you try inseting a 1D array 'A' of 50 elements as row 1 of a  2 D array of 40 elements(in row 0 ), only only the first 40 elements will get insetred into 2 D array. You lose the last 10 elements of array 'A'
    To avoid this, I suggest you use XY graph( of course you have to create an x axis with the index of each element in the inserted array and plot on xy graph).
    Any doubts, do get back"
    regards
    Dev

  • Post key from array into value upon submit

    Hello,
    I am new to ColdFusion and new to this forum, so be kind please.  I have a form the gets a select list from an array and I need the key of the array to post into another hidden field upon submission of the form.  I have some javaScript validation before the array, so maybe I could include something there, but I just can't figure it out.  This is what I have so far:
    <script language="javascript" type="text/javascript">
    <!--
    function OnButton1()
        var x=document.forms["Form1"]["name"].value
            if (x==null || x=="")
      alert("Name must be filled out");
      return false;
        var x=document.forms["Form1"]["email"].value
        var atpos=x.indexOf("@");
        var dotpos=x.lastIndexOf(".");
            if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length)
      alert("Not a valid e-mail address");
      return false;
      var x=document.forms["Form1"]["message"].value
            if (x==null || x=="")
      alert("Message must be filled out");
      return false;
            else
        document.Form1.action = "http://fp1.formmail.com/...."    // First target
        document.Form1.target = "iframe1";
        document.Form1.submit();        // Submit the page
        document.Form1.action = "contact_us_ty.cfm"    // Second target
        document.Form1.target = "contact_us_ty.cfm";
        document.Form1.submit();        // Submit the page
        return true;
    -->
    </script>
    <cfset subject[1] = "Choose Subject or Recipient" />
    <cfset subject[2] = "Alexis de Tocqueville Society" />
    <cfset subject[3] = "Campaign" />
    <cfset subject[4] = "Donations" />
    <cfset subject[5] = "Feedback" />
    <cfset subject[6] = "Getting Help" />
    <cfset subject[7] = "Planned Giving" />
    <cfset subject[8] = "UW Community Fund" />
    <html>
    <head></head>
    <body>
            <form name="Form1" action="contact_us_ty" method="post">
                <input type="hidden" name="_pid" value="0" />
                <input type="hidden" name="_fid" value="0" />
                <input type="hidden" name="recipient" value= "NEED THE KEY HERE" />
                <input type="hidden" name="subject" value= "Website Contact Us Email" />
                <table width="*" bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="2">
                    <tr valign="middle">
                          <td align="right"><strong>Name: </strong></td>
                          <td><input type="text" name="name" size="30" value="" /></td>
                      </tr>
                    <tr valign="middle">
                          <td align="right"><strong>Email Address: </strong></td>
                          <td><input type="text" name="email" size="30" value="" /></td>
                      </tr>
                    <tr valign="middle">
                          <td align="right"><strong>Subject: </strong></td>
                          <td>
                            <select name="subject" id="subject"><cfloop array="#subject#" index="i"><cfoutput><option>#i#</option></cfoutput></cfloop>       </select>
                         </td>
                      </tr>
                    <tr valign="top">
                          <td align="right"><strong>Message: </strong></td>
                          <td><textarea cols="30" rows="8" name="message"></textarea></td>
                      </tr>
                    <tr valign="top">
                      <td> </td>
                      <td align="left"><input type="submit" name="button1" value="Submit" onclick="return OnButton1();" /></td>
                  </tr>
              </table>
           </form>
    <div style="visibility:hidden"><iframe name="iframe1" width="40" height="40"></iframe></div>
      </body>
    </html>
    Any help is greatly appreciated.
    Thanks,
    sLe2222

    Hi,
    1).  I'm assuming that you're naming the select, and passing the array value in the value field.
    2).  On the posting page, you should be able to obtain that value.
    3).  If you want to then move it into a hidden field, I'd make sure the hidden tag is inside a form tag group, and around that, I'd place <cfoutput> tags.  The value in the hidden tag that you'll want to set to should be inside of #...#.
    So page 1: (I'm using input, you should use select)
    <form action="two.cfm" method="get">
        <input name="bill" type="text" value="8">
         <input type="submit" value="go">
    </form>
    Page 2:
    <cfoutput>#bill#</cfoutput>
    <cfoutput>
    <form action="three.cfm" method="get">
        <input name="newbill" type="hidden" value="#bill#">
        <input type="submit" value="go">
    </form>
    </cfoutput>
    Page 3:
    <cfoutput>#newbill#</cfoutput>
    If you're going to be using this field many times, I'd sugges setting the value equal to a SESSION.variable.  That way you can eliminate all of the hidden tags, which can get really out of hand, and are VERY hard to debug.
    something like:  <cfset SESSION.newbill = bill />   Then anytime you need the value, just call the SESSION.newbill.  You would do this on page 2.
    Hope this helps,
    <cfwild />

Maybe you are looking for