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 :)

Similar Messages

  • How to realize Checkbox and Radio Buttons based on Attributes in JHeadstart

    Hy@ all,
    I try to redevelop the Summit Forms Demo in ADF.
    The module "ORDER" contains, among other things, a checkbox and radio buttons based on database columns(VARCHAR2).
    The column(checkbox) named PAYMENT_TYPE contains the values CASH and CREDIT and the column(radio button) called ORDER_FILLED contains the values Y and N.
    After creating the business components, I set in JHeadstarts Application Definition the Display Type of these two attributes to checkBox and radio-horizontal.
    I created a dymanic domain for the radio-horizontal and a static domain for the checkBox.
    The radio-horizontal within the dymanic domain works nearly correct.
    I set the Data Collection in this dynamic domain to the required Group and the Value and Meaning Attribute to the necessary Attribute.
    Within the JSF- Page the values are shown right but unfortunately there are too many radio buttons available. Instead of displaying the two radio buttons CASH and CREDIT were many CASH and CREDIT radio buttons shown.
    I can´t find any solution for this case.
    The problem with the checkBox is that therfore a static domain is required but I want to show the value of the checkBox based on the described attribute, like the handling of the radio horizontal.
    But I don´t know how to implement this, if it is possible.
    I´m using JHeadstart v10.1.3.2 and I´m pleased about any reply or solution.
    Best regards
    Chris

    Chris,
    If you run the application module tester, and query the view object usage underlying your dynamic domain, how many rows does it return? It should return only two rows, one for CASH and one for CREDIT. If more than two rows are returned, your query is wrong.
    What is the problem with using a static domain for the checkbox?
    Steven Davelaar,
    JHeadstart Team.

  • Tree structure with checkboxes and radio buttons

    Hi,
    I am using SNODETEXT as tree structure. On the child node, I need to have checkboxes and radio buttons. Is this possible?

    Hi
    Muse does not currently have dropdown lists, radio buttons, or checkboxes as part of the forms. You may want to check out using Adobe FormsCentral, Jotform, or Wufoo and inserting them via Object > Insert HTML as an alternative from the Muse forms, as those forms will have the lists, buttons, and checkboxes you're looking for.
    Another way if you are publishing your site to Business Catalyst, then you can create forms in BC admin section and copy the form html in Muse page which will render the from that you have created in BC in your Muse site page.
    More details :
    http://helpx.adobe.com/business-catalyst/using/create-insert-form.html
    Thanks,
    Sanjit

  • How to use Checkbox  and radio buttons in BI Reporting

    Hi BW Experts,
       My Client has given a report in ABAP format and the report has to be develop in BI.It contains Check boxes and the radio buttons. I don’t know how to use Checkboxes and radio buttons in Bex.For using this option, do we need to write a code in ABAP.Please help on this issue.
    Thanks,
    Ram

    Hi..
    Catalog item characteristic
    - Data element
    - Characteristic type
    Entry type
    List of catalog characteristics
    Designer
    Format (character)
    Standard characteristic
    Alternative: Master characteristic
    (used for automatic product
    assignment)
    Simple entry field
    Alternatives:
    Dropdown listbox or radio button
    list

  • Checkboxes and radio buttons

    When will Adobe Muse have checkboxes and ratiobuttons capability added to their forms?

    Hi
    Muse does not currently have dropdown lists, radio buttons, or checkboxes as part of the forms. You may want to check out using Adobe FormsCentral, Jotform, or Wufoo and inserting them via Object > Insert HTML as an alternative from the Muse forms, as those forms will have the lists, buttons, and checkboxes you're looking for.
    Another way if you are publishing your site to Business Catalyst, then you can create forms in BC admin section and copy the form html in Muse page which will render the from that you have created in BC in your Muse site page.
    More details :
    http://helpx.adobe.com/business-catalyst/using/create-insert-form.html
    Thanks,
    Sanjit

  • In linux, the larger checkboxes and radio buttons are breaking my layout - how can I override them?

    I've tried css with selector input[type="checkbox"] but this has no effect.

    You need to add <b>-moz-appearance:none!important;</b>

  • Simplifyin​g Large Amount of Checkboxes or Radio Buttons

    Hey everyone,
    I am having an issue with handling a problem. I think part of is that I don't know how to approach the problem. Let me explain the problem and my idea for the solution(you'll see why it's difficult or tedious)
    Problem: Our software records 145 channels. Sometimes we use all of these channels, but more often than not, we use a fraction of this. Due to the complexity of the acquisition code, which was written outside of the lab, we have decided to handle this issue by post processing data. We want to see a list of the channels, and select which ones we want to remove.
    My solution: Create a front panel with all of the channels name(dynamic) and a checkbox or radio button next to each one. I have gotten the names, but the only way I can see to handle the check boxes is to make 145 of them, which means I'll have 145 controls in my block diagram and that can be a bit of a cluster(pun intended). I couldn't find anything that LabVIEW had built in or anything on the forums. I may have been looking for the wrong thing. I would appreciate any guidance or solutions.
    If I just need to put my big boy pants on and deal with the high amount of controls, I will. I have always been under the impression that if it code looks too ugly, you're probably doing it wrong.
    Thanks,
    Seth

    It also depends if all these channels can be splitted into logical groups. In this case you can bundle them in clusters.
    In the attached picture there is a cluster containing 16 smaller clusters. Note that in the actual application there is 2 other tabs with similar cluster of clusters. These 3 major clusters where also bundled into a master Signal Select cluster (this was developped in LV2009 so the cluster constant took an awful lot of block diagram space, I welcomed the cluster constat icon feature introduced in LV2010!).
    In the lower right you can see how this unbundled.
    Ben64
    Attachments:
    Lot of checkboxes GUI.png ‏64 KB

  • Why can't I see an export value option in my radio button properties? I am using Acrobat X pro.

    Why can't I see an export value option in my radio button properties? I am using Acrobat X pro.

    Thanks so much. Thought it was just the name of the button and did not realize it was the value. Now able to use them for calculations.

  • IPod Nano: Error Message "The USB device has malfunctioned and Windows does not recognise it"

    Hi everyone, I just received 2 brand new iPod Nanos for my kids for Christmas, thought I'd be smart and sync them both now before wrapping them so I don't have to be messing around with them on the day. One synced without a problem, then using the same cable, same computer, same USB port, the 2nd one came up with "The USB device has malfunctioned and Windows does not recognise it" I've tried restarting my computer, unplugging and reinserting the USB. Is there anthing else I can try before returning it? Thanking you for any help.

    I have solved my problem, I ended up ringing Apple and got an awesome lady who told me to reset it by pressing the sleep button and menu button together for about 10 seconds and once it actually turned on for the first time the computer then recognised it, so it's all good, :-) Thank you lovely lady!

  • Error code 43 with message 'one of the USB device attached to this computer has malfunctioned, and Windows does not recognise it'.

    i have suddenly got this message 'one of the USB device attached to this computer has malfunctioned, and Windows does not recognise it'. it says error code 43. the usb drives (2 in no.) have stopped working as in they dont recognise the external hard drive
    or pen drive.  I have a HP pavilion dv4 series notebook.  the usb drives were working fine - however suddenly yesterday this strange message cropped up. life has taken a drastic turn! please help.
    in device status is says:  Windows has stopped this device because it has reported problems. (Code 43)
    location: Port_#0002.Hub_#0005
    driver provider:  microsoft
    date of driver: 21-06-2006
    driver version: 6.1.7600.16385
    HELP!!!!!!!!!!!

    Hi ameet2005,
    Please check if the following suggestions help:
    First, please disconnect all USB devices and then perform the following steps:
    1. Click "Start" button, type “devmgmt.msc” (without quotation marks) in the “Search” bar and press "Enter". Click “Continue”
    if necessary.
    2. In Device Manager, double click to expand "Universal Serial Bus controllers", right click on the Host Controller, click "Uninstall" and click "OK".
    3. Repeat the step 2 to uninstall all items under "Universal Serial Bus controllers".
    Then, restart your computer and Windows 7 will reinstall all USB controllers automatically.
    If the issue persists, please check if it can be resolved by running
    System File Checker.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • How to put Check Boxes and Radio button in Smartforms

    Hi all,
    How to put check Box and radio button in Smartforms ............ from web properties there is an option to use. But How to use.     
    regards,
    Mohsin

    u can declare the checkboxes or radiobuttons whatever in driver program and pass the same to ur form...

  • TS1538 I have just installed Windows 8.1 and now my ipad and iphone are not recognised in iTunes, can anyone help?

    Hi everyone,
    This is my first post so if I've made any mistakes please forgive me. I have recently upgraded from Windows 7 Ultimate to Windows 8.1 Professional however, now my iPad and iPhone are not recognised in iTunes. I have checked Device Manager and the iPad is listed, I also asked it to update the driver but it informed me that I have the most up to date version. Can anyone help please?

    Hi Skydiver119,
    Many thanks for your prompt reply however, I found this post and it worked perfectly. I hope it helps other users.
    Plug your Ipad USB cable into USB port.
    Go to your Control Panel, click Hardware and Sound, then click Device Manager.
    Click on Portable Devices, and you should see Apple Ipad shown (or whatever apple device your using).
    Right-click the Apple Device your using, and choose Update Driver Software..
    Click "Browse my computer for driver software."
    Click "Let me pick from a list of device drivers on my computer."
    Click the Have Disk button. (If the Have Disk option is not present, choose a device category such as Mobile Phone or Storage Device if listed, and click next. The Have Disk button should then appear.)
    In the "Install from Disk" dialog, click the Browse button.
    Use this window to navigate to the following folder:
    C:\Program Files\Common Files\Apple\Mobile Device Support\Drivers.
    Double-click the "usbaapl" file. (This file will be called "usbaapl64" if you have a 64-bit version of Windows. If you don't see "usbaapl64" here, or if there is no Drivers folder, look in C:\Program Files (x86)\Common Files\Apple\Mobile Device Support\Drivers. instead).
    Click OK in the "Install from Disk" dialog.
    Click Next and finish the driver-installation steps. Open iTunes to verify that the device is recognized properly.

  • My user name/email and password are not recognised. I a...

    my user name/email and password are not recognised.
    I am looking for someonw to tell me why.
    preferabley someone to talk to.

    Hi there!
    For formal (perhaps including live) support, your carrier is your first stop -- they are responsible for all of your formal support.
    In the support forums, we can provide you with much user-to-user assistance, but it means that you need to come to the forums and register an account. Please come to:
    http://supportforums.blackberry.com/rim/
    and register an account. Then post to the applicable forum.
    Thanks!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Problem getting check boxes and radio button to click with applescript

    This is my script, it runs through without error, i can see the check box lightly flash like its being focused in on, but it wont actually check mark the box. it does this with all my check boxes and radio buttons.
    tell application "Adobe InDesign CS3"
    activate
    end tell
    tell application "System Events"
    tell process "InDesign"
    tell menu bar 1
    click menu bar item 12
    key code 125
    key code 125
    key code 124
    key code 125
    key code 125
    key code 36
    delay 1
    end tell
    tell window "Variable Links"
    click checkbox "Use InDesign Tags Filter"
    end tell
    end tell
    end tell

    Hi craneium and welcome
    For me this script fails, going through it step by step it seems confused, as I have highlighted out in the below code.
    where is the window "Variable Links, may be I can help.
    tell application "Adobe InDesign CS3"
    activate
    end tell
    tell application "System Events"
    tell process "InDesign"
    tell menu bar 1
    click menu bar item 12 --opens spotlight search in help
    key code 125 -- highlights indesign help
    key code 125 -- highlights welcome screen
    key code 124 -- goes to apple
    key code 125 -- goes to about this computer
    key code 125 -- highlights software update
    key code 36 -- starts software update
    delay 1 -- ?
    end tell
    tell window "Variable Links" -- error cant get window variable links
    click checkbox "Use InDesign Tags Filter"
    end tell
    end tell
    end tell
    Budgie

  • HT204053 My iPhone is set up with my old iCloud details. I can't remember the password, it is an old email address and it is not recognising my date of birth!! How can I delete it from my phone and enter my new Apple ID?

    My iPhone is set up with my old iCloud details - how do I change it to my new Apple ID - my email has changed. I can't remember old password and it's not recognising my date of birth. I no longer have the trusted device or key thing??

    Try going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

Maybe you are looking for