Вы находитесь на странице: 1из 5

0

More NextBlog

CreateBlog SignIn

PeopleSoft
ComponentInterface(CI)InterviewQuestions&Answers

ABOUTME

IsmailMohammed
Follow

ComponentInterface...
PeopleSoftComponentInterface(CI)exposesaPeopleSoftComponentforsynchronous
accesstootherapplicationswritteninPeopleCode,JavaorC++.WecanconsiderCIas
themeansbywhichPeopleSoftenforcesencapsulationbylimitingexternalaccesstojust
whatismadeavailablethroughtheCIandnothingmore.
ACIalsoexecutesthebusinesslogicincludedintheComponent.Assuch,itprovidesa
higherlevelofdatavalidationtothedatathatisbeingloadedintotheComponentwhen
comparedtodirectSQLinserts.
PeopleSoftalsoprovidesaComponentInterfaceTestertovalidatetheCIandExcelToCI
tomanageloadingdata.
YoucanhaveasmanyCIspointingtoaComponentasyouwant.ButaComponent
InterfacecanpointtoonlyoneComponent.
AttributesofaComponentInterface
AComponentInterfacehasthefollowingfiveattributes.
Name
Keys
Properties
Collections
Methods
Name
TheNameoftheComponentInterfaceistheuniquenamebywhichwecanidentifythe
CI.CallingtheCIisalsodonewiththehelpofthisname.
Keys
ThesearespecialpropertiesthatcanretrievethevaluesfromaCI.Thethreetypesof
keysthataComponentInterfacehasarethefollowing:
GetKeys:ThesekeysreturnoneinstanceoftheComponentInterface.Thesekeysare
createdbasedonthesearchrecordandmaptotheSearchKeysinthesearchrecord.
FindKeys:ThesekeysreturnalistofinstancesoftheCI.Thesetooarecreatedbased
onthesearchrecordandmaptothecombinationofSearchKeysandAlternateSearch
KeysoftheSearchrecord.
CreateKeys:CreatekeysarecreatedonlywhentheassociatedComponenthastheAdd
actionenabled.
Properties
PropertiesofaCIprovideaccesstotheComponentInterfacessettingsandthedata
fromtheunderlyingComponent.Wecanbroadlyclassifypropertiesintotwo:
StandardProperties:Therearesomepropertiesthatgetassignedautomaticallywhena
CIgetscreated.ThesestandardpropertiescannotbeviewedthroughtheApplication
Designer.SomeexamplesforsuchpropertiesareInteractiveMode,GetHistoryItemsetc.
UserDefinedProperties:ThesepropertiesmaptotherecordfieldsontheComponent.
ThesearedisplayedinApplicationDesignerandyoucanchoosethepropertiesthatneed
tobeincludedintheComponentInterface.
Collections
Thisisaspecialpropertythatcorrespondstoascrollarea.Itcancontainfieldsor
subordinatescrolls,asisthecaseintheComponent.Thedefaultnameofacollection
wouldbesameasthatoftheprimaryrecordfortheunderlyingscroll.
Methods
MethodsarefunctionsthatperformaspecifictaskonaCIatruntime.Runtimeaccessto
eachmethodisgovernedbythesecuritylevelthatyouhaveforthespecificmethod.Like
Properties,Methodstoocanbeclassifiedintotwo:
StandardMethods:ThesearethemethodsthatareavailableforallCIs.Certainstandard
methodslikeFind,Get,SaveandCancelgetcreatedautomaticallywhenCIiscreated.
TheCreatemethodiscreatedonlyiftheunderlyingComponenthastheAddaction
enabled.
UserDefinedMethods:Inadditiontothestandardmethods,wecancreateourown
functionsandexposethemthroughtheCIasmethodsforaddedfunctionality.Such
methodsarecalleduser-definedmethods.Eachuserdefinedmethodmapstoafunction.

79

PeopleSoftTechnical
ConsultantatSunera
TechnologiesPvt.Ltd,myprofessional
careerincludesaround4+yearsof
experiencemainlyrelatedtoPeopleSoft
HRMS/HCM.Duringtheseyears,Ihave
workedonImplementation,Supportingand
UpgradeProjectsinvariouscompanies
startingfromEnvyteeInfosolutionsthan
movingtoIBMChennailocation.Ihave
earnedaMasterDegreeinComputer
ApplicationsfromOsmaniyauniversity
Hyderabad.
Pleasefeelfreetocontactmeon
ismail.181070@gmail.com.
Viewmycompleteprofile

PAGES

