Drop Dynamics: distinct values

Hello everyone. Newb here.

I just started to work on a dynamic web page in Dreamweaver CS3. I use WAMP (MySQL/PHP). I have my web page set up, plugged in and everything works fine.

I just created a drop-down menu to display the dynamic value (State) of my recordset. My table related to this recordset has a bunch of files with one of the fields in the State. There are several records of each State. When I saw the page in the browser, the menu displays the State of my table, but it displays each status several times (no doubt the number of records that come from that State). Here's the question:

How can I get this drop-down menu to display the distinct values for the State field?

i.e. show LA, MS, TX, GA instead of, THE, THE, THE, LA, MS, MS, MS, MS, TX, TX, GA, GA, GA

Any help would be greatly appreciated.

Hello kmcamara86

Yes you place the Select Distinct in the wrong place. The "Select".

Separate must be in the recordset for the drop, not the drop-down list.

Open the recordset in the data tab, and then click Advanced to

the Recordset. Change the sql statement for

"SELECT DISTINCT (state) FROM table_name";

If you can email me the code for your page, I can change the

record set for you.

Thank you

Stan Forrest

Digital magic show

Phone: (661) 979-8891

E-mail: [email protected]

Web: http://www.digitalmagicshow.com

Our desire is to exceed your expectations

Tags: Dreamweaver

