otmfaqForumsBlogsRegister
FAQMembers ListCalendarToday's PostsSearch


 Subscribe Blogs:RSS
 Subscribe Forums:RSS
OTMFAQ Home
OTMFAQ Blogs
OTMFAQ Forums
OTMFAQ Tutorials

OTM SIG
MavenWire


Workflow Configuring Workflow components - including Agents, Milestones, Notifications Auto Data Assignment and Events.

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old April 16th, 2008, 04:05
Senior Member and Blogger
 
Join Date: Dec 2006
Location: Singapore
Posts: 141
Blog Entries: 5
Thanks: 5
Thanked 11 Times in 10 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 2
ianlo is on a distinguished road
Send a message via AIM to ianlo Send a message via Skype™ to ianlo
Using User Exit (Data Validations)

Hi everyone,

I am currently investigating the problem of having to validate user data entry on Order Templates. We have investigated the use of Action Checks but Oracle has confirmed that Action Checks are not supported with Order Templates - which is really surprising and disappointing.

However, I have stumbled across a function called User Exit - apparently, the object persistence engine will refer to a package called pkg_user_exit to check if there is any problem persisting an object.

Configuration and Administration > System Administration > User Exit

Looking at the package, it looks like there is a way to validate data BEFORE the object is persisted - and throw custom error messages.

Has anyone used this functionality before? Any best practices for this functionality and what is the difference between User Exit and Action Checks?

Thanks!
Ian
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old April 16th, 2008, 19:51
Junior Member
 
Join Date: Jun 2006
Posts: 23
Thanks: 0
Thanked 3 Times in 3 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
Shells will become famous soon enough
Re: Using User Exit (Data Validations)

Hey Ian - interesting enough, we just got Oracle to log a bug for action checks not working against the order template about a week ago. Our issue is that the order template was still creating the order base even tho it did not meet the action check criteria. We are on Cu3. The bug number is 6934684 and we have installed and tested it successfully. You might want to check it out to see if it might correct your issue as well. Thanks - Shell
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to Shells For This Useful Post:
chrisplough (April 16th, 2008)
  #3 (permalink)  
Old April 17th, 2008, 02:49
Senior Member and Blogger
 
Join Date: Dec 2006
Location: Singapore
Posts: 141
Blog Entries: 5
Thanks: 5
Thanked 11 Times in 10 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 2
ianlo is on a distinguished road
Send a message via AIM to ianlo Send a message via Skype™ to ianlo
Re: Using User Exit (Data Validations)

Hi Shells,

Thanks for the inputs! Interestingly yes we also have logged an SR for this issue And the reply from Oracle is that Action Checks on Order Base Templates is not supported and is as per design. The problem that we had was that we have tried activating an Action Check of "ADD ORDER BASE". We have added an Allow Condition of the Saved Query of validating the Ship Unit Count to be non-zero or non-null.
When we try to add an Order Base using the Order Base Template, the Action Check "ADD ORDER BASE" does not get triggered and we have confirmed that by checking the glog.log file.

Oracle Support states that the default value for ship unit count when creating a new ShipUnit bean is '1', and there is not way to override in the code. Oracle have stated that this is the current design

But as my operations will have none of this, I have to explore other functions and hence I stumbled on USER EXIT.

As an update, interestingly I am getting some positive results from this functionality. I am currently testing this in my development server and will update you on my findings Hopefully it will help you as well!

Cheers!
Ian

Last edited by ianlo : April 17th, 2008 at 02:55.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 23:33.
Copyright © 2008, Open Book Solutions LLC. All rights reserved.

Sponsored by MavenWire - MavenWire.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37