Conversion error: Radio Button

What is a radio button trying to convert? When I write a customer conversion to change my value from Integer to String and from String to Integer, the Conversion Error goes away, but then it complains about a Validation Error.

The answer to both of your questions is the SelectItem value.
Can you explain what you mean by filtering? What exactly is happening there? Code/JSP snippets will help.
The validation error is probably something along the lines of "Value is required" right? Do you have required="true" on the radio list tag? Irregardless, I have found that even if you have required="false" on the selectOneRadio it will still require a value. So if all your values are being stripped away by this filter, than depending on when your filter ran, JSF will think the user didn't enter anything and throw a validation error. I guess JSF radio lists just assume the user has to enter something.
CowKing

Similar Messages

  • Error message on unclicked Radio Button

    Hello all, I was wondering how I can generate a unique error message on a required radio button on my form. I have designated the radio button as required already, but instead of the generic "missing fields" error message I would like it to generate a specific one saying "Form Must Be Reviewed with Supervisor Prior to Submission" in addition to the one that pops up when other required fields are not filled.

    One way to do it is to use 2 submit buttons.
    You want to hide the real submit button and use a "fake" submit button (just a regular button) to check the value of the field. If the field is ok then you click the real submit button programmatically.
    On the Click event of the fake submit button (JavaScript):
    if (RadioButtonList.rawValue == "") {
         xfa.host.messageBox("Form Must Be Reviewed with Supervisor Prior to Submission");
    else {
         EmailSubmitButton1.execEvent("click");
    Hope that helps!

  • I have a radio button that loses value on validation error

    Hi All,
    I have a radio button that is normal and then goes to readonly when a condition is true. The page has region with items as well as a tabular report region
    While in readonly state any validation error will cause the radio button to loose it's value.
    ?? Is this a bug or am I doing something wrong?
    Bill

    OK, Got the checkbox working...
    function SaveRes() {
    $x("P36_PRIORITY_RB").disabled=false;
    elmName = $x('P36_I_PRIORITY_0').name;
    elm = document.getElementsByName(elmName);
    for (i=0; i<elm.length; i++) {
    elm.disabled=false;
    doSubmit('SAVE');
    BUT ---- this part is now firing at the page rendering and doesn't fire when a validation is hit...
    DECLARE
    l_DynJS VARCHAR2(2000);
    BEGIN
    l_DynJS:='<script type="text/javascript"> '||chr(10)||
    ' $x("P36_PRIORITY_RB").disabled=true; '||chr(10)||
    ' elmName = $x(''P36_I_PRIORITY_0'').name; '||chr(10)||
    ' elm = document.getElementsByName(elmName);'||chr(10)||
    ' for (i=0; i<elm.length; i++) {              '||chr(10)||
    ' elm[i].disabled=true; '||chr(10)||
    ' } '||chr(10)||
    '</script>';
    htp.p(l_DynJS);
    END;

  • When i am on the 4 step in Search Result Display options, i get errors after 2 radio buttons

    I am using Oracle portal 9.0.2 version
    When i am on the 4 step in Search Result Display options, i get errors after 2 radio buttons
    Default Search Results Page
    This Search Portlet
    An unexpected error has occurred (WWS-32100)
    User-Defined Exception (WWS-11230)
    Unknown Exception (WWC-45131)
    ORA-20101:
    ORA-06512: at &quot;PORTAL.WWSBR_STDERR&quot;, line 437
    ORA-06512: at &quot;PORTAL.WWPOB_API_PAGE&quot;, line 3369
    ORA-01403: no data found
    ORA-01403: no data found (WWC-11230)
    No data found (WWS-32101)
    ORA-1403: ORA-01403: no data found
    ORA-01403: no data found (WWC-36000)
    Error: An unexpected error occurred: User-Defined Exception (WWC-43000)
    Please help me with this one
    P.S I tried to run inctxgrn.sql, but it did not solve the problem

    i solved the problem by runing 2 scripts as a portal user
    You can refer to bug - 2418089. This was fixed in 9.0.2.3
    begin
    wwpre_api_value.set_value_as_number
    p_path => 'oracle.portal.search',
    p_name => 'searchresultpageid',
    p_level_type => wwpre_api_value.SYSTEM_LEVEL_TYPE,
    p_level_name => null,
    p_value => 6,
    p_commit => true
    commit;
    end;
    begin
    wwpre_api_value.set_value_as_number
    p_path => 'oracle.portal.search',
    p_name => 'searchresultpagesiteid',
    p_level_type => wwpre_api_value.SYSTEM_LEVEL_TYPE,
    p_level_name => null,
    p_value => 6,
    p_commit => true
    commit;
    end;
    NOTE - The difference is the value of 'p_name' attribute. If u see carefully it is 'searchresultpagesiteid'. The first time u run this the value is 'searchresultpageid'.

  • JavaScript in  error when using radio buttons

    I'm using CS3 with ASP to insert a long form into an access database.
    When I try to get DW to build the INSERT statement, I get the following error:
    "While executing onLoad in Insert Record.htm, the folloing JavaScript error(s) occurred:
    At line 1202 of file C:\Program files .....\Shared\EditOperation.js: TypeError:tagList[j].type has no properties"
    I've narrowed it down to a problem with radio buttons. I've commented out all the radio buttons, and the build goes smoothly. Uncomment just one radio button, and the error comes back. I've checked the EditOperations.js file and that section does deal with radio buttons.
    The problem seems only to occur on this page.
    I'm tempted to just use yes/no dropdown boxes instead, but that's clunky.
    I've done all the recommended fixes: deleted the user config file, rebuilt the site cache, deleted all extensions. I've removed all javascript functions from the page etc.
    Any ideas or suggestions?
    Thanks, bill

    You almost certainly have a corrupted cache file. See Deleting a corrupted cache file.
    By the way, you could have found this information much more quickly by visiting the Dreamweaver FAQ.

  • Error in Radio Button Component

    Hi,
    I wrote my problem in a past thread, but I haven't a final answer. I test my model to verify that "Centigon Input Manager" was not the problem and it is not.
    I has another problem with a List Box Selector that I solved deleting their Dynamic Visibility from the List Box Component and put in a Canvas and putting the List Box without DV inside this Canvas. I did the same with the radio buttons and didn't work.I has one Panel with DV with three Canvas inside it and each one of Canvas with their own DV. Inside each Canvas I has one radio button component without Dynamic Visibility to be showed when I click a only push button. With a formula I define which of my 3 Canvas and their Radio buttons appear. Two of them was showed but one don't show anything, but the empty panel.
    I put the Radio buttons directly over the Panel and put the DV to each Radio button and delete the Canvas, now show me the same 2 radio buttons and the only one radio button that didn't show now just show the left border and half of top border of component. This must be a component error.
    Note 1: It's the same formula, the same features of each Canvas with their own DV. The Canvas panel is show when I click the push button but don't show one of my 3 options.
    Note 2: I have Xcelsius 5.3.1.0 and Build 12.3.1.776
    Any support from SAP or anybody that has the same problem? My client is waiting and I am delayed for product problems.
    JR

    Are you using the reference of the base
    component to access the variable that you have defined in the base component.....
    If the component where you have decalred the variables is your application class of the application then you can use
    Application.application.advanceSelectionCPanel

  • Radio Button Selection gives "The page cannot be found" Error

    I have a Radio Button that has 4 chooses, one of the choices has Javascript to ask a Prompt and uncheck it depending on the user response.
    When I select the one that has the prompt, it works as expected with the question, however when I click the Submit button on the page to fire my database trigger it fails with "The page cannot be found".
    All the other choices, once picked update the datasbase ok.
    Any idea's from anyone why I'm getting this error?
    script type="text/javascript">
    function yesno(msg,item)
    if ($x(item).name = 'PF' && $x(item).checked)
    confDel= confirm(msg);
    if (confDel != true)
    {$x(item).checked = false;}
    </script>

    Preethi,
    When I click on submit button ,iam getting " The page cannot be found" error.
    When you run the page and click on its submit button, you get the error. Being careful to distinguish problems you get at design time vs. those you get at runtime is extremely important when you ask others for help here.
    I looked at the application. In your problem description, you gave absolutely no information that explains what you are doing on this page. Whatever it is, the problem is that you are creating HTML items on the page with names like
    name="f60"
    Then when you POST the page, you get an error. That's because those "fxx" items are limited to the range "f01" .. "f50".
    Scott

  • Casting and radio select : conversion error

    I'd like to display radio options differently, regarding of their type.
    For example I have an OpenOption class which extends Option. So when I display it I'd like to add an input text box if the user select an open option :
                             <h:selectOneRadio value="#{q.answer}">
                                 <s:selectItems value="#{q.target.options}" var="opt" label="#{opt.text}" />                       
                                 <a:support event="onchange" reRender="pnlOpenText"/>
                             </h:selectOneRadio>                         
                             <a:outputPanel id="pnlOpenText">
                                     <h:panelGroup id="innerPnlOpenText" rendered="#{q.answer.class.simpleName eq 'OpenOption'}">
                                       <h:outputText value="#{q.answer.freeTextLabel}"/>&#160;
                                       <h:inputText value="#{q.freeText}" size="50"/>                                   </h:panelGroup>
                             </a:outputPanel>I use the following EL expression to test the type of the selected option :
    #{q.answer.class.simpleName eq 'OpenOption'}It works well BUT if I select the open option and refresh the page, the RadioRenderer fail when trying to convert ALL the options into OpenOption :
    Cannot convert Option[ id=null, text=Q1, rank=0 ] of type class Option to class OpenOptionFor the time being I see only one solution : put a type attribute in my Option class ... I believe this is not the best design.
    Is there any other workaround ?
    Would it be possible to have a renderer which doesnt infer the options type from the selected option but individually for each option ? I don't know anything about the spec ...
    Thanks,
    Bruno

    Java is case sensitive language after all , plus beans getters and setters naming rules :)
    SetConfirmClaim
    must be
    setConfirmClaim
    It raises a question though whether more exact error reporting is achievable , not just "Conversion error has occured".

  • F this error message  "The disk you inserted was not readable by this computer" with 2 radio buttons "Ignore" or "reject"  It comes up every time I start my new printer. How do I get rid of it?

    When installing my new HP printer I received the following error message when I inserted  the software install disk: "The disk you inserted was not readable by this computer" with 2 radio buttons "Ignore" or "reject"  I was able to eject the disk but the message remains. Now every time I start up the printer this error message pops up on my computer.  I have since used the disk drive successfully for music CD's etc.  How can I get rid of this message?

    PRAM RESET
    Zap the PRAM
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

  • Adding Radio Button dynamically, twice - Error #2025: The supplied DisplayObject must be a child of

    Hello
    I am having some trouble adding UI controls dynamically. Mostly with radio buttons.
    Here is an example that demonstrates my problem:
    <s:Application
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark" 
        xmlns:mx="library://ns.adobe.com/flex/mx"
        creationPolicy="all"
        >
        <fx:Script>
            <![CDATA[ 
                import mx.containers.Form;
                import mx.containers.Panel;
                import mx.controls.Label;
                import mx.controls.NumericStepper;
                import mx.controls.RadioButton;
                private var theChar:String = "B";
                protected function btnAdd_clickHandler(event:MouseEvent):void
                    var theForm:Form = new Form();               
                    theForm.label = theChar;
                    //1. Label
                    var myLabel:Label = new Label();
                    myLabel.text = "My Label";
                    myLabel.width=120;
                    theForm.addChild(myLabel);
                    //2. Numeric Stepper
                    var myNumStepper:NumericStepper = new NumericStepper();
                    myNumStepper.id = "numPointHigh" + theChar;
                    myNumStepper.name = "numPointHigh" + theChar;
                    myNumStepper.minimum = 0;
                    myNumStepper.maximum = 120;
                    myNumStepper.width = 50;
                    myNumStepper.height = 30;
                    theForm.addChild(myNumStepper);
                    //3. radio button
                    var myRadioButton:RadioButton = new RadioButton;
                    myRadioButton.id = "myRadioButton" + theChar;
                    myRadioButton.name = "myRadioButton" + theChar;
                    myRadioButton.label = "my radio button";
                    myRadioButton.selected = true;
                    theForm.addChild(myRadioButton);
                    //4. Panel
                    var thePanel:Panel = new Panel();
                    thePanel.width = 300;
                    thePanel.height = 475;
                    thePanel.name=theChar;
                    thePanel.title = "My Profile Panel";
                    thePanel.setStyle("backgroundColor", "blue");
                    //add the form to the panel
                    thePanel.addChild(theForm);
                    //add the Panel to the list control
                    myList.addChild(thePanel);
                protected function btnClear_clickHandler(event:MouseEvent):void
                    var numChildren:Number = myList.numChildren;
                    for(var i:Number=numChildren - 1; i > -1; i--){
                        myList.removeChildAt(i);
            ]]>
        </fx:Script>
        <mx:VBox width="100%">
            <mx:List id="myList" />
            <mx:Button id="btnAdd" label="Add a panel" click="btnAdd_clickHandler(event)" color="black"/>
            <mx:Button id="btnClear" label="Clear" click="btnClear_clickHandler(event)" color="black" />
        </mx:VBox>
    </s:Application>
    ^ Run that. Click the "Add a panel" button. Then click "Clear". Then click the "Add a panel" button again. You will see the error:
    ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
        at flash.display::DisplayObjectContainer/getChildIndex()
        at mx.core::Container/getChildIndex()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core \Container.as:2833]
        at mx.containers::Panel/getChildIndex()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\co ntainers\Panel.as:1174]
        at mx.controls::RadioButtonGroup/breadthOrderCompare()[E:\dev\4.0.0\frameworks\projects\fram ework\src\mx\controls\RadioButtonGroup.as:600]
        at mx.controls::RadioButtonGroup/breadthOrderCompare()[E:\dev\4.0.0\frameworks\projects\fram ework\src\mx\controls\RadioButtonGroup.as:611]
        at mx.controls::RadioButtonGroup/breadthOrderCompare()[E:\dev\4.0.0\frameworks\projects\fram ework\src\mx\controls\RadioButtonGroup.as:611]
        at Array$/_sort()
        at Array/http://adobe.com/AS3/2006/builtin::sort()
        at mx.controls::RadioButtonGroup/http://www.adobe.com/2006/flex/mx/internal::addInstance()[E:\dev\4.0.0\frameworks\projects \framework\src\mx\controls\RadioButtonGroup.as:465]
        at mx.controls::RadioButton/addToGroup()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\c ontrols\RadioButton.as:574]
        at mx.controls::RadioButton/commitProperties()[E:\dev\4.0.0\frameworks\projects\framework\sr c\mx\controls\RadioButton.as:514]
        at mx.core::UIComponent/validateProperties()[E:\dev\4.0.0\frameworks\projects\framework\src\ mx\core\UIComponent.as:7772]
        at mx.managers::LayoutManager/validateProperties()[E:\dev\4.0.0\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:572]
        at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:730]
        at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1072]
    I do not understand why I cannot re-add the radio button? If you comment out the code for the radio button (comment section #3.) you can re-add the panels easily. It is only happening when I have radio buttons being added to the form/panel.
    Why is this happening and how do I fix it? Why is this only happening to radio buttons? I thought I had this fixed

    ^ well, okay, but that's not the problem.
    here, i removed list and replaced with Panel. same problem on the radio buttons.
    <s:Application
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark" 
        xmlns:containers="com.dougmccune.containers.*"
        xmlns:mx="library://ns.adobe.com/flex/mx"
        creationPolicy="all"
        >
        <fx:Script>
            <![CDATA[ 
                import mx.containers.Form;
                import mx.containers.Panel;
                import mx.controls.Label;
                import mx.controls.NumericStepper;
                import mx.controls.RadioButton;
                private var theChar:String = "B";
                protected function btnAdd_clickHandler(event:MouseEvent):void
                    var theForm:Form = new Form();               
                    theForm.label = theChar;
                    //1. Label
                    var myLabel:Label = new Label();
                    myLabel.text = "My Label";
                    myLabel.width=120;
                    theForm.addChild(myLabel);
                    //2. Numeric Stepper
                    var myNumStepper:NumericStepper = new NumericStepper();
                    myNumStepper.id = "numPointHigh" + theChar;
                    myNumStepper.name = "numPointHigh" + theChar;
                    myNumStepper.minimum = 0;
                    myNumStepper.maximum = 120;
                    myNumStepper.width = 50;
                    myNumStepper.height = 30;
                    theForm.addChild(myNumStepper);
                    //3. radio button
                    var myRadioButton:RadioButton = new RadioButton;
                    myRadioButton.id = "myRadioButton" + theChar;
                    myRadioButton.name = "myRadioButton" + theChar;
                    myRadioButton.label = "my radio button";
                    myRadioButton.selected = true;
                    theForm.addChild(myRadioButton);
                    //4. Panel
                    var thePanel:Panel = new Panel();
                    thePanel.width = 300;
                    thePanel.height = 475;
                    thePanel.name=theChar;
                    thePanel.title = "My Profile Panel";
                    thePanel.setStyle("backgroundColor", "blue");
                    //add the form to the panel
                    thePanel.addChild(theForm);
                    //add the Panel to the list control
                    myContainer.addChild(thePanel);
                protected function btnClear_clickHandler(event:MouseEvent):void
                    var numChildren:Number = myContainer.numChildren;
                    for(var i:Number=numChildren - 1; i > -1; i--){
                        myContainer.removeChildAt(i);
            ]]>
        </fx:Script>
        <mx:VBox width="100%">
            <mx:Panel id="myContainer" />
            <mx:Button id="btnAdd" label="Add a panel" click="btnAdd_clickHandler(event)" color="black"/>
            <mx:Button id="btnClear" label="Clear" click="btnClear_clickHandler(event)" color="black" />
        </mx:VBox>
    </s:Application>
    Any idea why radio buttons causing this to happen? If I comment out the radio button, this works fine. This is really baffling me.
    The exception is thrown when the dynamically created panel (thePanel) is added to the main Panel (myContainer):
    myContainer.addChild(thePanel); <--- causes the exception!
    ^ Why would radio buttons make a difference on "thePanel"?? How can I enforce parent-child relationship, explicitly? .parent is read-only

  • Error in Process execution with Radio Button List

    Hello All,
    In HCM Processes & Forms, we have a scenario of employee rating. To accomodate the same in the Interactive form have used 'ISR_RadioButtonList' that have corresponding binding with Form scenario fields.Upon selecting the corresponding radio button, we were able to retain the values and send it across the approval levels as defined in the workflow. These fields were to be used as place holders for the 'Radio Buttons' to retain the values(when sent from one approver to another as defined in the workflow) and not to save in the back end.
    The form was working fine all the time and since we have upgraded to SP20 the form is giving error as "The Entered Value Is Not on the List of Valid Values."
    Regards,
    Poornima

    Thanks for your answer.
    It's what I had done but I had saved the ID in a private member of the class and there is <b>two</b> different objects involved : one to render the component ("buildContent()" method) and one to manage the Event produced !
    Now, I put the ID in a static field.
    Regards.
    Mathieu

  • Conversion error occurs in all the command button actions

    we have two h:commandButton (save and back) in a jsf form.
    If i click the save button conversion for the form fields should happen(its happening correctly).
    But if i click the back button it should directly take me to the backing bean's action method without any conversion so that i can avoid the conversion errors.
    Is there any solution or work around to achieve this.
    Thanks,
    success_21

    success_21 wrote:
    thanks for your response. below is the exact scenario for which we are looking for a solution,
    <rich:calendar value="#{MyBean.date}" id="dat" datePattern="MM/dd/yyyy" >
    <f:validator validatorId="isValidDate" />
    </rich:calendar>
    <h:inputText value="#{MyBean.str}" id="str"> </h:inputText>     
    <h:commandButton value="save" action="#{MyBean.save}"/>
    <h:commandButton value="back" action="#{MyBean.back}"/>
    but in our case, during the back action method we need the bean value(id="str") for calculation but we don't want conversion to be happened for calendar field. if we use immediate attribute for back button we will not get the bean value(id="str") in the action method. is there any alternate solution to this.I cannot think of a standard technique to handle this case, where some of the data is needed but other data should be ignored. You might try to grab the value from the request parameter map and manually assign it to the model (this work around doesn't scale however).
    Perhaps what might work is to have a valueChangeListener on the fields which will be preserved; I think they will be fired even with the immediate attribute.
    I do not think the <f:attribute> solution suggested will work as attributes are server side artifacts.

  • Values of checkboxes and radio buttons not recognised

    Hi folks,
    I have a bit of a strange problem and I'm hoping you can help shed some light.
    Basically I have a form with various elements in it, some of which seem to have a problem telling my pl/sql code what their values are. The culprits seem to be radio buttons and check boxes. Now those are individual items created with the wizard within a specific section if the outcome is different from sql created form elements in tables.
    The radio buttons is one field, let's call it :P100_RADIO which returns either 'AB', 'CD' or 'EF'. The checkbox, let's call it :P100_CHECKBOX is just one checkbox returning the value 'Y' if it's checked.
    after submit, I have a process which among other things checks the value returned by those two elements to set a variable v_paid either as 'Y' or 'N'
    as a small summary of what I'm trying to do, here's a code snippet:
    v_checkbox varchar2(1);
    v_paid varchar2(1);
    begin
    v_checkbox := :P100_CHECKBOX;
    if v_checkbox is not null AND :P100_RADIO = 'CD' THEN
      v_paid := 'Y';
    else
      v_paid := 'N';
    end if;
    end;If I submit my form I get the error message
    "ORA-06502: PL/SQL: numeric or value error: character to number conversion error"If I change the condition to v_checkbox is not null only, I get the same error
    If I change it to v_checkbox != '' I don't get an error but v_paid is set with 'N'
    If I change it to v_checkbox = 'Y', I get the same error again
    If I change it to *:P100_RADIO = 'CD'* only, I get the error as well.
    I also mistakenly tried v_checkbox is null and it submitted fine, though the value of v_paid was still 'N'
    I've tried changing the varchar2(1) to something greater, up to varchar2(4000) but that didn't make any difference.
    So I seem to understand there's a discrepancy of types somewhere but I can't work out where or how to change that. In my code an insert is performed after the if statement and the value of :P100_RADIO is added to the table with the expected value.
    After looking at the source of the page produced by Apex, I also tried to replace :P100_CHECKBOX with :P100_CHECKBOX_0 but that didn't make a difference either. It's possible Apex thinks :P100_RADIO and :P100_CHECKBOX are supposed to return some sort of arrays but just why it would just return a string in an sql statement beats me.
    The worst thing is, I'm fairly certain the code worked the first time I implemented it. So if anyone has any idea of what's going on that would be quite helpful. As always, I have a nagging suspicion it's a silly tiny mistake somewhere I just can't see.
    Thanks folks :)

    okay here's the code for the whole procedure. Some variable names have been changed but it's otherwise the same code:
    DECLARE
    v_total_cost     NUMBER(10,2);
    v_deposit        NUMBER(10,2);
    v_remaining      NUMBER(10,2);
    v_payment_type   varchar2(2);
    v_checkbox       varchar2(4000);
    v_user           varchar2(4000);
    v_bok_paid       varchar2(1);
    v_msg            varchar2(4000);
    BEGIN
    v_total_cost     := :P100_COST;
    v_deposit        := :P100_DEPOSIT;
    v_remaining      := v_total_cost - v_deposit;
    v_payment_type   := :P100_PAYMENT_AMOUNT;
    v_checkbox       := :P100_CHECKBOX;
    v_user           := :APP_USER;
    --wwv_flow.debug('before condition');
    if v_checkbox != '' AND :P100_RADIO = 'CD' THEN
      v_bok_paid := 'Y';
    else
      v_bok_paid := 'N';
    end if;
    --wwv_flow.debug('after condition');
    IF v_payment_type  = 'D' THEN
    :P100_AMOUNT_TO_PAY := :P100_DEPOSIT;
    INSERT INTO SAL_TRANSACTIONS (TRA_BKG_ID, TRA_COST, TRA_TOTAL,TRA_TYPE, TRA_PAID, TRA_PAY_TYPE, TRA_DATE, TRA_MANUAL, TRA_USER)
    VALUES (:P100_BKG_ID, 0, v_deposit, v_payment_type, v_bok_paid, :P100_RADIO, SYSDATE, v_checkbox, v_user);
    INSERT INTO SAL_TRANSACTIONS (TRA_BKG_ID, TRA_COST, TRA_TOTAL,TRA_TYPE, TRA_PAID, TRA_PAY_TYPE, TRA_DATE, TRA_MANUAL, TRA_USER)
    VALUES (:P100_BKG_ID, 0, v_remaining, 'L','N', null, SYSDATE, v_checkbox, v_user);  
    ELSIF v_payment_type  = 'F' THEN
    :P100_AMOUNT_TO_PAY := :P100_COST;
    INSERT INTO SAL_TRANSACTIONS (TRA_BKG_ID, TRA_COST, TRA_TOTAL,TRA_TYPE, TRA_PAID, TRA_PAY_TYPE, TRA_DATE, TRA_MANUAL, TRA_USER)
    VALUES (:P100_BKG_ID, 0, v_total_cost, :P100_PAYMENT_AMOUNT, v_bok_paid, :P100_RADIO, SYSDATE, v_checkbox, v_user);
    END IF;
    :P100_TRANSACTION_FLAG := '1';
    if v_bok_paid = 'Y' then
    v_msg := '<div>Message clipped</div>';
    --send confirmation email
    GLO_CORRESPONDANCE.proc_corr_controller(
    :P100_BOOKING_MEMBER_ID,
    :P100_BKG_ID,
    null,
    v_msg,
    'E',
    'Payment confirmation',
    null
    end if;
    END;Thanks :)

  • How to insert radio button in application?

    Hi tecs,
    I want to insert the radio buttons in my form. But when i am writing
    <h:selectOneRadio id="fileBackup"                <f:selectItem itemValue="1" itemLabel="Installation"/>
    <f:selectItem itemValue="2" itemLabel="Folder/File" />     
    <f:selectItem value="#{backup.fileBackup}" />
    </h:selectOneRadio>
    i m getting error-
    javax.servlet.ServletException: javax.servlet.jsp.JspException: "{2}" Conversion Error setting value ''{0}'' for ''{1}''.
    plz tell me how to solve this ? it wud b really nice if some one can tell me the coding of jsp & corresponding bean.
    Thnx in advance.

    <h:selectOneRadio id="fileBackup" value="#{pc_formname.varname}"><f:selectItem itemValue="1" itemLabel="Installation"/>
    <f:selectItem itemValue="2" itemLabel="Folder/File" />
    <f:selectItem  itemvalue="#{backup.fileBackup}"  itemLabel="Folder/Filetemp" />
    </h:selectOneRadio>
    -- value binding expression should be of same type as itemvalue-- raju

  • Programatt​icaly disabling radio button choices

    I was wondering if there was a way I could have a set of radio buttons that correspond to files in a database, and disable specific buttons when the corresponding file does not exist.  I only seem to be able to disable the whole radio set at a time.

    Jarrod / Darren:
    First, sorry for the thread hijacking but I'm interested in a more official NI response to a similar issue about converting array to cluster.  Perhaps it'll even be useful to this thread's originator.
    Summary: I have some typedef'ed clusters consisting entirely of Boolean LED's.  I did some processing based on converting cluster to array, performing some array-based operations, the converting back to cluster.  During development, the # of Booleans in the cluster would need to change.  Then I'd need to search out all the "array to cluster" conversions and enter the new size.  I wanted a method that didn't require manually changing all these hidden values.
    Through trial-and-error experience, I discovered a technique that seems to work reliably under LV 7.1.   I would typecast from an array of Booleans to a cluster of Booleans, using a typedef constant wired to the 'type' input.  It always produced the behavior I needed, but don't know if this would be a recommended practice or not.  Particularly, will this continue to work in 8.0?  Are there some gotchas I need to be aware of ?  Here's a link to my entry in an earlier thread. 
    -Kevin P.

Maybe you are looking for