Submit text values from checkboxes?

Hi - using asp/access/vbscript.
I try to build a form where user can select multiple
checkboxes. Each checkbox has its own db table, and is submitted as
text.
But doing this gives this error: Invalid string or buffer
length
Is it not possible to submit text values from checkboxes?
Bjorn.

Can we see the code? I have a feeling it has something to do
with the
checkboxes that aren't checked when submitting the form, but
won't swear to
that without code.
Bryan Ashcraft (remove brain to reply)
Web Application Developer
Wright Medical Technologies, Inc.
=============================
Macromedia Certified Dreamweaver Developer
Adobe Community Expert (DW) ::
http://www.adobe.com/communities/experts/
"btn" <[email protected]> wrote in message
news:e66s0b$lh1$[email protected]..
> Hi - using asp/access/vbscript.
>
> I try to build a form where user can select multiple
checkboxes. Each
> checkbox
> has its own db table, and is submitted as text.
>
> But doing this gives this error: Invalid string or
buffer length
>
> Is it not possible to submit text values from
checkboxes?
>
> Bjorn.
>
>

Similar Messages

  • How to get total value from checkbox list?

    I have a list of checkbox items - all number values. I want to then get the total value from all of the check items and add that value to the database. Can this be done?
    Also, anyone know of one source where I can get detailed information on how to best use Web Apps and all of it's possibilities and limitations? Most of the tutorials that I have seen so far say that you can do most anything with Web Apps; however, the tutorial examples leave a lot of questions unanswered. I saw that Adobe has an article that shows how to build a basic web app and that it is "part 1" in a series. Anyone know where to find parts 2, 3, etc?
    Thanks,

    Hi there,
    Good day, i hope this will give you some ideas
    for example this is your html
    <input type="checkbox" name="test" value="1">1
    <input type="checkbox" name="test" value="2">2
    <input type="checkbox" name="test" value="3">3
    <input type="checkbox" name="test" value="4">4
    and this is your jquery script
    <script type="text/javascript">
    jQuery("input@[name='test']").click(function() {
        var istrue = jQuery(this).is(":checked");
        if(istrue == true) {
            var urvalue = jQuery(this).val();
            alert(urvalue);
    </script>
    hope this helps you

  • How to get input text values from adf table - Urgent

    Hi Friends,
    This is my requirement. I designed customized master - detail - detail page. I customized the page in below format.
    1. Master Data Field (Input text,etc) .
    2. Detail in table format ( Rows are mapped to child table) and i given two buttons for to create row and delete row. I designed the table based on the example provided in forum for to create customized table. The input text component is mapped to the rows.
    Now i want to retrieve all the data's entered in the rows. The table is mapped to child table. When i read the values from the table its showing null.
    If any one faced this problem and fixed it, please send me the solution.
    Thanks & Regards
    VB

    Did you look into the valueChangeEvent?
    It has oldValue and newValue attributes.
    public void SaveMaterial(ValueChangeEvent valueChangeEvent) {
    Object oldVal = valueChangeEvent.getOldValue();
    Object newVal = valueChangeEvent.getNewValue();
    // check if you see what you are looking for.....
    getSelectedRow();
    SaveMaterial(material);
    }Timo

  • Output a text value from formula in query designer

    I need to display different text values in a query. For example, if actual delivery date falls within 5 days of planned delivery date, display 'ON-TIME'; if earlier than 5 days display 'EARLY', if later than 5 days display 'LATE', etc. I've been researching this to death. Does it have to be a customer exit variable or is there a better way to do this?
    thanks!

    Hello Jill,
    Yes creating three CKF's was correct and those will output a 1 if your condition satisfies else a zero. Create a new formulae and use a the  CKF's that you created and multiply with 2,3,4.
    Example : Formulae Description "Early=2" ,"Late =3","Ontime=4"
    Then your logic is "ckf12 + ckf23 + ckf3*4" which means only one will be true per line so it will result in either 2 or 3 or 4.You will see
    Delivery Date       Scheduled Date   "Early=2" ,"Late =3","Ontime=4"    
    12/20/2007            12/24/2007                          2
    12/22/2007            12/21/2007                          3  
    You will have to create a Text Variable with Customer Exit option which will say if output of  example Tech name of "Early=2" ,"Late =3","Ontime=4" is "ZEar_Lat_Otime"
    When "ZEar_Lat_Otime"
       if     Result= 2 then "Early",
       if     Result =3 then "Late"
      else  Result =4 then "Ontime"
      into   "Text_Variable"
    code to be some thing like that.
    Result Display:
    Delivery Date       Scheduled Date   "Early=2" ,"Late =3","Ontime=4"    
    12/20/2007            12/24/2007                          Early
    12/22/2007            12/21/2007                        Late
    Show your client the below result and see if he is OK with the result then you dont have to use Customer Exit.
    Delivery Date       Scheduled Date   "Early=2" ,"Late =3","Ontime=4"    
    12/20/2007            12/24/2007                          2
    12/22/2007            12/21/2007                          3

  • Copy fixed text values from shopping cart to PO in SRMSERVER 5.5

    Hi,
    We use SRMSERVER 5.5 and want to use text schemas with fixed values to allow the user to in the shopping cart select specific predefined texts that should be visible on the output of the PO.
    When looking at the IMG documentation for standard text schemas, there is one line saying "Note: The system can only copy the long texts for text types for which no fixed values have been defined in Customizing for the source text schema or for the text type in the follow-on document."
    Do you have any idea how we can copy the fixed values to the PO from the shopping cart? I have taken a look at BADI BBP_LONGTEXT_BADI but I am not sure how this badi coudl help for the transfer of fixed values.
    Thanks for any help,
    Christine Hammerströ

    Hi
    <b>Please go through this -></b>
    <u>SRM - SPRO Settings -></u>
    Text Types Menu Path : SPRO -> SAP Implementation Guide &#8594; Supplier Relationship Management &#8594; SRM Server &#8594; Cross- Application Basic Settings -> Text Schema -> Define Text Types
    Text Schema: Menu Path : SPRO -> SAP Implementation Guide &#8594; Supplier Relationship Management &#8594; SRM Server &#8594; Cross- Application Basic Settings -> Text Schema -> Define Text Schema
    Fixed Values: Menu Path : SPRO ->SAP Implementation Guide &#8594; Supplier Relationship Management &#8594; SRM Server &#8594; Cross- Application Basic Settings -> Text Schema -> Define Fixed Values for Texts
    <u>Please read note 425117 and 581594.</u>
    <b>Related links -></b>
    Re: Reason code required for movement type 122
    Re: Changing properties of long text box
    Hope this will help. Do let me know.
    Regards
    - Atul

  • Getting values from checkboxes and emailing

    I have several checkboxes name="area[]"
    the user can check as many as they like.
    To get the value in php I used
    $f_area = $_REQUEST['area'] ;
    and if I want to print out the values I say
    echo $f_area[0];
    echo $f_area[1];
    echo $f_area[2];
    The problem occurs when the user don't check every single
    checkbox because it still prints the maximum number of items.
    I know I need to use a loop and have it run as many times as
    there are items in the array so I used the following code which
    doesn't work.
    $j = count ($f_area);
    $l_area = "";
    for ($i = 0; $i <= $j; $i++)
    echo $l_area
    . "<br>";
    can anyone let me know what is wrong with my loop?

    OK I am really tired. I forgot my $ before the i in the echo
    $l_area
    . "<br>";

  • How to get the short text values from F4 SEARCH HELP

    Hi Friends,
       My requirement is in  Module -pool Screen Programming,  i have Designed one field in a custom screen and  provided a F4 search help to that field..
    For eg the F4 help is displayed as below.
    Value                   short text
      1                    A          
      2                              B
      3                       C
      4                              D
      5                       E
      6                       F
      7                          G
    When i select the first option (1) then value 1 appears in the field.
    now i want the text relevant to the value 1 to appear by the side of the field.
    Eg :            1                  A      (A should appear by the side of the value 1)
    How do i achieve it?
    Kindly help me.
    Regards,
    K.S.Kannan.
    Edited by: kannan ks on Dec 8, 2008 4:05 PM

    hi
    1) place a field adjacent to your value field on which F4 is operated
    so now you will have 2 fields.
    iam considering it as for ex: field1 & field2
    2)
    BOLD one is import in FM call
    CLEAR: t_dynpfld_mapping,
    e_dynpfld_mapping.
    e_dynpfld_mapping-fldname = 'F0001'.           
    e_dynpfld_mapping-dyfldname =      -
    > name of field1  (for ex: your 1 value field name)
    APPEND e_dynpfld_mapping TO t_dynpfld_mapping.
    e_dynpfld_mapping-fldname = 'F0002'.
    e_dynpfld_mapping-dyfldname =   -
    > name of field2  (for ex: your short text field name)
    APPEND e_dynpfld_mapping TO t_dynpfld_mapping.
    3))))))))
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    retfield =    
    dynpprog = sy-repid
    dynpnr = sy-dynnr
    dynprofield = -
    > name of field1  (for ex: your 1 value field name)
    value_org = 'S'
    TABLES
    value_tab = itab
    dynpfld_mapping = t_dynpfld_mapping
    EXCEPTIONS
    PARAMETER_ERROR = 1
    NO_VALUES_FOUND = 2
    OTHERS = 3

  • Get selected values from checkbox group

    Hi, I am working a jsf project on NetBeans 6 with the woodstock project and I want to save in a list or an array or something, the ids of the checkboxes that are selected into a checkboxgroup.Could someone explain to me the process of this?I am a newbie so I don't really know where to start.I'm guessing it has something to do with binding with beans but as I said I don't know how to do that..my code of the checkboxgroup in the jsp page is:
    <webuijsf:checkboxGroup binding="#{Page1.checkboxGroup1}" id="checkboxGroup1" immediate="true"
    items="#{Page1.personDataProvider.options['person.Name,person.Name']}" selected="#{RequestBean1.selected}"/>

    RTFM or Google - choice is yours

  • Accessing text value from dropdownlist

    I have a dropdown list whose selected value is to be accessed in a method. I have used this.getIstdcddl().getValue(), but it returns the index number of the dropdown and not the actual value of it. I would be glad if someone could answer this problem.
    Edited by: 849110 on 1 Apr, 2011 3:28 AM

    As createValueBinding() is a depricated method you can use the following.
    Here is the code..
    DCBindingContainer dcBindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding iterBind =
    (DCIteratorBinding)dcBindings.get("MyView1Iterator");
    if (this.reasonDropDown.getValue() != null) {
    int rowIndex =
    Integer.parseInt(this.reasonDropDown.getValue().toString());
    Row rw = iterBind.getRowAtRangeIndex(rowIndex);
    if (rw != null) {
    reasonCode = rw.getAttribute("AttributeName").toString().trim();
    Hope this helps...
    ~Abhijit
    Edited by: Abhijit Dutta on Apr 1, 2011 4:46 PM

  • How to get selected text values in a textarea by mouse click?

    Hi Everyone,
    What I am trying to do is to click on some texts in a textarea, then get the selected text value.
    If you guys have used an accounting software called Simply Accounting, you might understand better.
    I list all my customer names in a textarea. What I want is, when I click on one customer, another GUI pops up with this customer's information. My problem is that I don't know how to get the selected text value from a textarea.
    Could anyone give a hand here? Thank you in advance.

    Is there some reason you aren't using a JList or
    JTable to display
    the user names/information?Thank you for es5f2000's reply. You just gave me a better idea! There is not a particular reason I have to use TextArea to list my customers. As long as the component can make my idea alive, I definitely use it. Still, if there is any way to get a selected text value, it will help me a lot with my project. Thank you.

  • How do you get a Node's text value using DOM?

    Hi,
    Can anyone tell me how I can extract the text values from <currency>, <Handle>, <shortcut> and <source> tags?
    This is my Code
    import org.w3c.dom.*;
    import org.apache.xerces.parsers.DOMParser;
    public class CurveConfSave{
    public static void walkover(Node n){
    if( n.getNodeType() == Node.ELEMENT_NODE){
         System.out.println("Walking over: " + ((Element)n).getNodeName());
         for( Node c = n.getFirstChild();c != null;c=c.getNextSibling()){
              walkover(c);
    public static void main(String[] args) {
    try {
    DOMParser p = new DOMParser();
    p.parse("CurveConf1.xml");
    Document doc = p.getDocument();
    NodeList liveCurvesNodeList = doc.getElementsByTagName("LiveCurves");
    System.out.println("Num items: " + liveCurvesNodeList.getLength());
    // Get the first node from the node list
    Node liveCurvesNode = liveCurvesNodeList.item(0);
    System.out.println("Live Curves Node: " + liveCurvesNode.getNodeName());
    walkover(liveCurvesNode);
    } catch (Exception ex) {
    System.out.println(ex);
    This is the xml chunk that I want to mainpulate
    <LiveCurves>
    <dd.enumerate>
    <AUD>
    <Currency>AUD</Currency>
    <Handle>GregB_AUD.today.</Handle>
    <Shortcut>LondonJava</Shortcut>
    <Source>XDB</Source>
    </AUD>
    </dd.enumerate>
    <dd.enumerate>
    <CAD>
    <Currency>CAD</Currency>
    <Handle>GregB_CAD.today.</Handle>
    <Shortcut>LondonJava</Shortcut>
    <Source>XDB</Source>
    </CAD>
    </dd.enumerate>

    This is the new modified code but I still get blanks for the Text Values I am trying to retrieve....
    import org.w3c.dom.*;
    import org.apache.xerces.parsers.DOMParser;
    public class CurveConfSave{
    public static void walkover(Node n){
    if( n.getNodeType() == Node.ELEMENT_NODE){
         System.out.println("Walking over: " + ((Element)n).getNodeName());
         for( Node c = n.getFirstChild();c != null;c=c.getNextSibling()){
              if("GBP".equals(c.getNodeName())){
                        NodeList childNodes = c.getChildNodes();
                        System.out.println("Child Nodes Length " + childNodes.getLength());
                        for (int i=0; i < childNodes.getLength();i++){
                        if(childNodes.item(i).getNodeType() == Node.ELEMENT_NODE){
                        System.out.println("Node value: " + "[" + childNodes.item(i).getNodeName() + "]");
                        if(childNodes.item(i).getNodeType() == Node.TEXT_NODE){
                        System.out.println("Node value: " + "[" + childNodes.item(i).getNodeValue() + "]");
                   System.exit(0);
              walkover(c);
    public static void main(String[] args) {
    try {
    DOMParser p = new DOMParser();
    p.parse("CurveConf1.xml");
    Document doc = p.getDocument();
    NodeList liveCurvesNodeList = doc.getElementsByTagName("LiveCurves");
    System.out.println("Num items: " + liveCurvesNodeList.getLength());
    // Get the first node from the node list
    Node liveCurvesNode = liveCurvesNodeList.item(0);
    System.out.println("Live Curves Node: " + liveCurvesNode.getNodeName());
    walkover(liveCurvesNode);
    } catch (Exception ex) {
    System.out.println(ex);

  • Inserting multiple selection from checkbox in to one column of the database

    Hi,
    how to insert multiple selection from checkbox into one column of the database.(I select array of values from checkbox ,then how to insert tat array of values iinto single column name).
    Anyone can u reply me
    Thanx

    hhhmmm.... is this what you mean?
    lets say you hava a checkbox1 with values value1, value2, value3 and you selected all there of them? then you want then to be stored in the database in one column?
    now the question is:
    Is it going to be one column one row?
    datafield
    value1,value2,value3
    Or one column multiple row?
    datafield
    value1
    value2
    value3
    Which is it?

  • Inserting multiple selection from checkbox into one column of the database

    Hi,
    How to insert multiple selection values from checkbox into one column of the database.
    Anyone can u help me
    Thanx

    hi
    try to use request.getParameterValues("fieldname")

  • How to get selected values (using checkBox) from DataGrid in flex.

    i have a datagrid which is getting values from a XML file (getting this xml file from database using PHP and HTTP request in flex). i have created a checkbox in every row in data grid. and here is my requirement: i want to select tow or three check-box and would like to get all the values form that particular ROWs in some form , prefered arraycollection (such that i can pass this array directly to a bar chart) .. can some one help me as i am new to flex .
    code ......
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="siteData.send()">
              <mx:Script>
                        <![CDATA[
                                  import mx.collections.XMLListCollection;
                                  import mx.controls.*;
                                  import mx.events.ListEvent;
                                  import mx.rpc.events.ResultEvent;
                                  import mx.controls.Alert;
                                  [Bindable] private var fullXML:XMLList;
                                  private function contentHandler(evt:ResultEvent):void{
                                            fullXML = evt.result.values;
                        ]]>
              </mx:Script>
              <mx:VBox>
                        <mx:Label text="This Data Grid is loading the full XML file"/>
                        <mx:DataGrid width="600"  id="datagrid" dataProvider="{fullXML}">
                                  <mx:columns>
                                            <mx:DataGridColumn headerText="Select">
                                                      <mx:itemRenderer>
                                                                <mx:Component>
                                                                          <mx:HBox horizontalAlign="center">
                                                                                    <mx:CheckBox id="check"/>
                                                                          </mx:HBox>
                                                                </mx:Component>
                                                      </mx:itemRenderer>
                                            </mx:DataGridColumn>
                                            <mx:DataGridColumn dataField="release_version" headerText="Release"/>
                                            <mx:DataGridColumn dataField="build" headerText="build"/>
                                            <mx:DataGridColumn dataField="time_login" headerText="time_login"/>
                                            <mx:DataGridColumn dataField="time_tunnel" headerText="time_tunnel"/>
                                            <mx:DataGridColumn dataField="rate_login" headerText="time_tunnel"/>
                                            <mx:DataGridColumn dataField="rate_tunnel" headerText="rate_tunnel"/>
                                  </mx:columns>
                        </mx:DataGrid>
              </mx:VBox>
              <mx:HTTPService url="http://localhost/php_genxml.php" id="siteData" result="contentHandler(event)" resultFormat="e4x"/>
    </mx:Application>
    as you can see in the image , i will get this datgrid . now i want to select two or three checkboxes and would like to get all the values form the perticular row (for which check box is selected). i would like to get in array from such that i can driectly pass them to bar chart....
    can some one help me in this. as i m new to flex. or if you have some other suggestion ...My final requirement is: select some values and generate bar gharph for those values.
    please help me in this.
    thanks
    tanuj

    Hi Timo -
    Thanks for the suggestion. I could get the values as below:
    public void multiOpUnitValChange(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding opUnitIter = (DCIteratorBinding)bindings.get("OperatingUnit2VOIterator");
    Integer[] values = (Integer[])valueChangeEvent.getNewValue();
    for (int i=0; i<values.length; i++){
    Row row = opUnitIter.getRowAtRangeIndex(i);
    System.out.println(row.getAttribute("OpUnitId"));
    Thanks -
    Rohit

  • Pass selected values from a checkbox

    hello everybody
    i was looking for a similar thread but i couldn't find the answer i'm need, so here's my question.
    i have an checkbox populated from a dynamic LOV. it is showing me the correct values, but i haven't been able to receive the selected values on the other page. i always receive the first value.
    For example
    My options ar: code 1
    code 5
    code 9
    code 10
    When I checked 5 and 9 and submit the page (i submit the page to itself), my the values in the URL are siomething like '....%2C5:9', but the only checked value is 5.
    How must i send the values to receive them in the correct way? I tried 'checkbox' and 'multiselect list' and they had the same behaviour.
    Thanks in advance.
    Daniel.

    Hi Daniel
    This happens because : (colon) is used to separate parameters in the URL as well.
    To solve it, I used the following code in a after submit computation on the checkbox field:
    replace(:p500_checkbox, ':', '|') -- value becomes 1|2|3|4 (URL friendly)
    Then in a before header computation:
    replace(:p500_checkbox, '|', ':') -- value goes back to 1:2:3:4
    It worked well, though I am sure there must be a more intelligent way to do it...
    Luis

Maybe you are looking for

  • Forms Migration from 4.5 to 10g

    Hi , I want to migrate my forms from 4.5 to 10g so i did following steps: 1. Installed Developer suite 10g 2. Took a sample form developed in 4.5 and comiled it in 10g builder utilized the sample.fmx file for 10g the test was successful , I need to m

  • Doubt to create a job to run a executable oracle 10g

    Hi guys, I´m using oracle 10gR2 and trying to schedule a job to execute a automatic import every night and then drop the dmp file. I would like to know if it´s possible.. I´m configuring via web enterprise manager and in the option : "Command Select

  • How to redirect to library on button click in sandbox visual web part solution for office 365

    Hi, I have created a sandbox solution for Office 365 with one text box and a button.  On button click i am creating a library with name from text box.  So, what i want is redirect to newly created library as soon it get created on button click. how c

  • Error on install of SOA 11.1.1.5 on Win7x64 Pro

    I have installed SOA 11.1.1.5 on Win7x64 Pro a couple of times and all went well. I had to reinstall it on the same box. I removed ALL Oracle components, SOA, WLS, XE and went through the install procedure again: XE, rcu, WLS - no issues. Specified 6

  • Referencing subform instances

    I have a tricky issue now that I am hoping someone can help with. I have an 8 page XFA form where the first 4 pages cannot be made expandable because the recipient company has to scan them when sent in by customers - so layout has to stay fixed. On p