Radio Button Data Binding

Hi All,
I am a vb beginner and I was wondering how you bind a radio button to a field in a database that has choice of 2 values. For example the field in my db is CoverType and the user should be able to select Hardcover or Paperback.
Don't seem to be able to do get radio buttons to represent this on my form.
Thanks very much 

Hi Colin,
I'm having the same trouble, and although I work in 'Classic' HTML & Vb this might be useful for you.
I found that with Radio Buttons, you can bind each one in a group to the same DataSrc & DataFld.  Since all the Radios have the same Name and ID they switch between as usual, however, each radio has a different Value which is updated into the XML.
<xml ID=ERRI>  
<ROOT> 
<RATE> 
<RATE1></RATE1>  
</RATE> 
</ROOT> 
</xml> 
<Table DataSrc=#ERRI DataFld=RATE>  
<tr><Td colspan=5><b>Rate This</b></td></tr> 
<Tr><Td><Input DataSrc=#ERRI DataFld=RATE.RATE1 Value="1" Type=Radio id=Radio1 name=Radio1></Td><td>1</td></Tr>  
<Tr><Td><Input DataSrc=#ERRI DataFld=RATE.RATE1 Value="2" Type=Radio id=Radio1 name=Radio1></Td><td>2</td></Tr>  
<Tr><Td><Input DataSrc=#ERRI DataFld=RATE.RATE1 Value="3" Type=Radio id=Radio1 name=Radio1></Td><td>3</td></Tr>  
<Tr><Td><Input DataSrc=#ERRI DataFld=RATE.RATE1 Value="4" Type=Radio id=Radio1 name=Radio1></Td><td>4</td></Tr>  
</Table> 

