You are on page 1of 8

05/08/2016

BhaskarReddyOracleApplications:FolderOptionsinCustomForms
0

BhaskarReddyOracleApplications
MONDAY,7MAY2012

ABOUTME

BhaskarReddy

FolderOptionsinCustomForms

Follow

Viewmycompleteprofile

FolderOptionsinCustomForms
FolderoptionisoneofthegoodconceptsavailabletoreducetheFuturecustomizationinmanycustom
Forms.Hereiamputtingbasicfunctionalityof

106

TOTALPAGEVIEWS

thefoldersandwilltrytoputthesimplestepstodothem.

3 7 7 9 5 6

Thesethingareavailableinthemetalinkwithalittlesearchbutiputtingforreadyreference...fortechnical
people

LABELS

AccountPayables(AP)(27)
FunctionsoftheFolder

AccountReceivables(AR)(11)
Alerts(6)

Foldersprovidethefollowingfunctionstotheuser:
Customizabledisplayofretrieveddata,including:
Columnstobedisplayed
Widthofcolumnstobedisplayed

AOL(4)
APIs(49)
AppsTables(8)
BankPaymentMethod(1)
BIPublisher(4)

Sequenceofcolumns

BindParameters(1)

Promptsassociatedwithcolumns

BOM(5)

Recordordering(withsomeexceptions)

CashManagement(9)
ConcurrentManager(2)

Persistentstorageoffolderdefinitions

ConcurrentProgram(14)

Automaticrerunofapreviouslydefinedquery

Conversions(4)

Publicandprivateaccesstopersistentconfigurations

CustomTop(1)

Defaultconfigurationspecification

D2K(1)

Inaddition,systemadministratorscanpreventusersfromcreatingormodifyingfoldersbysettingtheprofile
optionFOLDERS:ALLOW_CUSTOMIZATIONtoN.Thissettingdisablesallfolderfunctions(exceptopeninga
predefinedfolder)forindividualusers.
ActionsinFolderForms

DescriptiveFlexField(DFF)(6)
Discoverer(18)
FixedAssets(3)
FND(1)
FNDTables(2)
FND_USER(3)

Folderformallowstheusertoperformthefollowingfunctions:

FNDLOAD(3)
FNDLOADScript(1)

New:Createsanewfolder.Theusermustenteranew,unique(perentityanduser)foldername.This

Forms(17)

functionisnotavailableatenterquerymode.

GeneralLedger(GL)(8)
HRMS(19)

Open:Loadsapreviouslydefinedfolder.Ausercanselectfromalistofhisownfolders,andanypublic
folders,forthecurrententity.
Save/SaveAs:Savesthecurrentfolder.IfithasneverbeensavedthenreverttoSaveAsfunctionality.
Delete:Allowsausertodeleteanyfolderthattheycreatedforthecurrententity.Ifanotheruseris
referencingthefolderastheirdefault,thatreferenceisdeletedaswell.

InstallationSteps(1)
Interfaces(20)
InterviewQuestions(13)
KeyJoins(1)
KeyTablesInOracleApps(1)
LDTFiles(2)
Lexicalreferences(1)

ShowField:OpensanLOVdisplayingfieldsthatcanbeshownandarenotcurrentlyshown.Selectingavalue

LOVs(4)

addsthefieldafterthecurrentcursorposition.

O2C(1)
OracleAIMDocumentTemplates(1)

HideField:Hidesthecurrentfield.Thecursormovestothefieldsequencedafterthefieldthatwasjust

OracleApps(34)

hidden.Bydefault,requiredfieldscannotbehidden.

OracleApps11i(6)
OracleAppsFramework(OAF)(8)

MoveRight:Swapsthecurrentfieldwiththeonetoitsright.
MoveLeft:Swapsthecurrentfieldwiththeonetoitsleft.
Widen:Increasesthewidthofthecurrentfield,uptoamaximumsizeof20inches,in.2inchincrements.

http://bhaskarreddyapps.blogspot.jp/2012/05/folderoptionsincustomforms.html

OracleInventory(6)
OraclePayments(3)
OracleReceivables(1)
OrderManagement(OM)(7)