Home
XMLusingROWSETasdatasource
InboundPeoplecodeforParent&child
tables
PeopleCodeforout_BoundforParent&
ChildTables
RelationBetweenStateField&CityField
creationofaPeopleSoftPopupmenu
ApplicationEngineInterviewQuestion
PeopleCodeInterviewQuestion&
Answers
ApplicationdesignerInterviewquestion
ComponentInterface(CI)Interview
Questions&Answers
OutBoundPeopleCodeusingCI&AE
AddingTranslatevalueThroughpanelto
translatetable
DynamicSQRfor
PS_JOB,PS_EMPLOYEEDetails
Schedulingprocess(SQRorAE)using
PushButton
DifferencebetweenTransferand
TransferPage
BusinessUnit,Setid,SetControlValuesin
PeopleSoftHCM
TofindtheComponentNavigation
Howtosetthepositionofcursoronerror
fieldinitsrespectivepage.
HowtocallSecondarypageforamain
page?PushbuttonPropertiesDoModal

SEARCHTHISBLOG
Search

FOLLOWBYEMAIL
Emailaddress...

Submit

SuchmethodsarehighlightedinblueintheComponentInterfaceDesigner.
Tags:ComponentInterface,Index
1.Definecomponentinterface?
PeopleSoftComponentInterface(CI)exposesaPeopleSoftComponentfor
synchronousaccesstootherapplicationswritteninPeopleCode,JavaorC++.Wecan
considerCIasthemeansbywhichPeopleSoftenforcesencapsulationbylimiting
externalaccesstojustwhatismadeavailablethroughtheCIandnothingmore.ACIalso
executesthebusinesslogicincludedintheComponent.Assuch,itprovidesahigher
levelofdatavalidationtothedatathatisbeingloadedintotheComponentwhen
comparedtodirectSQLinserts.PeopleSoftalsoprovidesaComponentInterfaceTester
tovalidatetheCIandExceltoCItomanageloadingdata.YoucanhaveasmanyCIs
pointingtoaComponentasyouwant.ButaComponentInterfacecanpointtoonlyone
Component.

2.ArchitectureofCI?OrwhatarethemainelementsinthecomponentInterface?
MainelementsofcomponentInterface
Componentinterfacename
Keys
Propertiesandcollections
Methods
3.Differencebetweenget,createandfindkeys?
Getkeys:-Thesearemappedtothe
fieldsmarkedassearchinthecomponentssearchrecord.AutomaticallySearchkey
fieldsinsearchrecordbecomeGetkeys.
Wecannotchangeit.
Findkeys:-ThesearemappedtofieldsmarkedasAltorSearchinthecomponentsearch
record.YoumayremoveFindkeysthatyoudonotwishtomakeavailableforsearching.
CreateKeys:-Itisgeneratedfromthekeyfieldsforthesearchrecord.IfAddsearch
recordispresentthenitskeyfieldsaretaken.Wecannotchangeit.
4.WhatarethepropertiesofCI?
TheFieldsinthelevel0inthecomponentarethepropertiesofthecomponent.
PropertiesofaCIprovideaccesstotheComponentInterfacessettingsandthedata
fromtheunderlyingComponent.Wecanbroadlyclassifypropertiesintotwo:
StandardProperties:Therearesomepropertiesthatgetassignedautomaticallywhena
CIgetscreated.ThesestandardpropertiescannotbeviewedthroughtheApplication
Designer.SomeexamplesforsuchpropertiesareCreatekeyinfocollectionDevelopercan
furthercontroltheexposedGetkeyinfocollectionfieldproperties.
Findkeyinfocollection
PropertyInfocollection
GetHistoryItems(Update/DisplaymodeorCorrectionmode)
EditHistoryItems
InteractiveMode..
UserDefinedProperties:ThesepropertiesmaptotherecordfieldsontheComponent.
ThesearedisplayedinApplicationDesignerandyoucanchoosethepropertiesthatneed
tobeincludedintheComponentInterface.
5.HowtoprovidesecuritytotheCI?
OpenthePermissionlist
(PeopleToolsSecurityPermissionslistsPermissions)
OntheComponentInterfacetab
AddrowandselectthenewlycreatedComponentInterface
Editthepermissionstogivepermissionforthestandardmethodsbyclickon
FullAcess(All)button
Get,Create,Save,cancel,find.
6.HowtoinvokeCIusingthePC?
Establishausersection
Getthecomponentinterfacedefinition
Populatethecreatekeys
Createaninstanceofthecomponentinterface
Populatetherequiredfields
SavethecomponentInterface.