Similar Messages

  • Inserting Radio Button Data

    I am not able to get <cfinsert> to work to insert into a remote DB2 database.  I have been able to get cfquery INSERT's to insert into the DB2 database.  I have not been able to get radio button data to INSERT into this database.
    This is what I have tried:
    surveyForm.cfm:
    <html>
    <head>
    <title>Survey Form</title>
    </head>
    <body>
    <h2>Enter a Survey Form</h2>
    <cfform action="surveyAction.cfm" method="post">
    Branch:
    <cfinput type="text" name="BRANCH" size="4" maxlength="4"><br><br>
    Contact Name:
    <cfinput type="text" name="CONTACT_NAME" size="40" maxlength="40"><br><br>
    Did you get what you needed today? &nbsp
    <cfinput type="radio" name="NEED_FLAG" id="radio" value="Y">Yes
    <cfinput type="radio" name="NEED_FLAG" id="radio" value="N">No
    <cfinput type="radio" name="NEED_FLAG" id="radio" value="X">Did Not Answer<br><br>
    <br><br>
    <input type="Submit" value="Submit"> <input type="Reset"
    value="Clear Form"></td>
    </cfform>
    </body>
    </html>
    surveyAction.cfm:
    <html>
    <head> <title>Insert Survey Form</title> </head>
    <body>
    <!--- This works until I add the radio button to the insert --->
    <!--- Insert the new record --->
    <cfquery datasource="AXMISC_SURVEY">
       INSERT INTO SURVEY.CAF_SURVEY
       (BRANCH, CONTACT_NAME, NEED_FLAG)
       VALUES
       ( <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.BRANCH#">,
      <cfqueryparam cfsqltype="cf_sql_char" value="#form.CONTACT_NAME#">
         <cfqueryparam cfsqltype="cf_sql_char" value="#form.NEED_FLAG#">
    </cfquery>
    </body>
    </html>
    Thanks,
    Jeanne

    zer0Weaver wrote:
    <!--- This works until I add the radio button to the insert --->
    <!--- Insert the new record --->
    <cfquery datasource="AXMISC_SURVEY">
       INSERT INTO SURVEY.CAF_SURVEY
       (BRANCH, CONTACT_NAME, NEED_FLAG)
       VALUES
       ( <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.BRANCH#">,
      <cfqueryparam cfsqltype="cf_sql_char" value="#form.CONTACT_NAME#">
         <cfqueryparam cfsqltype="cf_sql_char" value="#form.NEED_FLAG#">
    </cfquery>
    </body>
    </html>
    Hi Jeanne,
    Thanks for posting the relevant information, but you forgot to mention what _is_ happening  now ;-)  Does an error occur, and if so  what is the error message, etcetera.. ? But my guess would be you are missing a comma in the VALUES (...) clause:
    VALUES
    <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.BRANCH#">      ,
    <cfqueryparam cfsqltype="cf_sql_char" value="#form.CONTACT_NAME#">   ,  <!--- should be a comma here --->
    <cfqueryparam cfsqltype="cf_sql_char" value="#form.NEED_FLAG#">

  • Radio button data to php form

    I set up a survey, and I need the info from the radio button
    groups to send to a php form that will email me the results. So far
    I have not been able to get it to work. All I have so far is the
    code below attached to the submit button. I had a working contact
    form that I am trying to add radio buttons to, but they do not pass
    their info like the input text boxs do. I am a beginner with
    actionscript so I am having trouble finding where to get this to
    work. I have all my peramiters set on each radio button too. I just
    do not know what script to add to what I have so it will pass the
    data over to the php form.
    I have the survey as one MC which is inside a scroll pane if
    that matters. What I have so far can be seen here.
    http://ebinx.com/carrand/freestuffswf.swf
    Thanks

    bump

  • Radio Buttons, Global Binding, and Change Event

    I have a pair of radio button groups with the same name that I have set to Global binding.  The radio buttons in these radio button groups have script in the change event.  The problem is, when I click on a button in one group, it doesn't fire the change event in the other one, even though the corresponding button changes.  I can work around this, but I'm curious why this doesn't work.

    ocen12 is correct - the change event will only fire when a user clicks on the radiobutton. It will not fire when a script changes the value. I tried it here and found that the radio buttons on both groups act like they are under the same exclusion group. Do you see the same thing? If I select a value in the second exclusion group any value I had in the 1st one is gone.
    Paul

  • Retrieve radio button data from database

    Hello,
    I have a website developed using html, jsp and connected to an oracle database. I have a registration form namely registation.jsp where i have a set of radio buttons. Then I have a duplicate of that form namely registration_edit.jsp which I have named an edit one as all data which i have put on my registration will appear on the edit one where a person can edit his data. The problem is that only the radio buttons and checkboxes i am not able to retrieve their values from the registation.jsp to the registration_edit.jsp. Can u please give the codes for the radio buttons and check boxes? below i am copying some of the codes of my registration_edit.jsp for you to get an idea of what i want.
    Thank you and if u could plz give an urgent response as i need to submit my project.
    For radio buttons:
    <td valign="middle"><input name="biztype" checked="checked" type="radio" id="biztype3" onclick="checko();" value="corporate" />
                    <span class="TXT"> </span> Corporate/Limited</td>
                <td valign="middle"><input name="biztype" checked="checked" type="radio" id="radio2" onclick="checko();" value="partnership" />
      Partnership</td>
                <td valign="middle"><input name="biztype" checked="checked" type="radio" id="biztype1" onclick="checko();" value="other"/>
      Other
        <input name="biztypeo" type="text" disabled="disabled" id="biztypeo" value="<%=biztypeo%>" size="30" maxlength="20"/></td>For check boxes:
    <td width="273" valign="middle" class="style4"><font face="Verdana, Arial, Helvetica, sans-serif">
                  <input name="work1" type="checkbox" id="work1" value="Air conditioning installations" />
                  <font size="2">Air conditioning installations</font></font></td>
                <td width="252" valign="middle" class="style4"><font face="Verdana, Arial, Helvetica, sans-serif">
                  <input name="work2" type="checkbox" id="work2" value="Asphalt paving" />
                  <font size="2">Asphalt paving</font></font></td>
                <td width="277" valign="middle" class="style4"><font face="Verdana, Arial, Helvetica, sans-serif">
                  <input name="work3" type="checkbox" id="work3" value="Cable installation" />
                  <font size="2">Cable installation</font></font></td>Edited by: user4555860 on Jul 8, 2009 11:20 PM

    Mohammed Taj wrote:
    Superb. I never seen this of of urgent query :)
    Thanks
    Regards,
    TajMee too Taj :)
    @OP - It general Database topic. Please post your question unde correct topic to get an answer. Find the related topic from below link:
    http://forums.oracle.com/forums/main.jspa?categoryID=84
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]
    Edited by: Kamran Agayev A. on Jul 9, 2009 11:21 AM

  • Radio Button Data

    I'm putting together a form that I want to contain a group of
    radio buttons. When the form is submitted I want the selected radio
    button to have a value of 1 while all other buttons have a value of
    zero. I am only finding a selectedValue property which won't give
    me anything for the non-selected buttons (at least I don't think it
    will). Any suggestions on how to approach this?

    Hi,
    Please try using getRadioButtonAt function, numRadioButtons
    and selection properties of RadioButtonGroup together to solve the
    problem.
    Hope this helps.

  • Radio buttons and PHP

    I am having a problem getting radio button data into php and I can not seem to find any answers. My project is simple I have a group of radio buttons, when one is selected and a submit button is pressed I want the data from the radio button to populate the subject line of an email and send it. It sounds simple but I am having a lot of problems figuring it out and would appreciate any help I can get. I am good (not great) with flash, ok with PHP but for some reason this is taking a long time to fugure out. I can make a form work with input fields but not with radio button data.

    Use variables, not the text field var option from the Properties panel... not a reliable resource.  Give the textfield an instance name and use its text property to assign the value to a variable.
    I haven't dealt with AS2 to PHP much, but are you using the LoadVars class to manage getting the data to the PHP file?  I think the send() or sendAndLoad() methods are what you want to use.
    If you search Google using "AS2 LoadVars" you are likely to find a number of helpful tutorials, including those that focus on PHP being in the picture.

  • Disabling fields on the basis of radio button selected

    Hi experts,
    I have a requirement where in i have a dialogue screen which has radio buttons and few other input fields.
    when i check a radio button on the screen i have to get an input field greyed out on the same screen immediately.
    i have grouped the input fields to be greyed out as GR1.
    i used the following code in the PBO of the screen which is not working,
    if  oradio eq 'X'.
          loop at screen.
            if screen-name = 'S_CREATE'.
              screen-group1 = 'GR1'.
              screen-input   = 0.
            endif.
            modify screen.
          endloop.
    endif.
    please give some input.

    Hi
    *Hello Just do the Following.*
    *" I think you are missing the below Grouping Part otherwise your code looks ok*
    *go to EDIT -->Grouping--> Radio Button Group --> Define " before this select all the Radio Buttons.*
    *all the radio button names should be r1, r2, r3 etc as declared above " Make their names same whatever you give.*
    *" Assign a Function Code for them So that automatic PAI/PBO will Take Place once you select a radio Button*
    In TOP include/ Global area declare no of radio buttons.
    data : r1, r2, r3. etc " Default they take char with one length.
    if you are in Dialog program
    " I think you are missing the below Grouping Part otherwise your code looks ok
    go to EDIT -->Grouping--> Radio Button Group --> Define " before this select all the Radio Buttons.
    all the radio button names should be r1, r2, r3 etc as declared above " Make their names same whatever you give.
    " Assign a Function Code for them So that automatic PAI/PBO will Take Place once you select a radio Button
    in PBO
    module modify_screen.
    Now in Program
    Module modify_screen.
    if r1 = 'X'.
    loop at screen.
    if screen-group1 = 'GRP'.
    screen-input = 0 " or 1.
    modify screen.
    else" implement for other Radio buttons
    endloop.
    endmodule.
    Cheerz
    Ram

  • Radio Bullet Data  Doesn't Export

    I am having trouble getting the radio bullet the user selects to export to my spreadsheet.
    One is Vacation and the other is PersonalLeave. I named the subfolder EmployeeInfo
    Any idea why the selection does not export. I did click the "Specify Item Values" and named them because I am using a script below to populate a drop down based on which bullet they select.
    Form1.PayInfo.HoursPaid::preOpen - (JavaScript, client)
    this.rawValue == null;
    this.clearItems();
    if(EmployeeInfo.VacationOrPersonalLeave.PersonalLeave.rawValue == "Personal Leave")
    this.addItem("4 Hours", "4");
    this.addItem("8 Hours", "8");
    if(EmployeeInfo.VacationOrPersonalLeave.rawValue == "Vacation")
    this.addItem("4 Hours", "4");
    this.addItem("8 Hours", "8");
    this.addItem("5 Hours", "5");
    this.addItem("10 Hours", "10");

    I am still having the same trouble. The objects function the way I intended but the radio button data still will not export. I must be doing something fundamentally wrong but I can't see what it is. The link below is to a example of what is happening:
    https://acrobat.com/#d=QnUfZGas4GTX9LfmIPuEAQ
    Thanks for your help with this...
    ~Don

  • Want excute the program accourding to the radio buttons

    hello,
    i am writing an extraction program. here i want to get the out put file in diffrent formats based on the selection on myselection screen.
    if
    I seclect the radio button "EXCEL" the output should be excel file.
    else
    if
    I select the  radio button  "DAT"  the output should be DAT file.
    Thanks,
    vineetha.

    Hi Vineetha,
    Check this program..
    PARAMETERS:p_vbeln LIKE vbrp-vbeln.
    Parameters:EXCEL  radiobutton group GP1.
    Parameters:TEXT  radiobutton group GP1.
    DATA:BEGIN OF it_vbrp OCCURS 0,
         vbeln LIKE vbrp-vbeln,
         posnr LIKE vbrp-posnr,
         meins LIKE vbrp-meins,
         ntgew LIKE vbrp-ntgew,
         END OF it_vbrp.
    START-OF-SELECTION.
         SELECT vbeln
           posnr
           meins
           ntgew FROM vbrp INTO TABLE it_vbrp where vbeln eq p_vbeln.
    if EXCEL = 'X'.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        FILENAME  ='C:\Documents and Settings\Vishnu.Chintala\reddy.xls'
      TABLES
        DATA_TAB                      = IT_VBRP
    EXCEPTIONS
       FILE_WRITE_ERROR              = 1
       NO_BATCH                      = 2
       GUI_REFUSE_FILETRANSFER       = 3
       INVALID_TYPE                  = 4
       NO_AUTHORITY                  = 5
       UNKNOWN_ERROR                 = 6
       HEADER_NOT_ALLOWED            = 7
       SEPARATOR_NOT_ALLOWED         = 8
       FILESIZE_NOT_ALLOWED          = 9
       HEADER_TOO_LONG               = 10
       DP_ERROR_CREATE               = 11
       DP_ERROR_SEND                 = 12
       DP_ERROR_WRITE                = 13
       UNKNOWN_DP_ERROR              = 14
       ACCESS_DENIED                 = 15
       DP_OUT_OF_MEMORY              = 16
       DISK_FULL                     = 17
       DP_TIMEOUT                    = 18
       FILE_NOT_FOUND                = 19
       DATAPROVIDER_EXCEPTION        = 20
       CONTROL_FLUSH_ERROR           = 21
       OTHERS                        = 22
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Endif.
    If TEXT = 'X'.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        FILENAME  ='C:\Documents and Settings\Vishnu.Chintala\reddy2.TXT'
      TABLES
        DATA_TAB                      = IT_VBRP
    EXCEPTIONS
       FILE_WRITE_ERROR              = 1
       NO_BATCH                      = 2
       GUI_REFUSE_FILETRANSFER       = 3
       INVALID_TYPE                  = 4
       NO_AUTHORITY                  = 5
       UNKNOWN_ERROR                 = 6
       HEADER_NOT_ALLOWED            = 7
       SEPARATOR_NOT_ALLOWED         = 8
       FILESIZE_NOT_ALLOWED          = 9
       HEADER_TOO_LONG               = 10
       DP_ERROR_CREATE               = 11
       DP_ERROR_SEND                 = 12
       DP_ERROR_WRITE                = 13
       UNKNOWN_DP_ERROR              = 14
       ACCESS_DENIED                 = 15
       DP_OUT_OF_MEMORY              = 16
       DISK_FULL                     = 17
       DP_TIMEOUT                    = 18
       FILE_NOT_FOUND                = 19
       DATAPROVIDER_EXCEPTION        = 20
       CONTROL_FLUSH_ERROR           = 21
       OTHERS                        = 22
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endif.

  • Radio Button binding to XML

    Based on the examples
    here
    and
    here
    I have a datagrid which uses an XML object as its dataprovider. The
    xml goes like this:
    <questions>
    <question>
    <prompt>What are your heroes?</prompt>
    <answers>
    <answer>
    <correct>true</correct>
    <text>Luther Higgs</text>
    </answer>
    <answer>
    <correct>false</correct>
    <text>Barney Fife</text>
    </answer>
    </answers>
    </question>
    </questions>
    Well formed (if a bit confusing) xml. In my datagrid I have
    two columns. The second column binds to
    questions.question.answers.answer.text and works just fine. The
    datagrid's editable property is set to true, and I'm able to click
    on the second colum and type and it saves the answer back into the
    xml object just fine. The problem lies in my first column. The mxml
    looks like this:
    <mx:DataGridColumn headerText="Correct">
    <mx:itemRenderer>
    <mx:Component>
    <mx:VBox horizontalAlign="center">
    <mx:RadioButton id="myRadioButton"
    buttonMode="true" useHandCursor="true"
    group="{outerDocument.myRadioButtonGroup}"
    selected="{data.correct}"/>
    </mx:VBox>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    The problem is that the radio buttons' selected properties
    aren't bound to the xml, that is the one that is true doesn't
    display as selected. If I set the datagridcolumn's editable
    property to false, clicking on the radio button doesn't affect the
    xml at all either. If I leave the editable property of the
    datagridcolumn as the inherited default of true (based on the
    parent datagrid's editable property) when I click on the radio
    button the default itemEditor appears (a text input box) which
    contains the following text:
    </answer>
    and when I leave the editor (click outside or hit enter) the
    xml then looks like this:
    <answers>
    <answer>
    <correct>true</correct>
    <text>Luther Higgs</text>
    </answer>
    <answer>
    <correct>false</correct>
    <text>Barney Fife</text>
    <null>&lt;answer&gt;
    &lt;correct&gt;false&lt;/correct&gt;
    &lt;text&gt;Barney Fife&lt;/text&gt;
    &lt;/answer&gt;</null>
    </answer>
    </answers>
    I have seen controls that don't have the xml path written
    correctly display the entire xml node rather than just the
    contained data, but I can think of no reason anything should Ever
    reference just the closing tag. To me this looks like a bug in the
    data bindings between the radio button and the xml object.
    Just to clear the air to avoid suggestions that will work but
    not meet the design requirements, what I need is a datagrid that
    has a radio button group (only one correct answer out of the group)
    in the first column and strings in the second column which need to
    be editable. I suppose I could write some hairy event listener code
    and manually hack things together, but aside from avoiding that
    headache, I'd love to use data bindings for what they were intended
    for - I just need to know why it doesn't appear to be working
    right. Much thanks in advance for any and all help.

    Searching the LiveDocs revealed the answer. Under the topic
    "Using an E4X expression in an <mx:Binding> tag" I found that
    if instead of
    <mx:RadioButton id="myRadioButton"
    buttonMode="true" useHandCursor="true"
    group="{outerDocument.myRadioButtonGroup}"
    selected="{data.correct}"/>
    I have
    <mx:RadioButton id="myRadioButton"
    buttonMode="true" useHandCursor="true"
    group="{outerDocument.myRadioButtonGroup}"/>
    <mx:Binding source="myRadioButton.selected"
    destination="data.correct" />
    It works just perfectly.
    Apparently binding between XML and the selected property of a
    radio button (which is of type boolean) needs the <mx:Binding
    /> rather than the in-tag curly brace notation.
    P.S. The link on livedocs is here:
    http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Live Docs_Book_Parts&file=databinding_091_05.html#177459

  • How can I select a radio button in a table regarding the data in the cells?

    Hi everyone
    This is the issue: I need to select the RadioButton which is in a table with data related to transfers in the cells next to it, so I need to select the correct radio regarding the data next to it.
    This is the whole process: First I go to the Add Recurring Transfer section and select the parameters of the transfer (Accounts, date, amount, months etc), then with VB code I capture those parameters from the page and store them into Global variables for further usage on my E-tester script.
    Right after that I need to select the radiobutton regarding the data of the transfer that I already created in order to delete it or modify it (Please see Attachment selectradio1.jpg)
    So How can I move along the table and compare each cell with the variables that I created with the transfer information, so when I finish comparing a row cell by cell and if all the comparison match well in that row, I could select the radiobutton of the row.
    Note: Second Attachment selectradio2.jpg shows the source code of the table...If you need more info please let me know
    Could you please help me with this problem?? I'm Kind of frustrated with this issue jejeje

    Here is an example. I uploaded mock html so that you can actually try this code. I think this does exactly what you are asking.
    Private Sub RSWVBAPage_afterPlay()
    Dim tbl As HTMLTable
    Dim tblRow As HTMLTableRow
    Dim tblCell As HTMLTableCell
    Dim strValue As String
    Dim rButton As HTMLInputElement
    ' ******** This would be your global variable. I put this so that values are seperated by a semicolin you can use what ever format works for you.
    strValue = "03/22/2008;03/22/2008;*************1977;*************1977;$25.25;Jan, Jun, Jul, Dec"
    ' Strip out the ; for inner text comparison
    strValue = Replace(strValue, ";", "")
    ' This will get the table but can be modifoed to be more specific
    Set tbl = RSWApp.om.FindElement(, "TABLE")
    ' This loops through all the rows in the table until a match to the strValue is found
    ' then clicks the radio button. Findelements allows you to specify a root element
    ' once the correct root row is found, FindElemets can get the correct radio button
    For Each tblRow In tbl.rows
      If tblRow.innerText = strValue Then
        Set rButton = RSWApp.om.FindElement("account", "INPUT", "NAME", , , tblRow)
         rButton.click
       End If
    Next
    End Sub
    I also uploaded the script I created. You should be able to run it and see how it works.
    This should get you going.

  • How can I get data in radio button?

    I want to get data in same page.while the radio button check ,textbox 's which is in the same page , value can be changeable.what can I understand radio button check or not.
    out.println("<td style=\"width: 16%\"><input type='radio' name='rapor1' value='ithalat' ><B>Ithalat</B></td>");

    do some thing like this,
    var rcb=eval('document.mgmodemsdrivers.portChk');
    or di it by ( .getemenetbyid("xyz") )
    if(rcb.checked==true)
    //do process
    after getting it in var , (.checked) will return checked or not .

  • How to auto-populate dates in a calendar based on radio buttons?

    Hi,
    I'm trying to create an availability form that is submitted on a monthly basis. What I'd like is to have a radio button the user could click to indicate what day the first of the month falls on (Monday through Sunday), and have fields auto-populate with the remainder of the dates on the calendar. As it stands right now, I've got the radio buttons and the text fields, but I'm running into serious issues getting the text fields to auto-fill based on the selected radio button.
    I've labelled the radio button group "First Day of Month" and the individual values are "Monday" "Tuesday" "Wednesday" "Thursday" "Friday" "Saturday" "Sunday" and "Start". The "Start" button is hidden but is checked by default.
    My text fields are even simpler: "Monday 1" "Monday 2" "Monday 3" "Monday 4" and "Monday 5" (and then, obviously, repeated for each day of the week.
    I am horrible at scripting, so I think that might be where I'm running into issues. What I'd like to put is something like this (only, you know, functional, and for each days' text value):
    For "Monday 1"
    if "First Day of Month.value" = "Monday", "Monday 1.value" ="1"
    else "Monday 1.value" = ""
    For "Wednesday 3"
    if "First Day of Month.value" = "Sunday", "Wednesday 3.value" = "11"
    if "First Day of Month.value" = "Monday", "Wednesday 3.value" = "17"
    if "First Day of Month.value" = "Tuesday", "Wednesday 3.value" = "16"
    if "First Day of Month.value" = "Wednesday", "Wednesday 3.value" = "15"
    if "First Day of Month.value" = "Thursday", "Wednesday 3" = "14"
    if "First Day of Month.value" = "Friday", "Wednesday 3.value" = "13"
    if "First Day of Month.value" = "Saturday", "Wednesday 3.value" = "12"
    else "Wednesday 3.value" = ""
    For "Sunday 5"
    if "First Day of Month.value" = "Sunday", "Sunday 5.value" = "29"
    if "First Day of Month.value" = "Friday", "Sunday 5.value" = "31"
    if "First Day of Month.value" = "Saturday", "Sunday 5.value" = "30"
    else "Sunday 5.value" = ""
    Is this possible? I have no doubt there's a better way to do it (with proper coding and everything), so any help would definitely be appreciated!

    Hello,
    Which sharepoint edition you are using? I would prefer to customize your list form in infopath form then add new connection which will connect to your SQL. Later you can filter data based on cust ID. Here is the link to add connection in infopath:
    http://office.microsoft.com/en-in/infopath-help/add-a-data-connection-to-a-microsoft-sql-server-database-HP010092823.aspx
    If you want to do it via code then simple ADO.NET connector will help.
    http://www.codeproject.com/Articles/33862/Connecting-to-Database-Using-Custom-Webpart-in-Sha
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Cfdiv refreshes binding to radio buttons

    Hi,
    Fairly simple issue that I can't find much information about
    through google (just one report of it involving a workaround for a
    cfgrid rather than a cfdiv).
    I have a cfdiv that is bound to a cfselect and two radio
    buttons, ala:
    <cfdiv
    bind="url:schedule-snippet.cfm?selectAll={selectAll}&orderBy={orderBy}&startDate={startDa te}"
    id="schedule">
    selectAll and orderBy are both radio buttons, each of which
    has two states. startDate is a cfselect.
    The problem is that the cfdiv does not auto-refresh based on
    whichever radio button I pass in second -- e.g. in the example
    above, it will refresh based on the selectAll radio button but not
    the orderBy radio button. If I bind it this way:
    <cfdiv
    bind="url:schedule-snippet.cfm?orderBy={orderBy}&selectAll={selectAll}&startDate={startDa te}"
    id="schedule">
    Then it will refresh from the orderBy but not the selectAll.
    Even more interesting is that, if I put the cfselect
    (startDate) AFTER the second radio button in the bind list (as
    above) then it won't refresh from that, either. It just sort of
    'stops' auto-refreshing once you put in a radio button value. with
    anything after that value in the list.
    Any ideas?
    Thanks,
    Sam

    this is strange and must be a bug... i have reproduced your
    situation
    exactly.
    i have ran all sorts of tests, and always the second radio
    set does not
    trigger cfdiv refresh.
    setting the first bind param in your cfdiv to your cfselect
    will make
    the div refresh on change in the cfselect and the first
    binded radio
    group, but not the second one.
    same with checkboxes instead of radio buttons - the second
    binded set of
    checkboxes never triggers the cfdiv refresh.
    having cfdiv bind to 3 selects instead of 1 select and 2
    radio/checkbox
    groups works fine - cfdiv refreshes on change in any of the
    selects.
    furthermore, adding another cfselect and binding cfdiv to
    that as well
    (so 4 controls cfdiv is binded to now) starts throwing js
    errors in
    ajax.js file... but also makes everything work after you
    ignore the
    error (cfdiv refreshes on change in any of the 4 controls).
    definitely a bug - you may want to submit it to adobe.
    one work-around may be to cal a js function from the second
    radio
    group's onclick event which will get surrent values of the 3
    controls
    and use ColdFusion.navigate to refresh the cfdiv...
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

Maybe you are looking for