You are on page 1of 7

6/3/12 My Oracle Support | Knowledge Browser | 1316400.

How To Setup The Default Where Clause On A Form Personalization Of Core Application? [ID 1316400.1]

Modified 19-MAY-2011 Type HOWTO Status PUBLISHED

In this Document
Goal
Solution
1. Confirm the results block
2. Define Personalization

Applies to:

Oracle Purchasing - Version: 12.1.3 and later [Release: 12.1 and later ]
Information in this document applies to any platform.

Goal

How to setup the default where clause on a form? Example. Receiving Form?

Solution

In this example, attempt is made to limit the results to the V1-New York City deliver to location only and always.

1. Confirm the results block

https://support.oracle.com/CSP/ui/flash.html#tab=KBHome(page=KBHome&id=()),(page=KBNavigator&i… 1/7
6/3/12 My Oracle Support | Knowledge Browser | 1316400.1

Use Help/Diagnostics/Examine to locate the form record block that is showing the results.
In this case - the form block is RCV_TRANSACTIONS.

2. Define Personalization

While in the form - choose Help/Diagnostics/Custom Code/ Personalize from the top text menu.

https://support.oracle.com/CSP/ui/flash.html#tab=KBHome(page=KBHome&id=()),(page=KBNavigator&i… 2/7
6/3/12 My Oracle Support | Knowledge Browser | 1316400.1

Choose the condition of 'When New Form Instance'.

https://support.oracle.com/CSP/ui/flash.html#tab=KBHome(page=KBHome&id=()),(page=KBNavigator&i… 3/7
6/3/12 My Oracle Support | Knowledge Browser | 1316400.1

In the actions -
Sequence is 10
Type is Property
Object Type - Block
Target Object - RCV_TRANSACTIONS (The block from earlier)
Property Name - DEFAULT_WHERE

https://support.oracle.com/CSP/ui/flash.html#tab=KBHome(page=KBHome&id=()),(page=KBNavigator&i… 4/7
6/3/12 My Oracle Support | Knowledge Browser | 1316400.1

Now, choose Get Value button.

This will actually pull in the default where clause for the form, as it is currently, image above.

This is the current where clause in the form found from pressing the 'Get Value' button.

receipt_source_code IN ('INVENTORY','INTERNAL ORDER','VENDOR')


and
((RCV_ENTER_RECEIPTS_V.SOURCE_TYPE_CODE = 'VENDOR' OR RCV_ENTER_RECEIPTS_V.SOURCE_TYPE_CODE = 'ASN' OR
RCV_ENTER_RECEIPTS_V.SOURCE_TYPE_CODE = 'INTERNAL'))
and ((NVL(RCV_ENTER_RECEIPTS_V.closed_code,'OPEN') NOT IN ('CLOSED', 'CLOSED FOR RECEIVING')))

Now, confirm the field name in the RCV_ENTER_RECEIPTS_V. For this example, deliver_to_location_id is going to be used. Its possible to use the
Help/Diagnostics/Examine as well to find out the value for the deliver_to_location_id that should be used.

Modify the default where clause to include the deliver_to_location_id.

receipt_source_code IN ('INVENTORY','INTERNAL ORDER','VENDOR')


and deliver_to_location_id = 204
and ((RCV_ENTER_RECEIPTS_V.SOURCE_TYPE_CODE = 'VENDOR' OR RCV_ENTER_RECEIPTS_V.SOURCE_TYPE_CODE = 'ASN' OR
RCV_ENTER_RECEIPTS_V.SOURCE_TYPE_CODE = 'INTERNAL')) and ((NVL(RCV_ENTER_RECEIPTS_V.closed_code,'OPEN') NOT IN ('CLOSED', 'CLOSED
FOR RECEIVING')))

https://support.oracle.com/CSP/ui/flash.html#tab=KBHome(page=KBHome&id=()),(page=KBNavigator&i… 5/7
6/3/12 My Oracle Support | Knowledge Browser | 1316400.1

Input the new DEFAULT_WHERE clause - seen above.


- Save the personalization
- Close the form completely

Test and find that the default where clauses is properly invoked.
https://support.oracle.com/CSP/ui/flash.html#tab=KBHome(page=KBHome&id=()),(page=KBNavigator&i… 6/7
6/3/12 My Oracle Support | Knowledge Browser | 1316400.1

Related

Products

Oracle E-Business Suite > Procurement > Procurement > Oracle Purchasing

Keywords

DELIVER TO LOCATION; PERSONALIZATION; PROPERTY; WHERE CLAUSE

Back to top

Copyright (c) 2007, 2010, Oracle. All rights reserved. Legal Notices and Terms of Use | Privacy Statement

https://support.oracle.com/CSP/ui/flash.html#tab=KBHome(page=KBHome&id=()),(page=KBNavigator&i… 7/7

You might also like