&Session=GetSession()
&CI=&Session.GetcompIntfc(CompIntfc.INTERFACE_NAME)
&CI.KEY_FILED_NAME=NEW
Ifnot&CI.Create()Then
Populaterequiredfields
Else
Populateotherfields
End-if
Populatetheotherfields
Ifnot&CI.Save()Then
Else
End-if
7.Stepstotest
CI?
UsingtheComponentInterfacetester(ToolsTestComponentInterface)
Givevaluesinthetesterforoptions
GetExisting,Createnew,FindandperformtheoperationfromtheCITester
8.WhatarethecollectionsinCI?
Thisisaspecialpropertythatcorrespondstoascrollarea.Itcancontainfields
orsubordinatescrolls,asisthecaseintheComponent.Thedefaultnameofacollection
wouldbesameasthatoftheprimaryrecordfortheunderlyingscroll.
9.CanyouwriteuserdefinedmethodsinCI?How?
Yes,RightClickonCIViewPeopleCodeon
methodEvent
10.WhatisthePCeventwhichisavailableinCI?MethodEvent
11.HowtocatcherrormessagesinCI?
Thisfunctionneedstobe
calledwhenevermethodslikeFind,Save,Createmethodsreturnfalse.
ErrortextandErrortypecanbeprintedinthelogmessageforanyotheractionintothe
logmessage.
FunctionCheckErrorCodes()
&PSMessages=&Session.PSMessages
&ErrorCount=&PSMessages.Count
For&i=1To&ErrorCount
&ErrorText=&PSMessages.Item(&i).Text
&ErrorType=&PSMessages.Item(&i).Type
End-For
End-Function
12.WHENSHOULDIBEUSINGACOMPONENTINTERFACE?
Ifyouneedtoinsert/update/deletedatathroughPeopleCode,andyourPeopleCodewill
requirereplicatingalotofexistingbusinesslogicthatalreadyexistsinacomponentthen
acomponentinterfaceisthebestapproach.Onceyoulearnhowtousethem,theywill
bethefastestandmostrobustsolutionforsuchcases.Ifyouareperformingsimple
changes,thenusingaCIbecomesoverkillasthereisanoverheadtousingaCIonboth
thesystemandondevelopmenttime.Similarly,largeamountsofbatchprocessingmay
betoomuchforaCItohandleormaybeconsiderablyslowerusingaCI.
13.WhenIcreatemycomponentinterface,whycan'tIseeanyGetkeys?
Thesearchrecordforyourcomponentdoesnothaveanysearchkeysdefined.Goback
anddefinesearchkeysastheseareusedasGetkeys.
14.WhyaremyFindkeysmissingcertainfields?
Findkeysarederivedfromsearchandalternatesearchkeysonthecomponentsearch
record.Ifyouhaveakeybutitisneitherasearchkeynoralternatesearchkey,thenitwill
notbeavailableasaFindkey.
15.WhenItestmycomponentinterface,whydoIgeta"NotAuthorized"error?
Checkthatyourcomponentinterfaceisincludedinapermissionlistthatyouhave
accessto.Alsocheckthatyouhaveaccesstoallpossiblemethods(Get,Save,Create,
Cancel,Find).Ifyoudeleteacomponentinterfacethroughapplicationdesigner,itisalso
removedfromanyassociatedpermissionlistssothismaybeanotherreasonwhyyour
newcomponentinterface(withthesamename)isnotauthorizedanymore.
Also,makesureyouarenottryingtodosomethinginyourcodethattheCIcan'tdo.For
example,ifyourCIdoesn'thaveacreatemethod,youcan'tsetsecurityforit,soyouwill
getanotauthorizederrorifyouhavecodethatattemptstoperformacreate.Thisis
becausetheauthorizationerrorisusuallythefirsterrortobedisplayed.

