Sign Up

Hey, Dev!
Are you looking for a forum full of active developers to help you?
So if you want to:
➡️ Get answers for your development issues
➡️ Help others
➡️ Write an article
➡️ Get rewarded for your active participation
Then this place is just for you and it is 100% FREE.

Have an account? Sign In


Have an account? Sign In Now

Sign In

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

Sorry, you do not have a permission to ask a question, You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

OrclQA.Com

OrclQA.Com Logo OrclQA.Com Logo
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Blog
  • New Questions
  • Tutorials
    • Oracle
    • Oracle Apex
    • Python
  • Tags
  • Users
  • Badges & Points
  • About
Home/Questions/Q 5432
In Process
shyam
shyam

shyam

  • 1 Question
  • 1 Answer
  • 0 Best Answers
  • 25 Points
View Profile
  • 0
shyamContributor
Asked: February 18, 20212021-02-18T13:07:49+05:30 2021-02-18T13:07:49+05:30

How to validate Cell Value in interactive Grid Oracle APEX?

  • 0

I have top region with min value and max value.

in another region I have interactive grid column name order value. when user put any value must be between min and max value of top region.

 

How to perform this validation after got focus.

thanks and regards

ig
  • 3
  • 80
  • 0
  • 0
  • Share
    • Share on Facebook
    • Share on Twitter
Answer

    3 Answers

    1. Vinish

      Vinish

      • 1 Question
      • 470 Answers
      • 45 Best Answers
      • 2k Points
      View Profile
      Vinish Legendary
      2021-02-19T06:39:48+05:30Added an answer on February 19, 2021 at 6:39 am

      You can create a validation on that IG column. Select the validation type as SQL query returning rows and then add the following query in it:

      Example

      Select 1 from dual where :order_value between :p1_min and :p1_max;
      • 0
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
    2. shyam

      shyam

      • 1 Question
      • 1 Answer
      • 0 Best Answers
      • 25 Points
      View Profile
      shyam Contributor
      2021-02-20T17:41:48+05:30Added an answer on February 20, 2021 at 5:41 pm
      sol : Select 1 from dual where :order_value between :p1_min and :p1_max;

      Reply : I tried the same it is giving the error

      • ORA-20999: Failed to parse SQL query! <p>ORA-06550: line 1, column 30: ORA-00936: missing expression</p>""

      how to validate Interactive Grid Cell Value I copied the other rgion value to in IG column but it is not taking the value.

      pl suggest some new in line validation.

      • 0
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
    3. afzal

      afzal

      • India
      • 0 Questions
      • 32 Answers
      • 1 Best Answer
      • 213 Points
      View Profile
      afzal Professional
      2021-02-23T10:12:33+05:30Added an answer on February 23, 2021 at 10:12 am

      step 1 assign static id for "order_value" column like "order_val"

      step 2 create dynamic action
      name-- order value validation
      event- change
      colmun- order_value

      action-- execute javascript

      var min_val = apex.item('p114_min').getValue();
      var max_val = apex.item('p114_max').getValue();

      var order=apex.item("order_val");
      var v_order= order.getValue();

      if (v_order >= min_val && v_order <=max_val){
      order.node.setCustomValidity("");
      }else{
      order.node.setCustomValidity("invalid number");//--customize your error message as your requirement
      }

      • 1
      • Share
        Share
        • Share on Facebook
        • Share on Twitter

    You must login to add an answer.

    Forgot Password?

    Sidebar

    Ask Question
    Write a Post
    • Recent
    • Answers
    • GudDud

      Load PDF into APEX, Edit it and Print it.

      • 0 Answers
    • AnuK

      Error: Ajax call returned server error ORA-00932: inconsistent datatypes: expected ...

      • 0 Answers
    • pavlos

      How to reduce space between two Display Image items?

      • 1 Answer
    • Bheem

      Scrollable News with thumbnail

      • 0 Answers
    • Vinish
      Vinish added an answer You can reduce the number of column span for the… March 4, 2021 at 7:53 am
    • Abdulkareem
      Abdulkareem added an answer Below query is working fine SELECT city,name FROM JSON_TABLE ('[{"city":"Stockholm","name":"Lennart… March 3, 2021 at 6:16 pm
    • Vinish
      Vinish added an answer Below is the correct query: SELECT city, name FROM JSON_TABLE… March 3, 2021 at 9:18 am
    • Bheem
      Bheem added an answer Got the answer. Thank you March 3, 2021 at 9:07 am
    • afzal
      afzal added an answer STEP -1 CREATE REPORT LIKE-- select SAL AS "SALARY", NVL(COMM,0)… March 2, 2021 at 10:25 am

    Recent Blog Posts

    • Vinish

      Oracle Apex - Display External File in Region

    • Vinish

      Oracle PL/SQL Download BLOB File to Disk

    • Vinish

      Oracle Convert External File to BLOB

    • Vinish

      Oracle Apex Calendar Example

    • Vinish

      Oracle Apex - Open Modal Dialog Page Using JavaScript

    Explore

    • Home
    • Blog
    • New Questions
    • Tutorials
      • Oracle
      • Oracle Apex
      • Python
    • Tags
    • Users
    • Badges & Points
    • About

    © 2021 OrclQA.Com. All Rights Reserved. Privacy Policy