1/8

05/08/2016

BhaskarReddyOracleApplications:FolderOptionsinCustomForms
P2P(4)

Shrink:Decreasesthewidthofthecurrentfield,toaminimumsizeof0.3inches,in.2inchincrements.

Price(4)
ProjectAccounting(PA)(1)

AutoSize:Sizeseachstackedcanvasfieldbasedonasmallsampleofrecordswithintheblock.Usesthe
promptwidthtoestablishaminimumwidth.Listsaresizedbasedontheelementstheycontain,andcheck
boxesaresizedbasedonthepromptonly.ThisfunctionisnotavailableinEnterQuerymode.
ShowOrderBy:Allowstheusertotoggletheorderbybuttonsonandoff.Whentheyareshown,theuser
cansettheorderingoffirstthreebasetableitemscurrentlyshown.EachcolumncanbesettoAscending,
Descending,orExclude.Thethreesettingsareappliedlefttorightwhendataisfetchedandsorted.

PurchaseOrder(PO)(12)
R12(11)
Reports(12)
RequestGroup(1)
SomeUsefulScripts(16)
SQL*Loader(5)
SQLDeveloper(1)

ViewQuery:AllowstheusertoviewtheWHEREclauseofthefolder.

SQLPL/SQL(14)
SubLedgerAccounting(2)

ResetQuery:ClearsthecurrentWHEREclause.SimilartoNew,exceptthatthecurrentfoldernameandall

SystemAdministrator(1)

ofitsdefinitionsareretained.

SystemParameters(1)
TOAD(1)

Followingarethefeaturewhichdevelopercancustomize:
Developerscandisableallfolderfunctionsindependently.Forinstance,adevelopercouldcreateafolder
thatpreventstheuserfrommovingfields,settingtheordering,andspecifyingthatafoldercanautoquery
uponbeingopened.

Triggers(1)
UNIX(1)
UserParameters(1)
ValueSet(2)
Workflows(3)

Developerscanusethefoldertechnologytolayoutablock,butnotexposeanyfolderfunctionstotheuser.
Developerscanpreventusersfromhidingspecificfields.Thisallowsincludingmandatoryfieldsinenterable

XMLPublisher(21)

SEARCHTHISBLOG

blocks(mandatoryfieldsshouldalwaysappear).
MostofthefolderformfunctionalitycustomizationisdoneinuserdefinedtriggerFolderReturnAction
whichcomeswithfolderformtemplate.

Search

BLOGARCHIVE

2016(2)
2015(3)

BehaviorofaFolderBlock

2014(3)
Insteadofboilerplatetext,thepromptsareactuallydisplayitemsinasinglerowblock.Thepromptsareall

2013(3)

paintedonasingleline.

2012(79)
November(30)

TheinitialsettingsofthepromptsdrivethelayoutoftheDefaultScreen,includingitemwidthandtabbing
sequence.

October(8)
May(13)

Somefieldproperties,includingwidths,Xpositions,andpromptsaresetatruntime.Anyvaluesthatremain
staticwhiletheformisrunaretheresponsibilityofthedeveloper.Theseincludevisualattributes,Ypositions,
etc.
Thedescriptiveflexfieldmustexistonthestackedcanvas,ratherthanthecontentorfixedcanvaswhereit
isalwaysvisible,sothattheusercanresize,move,andlabelitasneeded.

StepstocreateFolderForm

Stepstocreateadependentvalue
setinOracleA...
GettingStartedwithOracleSQL
Developer
FolderOptionsinCustomForms
DescriptiveFlexFieldsinCustom
Forms
OracleAppsChangingLOVQuery
FormPersonalizatio...
ReadOnlyDFFSegments

Step1CreateFolderObjects

HowtouseFNDLOADtoextractldt
fileforspecifi...

ReferenceFolderObject

OracleApplications:Descriptive
FlexfieldsOverv...

Everyfolderformmustcontainthefolderobjects(suchasthewindowsthatareusedforsavingfoldersand
changingprompts)includedintheSTANDARD_FOLDERobjectgroup.Ifthisobjectgroupdoesnotalready

