otmfaqForumsBlogsRegister
FAQMembers ListCalendarToday's PostsSearch


 Subscribe Blogs:RSS
 Subscribe Forums:RSS
 Follow New Posts:Twitter
OTMFAQ Home
OTMFAQ Blogs
OTMFAQ Forums
OTM Wiki

OTM SIG
OTM Wiki
MavenWire

Go Back   Oracle OTM / G-Log GC3 Community Support > OTM / G-Log - Technical Topics > SysAdmin and Management
Reload this Page

Creating VPD profile to access Order releases in Servprov


SysAdmin and Management Managing and monitoring OTM / G-Log and other administrative activities.

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old June 2nd, 2009, 10:31
Member
 
Join Date: Oct 2007
Location: India
Posts: 85
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 9
Thanked 1 Time in 1 Post
Rep Power: 3
surender is on a distinguished road
Creating VPD profile to access Order releases in Servprov

Hi

I followed the following steps to add the External predicate to SERVPROV

Opened the VPD profile for Servprov and put in the following query

exists (select order_release_gid from v30_shipment_order_release where v30_shipment_order_release.shipment_gid in (select shipment.shipment_gid from shipment where shipment.servprov_gid IN( (SELECT user_association.user_association_value FROM user_association WHERE user_association.gl_user_gid = sys_context('gl_user_ctx', 'gl_user_gid') AND user_association.user_association_qual = 'SERVPROV') UNION (SELECT tcs.servprov_gid FROM user_association ua, tender_collab_servprov tcs WHERE ua.gl_user_gid = sys_context('gl_user_ctx', 'gl_user_gid') AND ua.user_association_value = tcs.dispatch_location_gid AND ua.user_association_qual = 'DISPATCH LOCATION') )))

I basically took the query under servprov for Shipment and put a query around it to retrieve order_releases.

Use External predicate , Use Domain Rule and Use Servprov Rule are all checked

I saved this profile and tried to open the following id
SERVPROV.CRP-77777

I see the one shipment associated with the service provider but I am seeing all the order release (even the ones in another domain).

How can this be fixed?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old June 4th, 2009, 05:48
Member
 
Join Date: Oct 2007
Location: India
Posts: 85
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 9
Thanked 1 Time in 1 Post
Rep Power: 3
surender is on a distinguished road
Re: Creating VPD profile to access Order releases in Servprov

To access only order releases for a specific carrier in the carriers login the following query can be used
ORDER_RELEASE.ORDER_RELEASE_GID IN (select order_release_gid from v30_shipment_order_release where v30_shipment_order_release.shipment_gid in (select shipment.shipment_gid from shipment where shipment.servprov_gid IN( (SELECT user_association.user_association_value FROM user_association WHERE user_association.gl_user_gid = sys_context('gl_user_ctx', 'gl_user_gid') AND user_association.user_association_qual = 'SERVPROV') UNION (SELECT tcs.servprov_gid FROM user_association ua, tender_collab_servprov tcs WHERE ua.gl_user_gid = sys_context('gl_user_ctx', 'gl_user_gid') AND ua.user_association_value = tcs.dispatch_location_gid AND ua.user_association_qual = 'DISPATCH LOCATION') )))
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Planning Order Releases with 0 Weight JayVal Planning 4 December 13th, 2008 09:36
VPD to allow access for order release for servprov? tangfj Database Administration 3 November 20th, 2008 13:23
Creating Shipments automatically by grouping order releases of single order base neoandr Order Processing 5 February 26th, 2008 09:57
[SOLVED] RE: Generating Order Releases within a SAW (OTM v4.5) John Nadvornik Email List Archive 0 January 25th, 2007 22:18
[SOLVED] Generating Order Releases within a SAW (OTM v4.5) John Nadvornik Email List Archive 0 January 25th, 2007 08:15



All times are GMT. The time now is 23:06.
Copyright © 2006-2009, Open Book Solutions LLC. All rights reserved.


Inactive Reminders By Icora Web Design

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 38 39 40