Similar Questions

  • Show only distinct values in narrative mode

    Hi guys!

    Here again, we are trying to reach an ambitious goal.

    It is possible to show only distinct values in a narrative view? For example, I have a query that retrieves about 100 lines. In these lines, a few different years, it is something like this:

    1-2013, Jhon, 10

    2-2013, Brian, 15

    3-2013, Pete, 20

    ...

    10-2014, Steve. 5

    11-2014, Kevin, 12

    ...

    90-2015, Ray, 24

    91-2015, Michael, 2

    ...

    It is possible a mode display narrative only something like that?

    Years: 2013, 2014, 2015

    If I use the feature number @column, I get as many years the results are retrieved. It is not user friendly.

    Any help will be appreciated.

    Best regards

    Fabian

    Hi all!

    I found my own solution and I want to share with you. Maybe it helps someone in the future.

    I used JavaScript to iterate through each row value. By each line, I'll check if it value is added to the overall picture with unique values. If not added, I add it, otherwise, I do nothing.

    Here is my script (pay attention to each code block, it must be in its proper "narrative class"):

    Narrative section prefix

  • OPV with distinct values for the guests

    Hi all

    Could you get it someone please let me know where/what I'm wrong. I created the couple of OPV to get distinct values, as I can't use the view that has millions of data to load guests.

    These OPV is not directly attached to my main table but joined someother tables; After you add the guests in the responses, is to show the below error

    [nQSError: 14070] can't find coverage source logical table to the columns of the logic: [bp Manager]. Please check more detailed level keys are correctly mapped. (HY000)

    I wan to the OPV use only for guests and pass the values to help requested on the main table filters

    I have no warnings/errors in my model. What could be the problem? Thank you for your time

    REDA

    Just go with PSV.

    Check it cool - bi.com for "what happens when we select all the column values.

    Table x got to join the only 1OPV then how can you expect comes from BI to the other 2 open-pollinated varieties? Likewise, we cannot write query!

    If you can create a domain for each OPV then proceed with a command prompt with the UNION of 3 open-pollinated varieties clause

  • you place your order in xquery-distinct values

    I was surprised to see the return of the following different results, is this a bug in the XML Query rewrite, or is the order of not only guaranteed the distinct values?

    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    With partitioning, OLAP, Data Mining and Real Application Testing options

    SQL > SELECT XMLQUERY)

    2 ' (string code points

    3 distinct-values ((99,98,97)))'

    4 ELECTION CONTENT) result

    5 FROM dual;

    RESULT

    --------------------------------------------------------------------------------

    ABC

    SQL > SELECT / * + NO_XML_QUERY_REWRITE * /.

    () 2 XMLQUERY

    3 ' (string code points

    distinct-values ((99,98,97))) 4'

    5 ELECTION CONTENT) result

    6 FROM dual;

    RESULT

    --------------------------------------------------------------------------------

    CBA

    SQL >

    Hello

    The specs say the order is "dependent application": fn: distinct values

    Summary so is (I guess), strict language point of view, should not rest on any apparent order in the resulting sequence.

    The results collected by the two queries probably be different for the same reason: different implementation.

    First one with XQuery Rewrite active is solved using the SQL operators and functions, something along these lines:

    SELECT 'CODEPOINT2STR_FUNC' ('SEQUENCE')

    DE)

    SELECT 'AGGREGATE_FUNC' (VALUE (T) SEPARATE) "SEQUENCES".

    TABLE ("SEQUENCE_FUNC"(99, 98, 97)) T

    ) ;

    While the second is evaluated by the XVM and apparently maintains the original order.

  • Return distinct values in a fuction

    Hi all

    I create a function, where it must take two parameters of the input string and return the distinct values of the two channels

    input parameters are: 2.71A2, 2.71X15, 2.71x15 and 2.71A2, 2.71X15, 2.71a2

    I get the output as 2.71A2 parameters, 2.71X15

    need to convert lower case to upper case and compare.

    post needed more information.

    Thank you.

    One way is:

    Select listagg (ds, ",") the Group (control 1)

    from (select distinct superior (REGEXP_SUBSTR (s, "[^,] +', 1, rownum")) ds)

    from (select '2.71A2, 2.71X15, 2.71x15, 2.71A2, 2.71X15, 2.71a2's)

    the double)

    connect by INSTR (s, ',', 1, level - 1) > 0

    and prior sys_guid() is not null)

    Another way xmlquery

    ----

    Ramin Hashimzade

  • List of distinct values-

    Hello

    I am building a list of values for a selection of a table.  I noticed that even if I do not SEPARATE in the select, at the time of the report, the LOV seems to use automatically SEPARATE.  Is this the case or should I use DISTINCT in the select?

    Thank you.

    Leah

    By definition, a value list item class will contain only distinct values.  A LOV containing an entry for each record with the value "2013" serve no real function. Being a LOV each displayed value will be unique.

    Kind regards

    Sharon

    Support of Oracle

  • Distinct values does not work.

    Hi all

    Anyone can guide me please on the distinct values.

    In my xslt to need a point to get the separate provider values.

    Here is the info-provider xml example
    <SupplierXitem><XItemSupDesc xmlns:ns3="http://xmlns.oracle.com/TSS_to_RMS/RIBXItemProcess/SupplierXitem" xmlns="http://xmlns.oracle.com/TSS_to_RMS/RIBXItemProcess/SupplierXitem"><ns3:XitemSup><ns3:supplier>101018</ns3:supplier><ns3:primary_supp_ind>N</ns3:primary_supp_ind><ns3:XitemSupCtydesc><ns3:origin_country_id>IN</ns3:origin_country_id><ns3:primary_country_ind>Y</ns3:primary_country_ind><ns3:unit_cost>6.000000</ns3:unit_cost></ns3:XitemSupCtydesc></ns3:XitemSup><ns3:XitemSup><ns3:supplier>101018</ns3:supplier><ns3:primary_supp_ind>N</ns3:primary_supp_ind><ns3:XitemSupCtydesc><ns3:origin_country_id>CA</ns3:origin_country_id><ns3:primary_country_ind>Y</ns3:primary_country_ind><ns3:unit_cost>7.000000</ns3:unit_cost></ns3:XitemSupCtydesc></ns3:XitemSup></XItemSupDesc></SupplierXitem>
    and my outputshould be as below

    < ns1:XItemSupDesc >
    < ns1: beg > 101018 < / ns1: beg > < ns1:primary_supp_ind > N < / ns1:primary_supp_ind >
    < ns1:XItemSupCtyDesc >
    < ns1:origin_country_id > NC < / ns1:origin_country_id > < ns1:primary_country_ind > Y < / ns1:primary_country_ind > < ns1: unit_cost > 7.000000 < / ns1: unit_cost > < / ns1:XItemSupCtyDesc >
    < ns1:XItemSupCtyDesc >
    < ns1:XItemSupCtyDesc > < ns1:origin_country_id > IN < / ns1:origin_country_id > < ns1:primary_country_ind > Y < / ns1:primary_country_ind > < ns1: unit_cost > 6.000000 < / ns1: unit_cost > < / ns1:XItemSupCtyDesc >
    < / XItemSupDesc >

    Here is my loigc of the xslt code

    < xsl: for each select = "fn: distinct-values($supplier/ns2:XItemSupDesc/ns2:XitemSup/ns2:supplier)" >
    "< name of xsl: variable = sΘlectionner"DistinctSupplier =" "/ >
    < ns1:XItemSupDesc >
    < ns1: beg >
    "< xsl: value-of select =". "/ >
    < / ns1: beg >
    < ns1:primary_supp_ind >
    "< xsl: value-of select ="... /NS2:primary_supp_ind "/ >"
    < / ns1:primary_supp_ind >
    < ns1:vpn >
    < xsl: value-of select = "/ ns1:XItemDesc / ns1:XItemSupDesc / ns1:vpn" / >
    < / ns1:vpn >
    "< xsl: for-each select =".. ">
    < xsl: if test = "ns2: beg = $DistinctSupplier" >
    < ns1:XItemSupCtyDesc >
    < ns1:origin_country_id >
    < xsl: value-of select = "ns2:origin_country_id" / >
    < / ns1:origin_country_id >
    < ns1:primary_country_ind >
    < xsl: value-of select = "ns2:primary_country_ind" / >
    < / ns1:primary_country_ind >
    < ns1: unit_cost >
    < xsl: value-of select = "ns2: unit_cost" / >
    < / ns1: unit_cost >
    < / ns1:XItemSupCtyDesc >
    < / xsl: if >
    < / xsl: foreach >
    < / XItemSupDesc >

    I went to couple of solution in the forum about distinct values, but I could do that I get the error of execution as below
    XPath expression failed to execute. An error occurs while processing the XPath expression; the expression is ora:doXSLTransformForDoc('xsl/Trans_Soa_Supplier_XitemDesc.xsl', $XitemDesc, 'supplier', $supplier). The XPath expression failed to execute; the reason was: javax.xml.transform.TransformerException: XML-22900: (Fatal Error)
    It would be great if someone help me

    Kind regards
    Tarak.

    Hi Tarak,

    Tips weren't bad... You're quite the right direction...

    The code below works for sample entry you posted before... I tested here http://xslttest.appspot.com/

    Hope you give me a few points for my answers...

    
         
              
              
                   
                        
                        
                             
                                  
                             
                             
                                  
                             
                             
                                  
                                       
                                            
                                       
                                       
                                            
                                       
                                       
                                            
                                       
                                  
                             
                        
                   
              
         
    
    

    See you soon,.
    Vlad

  • XSL transformation - distinct values

    Hello

    I have a XML code that is needed using XSL, I think that this can be done using distinct values, however, I have no luck in getting this work. Could someone guide me on what function use. Any guidance / help is greatly appreciated.

    Here is the XML source, this scenario is that there are two different products, delivered in a box
    <p:Items>
        <p:Item ItemID="12">
          <p:ProductID>123456</p:ProductID>
          <p:Quantity>1</p:Quantity>
          <p:NetPrice>12</p:NetPrice>     
          <p:Packages>
            *<p:Package BoxID="1">*
              <p:Quantity>1</p:Quantity>
              *<p:TrackingNumber>12345678910111213</p:TrackingNumber>*
            </p:Package>
          </p:Packages>
        </p:Item>
         <p:Item ItemID="12">
          <p:ProductID>1400</p:ProductID>
          <p:Quantity>1</p:Quantity>      
          <p:NetPrice>10</p:NetPrice>      
          <p:Packages>
            *<p:Package BoxID="1">*
              <p:Quantity>1</p:Quantity>
              *<p:TrackingNumber>12345678910111213</p:TrackingNumber>*
            </p:Package>
          </p:Packages>
        </p:Item>     
     </p:Items>
    The XML has to be converted to,
     <ns2:package_Data>
                *<tns:package_id>1</tns:package_id>*
                <tns:package_Items>
                   <tns:vendor_item_number>123456</tns:vendor_item_number>
                   <tns:quantity_shipped>1</tns:quantity_shipped>
                </tns:package_Items>
                   <tns:package_Items>
                   <tns:vendor_item_number>1400</tns:vendor_item_number>
                   <tns:quantity_shipped>1</tns:quantity_shipped>
                </tns:package_Items>
                *<tns:trackingNumber>12345678910111213</tns:trackingNumber>*
    </ns2:package_Data>
    If two different products is shipped in 2 different boxes, which will have two box ID and Tracking # the source XML would look like this.
    <p:Items>
        <p:Item ItemID="12">
          <p:ProductID>123456</p:ProductID>
          <p:Quantity>1</p:Quantity>
          <p:NetPrice>12</p:NetPrice>     
          <p:Packages>
            *<p:Package BoxID="1">*
              <p:Quantity>1</p:Quantity>
              <p:TrackingNumber>12345678910111214</p:TrackingNumber>
            </p:Package>
          </p:Packages>
        </p:Item>
         <p:Item ItemID="12">
          <p:ProductID>1400</p:ProductID>
          <p:Quantity>1</p:Quantity>      
          <p:NetPrice>10</p:NetPrice>      
          <p:Packages>
            *<p:Package BoxID="2">*
              <p:Quantity>1</p:Quantity>
              <p:TrackingNumber>12345678910111215</p:TrackingNumber>
            </p:Package>
          </p:Packages>
        </p:Item>     
     </p:Items>
    The transformed XML should look like this,
     <ns2:package_Data>
                *<tns:package_id>1</tns:package_id>*
                <tns:package_Items>
                   <tns:vendor_item_number>123456</tns:vendor_item_number>
                   <tns:quantity_shipped>1</tns:quantity_shipped>
                </tns:package_Items>
                *<tns:trackingNumber>12345678910111214</tns:trackingNumber>*
    </ns2:package_Data>
    <ns2:package_Data>
                *<tns:package_id>2</tns:package_id>*
                <tns:package_Items>
                   <tns:vendor_item_number>1400</tns:vendor_item_number>
                   <tns:quantity_shipped>1</tns:quantity_shipped>
                </tns:package_Items>
                *<tns:trackingNumber>12345678910111215</tns:trackingNumber>*
    </ns2:package_Data>
    Here is the XSL code, I tried to use different values in the for-each leading to the error, the code below works fine for the second scenario mentioned above.
     <xsl:for-each select="/ns0:OrderStatus/ns0:Items/ns0:Item/ns0:Packages/ns0:Package">
                <ns2:package_Data>
                  <tns:package_id>
                    <xsl:value-of select="@BoxID"/>
                  </tns:package_id>
                  <tns:package_Items>
                    <tns:vendor_item_number>
                      <xsl:value-of select="../../ns0:ProductID"/>
                    </tns:vendor_item_number>
                    <tns:quantity_shipped>
                      <xsl:value-of select="../../ns0:Quantity"/>
                    </tns:quantity_shipped>
                  </tns:package_Items>
                  <tns:trackingNumber>
                    <xsl:value-of select="ns0:TrackingNumber"/>
                  </tns:trackingNumber>
                </ns2:package_Data>
              </xsl:for-each>
    Thank you
    Fri

    Try something like this...

    
    
      
      
          
             
          
          
             
                 
                     
                 
    

    See you soon,.
    Vlad

  • Select the records from the first n distinct values of column

    I need to write a query in plsql to select records for the first 3 values distinct from a single column (example below, ID) and all lines for the next 3 distinct values of column and so on until the end of the number of distinct values in a column.
    for example:
    Age of name ID
    1 abc 10
    1 def 20
    2 IA 10
    2 20 JKL
    2 mno 60
    3 10 pqr
    4 the RST 10
    4 10 TÜV
    5 vwx 10
    6 10 XYZ
    hij 6 10
    7 lmn 10
    .
    .
    .
    so now... (up to a few County)
    Result must be
    1 the application should result->
    Age of name ID
    1 abc 10
    1 def 20
    2 IA 10
    2 20 JKL
    2 mno 60
    3 10 pqr

    Query 2 should lead to->
    4 the RST 10
    4 10 TÜV
    5 vwx 10
    6 10 XYZ
    hij 6 10

    Query 3 should lead to->
    7 lmn 10
    .
    .
    9... ..
    so now...
    How to write a query for this inside a loop.

    Hello

    Thus, a panel will consist of the lowest id value, the 2nd lowest and the 3rd lower, reggardless of how many lines is involved. The next group will include the 4th lowest id, the 5th lowest and the 6th lowest. To do that, you must assign the numbers 1, 2, 3, 4, 5, 6,... for the rows in order by id, with all lines with the same id, getting the same number and without jumping all the numbers.
    This sounds like a job for the analytical DENSE_RANK function:

    WITH     got_grp_id     AS
    (
         SELECT     id, name, age
         ,     CEIL ( DENSE_RANK () OVER (ORDER BY id)
                   / 3
                   )          AS grp_id
         FROM     table_x
    )
    SELECT     id, name, age
    FROM     got_grp_id
    WHERE     id     = 1     -- or whatever number you want
    ;
    

    If you would care to post CREATE TABLE and INSERT statements for your sample data, then I could test it.
    See the FAQ forum {message identifier: = 9360002}

  • XSL - distinct values

    Hi Vlad,

    I have a problem with the xsl transformation, if a value in the input xml file is same in same/orders multiple, unique values gets added in the same node, in the example below, I have a SKU order '2' with Qty '1' and SKU '4' with '2' quantity, so my csv file will come with 3 lines, 1 line for the lines of CODE '2' and 2 for SKU4. The output seems to add the two distinct values (such as < ns0:quantity_ordered > * 1 2 * < / ns0:quantity_ordered >) in the same node, as shown in the example below. I don't know if I'm a bad button in the Item_Data or something else,

    I believe, I do not use good condition to check the separate SKU or by using a condition for each stay, I don't know if that's the problem. I would be grateful if you could tell me the problem.

    Thank you
    VINET

    Don't know if is that the first node is 0 or 1 (there is a difference between the implementations)... There the previous does not work, try to replace [0] [1]...

    
    
      
    
    
      
    
    
      
    
    
      
    
    
      
    
    
    

    See you soon,.
    Vlad

  • Select the distinct value of a column in the collection in bulk.

    Hi all

    Collecting the data of a query to a variable of type table. I need to select a separate of a perticular column value in the collection.

    Collection has followiing values inside.
    Col(c).articleid,
    Col(c).userkey,
    Col(c).origin,
    Col(c).addnlorigindata,
    Col(c).avdest,
    Col(c).dispfmt,
    Col(c).sourcecode,
    Col(c).success_ind,
    Col(c).error_code,
    Col(c).entry_createddate,
    Col(c).createdby,
    Col(c).filenumber,
    Col(c).linenumber,
    Col(c).acctnum,
    Col(c).assetkey,
    Col(c).autocompletedterm,
    Col(c).accessionnumber,
    Col(c).requestdatetime,
    Col(c).requestorip,
    Col(c).articleordinal,
    Col(c).userinitiatedind,
    Col(c).captchastatus
    I need to select distinct column values (for example: Col (c) .sourcecode) collection and the need to insert in the table if the value in this column does not exist in the table.

    Say, Col (c) .sourcecode has the value XYZ, ABC. If the "XYZ" value does not exist in the table, so I need to insert in the table and if "ABC" exists in the tables then don't insert it. (something like fusion) after seecting to the distinct values in a column in the collection.

    Thanks n regards
    Nana Akkivalli.

    The collection must be inserted before you can use this topic.

    In the Begin block, you have to collect a loose and insert inside: something like

    SELECT *
    BULK COLLECT INTO l_array
    FROM ALL_USER
    ...CONDITIONS...
    
  • number of distinct values against a few distinct values

    Hello
    If I have a table with millions of records and I query this table with a where clause on a column with few unique values, it would execute faster than this column with many, many distinct values? If Yes, could someone please help me understand why? Where clause would simply like this:

    where column1 = 'xyz '.

    Could you please answer for cases where the column IS and is not indexed?

    Thank you!

    Hello

    arizona9952 wrote:
    Hello
    If I have a table with millions of records and I query this table with a where clause on a column with few unique values, it would execute faster than this column with many, many distinct values?

    It is the opposite; the query can be faster if you have more distinct values.

    If Yes, could someone please help me understand why? Where clause would simply like this:

    where column1 = 'xyz '.

    Could you please answer for cases where the column IS and is not indexed?

    Oracle will tend to use the indexes that are selective, meaning that there are many distinct values, and thus only a smaller percentage of the table than a given value.
    Imagine you are in a library, and you are looking for an author of some books.
    One way to do that is to look for the author of the catalogue, print a list of all books by this author and search for each of them. This is similar to using an index on a table.
    Another way is to go through the rays, look at each book and see if there is the author of right. This corresponds to a full table scan.
    If 5 authors wrote all the books in this librrary, while about 20% of the books in this library are by a given author, then the 2nd way might actually be faster; looking at each book can be faster than the search for many books, including, more you save the work of assistance from the catalog and store the results of catalog.

    If the column is not indexed, it make much difference how many distinct values are in colum1.

  • Distinct values on the ov Type NVARCHAR2 column

    Hello

    I have a Table with an Nvarchar2 column (255) on a 10.2.0.4 database.

    I've gathered statistics on the table in different ways, with or without the histograms. I know that the table has about 65,000 distinct values, but dba_tab_col_statistics shows always 10 lines.

    For a test, I created a new column of type VARCHAR2 (255) and copied the nvarchar2 data in varchar2 column. Once I've collected statistics, and for the varchar2 column, it displays the correct value.

    any ideas?

    Concerning

    PK

    Here are some other data:
    Select count (distinct (REPOSID_XMETA)) of tmp;
    COUNT (DISTINCT (REPOSID_XMETA))
    ------------------------------
    63933

    alter table tmp add tmp_col VARCHAR2 (255);
    Modified table.

    > tmp desc

    Name Null? Type
    ----------------------------------------------------------------------------------------------------- -------- --------------------------------------------------------------------
    REPOSID_XMETA NVARCHAR2 (255)
    TMP_COL VARCHAR2 (255)

    setting a day of tmp_col set tmp = REPOSID_XMETA;
    63933 lines to date.
    Commit;
    Validation complete.
    create index tmp_index1 on tmp (REPOSID_XMETA);
    The index is created.

    create index tmp_index2 on tmp (tmp_col);
    The index is created.

    Start
    (dbms_stats.gather_table_stats)

    ownname = > 'SYS ',.
    tabname = > 'TMP ',.
    estimate_percent = > null,
    Cascade = > TRUE,
    level = > 4,
    no_invalidate = > FALSE,
    granularity = > 'AUTO',
    method_opt = > 'for all COLUMNS INDEXED");
    end; /
    Select COLUMN_NAME, DENSITY, NUM_NULLS, NUM_DISTINCT, NUM_BUCKETS in dba_tab_col_statistics where table_name = 'TMP2';
    Separate column
    Name of the density of values NUM_NULLS NUM_BUCKETS
    -------------------------------------------------- ---------- ------- ---------- -----------
    10 0 0 10 REPOSID_XMETA
    63 933 0 0 75 TMP_COL

    Published by: user1131374 on July 1, 2011 05:27

    Just read below link where joze Scheid noted that Oracle's first 32octets even after DBMS_STATS statistics in the columns of multibyte characters.

    Conclusion - converting varchar2 nvarchar2.

    http://Joze-senegacnik.blogspot.com/2009/12/CBO-oddities-in-determing-selectivity.html

    Concerning
    Girish Sharma

  • Binded based on drop-down list values in a table of fluid

    Can anyone help me please with my form of practice?  I'm just started learning make a fillable pdf form. I did my practical form modeled after the purchase order example provided with the installation of livecyle.  I want my table to automatically display the unit price when I select an item in the drop-down list.  I managed to do it using the script below.  The problem comes when I add my guard selection by returning to the first item on the drop-down list or on my first selection on the first row of lines. I would like to add something, the script below.  Help, please.

    menu.JPG

    RefreshmentOrderform.RefreshmentOrder.details.detail [0]. item::change - (JavaScript, client)

    unitprice.rawValue = this.boundItem (xfa.event.newText);

    unitprice.value = xfa.event.newText;

    Hello

    The problem you are having is because the ID of the drop-down list values are duplicated, if I choose cherry slice that get a 3 id (which is supposed to mean $3.00), but it is also the id of the Ambassador (as well as Brownies and coffee).  If similar problem with chocolate tarts going assorted Mini Cookies.

    If you keep the unique id.  At first, I thought that you must assign the id 1,2,3,4... and a search in the table for the price, but I liked your idea to keep it all in the drop-down menu control, so if you changed do so their unique, something like 1: 3. 00, 2:1. 50, 3:3. 00,... you could strip the part before the colon by changing your code change event;

    unitprice.rawValue = this.boundItem (xfa.event.newText).split(":") [1];

    That transforms the id in a table and takes the second element.

    In addition, there are a few errors in your form.  In Acrobat (or reader) you should turn on 'See the console on errors and messages', which is located under preferences... JavaScript.

    The second line in your change event causes a runtime error as the value property of a numeric field is its default value and to reference properly, you need to use.

    unitprice.value.oneOfChild.value

    But you do not have this line at all in this case.

    There is also a problem with the initialization script in numServiceChargerate, that looks like a problem of displacement of FormCalc in some parts of the JavaScript form in others, I would try and stick with one or the other.

    Good luck

    Bruce

  • How do complete you 1 text box with multiple drop-down list values

    I can fill in a text box with a value in a drop-down list, but if I have 2 drop-down list values going to the same area of text (multiple lines), the second drop-down list value removes the first value.

    (A similar code on the drop-down list 1 and 2 from the drop-down list)

    Change event - JavaScript

    If (xfa.event.newText == 'No') {}

    Form1.Page1.subform2.Description.RawValue = "no location listed.

    }

    If (xfa.event.newText == "Partial renting") {}

    Form1.Page1.subform2.Description.RawValue = "enumerated part place."

    }

    Do I have to Concat the fields in 1 text field so that it can have several values in drop-down list, and if so how do I do that?

    Thanks in advance for your help.

    Resolved:

    Place this script in the root of the subform in the FormReady - JavaScript event.

    oList var = this.getDeltas ();

    for (i = 0; i< olist.length;="" i="">

    {

    var oDelta = oList.item (i);

    oDelta.restore ();

    }

    Answer was found at http://forms.stefcameron.com/2008/09/29/restoring-the-of-your-form/

Maybe you are looking for