HowtoaddDescriptiveFlexfields
(DFF)inanOrac...

existinyourform,referenceitfromAPPSTAND.$AU_TOP/au/11.5.0/forms/US/APPSTAND.fmb

DescriptiveFlexFields

AttachedtheFolderlibrary

EnablingDFFInOracleStandard
Forms

EveryfolderformmusthavethelibraryAPPFLDR.pllattached.Thelibraryfileis
$APPL_TOP/au/11.5.0/resource/APPFLDR.pll.
CreatetheContent/FixedCanvas

CreatingOracleFormsMenus
DefiningandViewingBLOBDatain
OracleApplicati...
April(2)

Createacontentcanvas,asyouwouldforanywindow.AssignitthepropertyclassCANVAS,andassignitto

March(22)

theappropriatewindow.Thiscanvaswillholdtheblockscrollbar,therecordindicator,andthefolder_open

January(4)

andfolder_titleobjects.Thiscanvaswillalsoholdanyfieldsthatwouldnotbepartofthefolderblock,suchas
requiredprimarykeyfields.

http://bhaskarreddyapps.blogspot.jp/2012/05/folderoptionsincustomforms.html

2011(189)

2/8

05/08/2016

BhaskarReddyOracleApplications:FolderOptionsinCustomForms

Note:Thenameofthecontentcanvascannotbeasubstringofthenameofthestackedcanvas,asthiswill
causeerrors.Forexample,ifthecontentcanvasiscalledORDERS,thenthestackedcanvascannotbecalled
ORDERS_FOLDER,butORDERS_MAINandORDERS_FOLDERwouldbeacceptable.

FOLLOWERS

BhaskarReddy
Addtocircles

CreatetheStackCanvas
Createastackedcanvasitholdspromptfieldsanddisplayedfieldsofthefolderblock,aswellasthe
ORDER_BY#buttons.
DeterminetheappropriateYpositionforthetopofthefolderblock(thiscorrespondstotheYpositionforthe
topoftheFolderOpenbuttonandtheFolderTitle).ThisvalueisreferredtoasY_OFFSET,andisusedto
calculatethecorrectpositionsforitemsandcanvasses.TypicallyY_OFFSETshouldbe.25inches(thatis,the
topoftheFolderOpenbuttonshouldbeonecharacterdownfromthetopofthewindow)ifthefolderisthe
firstblockinthewindow.
106havemeincircles

Viewall

Setthefollowingpropertiesforthestackedcanvas:
Sequence:Afterthecontentcanvas.

PropertyClass:CANVAS_STACKED
Displayed:Trueforthestackedcanvasthatwillbeshown

ORACLERELATEDVIDEOS

immediatelyuponenteringtheblockFalseforany
others.
Window:Sameasforthecontentcanvas.

TRANSLATEBLOGLANGUAGE

SelectLanguage
Poweredby

Translate

ViewHeight:.5+(.25*numberofrowstobedisplayed)
DisplayXPos:.5(Maybeadjustedlater)
DisplayYpos:Yoffset+.25
ViewHoriz
ScrollBar:True