16.Whenautomaticallybuildingacomponentinterface,whyaresomefieldsmissing?
Sometimesapplicationdesignergetsitwrong.Forinstance,ifthesamefieldexistsin
scroll1andscroll2,itmayputthefieldinjustonescrolllevel.Itmayalsohaveproblems
withcertainkey/searchkey/alternatesearchkeyfieldsbetweenthesearchrecordandthe
scrolllevelrecords.NormallyyoujustneedtocheckyourCIandaddanymissingfields.
17.WhydoesmycomponentinterfacenothaveaCreatemethod?
CreateisonlyavailableiftheunderlyingcomponentallowsAddmode.Ifitdoesn'tthen
youcan'tcreateanythinginthecomponent,andthusyoucan'tcreateanythingusingthe
componentinterface.Thecreatemethodwillbedisabledinthecomponentinterface
properties.
18.CanIoverridemyComponentInterfacemethods?
Yes,youcanwriteadditionalPeopleCodeforyourcomponentinterfacemethods.Simply
gotothemethod(Cancel,Find,Get,Save,Create),right-clickandselectview
PeopleCode.
19.MyPeopleCodedidn'tcopyanydatatoacollection.Whynot?
Makesurethatallthefieldsthatyouarecopyingtoinacollectionactuallyexistinthe
componentinterface!Ifanyaremissingyoucangetunexpectedresultsornoneatall.
20.MyPeopleCodedidn'tupdatethevalueofafield.Whynot?
Checkthatthefieldisactuallyinyourcomponentinterface.Alsomakesurethatthefield
propertiesarenotsettoReadOnlyAccess.(Doubleclickonthefieldinthecomponent
interface).
21.Thesamefieldisindifferentscrollsbuttheydonothavethesamevalue
Forexample,atscroll0youmighthavethefieldEFFDTsetto01/01/2009.Youwantthe
EFFDTfieldtogetthesamevalueinscroll1,soyouwritecodetosetitfromthevaluein
level0butitisn'tworking.Ifthisisthecase,checkthefieldnameinthecomponent
interface,youmayfindthatPeopleSofthasautomaticallyrenamedit.Forexample,it
mightbeEFFDTatlevel0butsomethinglikeEFFDT_1inlevel1ofthecomponent
interface.
22.WhatunderlyingtablesdefinesecurityaccesstoComponentInterfaces?
Theassociationbetweenapermissionlist(CLASSID)andacomponentinterface
(BCNAME)isstoredinthePeopleToolstablePSAUTHBUSCOMP.
23.Whatdeliveredrole/permissiongiveaccesstoallthedeliveredCIs?
TheroleisStandardNon-PagePermissions.ThepermissionlistisHCSPCMPINT.
24.IgettheerrorNoRowsExistforSpecifiedKeys
ButIhavedoublecheckedthatthekeyvaluesbeingpassedarecorrectandexistinthe
database.What'sgoingon?Thiscouldberowlevelsecurityatwork.Don'tforgetthata
CIusesthesecurityimplementedbytheunderlyingcomponent.Areyousurethatthe
userrunningtheCIhastheappropriaterowlevelsecuritytoviewthedata?Confirmby
queryingagainstthesearchrecordoftheunderlyingcomponent.Rowlevelsecuritymay
alsobeatworkifyouaregettingerrorsenteringvalidvaluesintoafieldwheretheprompt
tablereliesonrowlevelsecurity.
25)Whatismethod?Whatarethedifferenttypesofmethod?
Methods:-Amethodisanobjectthatperformsaveryspecificfunctiononacomponent
interfaceatrun-time.
Standardmethodsanduser-definedmethods.
Standardmethods:-Automaticallygenerateduponthecreationofanewcomponent
InterfaceinApplication.
ApartfromtheStandardmethodsthereareStandardmethodsavailablefortheusewith
anycollection.
UserDefinedmethods:-User-definedmethodsarethosethatyoucancreatetomeetthe
requirementsofanindividualcomponentinterface.
26)TraversingtheCollectionsintheComponentInterface?
COLL_JOBCollection
Coll_JOBItmRowinthecollection.
&COLL_JOBCol=&CI_JOB_DATA.COLL_JOB
For&i=1to&COLL_JOBCol.Count
&COLL_JOBItm=&COLL_JOBCol.Item(&i)
&COLL_JOB_JRCol=&COLL_JOBItm.COLL_JOB_JR
For&J=1to&COLL_JOB_JRCol.Count
&COLL_JOB_JRItm=&COLL_JOB_JRCol.Item(&j)
&COLL_JOB_JRItm.KEYPROP_EFFDT=
27)HowdoyouloginincorrectionmodeintheComponentInterface?
GetHistoryItemsandEditHistoryitemspropertyshouldbesettotrue.
GetHistoryItemsalone:-Updatedisplayall-modeswillbeused.

Recommend this on Google

1comment:
SudhirBabu 3July2013at14:59
Iamnotabletoinsertrowsinciincase:
Wehavetworows.
USemp1IND
USemp2US
onlykeyfieldisCountry.
Isucessfullyuploadfirstrowandnotabletoinsertsecondrow.Iuseitemandinsert
itemlogicforfirstrowinscrollone.Ineedinsertzerolevelandfirstlevelfromonly
onestagingtable.
Thanksinadvance
sudhirIBM
Reply

Enteryourcomment...

Commentas: GoogleAccount

Publish

Preview

Home
Subscribeto:Posts(Atom)

PictureWindowtemplate.PoweredbyBlogger.