1

I have a big amount of page items in a Oracle Apex 19 page.

If all of those page items are empty, there should be an error. However, if just one of them is not empty, there should be no error.

I could just create a large if statement, but is there a elegant way to solve this using a PL/SQL function body validation?

1
  • Didn't check, but there could be a method to iterate through all page items. Wouldn't be faster but easier to implement/maintain Commented Feb 10, 2020 at 16:24

1 Answer 1

3

you could check your items using coalesce:

  return coalesce(:P100_DEMO_ITEM1,:P100_DEMO_ITEM2,:P100_DEMO_ITEM3) IS NOT NULL;
Sign up to request clarification or add additional context in comments.

1 Comment

Or concatentation :P100_DEMO_ITEM1||:P100_DEMO_ITEM2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.