Step2CreateFolderblockitem
FolderBlockItem
Createablocktoholdthefieldsofthefolder,asyouwouldanyotherblock.Theblockscrollbarmustbeon
thecontentcanvas.
Suggestion:Althoughthescrollbarmustbeonthecontentcanvas,mostofthefieldsbelongonthestacked
canvas.Ifyouareusingthedefaultblockfunctionality,thiscanbeachievedmosteasilybyspecifyingthe
stackedcanvaswhencreatingthedefaultblock,andthenchangingtheScrollBarCanvaspropertyafterthe
blockhasbeencreated.Oneormorefieldsmaybeonthecontentcanvas.Thesefieldsmustalwaysbethe
leftmostfieldsintheblock,andwillnotrespondtofolderevents(e.g.MoveRight,Widen,Hide).Identify
which,ifany,fieldswillbeonthecontentcanvas,andmovethemthere.Sequencethesefieldsbeforeanyof
thefieldsthatwillbeonstackedcanvasses.
AdjusttheDisplayXPositionforthestackedcanvasviewsothatitis.1totherightofthefieldsonthe
contentcanvas.Foreachitemtobedisplayedaspartofthefolder,setthepropertiesasfollows:
TYPE:TextItem,CheckboxorListonly.
XPosition:Positionedatruntime
YPosition:Ifoncontentcanvas,Y_OFFSET+.5otherwise,.25
Width:Setatruntime
Canvas:Thecontentorstackedcanvas
Displayed:Ifpartofthedefaultdisplay,TrueotherwiseFalse.Fieldsonthecontentcanvasmustbe
Displayed.
Note:ThepositionandwidthofanyfieldonthecontentcanvasmustbesetaccuratelyintheDesigner.Also,
thewidthofacheckboxshouldbesetaccuratelyto0.3.Checkboxeswithwidth0.2areacceptable,butdo
notsavespacesinceAPPFLDRalwaysallocatesatleast0.3foracheckbox.
FolderSwitcherItem
Createaswitcherfieldfortheblock.Inacombinationblock,thisshouldbecalledSWITCHER,andinany

http://bhaskarreddyapps.blogspot.jp/2012/05/folderoptionsincustomforms.html

3/8

05/08/2016

BhaskarReddyOracleApplications:FolderOptionsinCustomForms

otherfolderblock,itshouldbecalledFOLDER_SWITCHER.Itmustbesequencedfirstintheblock,andmust
usetheSWITCHERpropertyclass.Placeitonthecontent/fixedcanvas.Thisfieldmustnothavea
correspondingfieldinthepromptblock.Attachedthefollowingtriggertotheswitcheritem:
Trigger:WHENNEWITEMINSTANCE(ExecutionStyle:Override)
OnfieldSWITCHER:
app_folder_move_cursor(1)
CreateCurrentRecordIndicator/DrilldownRecordIndicator
Createarecordindicatorfortheblock.ItmustbecalledeitherCURRENT_RECORD_INDICATORor
DRILLDOWN_RECORD_INDICATOR.Donotincludeacorrespondingfieldinthepromptblock.Thefoldercode
disablescertainfunctionsautomatically,butitisdeveloperresponsibilitytowritethecodetomanagethe
indicator.TheWHENNEWITEMINSTANCEtriggerforCURRENT_RECORD_INDICATORmustcall
app_folder_move_cursor(1).
Step3CreateBlockLevelTrigger
Trigger:WHENNEWBLOCKINSTANCE(ExecutionStyle:Before)
app_folder.event(WHENNEWBLOCKINSTANCE)
Thistriggerinstantiatesthefolderblock(ifnecessary),attemptingtoloadtheusersdefaultifonexists.
Trigger:KEYNEXTITEM
app_folder.event(KEYNEXTITEM)
Thistriggernavigatestothenextfoldersequenceditem.Movestonextrecordifneeded.FireinEnterQuery
modemustbeTRUE.
Trigger:KEYPREVITEM
app_folder.event(KEYPREVITEM)
Thistriggernavigatestothepriorfoldersequenceditem.Movesto
priorrecordifneeded.FireinEnterQuerymodemustbeTRUE.
Trigger:PREBLOCK(ExecutionStyle:Before)
app_folder.event(PREBLOCK)
Thistriggerestablishesvaluesforthefolderblock(whenmorethanoneisdefined).Itreenablesthefolder
menuuponenteringtheblock.
Trigger:POSTBLOCK(ExecutionStyle:Before)
app_folder.event(POSTBLOCK)
Thiscalldisablesthefoldermenu.
Trigger:PREQUERY(ExecutionStyle:Before)
app_folder.event(PREQUERY)
Thiscallbuildstheorderbyclauseforthequery.
Trigger:POSQUERY(ExecutionStyle:Before)
app_folder.event(POSTQUERY)
Ifthefolderblockisthemasterofamasterdetailrelationship,thistriggerisrequired.ItextractstheWHERE
clausefromSYSTEM.LAST_QUERY.Withoutthistrigger,thedetailblocksquerycanbeextractedinstead,
whichcanleadtosavinganinvalidquerywiththefolder.
Trigger:UsernamedtriggerFOLDER_RETURN_ACTION
<>
Thistriggerisfiredeachtimethefolderdoescertainoperationsthatyoumayneedtofurtherprocess.
global.folder_actioncontainsthenameoftheprocess,andglobal.folder_fieldholdsthenameoftherelevant
field,ifany,strippedoftheblockname.Specificcallbacksmaypopulateotherglobalvariables.The
FOLDER_RETURN_ACTIONtriggerisoptional.Youshouldcodeitifyouneedtoperformlogiconanyofthe

