Pre-populating forms with radio button values

I have been pulling my hair out trying to figure out why my action page is not being pre-populate with the value that is passed from the radio button selection. Can get my hands around what I am actually doing wrong. I have changed my code several times and can not keep up with any more. So below, I have included the main page and the action page that needs to be pre-populated with the data from the database. Thank you in advance for you help and time.
MAIN.cfm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--- Declare and initialize the variables
--->
<cfset today = DateFormat(Now(),"mmmm d, yyyy")>
<cfset current_time = TimeFormat(Now(),"h:mm tt")>
<cfset application_name = "Corporate Intranet Directory">
         <cfset current_url ='http://'& #CGI.SERVER_NAME# & ':'& #CGI.SERVER_PORT# & #CGI.SCRIPT_NAME#>
<cfset current_browser = #CGI.HTTP_USER_AGENT#>
<html>
<head>
<title>Employee Directory</title>
</head>
<!--- Included heading for the page--->   
<h1>Employee Directory</h1>
<body>
<!--- Display the today date and the current time--->
<cfoutput>Today's date is #today#</cfoutput><br>
<cfoutput>The current time is #current_time#</cfoutput><p>
<!---Display the URL and Browser used for the template --->
<p><cfoutput>URL of this template: #current_url#</cfoutput>
<cfoutput>Browser used: #current_browser#</cfoutput></p>
<!---Insert a field to have the user search by email address --->
<tr bgcolor = "yellow">
<td>Search</td>
</tr><br>
Email: <input type="text" name="EmailAddress"
size="20" maxlength="100"><br>
<input type="Submit" value="Search"><p>
<!--- Query the Employees table to find the employee who's ManOfTheYear is set to "YES"--->  
<cfquery name="employeeOfTheMonth" datasource="Directory">
    select
            e.FirstName,
                e.LastName
            from
            Employees e
            where
            e.ManOfTheMonth = 'Yes'
        </cfquery>             
<!--- Query the Employees and Departments tables to find employee's First Name, Last Name, Title, Phone Extension, Email Address, and Department Name--->      
<cfquery name="employees" datasource="Directory">
select
e.EmployeeID,
e.FirstName,
e.LastName,
e.Title,
                e.PhoneExtension,
                e.EmailAddress,
                d.DepartmentName,
d.DepartmentID
from
Employees e,
                Departments d
            where
            e.DepartmentID = d.DepartmentID
</cfquery>
<table border="2" bordercolor="blue">
<!--- Display the Employee of the Month--->   
          <cfoutput query="employeeOfTheMonth">
<tr>
            <th align="center" colspan="5">Employee of the Month: #employeeOfTheMonth.FirstName# #employeeOfTheMonth.LastName# </th>
            </tr>
            </cfoutput>
            <tr>
<th>ID</th>
<th>Name</th>
<th>Title</th>
<th>Department</th>
<th>Phone Extension</th>
                <th>Email</th>
</tr>
<!--- Display the First Name, Last Name, Title, Department Name, Phone Extension, and Email Address--->   
<form action="admin3.cfm?EmployeeID=#EmployeeID#" method="post">
<cfoutput query="employees">
<cfswitch expression="#DepartmentID#">
    <cfcase value="1">
       <cfset backgroundcolor="00FFFF">
   </cfcase>
<cfcase value="2">
       <cfset backgroundcolor="ff6699">
   </cfcase>
<cfcase value="3">
       <cfset backgroundcolor="99ff99">
   </cfcase>
<cfcase value="4">
       <cfset backgroundcolor="ffcc99">
   </cfcase>
<cfcase value="5">
       <cfset backgroundcolor="cc99ff">
   </cfcase>
    <cfdefaultcase>
        <cfset backgroundcolor="red">
    </cfdefaultcase>
</cfswitch>
<tr bgcolor=#backgroundcolor#>
<td><input type ="radio" name="EmployeeID" value="#employees.EmployeeID#"</td>
<td><a href="http://localhost:8500/spiderbytes/assignments/employee_details.cfm?EmployeeID=#EmployeeID#"> #employees.FirstName# #employees.LastName#</td>
<td>#employees.Title#</td>
                <td>#employees.DepartmentName#</td>
<td>#employees.PhoneExtension#</td>
                    <td>#employees.EmailAddress#</td>
</tr>
</cfoutput>
<tr>
<!--- Display the number of employee's in the directory--->
<td align="right" colspan="5"><cfoutput>#employees.recordCount# Employee(s) found.</cfoutput></td>
</tr>
</table>
<input type="Submit" name="Action" value="Add New Employee">
<input type="Submit" name="Action" value="Edit Employee">
<input type="Submit" name="Action" value="Delete Employee"><p>
</form>
<!--- Include a footer --->
<CFINCLUDE template="footer.cfm">
</body>
</html>
ADMIN.cfm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Add New Employee</title>
</head>
<body>
<CFIF ISDEFINED("Action")>
<!--- Use the "Action" variable to display the same name as a heading --->
<h1><CFOUTPUT>#Action#</CFOUTPUT></h1>
<!--- Determine if the user select Edit Employee or Delete Employee --->
<CFIF Action IS "Edit Employee" OR Action IS "Delete Employee">
<!--- Query the database to get the data for current employee the user
selected--->
<cfquery name="DisplayEmployeeRecord" datasource="Directory">
SELECT *
FROM Employees
Where EmployeeID = #EmployeeID#
</cfquery>
<cfoutput query="DisplayEmployeeRecord">
<cfset variable.EmployeeID = "#EmployeeID#">
<cfset variable.FirstName = "#FirstName#">
<cfset variable.LastName = "#LastName#">
<cfset variable.DepartmentID = "#DepartmentID#">
<cfset variable.Title = "#Title#">
<cfset variable.Salary = "#Salary#">
<cfset variable.PhoneExtension = "#PhoneExtension#">
<cfset variable.HomeAddress = "#HomeAddress#">
</cfoutput>
</CFIF>
<form action="query.cfm" method="post">
<table border="2">
<!--- Server-Side Validation - First Name, Last Name, Department, and and Email Address are required
fields --->
<input type="hidden" name="EmployeeID_required" value="First Name is
a required field">
<input type="hidden" name="FirstName_required" value="First Name is
a required field">
<input type="hidden" name="LastName_required" value="Last Name is
a required field">
<input type="hidden" name="DepartmentID_required" value=" Department ID is
a required field - Please fill in the coorsponding Department ID for the employee">
<input type="hidden" name="EmailAddress_required" value="Email Address is
a required field">
<!--- Create a table for the names of the fields and the textbox --->
<tr>
<td>
First Name (required): </td>
<td><input type="Text"
name="FirstName" size="35" maxlength="35"><br></td>
</tr>
<tr>
<td>
Last Name (required): </td>
<td><input type="Text" name="LastName"
size="35" maxlength="35"><br></td>
</tr>
<tr>
<td>
Department Number (required): </td>
<td><input type="Text"
name="DepartmentID" size="35" maxlength="4"><br></td>
</tr>
<tr>
<td>
Title: </td>
<td><input type="Text"
name="Title" size="35" maxlength="35"><br></td>
</tr>
<tr>
<td>
Salary: </td>
<td><input type="Text" name="Salary"
size="35" maxlength="10"><br></td>
</tr>
<tr>
<td>
Email (required): </td>
<td><input type="Text" name="EmailAddress"
size="35" maxlength="35"><br></td>
</tr>
<tr>
<td>
Work Phone: </td>
<td><input type="Text" name="PhoneExtension"
size="35" maxlength="10"><br></td>
</tr>
<tr>
<td>
Address: </td>
<td><input type="Text" name="HomeAddress"
size="35" maxlength="50"><br></td>
</tr>
<!--- Adds the new employee to the Directory database---> 
<tr>
<th align "center" colspan ="2">
<br><input type="Submit" name="Action" value="<cfoutput>#Action#</cfoutput>">
</th>
</tr>
</table>
</form>
<!--- Include a footer --->
<CFINCLUDE template="footer.cfm">
</body>
</html>
</CFIF>

