Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8105877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:17:00+00:00 2026-06-06T00:17:00+00:00

I have an EXT JS page which sends a form with some values. The

  • 0

I have an EXT JS page which sends a form with some values. The values are all sent in string and some sent as boolean. It is calling a PL/SQL procedure where the params are all varchar. For some reason when the form is submitted, even though some values are sent as boolean, they can not be received by the procedure as boolean. All the values received from the procedure are varchar; and must be otherwise it crashes.

So I am sending a boolean from the form to the procedure. When it gets to the procedure it is now a varchar. How can I convert this back to a boolean?

Any help at all appreciated, I feel like I’m doing something wrong here. I don’t understand why it is receiving this as a varchar.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T00:17:01+00:00Added an answer on June 6, 2026 at 12:17 am

    You are right that there is no Oracle built-in string-to-boolean function, but you could easily create one yourself:

    create or replace function to_boolean
      ( p_string varchar2
      ) return boolean
    is
    begin
      return
        case upper(p_string) 
          when 'TRUE' then true
          when 'FALSE' then false
          else null
          end;
    end;
    

    (The “else null” is redundant but I put it there to remind you that if upper(p_string) is anything other than ‘TRUE’ or ‘FALSE’ then the function will return null).

    You could of course enhance the function to treat other string values as true or false also e.g. ‘T’, ‘YES’, …

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Ext TreePanel which I'm trying to add some server-side pagination to.
In ExtJs we have a page load event named Ext.onReady() which is called after
I have seen Ext.net's examples site in which each new page is added as
I have an Ext.form.Panel that calls a PHP page by passing search parameters. The
I have Ext.tab.Panel with few items. One item is login panel of type Ext.form.Panel.From
I have a Ext.Viewport in my page... In North region , I have a
I have a store on my page: <ext:Store ID=Store1 runat=server OnAfterStoreChanged=Store1_AfterChanged OnRefreshData=MyData_Refresh> <Reader> <ext:JsonReader>
On Click of a button, opens a window in which i have a form
I have an Ext.FormPanel which has a Save button which is supposed to do
I have an intranet web application which uses iframes. The outer web-page has a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.