http://bhaskarreddyapps.blogspot.jp/2012/05/folderoptionsincustomforms.html

4/8

05/08/2016

BhaskarReddyOracleApplications:FolderOptionsinCustomForms

supportedevents.
Example:
FollowingiscodewritteninFOLDER_RETURN_ACTIONtriggertoallowupdateforCOL1,COL2andCOL3in
thefolderblock:
DECLARE
field_nameVARCHAR2(30)
BEGIN
IF(:global.folder_action=SHOWFIELD)THEN
field_name:=NAME_IN(global.folder_field)
IF(field_nameIN(COL1,COL2,COL3))THEN
app_item_property.set_property(
||.||field_name,
ALTERABLE,
PROPERTY_ON)
ENDIF
ENDIF
END
Step4CreatePromptBlock
Createaonerecordblocktoholdthefieldsthatactaspromptsforthefolderblock.Foreveryiteminthe
folderblockthatmaybedisplayed,thepromptblockmustcontainanitemofthesamename(exceptforthe
recordindicatorandtheswitcher).TheinitialsettingsofthepromptsdrivethelayoutoftheDefaultScreen,
includingitemwidthandtabbingsequence.
Typicallyonewouldnamethepromptblock_PROMPT,forexample,ORDERS_PROMPT.
Eachpromptfieldmusthavethefollowingcharacteristics:
PropertyClass:DYNAMIC_PROMPT
Sequence:Mustmatchthenameofaniteminthefolderblock.Sequencethefirst
setoffieldstobedisplayedproperly,startingat1.Thisdrivesthe
folderTABorder.
XPosition:Positionedatruntime.
YPosition:.05.
Width:Dictatesthewidthofthecorrespondingfield.Makesurethewidthisadequatetodisplaythetextfor
thepromptfully.Thewidthonlyneedsto
accountforEnglishtextnotranslationexpansionspaceisneeded.Specifyingthewidthas0.1causesitto
adjustautomaticallybasedonthetextitcontains.Forcheckboxes,specifyawidthof0.1
Alignment:UsuallyStart,butfollowsalignmentofdataincorrespondingfolder
blockfield.PromptsforcheckboxesarealwaysCenteraligned.
Canvas:Stackedcanvas.
Default:Thetextfortheprompt.Thetranslationtooltranslatesthis
automatically.
Displayed:Trueonlyforthosefieldsyouwantdisplayedonthedefaultscreen
otherwise,False.

CreateSpecialFieldsinPromptBlock
Thefollowingspecialfieldsmustexistinthepromptblock:
Field:FOLDER_OPEN
PROPERTYCLASS:FOLDER_OPEN
XPOSITION:0.1
YPOSITION:Y_OFFSET
CANVAS:contentcanvas
Field:FOLDER_TITLE
PROPERTYCLASS:DYNAMIC_TITLE
XPOSITION:0.4
WIDTH:4
YPOSITION:Y_OFFSET+.05
CANVAS:contentcanvas

http://bhaskarreddyapps.blogspot.jp/2012/05/folderoptionsincustomforms.html

5/8

05/08/2016

BhaskarReddyOracleApplications:FolderOptionsinCustomForms