Thanks for your reply.  The radio button was placed inside the anchor so that when the user selects that employee, it will pre-populate the from base upon the "Action" selected (i.e. Edit Employee and Delete Employee).  I quite sure this can be done with out using javascript.  I know that I accomplish this by using a drop-down list, but I would like to use the radio buttons instead because I would have to change my code.
Here is the  code with the radio button:
<tr bgcolor=#backgroundcolor#>
<td><input type ="radio" name="EmployeeID" value="#employees.EmployeeID#"</td>
<td><a href="http://localhost:8500/spiderbytes/assignments/employee_details.cfm?EmployeeID=#EmployeeID#"> #employees.FirstName# #employees.LastName#</td>
<td>#employees.Title#</td>
                <td>#employees.DepartmentName#</td>
<td>#employees.PhoneExtension#</td>
                    <td>#employees.EmailAddress#</td>
</tr>
Here is are some ways that I coded my form action is coded:
<form action="admin3.cfm" method="post">  OR
<form action="admin3.cfm?EmployeeID =# EmployeeID#" method="post">

Similar Messages

  • I want to build a form with radio buttons to limited clients ticking every option.

    I want to build a form with radio buttons to limited clients ticking every option. I have a range of products and in order to quote accurately I want to get specific information.

    If I get this , you want to show form options to specific clients not to all site viewers ?
    You would need to create a secure zone for this where permitted viewers can login and view the form with all options , in form itself we cannot setup this as few customers will view other options and others will view a different one.
    This can be done from your hosting end. Or if you are using Adobe server for hosting then you can create some profiles for customers and then setup a separate form altogether to achieve this.
    Thanks,
    Sanjit

  • Creating a form with radio buttons that users can fill, save, and e-mail back

    Hi all,
    I am new here, so please forgive me if this answer has already been answered. I have been looking around and still have not been able to find an answer.
    I have created a pdf in InDesign and opened it in Acrobat to create a form out of that existing PDF. The form needs to contain radio buttons and text fields. When I save it to test it out on Adobe Reader (for the typical user), it says that I am only allowed to save it in its original form (without any of the changes) thereby making this form useless (I do not want users to print it out; I'd like them to email the entire PDF back to me).
    I've looked online and found some answers saying that I would just need to enable commenting, but when I tried that, I could no longer select any of the radio buttons in Adobe Reader.
    Any suggestions?
    Thanks in advance.
    I'm on a Mac using Adobe Acrobat 7 Professional.

    You won't see that in 7. It didn't exist until Acrobat 8. Though It would work with PDF's opened by Reader 7.
    The only choice you have is connacting someone at Adob coporate and finding out how to sign up to a Service they have that will llow you to do that.
    Caution: its very, very expensive and unless  your fortune 1000 company you can't afford it.
    OR you could upgrade to Acrobat 10 (if you have a Machine capable of running it - Intel Only) or Acrobat 9 (PPC and INTEL).
    Note the feature they speak of only allows for 500 instances of any one PDF set up to do so.

  • Fillable forms with radio buttons (Using Adobe Reader X)

    I have two questions: First question, I have a fillable form with "yes" and "no" radio buttons. Currently the radio defaults to answer "yes", but I would like both the "yes" and "no" fields to be empty, which would allow the user to select an answer on his or her own.  Second question, is there a way to make an answer required before moving on to the next question?
    (Using Adobe Reader X)
    Message was edited by: mp2athome

    You need to check and make sure that the options  for each radio button do not have the "Button is checked by default" selected.
    You can make all the following answer radio buttons "read only" and only after one of the choices for the preceding question has been answered are the radio buttons for the next question are write enabled.
    You will need Acrobat to create the form.

  • To Retrieve dynamic radio button values using jsp & javascript

    Hi All,
    How can i retrive the dynamically created radio button values and also want to get the clicked radio button values.I am using JSP and JAVA beans to retrive the values from the form. I dont have any probs to retrieve combo box values, text box values only problem showing with radio button values. If any data which is entered wrong in the form all the fields should prefills with the old value.Except radio button values all others fields such as combo box, text box values are prefilled with the old values.
    I have given the code for radios.
    document.write('<input type="radio" name="distradio" OnClick="sampleReq.fcidis.value=\'Y\'"/>Yes   ');
    document.write('<input type="radio" name="distradio" OnClick="sampleReq.fcidis.value=\'N\'"/>No');
    document.write('<input type="hidden" name="fcidis" value="">')
    <form method="POST" action="Update.jsp" name="sampleReq" >
    <tr>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='supplier'"/> supplier
    </td>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='customer'"/>customer
    </td>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='distributor'"/> distributor
    </td>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='employee'"/> employee
    </td>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='New partner'"/>New partner
    <input type="hidden" name="requester1" value=""/>
    </td>
    </tr>
    Advanced Thanks for help
    Regards
    Sona

    Hi,
    If you have this code
    document.write('<input type="radio" name="distradio" OnClick="sampleReq.fcidis.value=\'Y\'"/>Yes ');
    document.write('<input type="radio" name="distradio" OnClick="sampleReq.fcidis.value=\'N\'"/>No');
    document.write('<input type="hidden" name="fcidis" value="">')
    <form method="POST" action="Update.jsp" name="sampleReq" >
    <tr>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='supplier'"/> supplier
    </td>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='customer'"/>customer
    </td>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='distributor'"/> distributor
    </td>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='employee'"/> employee
    </td>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='New partner'"/>New partner
    <input type="hidden" name="requester1" value=""/>
    </td>
    </tr>
    this field distradio will not be able Update.jsp.
    You will need to insert these field into the form definition.
    Now, to get a valeu from a radio button, you need only to do request.getAttribute("fieldName").
    To generate dinamically all radio button values, i need to know where are these information? In database? If yes, you need to read the resultset na in value attribute you need to do somethink like this <input type=radio name=fieldName value="<%out.println(resultset.getString("FieldName"));%>">
    If you have more question, only send me a email,
    best regards
    Edney Imme
    [email protected]

  • Help with Radio Buttons & Combo Box for Flash Form that sends email

    I'm having a bit of a hard time with a Flash form that I'm working on.
    I've got the basic text fields working fine, but I'm not sure how to retrieve the values from the Radio Button and Menu List components.
    The PHP script pulls the values from the text fields with:
    $contact_name = $_POST['name'];
    $contact_email = $_POST['email'];
    $contact_subject = $_POST['subject'];
    but using
    $radioGroup = $_POST['radioGroup'];
    doesn't retrieve the selected radio button value.
    The radio buttons have a groupName of "radioGroup". The combo box component doesn't even show up in the HTML version, but does in the .swf.
    Can anyone point me in the correct direction to pull these values from these components and get them passed to the PHP form? The native .FLA and the php file are here for reference:
    http://dl.getdropbox.com/u/21984/flashform.zip
    My solution needs to be ActionScript 2.
    Thanks!

    again, you assign a variable.  the selected radiobutton's data and/or label isn't going to magically be sent to the php file.
    for example, if you have sendLV and receiveLV loadvars instances, you can use:
    sendLV.rbData=yourradiogroup.selection.data;
    sendLV.yourothervariables=yourothervariables;
    sendLV.sendAndLoad("yourphp.php",receiveLV,"POST");

  • Dynamic forms using radio buttons, any ideas?

    Hello;
    I am writting a multi-form section in a web site. I have the
    form built up to the point where it sends the email. I have some
    issues I am trying to figure out and need some help. First let me
    show how this is set up, then the questions:
    The set up:
    Page 1 personal info
    <cfform action="PT2.cfm" method="post"
    enctype="application/x-www-form-urlencoded" name="sponsorOrder"
    enablecab="no">
    all the form fields that need to be filled for contact info
    here
    <input type="reset" name="Reset" value="Reset">
    <input type="submit" name="Submit" value="Proceed to Step
    2">
    </cfform>
    PAGE 2:
    <cfform action="SENDMAIL.cfm" method="post"
    enctype="application/x-www-form-urlencoded" name="sponsorOrder"
    enablecab="no">
    <input name="Fname" type="hidden"
    value="<cfoutput>#form.Fname#</cfoutput>">
    <!-- all the other hidden fields from page 1 go here
    --->
    <input type="radio" name="sponsor" value="1">
    <input type="radio" name="sponsor" value="2">
    <!-- there are 7 radio buttons to select from on this
    page. All with the same name="sponsor" -->
    <input type="reset" name="Reset" value="Reset">
    <input type="submit" name="Submit" value="Submit">
    </cfform>
    SENDMAIL page:
    <cfset subject = "Sponsorship Order">
    <cfset email = "#form.email#">
    <!----------------------------------------------------------------------->
    <cfmail to="[email protected]"
    cc="[email protected]"
    from="#form.email#"
    subject="Custom Order Request"
    server="mail.myserver.com"
    port=25
    type="HTML">
    <font face="Verdana, Arial, Helvetica, sans-serif"
    color="##000000" size="2">
    <b>Collected information</b><br>
    <b>Customer First Name:</b>
    #form.Fname#<br>
    <!-- all the rest of the collected contact info goes here
    -->
    <!-- HOW do I bring in the radio button choice here? Is
    this the right way? -->
    <cfif "form.sponsor" = "1">
    <b>Selection 1:</b> the info they get from
    selection 1 here <br>
    </cfif>
    <cfif "form.sponsor" = "2">
    <b>Selection 2:</b>The info that goes with
    selection 2 goes here<br>
    </cfif>
    <!-- there are 5 more if statements that need to run here
    for the rest of the radio selections -->
    </cfmail>
    <cfinclude template="thankyou.cfm">
    THANK YOU PAGE:
    Now on this page is where I get lost. I need to bring the
    selection from the radio buttons over to here and serve up a button
    according to the radio button selected back on page 2. Is this how
    I do that? The same as I did in the sendmail?
    <cfif "form.sponsor" = "1">
    they get this button and info
    </cfif>
    <cfif "form.sponsor" = "2">
    they get this button and info
    </cfif>
    <!-- and it goes on for 5 more selections -->
    Those are my questions, as well as this.
    On page 2 I need to make it impossible to pass that page
    without making a selection. How do I do that with radio buttons?
    Can anyone help me?
    Thank you.
    Phoenix

    Irish-Phoenix wrote:
    > Hello;
    > I am writting a multi-form section in a web site. I have
    the form built up to
    > the point where it sends the email. I have some issues I
    am trying to figure
    > out and need some help. First let me show how this is
    set up, then the
    > questions:
    >
    > The set up:
    > Page 1 personal info
    >
    > <cfform action="PT2.cfm" method="post"
    > enctype="application/x-www-form-urlencoded"
    name="sponsorOrder" enablecab="no">
    >
    > all the form fields that need to be filled for contact
    info here
    >
    > <input type="reset" name="Reset" value="Reset">
    > <input type="submit" name="Submit" value="Proceed to
    Step 2">
    > </cfform>
    >
    > PAGE 2:
    >
    > <cfform action="SENDMAIL.cfm" method="post"
    > enctype="application/x-www-form-urlencoded"
    name="sponsorOrder" enablecab="no">
    > <input name="Fname" type="hidden"
    value="<cfoutput>#form.Fname#</cfoutput>">
    > <!-- all the other hidden fields from page 1 go here
    --->
    > <input type="radio" name="sponsor" value="1">
    > <input type="radio" name="sponsor" value="2">
    > <!-- there are 7 radio buttons to select from on this
    page. All with the same
    > name="sponsor" -->
    > <input type="reset" name="Reset" value="Reset">
    > <input type="submit" name="Submit" value="Submit">
    > </cfform>
    >
    > SENDMAIL page:
    > <cfset subject = "Sponsorship Order">
    > <cfset email = "#form.email#">
    >
    <!----------------------------------------------------------------------->
    > <cfmail to="[email protected]"
    > cc="[email protected]"
    > from="#form.email#"
    > subject="Custom Order Request"
    > server="mail.myserver.com"
    > port=25
    > type="HTML">
    > <font face="Verdana, Arial, Helvetica, sans-serif"
    color="##000000" size="2">
    >
    Collected information<br>
    >
    Customer First Name: #form.Fname#<br>
    > <!-- all the rest of the collected contact info goes
    here -->
    >
    > <!-- HOW do I bring in the radio button choice here?
    Is this the right way? -->
    > <cfif "form.sponsor" = "1">
    >
    Selection 1: the info they get from selection 1 here
    <br>
    > </cfif>
    > <cfif "form.sponsor" = "2">
    >
    Selection 2:The info that goes with selection 2 goes
    here<br>
    > </cfif>
    > <!-- there are 5 more if statements that need to run
    here for the rest of the
    > radio selections -->
    > </cfmail>
    > <cfinclude template="thankyou.cfm">
    >
    > THANK YOU PAGE:
    >
    > Now on this page is where I get lost. I need to bring
    the selection from the
    > radio buttons over to here and serve up a button
    according to the radio button
    > selected back on page 2. Is this how I do that? The same
    as I did in the
    > sendmail?
    >
    > <cfif "form.sponsor" = "1">
    > they get this button and info
    > </cfif>
    > <cfif "form.sponsor" = "2">
    > they get this button and info
    > </cfif>
    > <!-- and it goes on for 5 more selections -->
    >
    > Those are my questions, as well as this.
    > On page 2 I need to make it impossible to pass that page
    without making a
    > selection. How do I do that with radio buttons?
    > Can anyone help me?
    > Thank you.
    >
    > Phoenix
    >
    hi phoenix!
    ok, let's see...
    your "thank you" page is cfincluded in the "sendmail" page,
    so it will
    have all the passed form vars available to it, which means
    you do not
    have to store the radio button selection in the session scope
    or
    anywhere else...
    i think a cfswitch/cfcase construct to check for selected
    radio button
    will serve you better than lots of cfif/cfelseif/cfelse...
    as for preventing submission of page2 without selecting a
    radio button
    first:
    a) pre-select one
    b) use client-side javascript to make sure one is selected
    (use an
    onsubmit event in the form tag or onclick event in the button
    - you will
    have to change the button type from submit to button, and
    change its
    name from submit to something else - there are possible
    issues with
    having a button named submit in your form if you are
    suibmitting the
    form through js...
    c) you could also use server-side cfml to check that a radio
    button is
    selected but it requires a lot of extra code and changes to
    your
    forms/pages...
    Azadi Saryev
    Sabai-dee.com
    Vientiane, Laos
    http://www.sabai-dee.com

  • How do I change the text in a field with radio buttons or check box?

    Hi All:
    I have a form that has a list of things with check boxes (could be done with radio buttons) at the bottom. The client wants a single field at the top of the form that repeats the text next to the checkboxes. For example if a user checks the box next to the words "You did thing 1 wrong" the client wants "You did thing 1 wrong" to appear in this text box at the top of the form. If the user checks the box next to the words "You did thing 2 wrong" the client wants the words "You did thing 2 wrong" to appear in the magic box at the top of the page. There are 10 different check box options, so the box at the top would need to be able to have 10 different things in it.
    Client is not interested in a drop down menu. I asked.
    I am in a bit over my head here, so my question is twofold.
    1. Can you do this in Acrobat Pro 10 on a Mac?
    2. Can you supply me with code?
    Thanks in Advance,
    Amy W.

    Create a text field and make this script its custom calculation script :
         var a ="";
         if (this.getField("Check1").value == "Yes"){
         a="You did thing 1 wrong";
         event.value = a;
    Also, replace "Check1" with the name of your check box or radio button, and give it an export value of "Yes".

  • Passing radio button values to the backing bean

    Hi all,
    I need help with passing group of radio button values to a backing bean. I have page which has a dataTable to display a list of alerts. For each alert there are two radio buttons (YES & No) to indicate whether the email option for each alert is set or not. Now when i change the radio buttons and click on a submit button i should be able to pass these radio button values into action method in which i need to update the alerts. This is my code
    <h:form>
    <t:dataTable id="sub"
                       var = "alert"
                       value =#{subscriberBean.alertsList}">
    <t:column>
    <h:outputText value="#{alert.name}" />
    </t:column>
    <t:column>
    <h:selectOneRadio id="subscriptions" value="#{alert.sendEmail}">
      <f:selectItem id="item1" itemLabel="Yes" itemValue="0" />
      <f:selectItem id="item2" itemLabel="No" itemValue="1" />
    </h:selectOneRadio>
    </t:column>
    <t:dataTable>
    <h:commandButton id="button1" value="Save changes" actionListener="#{subscriberBean.updateAlert}" />
    </h:form>
    {code}
    I tried to to do something like below and get the updated list in the action event in the backing bean but it didn't work.
    {code}
    <h:commandButton id="button1" value="Save changes" actionListener="#{subscriberBean.updateAlert}" >
    <f:attribute name="alerts" value="#{subscriberBean.alertsList}"/>
    </h:commandButton>
    // Backing Bean
    public void updateAlert(ActionEvent e){
    List<Alert updateList = (List<Alert>)event.getComponent().
                    getAttributes().get("alerts");
    {code}
    Can someone advise how to get these update radio button values in my actionListener method.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    The value the user selected will be written to the sendEmail property of the managed bean named alert. We know this because you set the value attribute to #{alert.sendEmail}. So simply access the managed bean in your action method.

  • How to raise pop up window along with radio buttons in module pool program

    how to raise pop up window along with radio buttons in module pool program

    FUNCTION zscheme_determination.
    *"*"Local Interface:
    *"  IMPORTING
    *"     REFERENCE(I_KUNNR) TYPE  KUNNR
    *"  EXPORTING
    *"     REFERENCE(E_VALUE) TYPE  NETWR_AK
    *"  TABLES
    *"      G_ITEM_DATA_ITAB STRUCTURE  ZITEM_DATA
    *  TYPES: BEGIN OF ty_sord,
    *         include type ZSD_SCHEME_DTL,
    *         END   OF ty_sord.
    *  data : gt_sord type standard table of ZSD_SCHEME_DTL,
    *         wa_sord type ZSD_SCHEME_DTL.
    *  select * from ZSD_SCHEME_DTL into table
    *  gt_sord
    *  where matnr = i_matnr.
    *  T_ITEM_DATA
    *********Data Declarations
       DATA:
             salesdocumentin LIKE bapivbeln-vbeln,
             orderheaderin LIKE bapisdhd1,
             orderheaderinx LIKE bapisdhd1x,
             sender LIKE bapi_sender,
             binaryrelationshiptype LIKE bapireltype-reltype,
             intnumberassignment LIKE bapiflag-bapiflag,
             behavewhenerror LIKE bapiflag-bapiflag,
             logicswitch LIKE bapisdls,
             testrun LIKE bapiflag-bapiflag,
             convert LIKE bapiflag-bapiflag,
             return LIKE bapiret2 OCCURS 0,
             orderitemsin LIKE bapisditm OCCURS 0,
             orderitemsinx LIKE bapisditmx OCCURS 0,
             orderpartners LIKE bapiparnr OCCURS 0,
             orderschedulesin LIKE bapischdl OCCURS 0,
             orderschedulesinx LIKE bapischdlx OCCURS 0,
             orderconditionsin LIKE bapicond OCCURS 0,
             orderconditionsinx LIKE bapicondx OCCURS 0,
             ordercfgsref LIKE bapicucfg OCCURS 0,
             ordercfgsinst LIKE bapicuins OCCURS 0,
             ordercfgspartof LIKE bapicuprt OCCURS 0,
             ordercfgsvalue LIKE bapicuval OCCURS 0,
             ordercfgsblob LIKE bapicublb OCCURS 0,
             ordercfgsvk LIKE bapicuvk OCCURS 0,
             ordercfgsrefinst LIKE bapicuref OCCURS 0,
             orderccard LIKE bapiccard OCCURS 0,
             ordertext LIKE bapisdtext OCCURS 0,
             orderkeys LIKE bapisdkey OCCURS 0,
             extensionin LIKE bapiparex OCCURS 0,
             partneraddresses LIKE bapiaddr1 OCCURS 0.
       DATA : wa_orderpartners LIKE bapiparnr,
              wa_orderitemsin LIKE bapisditm,
              wa_orderitemsinx LIKE bapisditmx,
              wa_orderschedulesin LIKE bapischdl,
              wa_orderschedulesinx LIKE bapischdlx,
              wa_orderconditionsin LIKE bapicond,
              wa_orderconditionsinx LIKE bapicondx,
              wa_return LIKE bapiret2,
              lv_value TYPE netwr_ak.
       DATA : lv_dtyp TYPE char45,
              lv_sorg TYPE vkorg,
              lv_sdch TYPE vtweg,
              lv_sdiv TYPE spart.
       TYPES : BEGIN OF ty_sord,
               zsdscheme TYPE comt_scheme_id,
               posnr TYPE posnr_va,
               matnr TYPE matnr,
               disc_type TYPE rebate_disc_type,
               calc_type TYPE catyp,
               qty_from TYPE kwmeng,
               qty_to TYPE kwmeng,
               spart TYPE spart,
               custcondgrp TYPE kdkg1,
               werks TYPE werks_d,
               matmn TYPE matnr,
               END   OF ty_sord.
       DATA : gt_sord   TYPE STANDARD TABLE OF ty_sord,
              gt_sordd  TYPE STANDARD TABLE OF ty_sord,
              wa_sord TYPE ty_sord,
              wa_knvv TYPE knvv,
              lv_cal_foc TYPE p DECIMALS 3,
              lv_cal_dis TYPE p DECIMALS 3,
              lv_new_qty TYPE kwmeng,
              lv_posmat TYPE posnr_va,
              lv_posfoc TYPE posnr_va.
       DATA:lv_diff TYPE kwmeng.
    ******Schemes Selection Logic
    * Get Valid Schemes
    * Validate Scheme for validity Period, Material, Customer Type and Plant
       TYPES : BEGIN OF ty_rtab,
               sign   TYPE c LENGTH 1,
               option TYPE c LENGTH 2,
               low    LIKE mara-matnr,
               high   LIKE mara-matnr,
             END OF ty_rtab.
    *  TYPES : ty_matnr TYPE RANGE OF ty_rtab.
       DATA : it_matnr TYPE TABLE OF ty_rtab,
              wa_matnr TYPE ty_rtab,
              wa_it    TYPE zitem_data,
             wa_tab TYPE zitem_data.
    *order table declaration
       TYPES:
             BEGIN OF ty_order,
               zsdscheme TYPE comt_scheme_id,
               matnr     TYPE matnr,
               kwmeng    TYPE kwmeng,
             END OF ty_order,
       BEGIN OF ty_scheme,
        zsdscheme TYPE comt_scheme_id,
    *                matnr     TYPE matnr,
        kwmeng    TYPE kwmeng,
      END OF ty_scheme.
       DATA:
             gt_order      TYPE TABLE OF ty_order,
             gt_scheme     TYPE TABLE OF ty_scheme,
              wa_scheme    TYPE ty_scheme,
              wa_order     TYPE  ty_order.
       DATA:i_kwmeng TYPE kwmeng.
    * Transfer all the material received from order to internal table
       LOOP AT g_item_data_itab INTO wa_it.
         MOVE : wa_it-matnr TO wa_matnr-low,
                'I'          TO wa_matnr-sign,
                'EQ'         TO wa_matnr-option.
         APPEND wa_matnr TO it_matnr.
         CLEAR wa_it.
       ENDLOOP.
    * Get the Valid Schemes based on given criteria
       SELECT
               zsd_scheme_dtl~zsdscheme
               zsd_scheme_dtl~posnr
               zsd_scheme_dtl~matnr
               zsd_scheme_dtl~disc_type
               zsd_scheme_dtl~calc_type
               zsd_scheme_dtl~qty_from
               zsd_scheme_dtl~qty_to
               zsd_scheme~spart
               zsd_scheme_hdr~custcondgrp
               zsd_scheme_hdr~werks
               zsd_scheme_hdr~matnr
       FROM zsd_scheme_hdr
       INNER JOIN zsd_scheme ON zsd_scheme~zsdscheme = zsd_scheme_hdr~zsdscheme
       INNER JOIN zsd_scheme_dtl ON zsd_scheme_dtl~zsdscheme = zsd_scheme_hdr~zsdscheme
       INTO TABLE  gt_sord
       WHERE  zsd_scheme_dtl~matnr IN it_matnr
    *    zsd_scheme_hdr~matnr IN it_matnr
    *    AND zsd_scheme_hdr~werks = '1509'
         AND zsd_scheme_hdr~werks = '1529'
         AND zsd_scheme_hdr~custcondgrp = '01'
         AND zsd_scheme~datuv LE sy-datum
         AND zsd_scheme~datub GE sy-datum.
       SORT gt_sord BY zsdscheme ASCENDING.
    *  LOOP AT gt_sord INTO wa_sord.
    *    READ TABLE g_item_data_itab INTO wa_it WITH  KEY matnr = wa_sord-matnr.
    *    wa_order-zsdscheme = wa_sord-zsdscheme.
    *    wa_order-matnr = wa_it-matnr.
    *    wa_order-kwmeng = wa_it-kwmeng.
    *    COLLECT wa_order INTO gt_order.
    *    CLEAR wa_order.
    *  ENDLOOP.
       LOOP AT g_item_data_itab INTO wa_it.
         READ TABLE gt_sord INTO wa_sord WITH  KEY matnr = wa_it-matnr.
         wa_order-zsdscheme = wa_sord-zsdscheme.
         wa_order-matnr = wa_it-matnr.
         wa_order-kwmeng = wa_it-kwmeng.
         COLLECT wa_order INTO gt_order.
         MOVE : wa_sord-zsdscheme  TO wa_scheme-zsdscheme,
                wa_it-kwmeng  TO wa_scheme-kwmeng.
         COLLECT wa_scheme INTO gt_scheme.
         CLEAR : wa_order, wa_scheme.
       ENDLOOP.
       CLEAR wa_scheme.
       DATA w_line TYPE sy-tabix.
    * Updating table based on Schemes
       LOOP AT gt_scheme INTO wa_scheme.
         CLEAR w_line.
         gt_sordd[] = gt_sord[].
    *    DELETE gt_sordd WHERE zsdscheme NE wa_scheme-zsdscheme and disc_type NE 'FOC'.
         DELETE gt_sordd WHERE zsdscheme NE wa_scheme-zsdscheme AND disc_type NE 'F'.
         DELETE ADJACENT DUPLICATES FROM gt_sordd COMPARING zsdscheme matnr.
         DESCRIBE TABLE gt_sordd LINES w_line.
         IF w_line GT 1.
    * popup message to select one foc type.
         ELSE.
           CLEAR wa_sord.
           READ TABLE gt_sordd INTO wa_sord INDEX 1.
           IF sy-subrc EQ 0.
             i_kwmeng = wa_scheme-kwmeng.
             lv_cal_foc = i_kwmeng DIV wa_sord-qty_from.
             lv_cal_dis = i_kwmeng MOD wa_sord-qty_from.
             MOVE : lv_cal_foc TO wa_it-kwmeng,
                    wa_sord-matnr TO wa_it-matnr.
             APPEND  wa_it TO g_item_data_itab.
             SORT gt_order BY kwmeng DESCENDING.
             LOOP AT gt_order INTO wa_order WHERE zsdscheme = wa_scheme-zsdscheme.
               IF lv_cal_dis GT 0.
    *        LOOP AT gt_order INTO wa_order WHERE zsdscheme = wa_scheme-zsdscheme
    *                                             AND lv_cal_dis GT 0.
    *                  LOOP AT gt_order INTO wa_order WHERE zsdscheme = wa_scheme-zsdscheme.
    *                LOOP AT g_item_data INTO wa_item_data WHERE matnr EQ wa_order-matnr.
                         LOOP AT g_item_data_itab INTO wa_tab WHERE matnr EQ wa_order-matnr.
                           wa_orderconditionsin-itm_number = wa_tab-posnr.
    *                  wa_orderconditionsin-itm_number = wa_item_data-posnr.
                           wa_orderconditionsin-cond_st_no = '001'.
    *                  IF gt_sordd-calc EQ ‘post AND disc_type EQ ‘percentage’.
                           IF wa_sord-calc_type EQ 'O' AND wa_sord-disc_type EQ 'P'.
                             wa_orderconditionsin-cond_type = 'ZTPB'.   "'ZREG'.
    *                  ELSEIF gt_sordd-calc EQ ‘pre’ AND disc_type EQ ‘percentage’
                           ELSEIF wa_sord-calc_type EQ 'E' AND wa_sord-disc_type EQ 'P'.
                             wa_orderconditionsin-cond_type = 'ZTPP'.   "'ZREG'.
                           ENDIF.
                           wa_orderconditionsin-currency = 'INR'.
                           wa_orderconditionsin-conpricdat = sy-datum.
                           APPEND wa_orderconditionsin TO orderconditionsin.
                           CLEAR wa_orderconditionsin.
    *Update Discount Conditon
                         ENDLOOP.
    *                  ENDLOOP.
    *Modify balance of Item
                 CLEAR wa_tab.
                 READ TABLE g_item_data_itab INTO wa_tab WITH KEY matnr = wa_order-matnr.
                 IF sy-subrc EQ 0.
                   lv_diff = wa_tab-kwmeng - lv_cal_dis.
                   IF lv_diff GT 0.
                     wa_tab-kwmeng  = wa_tab-kwmeng - lv_cal_dis.
    *            MODIFY g_item_data TRANSPORTING kwmeng  index sy-tabix.
                     MODIFY g_item_data_itab INDEX sy-tabix FROM wa_tab TRANSPORTING kwmeng  .
                   ELSE.
                     wa_tab-kwmeng  =  lv_cal_dis.
                     lv_cal_dis  = lv_diff.
                     MODIFY g_item_data_itab INDEX sy-tabix FROM wa_tab TRANSPORTING kwmeng .
    *            MODIFY G_ITEM_DATA_ITAB TRANSPORTING kwmeng index sy-tabix.
                   ENDIF.
                   gt_sordd[] = gt_sord[].
                   DELETE gt_sordd WHERE zsdscheme NE wa_scheme-zsdscheme AND disc_type EQ 'F'.
                   DESCRIBE TABLE gt_sordd LINES w_line.
                   IF w_line GT 1.
                     SORT gt_sordd BY zsdscheme DESCENDING.
    *              SORT gt_sordd BY quantity DESCENDING.
                     CLEAR wa_sord.
    *              LOOP AT gt_sordd WHERE quantity_from LT wa_shceme-kwmeng AND quantity_to GT wa_shceme-kwmeng.
                     LOOP AT gt_sordd INTO wa_sord  WHERE qty_from LT wa_scheme-kwmeng AND qty_to GT wa_scheme-kwmeng.
    *             LOOP AT gt_order INTO wa_order WHERE scheme = wa_scheme-scheme.
                       LOOP AT gt_order INTO wa_order WHERE zsdscheme = wa_scheme-zsdscheme.
    *                LOOP AT g_item_data INTO wa_item_data WHERE matnr EQ wa_order-matnr.
                         LOOP AT g_item_data_itab INTO wa_tab WHERE matnr EQ wa_order-matnr.
                           wa_orderconditionsin-itm_number = wa_tab-posnr.
    *                  wa_orderconditionsin-itm_number = wa_item_data-posnr.
                           wa_orderconditionsin-cond_st_no = '001'.
    *                  IF gt_sordd-calc EQ ‘post AND disc_type EQ ‘percentage’.
                           IF wa_sord-calc_type EQ 'O' AND wa_sord-disc_type EQ 'P'.
                             wa_orderconditionsin-cond_type = 'ZDPD'.   "'ZREG'.
    *                  ELSEIF gt_sordd-calc EQ ‘pre’ AND disc_type EQ ‘percentage’
                           ELSEIF wa_sord-calc_type EQ 'E' AND wa_sord-disc_type EQ 'P'.
                             wa_orderconditionsin-cond_type = 'ZDPD'.   "'ZREG'.
                           ENDIF.
                           wa_orderconditionsin-currency = 'INR'.
                           wa_orderconditionsin-conpricdat = sy-datum.
                           APPEND wa_orderconditionsin TO orderconditionsin.
                           CLEAR wa_orderconditionsin.
    *Update Discount Conditon
                         ENDLOOP.
                       ENDLOOP.
                     ENDLOOP.
                   ELSE.
                   ENDIF.
                 ENDIF.
               ENDIF.
             ENDLOOP.
           ENDIF.
         ENDIF.
       ENDLOOP.
    *  select
    *          ZSD_SCHEME_DTL~ZSDSCHEME
    *          ZSD_SCHEME_DTL~POSNR
    *          ZSD_SCHEME_DTL~matnr
    *          ZSD_SCHEME_DTL~DISC_TYPE
    *          ZSD_SCHEME_DTL~CALC_TYPE
    *          ZSD_SCHEME_DTL~QTY_FROM
    *          ZSD_SCHEME_DTL~QTY_TO
    *          ZSD_SCHEME~SPART
    *          ZSD_SCHEME_HDR~CUSTCONDGRP
    *          ZSD_SCHEME_HDR~WERKS
    *          ZSD_SCHEME_HDR~MATNR
    *  from ZSD_SCHEME_DTL
    *  inner join ZSD_SCHEME on ZSD_SCHEME~ZSDSCHEME = ZSD_SCHEME_DTL~ZSDSCHEME
    *  inner join ZSD_SCHEME_HDR on ZSD_SCHEME_HDR~ZSDSCHEME = ZSD_SCHEME_DTL~ZSDSCHEME
    *  into table
    *  gt_sord
    *  where ZSD_SCHEME_DTL~matnr = i_matnr and
    *        ZSD_SCHEME~DATUV LE sy-datum and
    *        ZSD_SCHEME~DATUB GE sy-datum.
    *  break-point.
    * Process Common Logic for Schemes Processcing
       CLEAR wa_sord.
    * Convert FOC Quantity and Materials
    *  LOOP AT gt_sord INTO wa_sord.
    **   lv_cal = i_kwmeng / wa_sord-QTY_FROM.
    *    lv_cal_foc = i_kwmeng DIV wa_sord-qty_from.
    *    lv_cal_dis = i_kwmeng MOD wa_sord-qty_from.
    *  ENDLOOP.
    *lv_new_qty = i_kwmeng - lv_cal_dis.
    * Get the Sales Document Type
       SELECT SINGLE low
    FROM tvarvc
    INTO  lv_dtyp WHERE
    name = 'SD_DOC_TYPE'.
       SELECT SINGLE * FROM knvv INTO wa_knvv WHERE kunnr = i_kunnr.
       IF sy-subrc = 0.
         lv_sorg = wa_knvv-vkorg.
         lv_sdch = wa_knvv-vtweg.
         lv_sdiv = wa_knvv-spart.
       ENDIF.
    * Give the Popup for schemes with multiple FOC
    * Schemes Specific Processing
    * Schemes Specific Processing
       orderheaderin-doc_type = lv_dtyp.
       orderheaderin-sales_org = lv_sorg.
       orderheaderin-distr_chan = lv_sdch.
       orderheaderin-division = lv_sdiv.
       wa_orderpartners-partn_role = 'AG'.
       wa_orderpartners-partn_numb = i_kunnr.
       APPEND wa_orderpartners TO orderpartners.
    *    wa_ORDERPARTNERS-PARTN_ROLE = 'WE'.
    *    wa_ORDERPARTNERS-PARTN_NUMB = p_ship.
    *    append wa_ORDERPARTNERS to ORDERPARTNERS.
    * Item number begin
       CLEAR : lv_posmat.
       lv_posmat = lv_posmat + 10.
       wa_orderitemsin-itm_number = lv_posmat.
       wa_orderitemsin-material = wa_sord-matmn.  "i_matnr.
       wa_orderitemsin-target_qty = lv_new_qty.
    *  wa_ORDERITEMSIN-TARGET_QU = i_VRKME.
       APPEND wa_orderitemsin TO orderitemsin.
       wa_orderitemsinx-itm_number = lv_posmat.
       wa_orderitemsinx-material = 'X'.
       wa_orderitemsinx-target_qty = 'X'.
       wa_orderitemsinx-target_qu = 'X'.
       APPEND wa_orderitemsinx TO orderitemsinx.
       wa_orderschedulesin-itm_number = lv_posmat.
       wa_orderschedulesin-sched_line = lv_posmat.
       wa_orderschedulesin-req_qty = lv_new_qty.
       APPEND wa_orderschedulesin TO orderschedulesin.
       wa_orderschedulesinx-itm_number = lv_posmat.
       wa_orderschedulesinx-sched_line = lv_posmat.
       wa_orderschedulesinx-req_qty  = 'X'.
       wa_orderschedulesinx-updateflag = 'X'.
       APPEND wa_orderschedulesinx TO orderschedulesinx.
       wa_orderconditionsin-itm_number = lv_posmat.
       wa_orderconditionsin-cond_st_no = '001'.
       wa_orderconditionsin-cond_type = 'ZDPD'.   "'ZREG'.
       wa_orderconditionsin-currency = 'INR'.
       wa_orderconditionsin-conpricdat = sy-datum.
       APPEND wa_orderconditionsin TO orderconditionsin.
       wa_orderconditionsinx-itm_number = lv_posmat.
       wa_orderconditionsinx-cond_st_no = '001'.
       wa_orderconditionsinx-cond_type = 'ZDPD'. "'ZREG'.
       wa_orderconditionsinx-updateflag = 'X'.
       wa_orderconditionsinx-cond_value ='X'.
       wa_orderconditionsinx-currency = 'X'.
       APPEND wa_orderconditionsinx TO orderconditionsinx.
    ****18/06Beg
    *  if not lv_cal_dis is initial.
    *    lv_posmat = lv_posmat + 10.
    *    wa_ORDERITEMSIN-ITM_NUMBER = lv_posmat.
    *    wa_ORDERITEMSIN-MATERIAL = WA_SORD-MATMN.  "i_matnr.
    *    wa_ORDERITEMSIN-TARGET_QTY = lv_cal_dis.
    **  wa_ORDERITEMSIN-TARGET_QU = i_VRKME.
    *    append wa_ORDERITEMSIN to ORDERITEMSIN.
    *    wa_ORDERITEMSINX-ITM_NUMBER = lv_posmat.
    *    wa_ORDERITEMSINX-MATERIAL = 'X'.
    *    wa_ORDERITEMSINX-TARGET_QTY = 'X'.
    *    wa_ORDERITEMSINX-TARGET_QU = 'X'.
    *    append wa_ORDERITEMSINX to ORDERITEMSINX.
    *    wa_ORDERSCHEDULESIN-ITM_NUMBER = lv_posmat.
    *    wa_ORDERSCHEDULESIN-SCHED_LINE = lv_posmat.
    *    wa_ORDERSCHEDULESIN-REQ_QTY = lv_cal_dis.
    *    append wa_ORDERSCHEDULESIN to ORDERSCHEDULESIN.
    *    wa_ORDERSCHEDULESINX-itm_number = lv_posmat.
    *    wa_ORDERSCHEDULESINX-sched_line = lv_posmat.
    *    wa_ORDERSCHEDULESINX-req_qty  = 'X'.
    *    wa_ORDERSCHEDULESINX-updateflag = 'X'.
    *    append wa_ORDERSCHEDULESINX to ORDERSCHEDULESINX.
    *  endif.
    *  lv_posmat = lv_posmat + 10.
    *  wa_ORDERITEMSIN-ITM_NUMBER = lv_posmat.
    *  wa_ORDERITEMSIN-MATERIAL = i_matnr.  "WA_SORD-MATMN.
    *  wa_ORDERITEMSIN-TARGET_QTY = LV_CAL_FOC.
    *  wa_ORDERITEMSIN-ITEM_CATEG = 'ZDGN'.
    **  wa_ORDERITEMSIN-TARGET_QU = i_VRKME.
    *  append wa_ORDERITEMSIN to ORDERITEMSIN.
    *  wa_ORDERITEMSINX-ITM_NUMBER = lv_posmat.
    *  wa_ORDERITEMSINX-MATERIAL = 'X'.
    *  wa_ORDERITEMSINX-TARGET_QTY = 'X'.
    *  wa_ORDERITEMSINX-TARGET_QU = 'X'.
    *  wa_ORDERITEMSINX-ITEM_CATEG = 'X'.
    *  append wa_ORDERITEMSINX to ORDERITEMSINX.
    *  wa_ORDERSCHEDULESIN-ITM_NUMBER = lv_posmat.
    *  wa_ORDERSCHEDULESIN-SCHED_LINE = lv_posmat.
    *  wa_ORDERSCHEDULESIN-REQ_QTY = LV_CAL_FOC.
    *  append wa_ORDERSCHEDULESIN to ORDERSCHEDULESIN.
    *  wa_ORDERSCHEDULESINX-itm_number = lv_posmat.
    *  wa_ORDERSCHEDULESINX-sched_line = lv_posmat.
    *  wa_ORDERSCHEDULESINX-req_qty  = 'X'.
    *  wa_ORDERSCHEDULESINX-updateflag = 'X'.
    *  append wa_ORDERSCHEDULESINX to ORDERSCHEDULESINX.
    ****18/06End
    * Item number end
    * Switch off dialog (BAPIs always run without)
       CALL FUNCTION 'DIALOG_SET_NO_DIALOG'.
       CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
         EXPORTING
    *     SALESDOCUMENTIN               =
         order_header_in               = orderheaderin
    *     ORDER_HEADER_INX              =
    *     SENDER                        =
    *     BINARY_RELATIONSHIPTYPE       =
    *     INT_NUMBER_ASSIGNMENT         =
    *     BEHAVE_WHEN_ERROR             =
    *     LOGIC_SWITCH                  =
    *     TESTRUN                       =
    *     CONVERT                       = ' '
    *   IMPORTING
    *     SALESDOCUMENT                 =
       TABLES
         return                        = return
         order_items_in                = orderitemsin
         order_items_inx               = orderitemsinx
         order_partners                = orderpartners
         order_schedules_in            = orderschedulesin
         order_schedules_inx           = orderschedulesinx
         order_conditions_in           = orderconditionsin
         order_conditions_inx          = orderconditionsinx
    *     ORDER_CFGS_REF                =
    *     ORDER_CFGS_INST               =
    *     ORDER_CFGS_PART_OF            =
    *     ORDER_CFGS_VALUE              =
    *     ORDER_CFGS_BLOB               =
    *     ORDER_CFGS_VK                 =
    *     ORDER_CFGS_REFINST            =
    *     ORDER_CCARD                   =
    *     ORDER_TEXT                    =
    *     ORDER_KEYS                    =
    *     EXTENSIONIN                   =
    *     PARTNERADDRESSES              =
    *    commit work.
       CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    *     EXPORTING
    *       WAIT          =
    *     IMPORTING
    *       RETURN        =
       LOOP AT return INTO wa_return.
         WRITE:/ wa_return-message.
       ENDLOOP.
    ENDFUNCTION.
    *& Include ZSD_SO_CHANGES2_TOP                               Module Pool      ZSD_SO_CHANGES2
    PROGRAM  ZSD_SO_CHANGES2.
    ***&SPWIZARD: DATA DECLARATION FOR TABLECONTROL 'ITEM_DATA'
    *&SPWIZARD: DEFINITION OF DDIC-TABLE
    TABLES:   VBAP,kna1.
    *&SPWIZARD: TYPE FOR THE DATA OF TABLECONTROL 'ITEM_DATA'
    TYPES: BEGIN OF T_ITEM_DATA,
              POSNR LIKE VBAP-POSNR,
              MATNR LIKE VBAP-MATNR,
              KWMENG LIKE VBAP-KWMENG,
              VRKME LIKE VBAP-VRKME,
            END OF T_ITEM_DATA.
    *&SPWIZARD: INTERNAL TABLE FOR TABLECONTROL 'ITEM_DATA'
    DATA:     G_ITEM_DATA_ITAB   TYPE T_ITEM_DATA OCCURS 0,
               G_ITEM_DATA_WA     TYPE T_ITEM_DATA. "work area
    DATA:     G_ITEM_DATA_COPIED.           "copy flag
    *&SPWIZARD: DECLARATION OF TABLECONTROL 'ITEM_DATA' ITSELF
    CONTROLS: ITEM_DATA TYPE TABLEVIEW USING SCREEN 4000.
    DATA:GV_NUM TYPE I VALUE 1,
           GV_NUM2 TYPE I.
    DATA:     G_T_YREC_TAB_LINES  LIKE SY-LOOPC.***********top*************
    *& Include ZSD_SO_CHANGES2_TOP                               Module Pool      ZSD_SO_CHANGES2
    PROGRAM  ZSD_SO_CHANGES2.
    ***&SPWIZARD: DATA DECLARATION FOR TABLECONTROL 'ITEM_DATA'
    *&SPWIZARD: DEFINITION OF DDIC-TABLE
    TABLES:   VBAP,kna1.
    *&SPWIZARD: TYPE FOR THE DATA OF TABLECONTROL 'ITEM_DATA'
    TYPES: BEGIN OF T_ITEM_DATA,
              POSNR LIKE VBAP-POSNR,
              MATNR LIKE VBAP-MATNR,
              KWMENG LIKE VBAP-KWMENG,
              VRKME LIKE VBAP-VRKME,
            END OF T_ITEM_DATA.
    *&SPWIZARD: INTERNAL TABLE FOR TABLECONTROL 'ITEM_DATA'
    DATA:     G_ITEM_DATA_ITAB   TYPE T_ITEM_DATA OCCURS 0,
               G_ITEM_DATA_WA     TYPE T_ITEM_DATA. "work area
    DATA:     G_ITEM_DATA_COPIED.           "copy flag
    *&SPWIZARD: DECLARATION OF TABLECONTROL 'ITEM_DATA' ITSELF
    CONTROLS: ITEM_DATA TYPE TABLEVIEW USING SCREEN 4000.
    DATA:GV_NUM TYPE I VALUE 1,
           GV_NUM2 TYPE I.
    DATA:     G_T_YREC_TAB_LINES  LIKE SY-LOOPC.
    ************************pbo*******************
    *&  Include           ZSD_SO_CHANGES2_PBO
    *&SPWIZARD: OUTPUT MODULE FOR TC 'ITEM_DATA'. DO NOT CHANGE THIS LINE!
    *&SPWIZARD: COPY DDIC-TABLE TO ITAB
    MODULE ITEM_DATA_INIT OUTPUT.
       IF G_ITEM_DATA_COPIED IS INITIAL.
    *&SPWIZARD: COPY DDIC-TABLE 'VBAP'
    *&SPWIZARD: INTO INTERNAL TABLE 'g_ITEM_DATA_itab'
    *    SELECT * FROM VBAP
    *       INTO CORRESPONDING FIELDS
    *       OF TABLE G_ITEM_DATA_ITAB.
    *    G_ITEM_DATA_COPIED = 'X'.
         REFRESH CONTROL 'ITEM_DATA' FROM SCREEN '4000'.
       ENDIF.
       ITEM_DATA-LINES = G_T_YREC_TAB_LINES + 15.
    ENDMODULE.
    *&SPWIZARD: OUTPUT MODULE FOR TC 'ITEM_DATA'. DO NOT CHANGE THIS LINE!
    *&SPWIZARD: MOVE ITAB TO DYNPRO
    MODULE ITEM_DATA_MOVE OUTPUT.
       MOVE-CORRESPONDING G_ITEM_DATA_WA TO VBAP.
    ENDMODULE.
    *&      Module  STATUS_4000  OUTPUT
    *       text
    MODULE STATUS_4000 OUTPUT.
       SET PF-STATUS 'APAR'.
    *  REFRESH G_ITEM_DATA_ITAB.
        GV_NUM = 1.
    *  SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_4000  OUTPUT

  • How do I move a table with radio buttons to another page?

    I created a document in Word, converted to PDF, added a page (which was created in Adobe Forms Central, only way to get a table with radio buttons - see below for example).
    The issue I have is whilst using the Trial of Adobe XI Pro I was able to move this table up a page and place it under the header.  Now that the trial has run out I cannot complete this task with other documents.
    I started to edit using LiveCycle but it won't let me move the table.
    We have Acrobat X Pro but when I go to edit, it directs me to edit in LiveCycle.  I have tried moving the table using all of these programs.  Can anyone help/guide please? 

    Thank you for your reply.  I am new to editing a pdf and using these programs. I have subscribed to Acrobat XI Pro.  When I try to edit the document it directs me to LiveCycle.  I cannot move the table in LiveCycle.  It won't let me, and I cannot make changes in XI Pro as I did in the trial as it directs me to edit in LiveCycle.  Am going in circles.

  • Dynamic table with radio buttons

    I need to load a dynamic table with radio buttons that allow
    the user to select an item in the table. I need to have it add a
    radio button with a unique identifier for each table item.
    For example: the table will load all of the seminars
    locations available in a certain state, the radio button will allow
    the user to select the city in which they would like to attend and
    that value will get passed to the registration page. The value of
    each radio button would be equal to the location_id in the database
    for each of the locations in the table (The table includes the
    date, day, venue, address, hotel info, etc. details for each city.)
    When I add dynamic radio buttons and set the value to the
    location_id in the database, it allows the user to select multiple
    radio buttons. I cannot find any information on how to
    resolve.....??
    Any help is appreciated.

    beanieboo wrote:
    > I need to load a dynamic table with radio buttons that
    allow the user to select
    > an item in the table. I need to have it add a radio
    button with a unique
    > identifier for each table item.
    >
    > For example: the table will load all of the seminars
    locations available in a
    > certain state, the radio button will allow the user to
    select the city in which
    > they would like to attend and that value will get passed
    to the registration
    > page. The value of each radio button would be equal to
    the location_id in the
    > database for each of the locations in the table (The
    table includes the date,
    > day, venue, address, hotel info, etc. details for each
    city.)
    >
    > When I add dynamic radio buttons and set the value to
    the location_id in the
    > database, it allows the user to select multiple radio
    buttons. I cannot find
    > any information on how to resolve.....??
    > Any help is appreciated.
    Give each radio button the same name
    <input type="radio" name=theLocation" value="<?php
    $recordset['location_id'] ?>">
    Mick

  • Track Multiple Pre-Populated Forms?

    I'll do my best to describe the situation, hopefully it is understandable.  I have created a form using LiveCycle.  This form is save-able in Acrobat.  This form has been filled out and saved for many different people; so I have the same form for each person, but each form has unique data already entered in and saved in the form fields.  My goal is to send out these different pre-populated forms using tracker, have people edit them as they need to, and then submit the edited forms back to me (via Outlook email).  My ultimate goal is to have the info that tracker makes available (the automatic list of who received the forms, who has returned them, etc.) available at a glance, so that I can track these forms easily.  Is this end result possible using pre-populated forms, or will I have to send each pre-populated form to the form recepient individually?

    I am sorry to report that Formscentral doesn't integrate with any external database and doesn't support the pre-population of fields. You might try looking at Adobe's Livecycle product for your solution.
    Andrew

  • How to render  radiogroup with radio buttons spread out across 2 columns

    Hi,
    I would like to render the following html using JSF (Renderer ??). How do I do that ?
    Basically it has a radiogroup with radio buttons spread out across 2 columns. and with an
    attached input text box along with
    the label for each radiobutton in the radio group.
    Any pointers or examples I can look at to do something like this is appreciated.
    <selectOneRadio does not achieve my functionality nor does MyApacheFaces with a layout="spread" option.
    TIA,
    Vijay
    Here is the html source for what i want to achieve:
    <TABLE border="0" cellpadding="0" cellspacing="1">
         <TBODY>
              <TR>
                   <TD></TD>
                   <TD><span id="searchForm:searchText1">Application Number</span></TD>
                   <TD></TD>
                   <TD><span id="searchForm:searchText2">Agreement Number</span></TD>
              </TR>
              <TR>
                   <TD><input type="radio" id="searchForm:customerSearchRadioGroupId" value="applicationNumber"/></TD>
                   <TD><input type="text" id="searchForm:applicationNumberId" value=""/></TD>
                   <TD ><input type="radio" id="searchForm:customerSearchRadioGroupId" value="agreementNumber"/></TD>
                   <TD><input type="text" id="searchForm:agreementNumberId" value=""/></TD>
              </TR>
              <TR>
                   <TD></TD>
                   <TD><span id="searchForm:searchText3">Infolease Cust.#</span></TD>
                   <TD></TD>
                   <TD><span id="searchForm:searchText4">eCredit Cust.#</span></TD>
              </TR>
              <TR>
                   <TD><input type="radio" id="searchForm:customerSearchRadioGroupId" value="infoLeaseCustNumber"/></TD>
                   <TD><input type="text" id="searchForm:infoLeaseCustNumberId" value=""/></TD>
                   <TD ><input type="radio" id="searchForm:customerSearchRadioGroupId" value="eCreditCustNumber"/></TD>
                   <TD><input type="text" id="searchForm:eCreditCustNumberId" value=""/></TD>
              </TR>
              <TR>
                   <TD></TD>
                   <TD><span id="searchForm:searchText7">Client Number</span></TD>
                   <TD></TD>
                   <TD><span id="searchForm:searchText8">Customer Name</span></TD>
              </TR>
              <TR>
                   <TD><input type="radio" id="searchForm:customerSearchRadioGroupId" value="clientNumber"/></TD>
                   <TD><input type="text" id="searchForm:clientNumberId" value=""/></TD>
                   <TD style="color:red"><span id="searchForm:searchText9">  AND  </span></TD>
                   <TD><input type="text" id="searchForm:custNameId" value=""/></TD>
              </TR>
         </TBODY>
    </TABLE>

    Yeah, I would love to know about this too.
    What I did is (you will hate this solution) I hacked my designers design to make the first column (the radio column) to be one big column. In side this column, I did
    <h:selectOneRadio id="customerSearchRadioGroupId" layout="pageDirection">
    <f:selectItem ..... />
    <f:selectItem .... />
    </h:selectOneRadio>
    this is wack, but I can't think of any other solution. in ASP.NET you get a groupName attribute, which make thigns a lot flexible.
    The problem with this solution is the layout of the output (a table of radio button) didn't line up with the next column of textbox, so I had to go to my designer and have her modify her css.
    If anybody have a solution for this, please let us know.

  • How to give the radio button value dml statement

    Oracle Forms6i
    Hai All
    I have created a form I the form i have created two radio button and named as appr, Recmd when i execute the forms appr is marked by default
    So now i need to insert or update this radio button value in my Table
    how can i insert or update this radio button value
    pls tell me the steps to do
    Thanks In Advance
    Srikkanth.M

    Hi,
    :<your_radiogroup_name> will give the selected radiobutton value

Maybe you are looking for

  • ITunes 10.6 store blurry/fuzzy text?

    I am using Windows 7 X64 SP1 with the latest updates from Microsoft. I am currently using a Nvidia GTX 460 graphics card, with the latest Nvidia drivers. I have tried repeatedly to reset iTunes store cache, emptied Windows temp files, does repair opt

  • SMART PLAYLISTS: ORGANIZING BY DATE ADDED & KEEPING ALBUM TRKS IN ORD

    Dear Knowledgeable Users of iPod: I would like to create a Smart Playlist that will do the 2 following things when I listen to music in my iPod: 1) Play albums in the order of date added (I solved this one) 2) Play the songs in the order they come on

  • Select area  in a JPanel,plz help

    hi frenz, i want to select an area in a JPanel by dragging mouse.then i want to findout the components lying in this area and then i want to perform drag and drop operation on tha selected components. please help me to get the solution of this proble

  • Msn not receiving messages

    Hi, Last week my msn on my bb stopped working... I can send msgs but cannot receive any messages.. I rebooted.. Reinstalled.. Nothing works.. Please help!

  • I need your help with solving a non-standard solutions.

    Hello! I need your help with solving a non-standard solutions. My name is Andrii and I represent the civil charity. Not so long ago, one man gave us the iPhone 4S (as a donation). But later - it became known that this iPhone can not work with SIM car