Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Best way to stop execution and pop-up a message if validation fails.

TinkerBoyMay 16 2018 — edited May 18 2018

Hi all.

We are busy with a POC to see if we will be able to replace our Oracle Workflow system that has been running with a Forms front end for about 18 years. The system still work 100%. We just want to replace the forms front end so that it can run on any platform including mobile.

So we have been converting one of the processes that is not that complicated to prove that it will work.

We are using Apex 5.1 with the Universal Theme.

The process has a submit screen that does all the validation and once everything is valid then the page will kick off the Oracle Workflow process. This works 100%.

Now I am busy with the approval screen. As you can see there are a couple of buttons at the top that the manager can click. Each one of these buttons have different business rules and validations behind them.

Here is the Oracle Forms page

approve_workflow.JPG

And here is the same page in the Apex system

approve_apex.JPG

For example If you click a button like Reject, the manager has to give a reason why. This reason is only required on a reject, he can enter a note anyway on any of the other buttons by clicking the notes button that I highlighted and then enter the note before he makes his selection, but is is only mandatory on Reject. On the forms app we force the user to enter the reason by displaying a error message and then stop execution by firing a "RAISE FORM_TRIGGER_FAILURE;"

reject_note.JPG

Then the form will open a dialog so the manager can enter the reason.

note.JPG

I know how to call a dialog and pass data to and from it so the add the note is not the problem.

dialog.JPG

I do all the validation in PL/SQL in an dynamic action. But how do I stop execution of that action so that the page is not submitted or processed further like I do with a RAISE FORM_TRIGGER_FAILURE; if there is something wrong (not just a format of a field or item required validation, the validation can be a lookup of a project code and a lot more, it is complex validations, this is just a sample)

And also how do I popup a message like we do in forms, So that the user will know what to do ?

I have read 2 books so far that are recommended and have looked at a number of tutorial, none show a way to do this. What is the best way to get this working in a similar way to the Forms version.

books.JPG

I am sorry if I left out anything that you need more. I am new in this community. Been using Oracle for 20 years but on the Forms and DB side.

Kind Regards.

This post has been answered by Pierre Yotti on May 18 2018
Jump to Answer

Comments

BluShadow

*** Moved to VirtualBox for better question alignment as "Documentation" is not the correct space to ask such a question - let me know if there's a more suitable Virtual product space and I can move it again if needed.

37660ed0-2283-43d5-9d12-8f57a6f3c35b

Can someone please answer above query? Thanks.

Nik

Hi.

Read this:

http://www.oracle.com/technetwork/server-storage/solaris11/documentation/solaris-11-3-faqs-2489291.pdf

Some parts from this Doc.

Q: Can I install Oracle Solaris 11 into a virtual environment?

A: Yes. Oracle Solaris 11 is a supported guest operating system on Oracle VM Server for SPARC, Oracle VM Server for x86, and Oracle VM VirtualBox. Oracle Solaris 11 is known to work on a number of other third-party virtualization offerings from vendors including VMware, Microsoft, and Red Hat.

So Solaris 11 work on VmWare platform, but not supported.

Regards,

Nik.

ErikB

Yes, it is supported.

For step by step directions on how to install look here; Installing Solaris x86 11.2 from an ISO in Virtualbox – Part 1 - Tales from the Datacenter

Erik

Wesley D-Oracle

Solaris 11 can run in VMware; however, only the x86_64 variant - as VMware does not have the ability to emulate SPARC architecture.

I suggest looking at VMware Sites for further information and support with installing Solaris 11 x86_64 as a guest virtual machine on VMware.

1 - 5
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 15 2018
Added on May 16 2018
34 comments
5,012 views