Field:FOLDER_DUMMY
PROPERTYCLASS:FOLDER_DUMMY
CANVAS:TOOLBAR
Field:ORDER_BY1,ORDER_BY2,ORDER_BY3
PROPERTYCLASS:FOLDER_ORDERBY
XPOSITION:Setatruntime.
YPOSITION:ForcontentcanvasY_OFFSET+.5+(.25*Rows)
Forstackcanvas.25+(.25*Rows)
CANVAS:Ifitsafixedfieldspecifycontentcanvasotherwisespecifystack
canvas.
Step5CodeFormLevelTrigger
Thefollowingformleveltriggersmustexistinorderforafolderblocktooperatecorrectly:
Trigger:WHENWINDOWRESIZED:
IF:system.event_windowIN(<>)THEN
app_folder.event(WHENWINDOWRESIZED)
ENDIF

Trigger:KEYCLRFRM:
app_folder.event(KEYCLRFRM)
Thiscallmustbemadeanywhereaclear_formisissued.Thiscausethefoldercodetorepainttheprompts
andfoldertitlesasiftheywerenormalboilerplate.
Trigger:WHENNEWFORMINSTANCE:
app_folder.define_folder_block('OBJECTNAME',
,
,

,
[])
Note:AllparametersmustbepassedinUPPERCASE.
Example:
App_flolder.define_folder_block(PO_HEADER
,POHEADER
,POHEADER_PROMPT
,POHEADER_STK
,POHEADER_MAIN)
Choosetheobjectnamecarefullyitmustbeuniqueacrossallproducts.Prefixitwiththeapplicationshort
name,forexampleFND_ALERTS.Thisobjectnameidentifiesallfolderdefinitionsthatusersdefineandsave
foryourfolder,anditappearsintheAdministerFoldersformastheFolderSet,soyoushouldmakethe
objectnamedescriptiveandreadable.
DISABLEDFUNCTIONScanbeastringcombininganyofthefollowing.Specifyingthatafunctionisdisabled
preventstheuserfromperformingit.
OPEN
TOOLS:DisableseverythingexceptOPEN.NotethatiftheprofileFOLDERS:ALLOW_CUSTOMIZATIONisN,
alltoolsareautomaticallydisabledexceptOpen.
ORDERBY
NEW
SAVE:DisablesSaveandSaveAs.
AUTOQUERY:Shouldbedisabledforanydetailblock.
PUBLIC
DEFAULT
DELETE
SHOW

http://bhaskarreddyapps.blogspot.jp/2012/05/folderoptionsincustomforms.html

6/8

05/08/2016

BhaskarReddyOracleApplications:FolderOptionsinCustomForms

HIDE
MOVE
WIDEN
SHRINK
AUTOSIZE
PROMPT
QUERY
FollowingexamplewilldisableORDERBYandHIDEfunctioninthefolderform:
App_flolder.define_folder_block(PO_HEADER
,POHEADER
,POHEADER_PROMPT
,POHEADER_STK
,POHEADER_MAIN
,ORDERBYHIDE)
UsernamedTrigger:FOLDER_ACTION
app_folder.event(:global.folder_action)
Donotinsertadditionalcodeinthistrigger.Itisusedtoallowthemenuandfoldertoolbartocommunicate
withthefolderlibrarythatisattachedtotheform.
UsernamedTrigger:FOLDER_RETURN_ACTION
NULL
Thistriggermustexistatformleveltohandlethecaseinwhichithasnotbeencodedatblocklevel.

