Applies To:: Cannot Replace Record Group With Form Personalization (Doc ID 763410.1)
Applies To:: Cannot Replace Record Group With Form Personalization (Doc ID 763410.1)
Applies To:: Cannot Replace Record Group With Form Personalization (Doc ID 763410.1)
Document763410.1
CannotReplaceRecordGroupWithFormPersonalization(DocID763410.1)
InthisDocument
Goal
Solution
Steps
Condition
Actions
Example
Condition
Actions
SQL
APPLIESTO:
OracleOrderManagementVersion11.5.10.2to11.5.10.3[Release11.5.10]
Informationinthisdocumentappliestoanyplatform.
Checkedforrelevanceon06Jan2010
***CheckedforRelevanceon11JUN2010***
***Checkedforrelevanceon14MAY2014***
GOAL
HowdoesonereplaceanexistingvanillarecordgroupinOEXOEORDviaformpersonalization?
SOLUTION
Pleasegothroughthebelowtocreaterecordgroupthroughpersonalizationproperly.
WesupportusingSQLstatementswithboundorliteralvaluesforcreationofrecordsgroups.Thistypicallyisdone
tochangetheunderlyingwhereclauseforqueryforanLOV.Ifoneneedstochangethecolumnsreturnedbythe
query,caremustbetakentoensurethatthecolumnnamesanddatatypesmatchwhatwasdefinedfortheLOV
thatisbeingchanged.
TheSQLmayreferencevaluesfromformfields,formparametersandglobals.AllSQLstatementsusedforthis
featureshouldbetestedfromSQL*PLUStoensurethattheSQLisvalidandwillworkasexpected.IftheSQLfor
thepersonalizationhasreferencestoboundvariables,substitutevaluesthatwouldnormallybeexpected.
Steps
TocreateapersonalizationtochangetherecordgroupusedbyanLOV,createanewpersonalizationasfollows:
Condition
TriggerEvent:WHENNEWFORMINSTANCElevel.
ProcessingMode:NotinEnterQueryMode.
SettheappropriateContextLevel.
Actions
#1
Type:Builtin
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrlstate=8py19jwv8_386&id=763410.1
1/2
1/4/2015
Document763410.1
BuiltinType:CreateGroupfromQuery
Argument:<theSQLstatementtobeused>
GroupName:<thenewrecordgroupname>
#2
Type:Property
ObjectType:LOV
TargetObject:<theLOVtousethenewrecordgroup>
PropertyName:GROUP_NAME
Value:<therecordgroupnamecreatedinactionstep1>
Example
ForExample,thefollowingformspersonalizationchangeswillchangetherecordgroupinthesalesorderscreen
accordingtocustomerprovidedinformation:
Condition
TriggerEvent=WHENNEWITEMINSTANCE
TriggerObject=ORDER.ORDER_TYPE
Actions
Property
ObjectType=LOV
TargetObject=Order_Type
PropertynameGROUP_NAME
Value=YF_OT
InBuiltin>CreateNewRG>Language/All>ENABLED
Builtintype=CreateRecordGroupfromQuery
SQL
InArgumentsectionpleaseusethefollowingSQL:
SELECTOTTT.TRANSACTION_TYPE_id,OTTT.NAME,OTTT.DESCRIPTION
FROMOE_TRANSACTION_TYPES_TLOTTT,OE_TRANSACTION_TYPES_ALLOTTA
WHERELANGUAGE=USERENV('LANG')
ANDOTTA.TRANSACTION_TYPE_ID=OTTT.TRANSACTION_TYPE_ID
ANDOTTA.TRANSACTION_TYPE_CODE='ORDER'
ANDOTTA.ORG_ID=136
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrlstate=8py19jwv8_386&id=763410.1
2/2