TheFOLDER_RETURN_ACTIONtriggersupportsthefollowingevents:
SHOW_FIELD:Thefieldin:global.folder_fieldhasjustbeenmadevisible.Inupdateableblocks,youmay
needtosetsomeproperties(suchasUpdateAllowed,Required,etc.).FieldscanbecomevisibleinEnter
Querymodeornormalmode.Whenafolderisopened,allfieldscurrentlydisplayedarehidden,evenifthey
areinthenewfolderthusthiscallismadeforeachfieldasitisredisplayed.
ADD_FILED:Populates:global.folder_field.CalledattheendofauserinitiatedShowFieldeventthat
resultsinafieldbeingdisplayed.TheSHOWFIELDcallbackisalsotriggeredbeforethiscallback.
HIDE_FIELD:Populates:global.folder_field.CalledattheendofauserinitiatedHideFieldeventthat
resultsinafieldbeinghidden.
OPEN_FOLDER:CalledattheendofanOpenFoldereventthatresultsinafolderbeingloaded,butbefore
thefolderautoqueries.Populatesglobal.folder_id.
SETWHERECLAUSE:CalledduringaSaveFolderevent,beforesettingthewhereclausethatwillbesaved
withthefolder.Setsglobal.folder_action_allowedTRUE.Ifthevalueof:global.folder_action_allowedis
changedtoanythingbutTRUEbytheFOLDER_RETURN_ACTIONtrigger,theWHEREclausesavedwiththe
folderisnull.
RESETWHERECLAUSE:CalledwhentheblockWHEREclauseissetbacktothedevelopersWHEREclause,
becausetheuserhasselectedFolder>Resetqueryfromthemenu,orbecausetheuserhasselectedFolder
>Newfromthemenu.
SAVEFOLDER:CalledattheendofaSaveFolderevent,immediatelybeforetheCommit.Populates
:global.folder_id.
DELETEFOLDER:CalledduringaDeleteFolderevent,immediatelybeforetheCommit.Populates
:global.folder_id.
CONFIRMHIDEFIELD:CalledduringauserinitiatedHideFieldevent,immediatelyafterdoingallother
checksthatthefieldcanbecut(forexample,itisnotonthecontentorfixedcanvas,itisnottheonlyfieldon
thestackedcanvas,etc.).Thevariableglobal.folder_action_allowedisseededwithTRUE.Ifthisvariableis
changedtoanythingbutTRUE,theactionisabortedandtheusercannothidethefield.Bydefault,iftheuser
attemptstohidearequiredfield,CONFIRMHIDEFIELDautomaticallypreventsit,andusersareallowedto
hidenonrequiredfields.Youcanoverridethisbehaviorbychangingthevalueof:global.folder_action_allowed
toeitherTRUE(allowhiding)orFALSE(preventhidingnonrequiredfields)intheCONFIRMHIDEFIELD
callbacktotheFOLDER_RETURN_ACTIONtrigger.

http://bhaskarreddyapps.blogspot.jp/2012/05/folderoptionsincustomforms.html

7/8

05/08/2016

BhaskarReddyOracleApplications:FolderOptionsinCustomForms

AUTOQUERY:Calledwhenafolderloadsandautomaticallyexecutesaquery.
CONFIRMAUTOQUERY:Calledwhenafolderthatisdesignedtoautoqueryopens.
GLOBAL.FOLDER_ACTION_ALLOWEDisseededwithTRUE.IfthisvariableischangedtoanythingbutTRUE,
thefolderdoesnotautoquery.
Example:PreventHidingaField
Preventtheuserfromhidingthe(nonrequired)PERIOD_NAMEfield:
Trigger:FOLDER_RETURN_ACTION(blocklevel):
IF(:global.folder_action=CONFIRMHIDEFIELD)THEN
IF:global.folder_field=PERIOD_NAMETHEN
:global.folder_action_allowed:=FALSE
ENDIF
ENDIF

PostedbyBhaskarReddyat3:35pm

Recommend this on Google

Labels:Forms

1comment:
SrideviKoduru 18July2016at17:16
Regards
SrideviKoduru(SeniorOracleAppsTrainerOracleappstechnical.com)
LinkedInprofilehttps://in.linkedin.com/in/sridevikoduru9b876a8b
PleaseContactforOnetoOneOnlineTrainingonOracleAppsTechnical,Financials,SCM,OAF,SQL,PL/SQL,
D2Katsridevikoduru@oracleappstechnical.com|+919581017828.
Reply

Enteryourcomment...

Commentas:

Publish

Unknown(Google)

Signout

Notifyme

Preview

Linkstothispost
CreateaLink

NewerPost

Home

OlderPost

Subscribeto:PostComments(Atom)
Therewasanerrorinthisgadget

PictureWindowtemplate.PoweredbyBlogger.

http://bhaskarreddyapps.blogspot.jp/2012/05/folderoptionsincustomforms.html

8/8