Sie sind auf Seite 1von 9

06/12/2016

ConfigureOVSforintellisenseSAPBlogs

GetStarted

Solutions

Partner

Community

Support

About

Training

Community

Developer

Blogs

Actions

ConfigureOVSfor
intellisense
July13,2016

| 71Views |
SenthilMurugan
morebythisauthor

SAPCloudApplicationsStudio
businessbydesign | cloudapplicationsstudio | cloudforcustomer | sap
businessbydesignstudio | sapbussinesbydesignstudio | sdk

share
0

share
0

tweet

share
0

0
like

Follow

HiAll,
AsweseeallthepublicOVSareproperlyconfiguredfor
intellisense/autocomplete.
Sometimes,begineerslikemehavingdifficulttimetoconfigureOVS.
ThisdocumenthelpstoconfigureanOVSproperlyasinpublicOVS.

StepstoconfigureOVSforIntellisense/AutoComplete
1.Deletedefaultquery
2.Addaquery(QueryBuilderorSADLQuery)
https://blogs.sap.com/2016/07/13/configureovsforintellisense/

1/10

06/12/2016

ConfigureOVSforintellisenseSAPBlogs

3.ConfigureHandler(optional)
4.ConfigureInport
5.ConfigureOutport
6.ConfigureFindForm

Scenario:TolistalltheavailablebookintheBookSelf(BO)andBook
NameisOVSfield.

Deletedefaultquery
InControllertab,deletethequeryunderQueriesfolder,whichis
createdbydefaultwhentheOVSiscreated.Findthisnicedocument
(SomeThoughtsaboutQueries)byHorst,willgettoknowthereason
todeletethedefaultquery.Whiledeletingqueryyouareaskedto
deletetheexistingSearchParameters,youcanoverwritetheexisting
bindingofSearchParametersorrecreateit.

AddaQuery
Aqueryisneededtoprocesstheautocomplete.Iprovidedboththequery,
youcanchooseanyonequeryandproceedbelow.

https://blogs.sap.com/2016/07/13/configureovsforintellisense/

2/10

06/12/2016

ConfigureOVSforintellisenseSAPBlogs

a.QueryBuilder
Createaquerybuilderasshowbelow.
AddNewItemandSelectQuery.

IntheDefineQueryParameter,underBasicFindcolumnselectthe
fieldswhichyouwanttodoautocomplete,inmycaseIselectBook
NameandID

https://blogs.sap.com/2016/07/13/configureovsforintellisense/

3/10

06/12/2016

ConfigureOVSforintellisenseSAPBlogs

OnceyoufinishactivetheBOsothatitwillactivatethequery.Nowget
backtoOVSUI,
InDatamodeltab,bindyourroottothequeryandSearchParameters
tothequery,makesureallyourelementsareboundtotheelements
underthequery.

InControllertabunderQueriesfolderbindyourqueryto
QueryByElementsofQueryBuilder.bringdowntheSearchTextunder
QueryByElementstoSelectedQueryParameterstable,SearchText
isthekeythinginautocomplete.

https://blogs.sap.com/2016/07/13/configureovsforintellisense/

4/10

06/12/2016

ConfigureOVSforintellisenseSAPBlogs

Formoredetailsofquerycreation:Refer1605sdkdocumentation:

8.3.3.4CreateaQuery
ThenproceedtotheHandlerConfiguration

b.SADLbasedquery
CreateaSADLqueryasshownbelow.

ThenproceedtotheHandlerConfiguration

ConfigureHandler

https://blogs.sap.com/2016/07/13/configureovsforintellisense/

5/10

06/12/2016

ConfigureOVSforintellisenseSAPBlogs

Afterconfiguringquery,selectthedefaultsetandintherighthand
corneryoucanfindthesetOnSelecttoGetValueHelpHandlerunder
Events

GetValueHelpHandler
SetQueryNameandBOModel

RetrieveValueHelpHandler
SetQueryName

SetValueHelpHandler
SetQueryNameandBOModel

https://blogs.sap.com/2016/07/13/configureovsforintellisense/

6/10

06/12/2016

ConfigureOVSforintellisenseSAPBlogs

ConfigureInport
OVSValueSelectorInPort
InparameterBindingcolumn,selecttheSearchTextwhilewecreated
ourquery.

OVSValueSelectorOutPort
InparameterBindingcolumn,selecttheIDandNamewhichyouwant
toshowinOVS,inmycaseIwanttoshowtheBookIDandBookName

https://blogs.sap.com/2016/07/13/configureovsforintellisense/

7/10

06/12/2016

ConfigureOVSforintellisenseSAPBlogs

ConfigureFindForm
Letscompletefinalstep,maptheSearchTexttoFindForm
Selectdesignertab,inthePropertiesexplorerunderDesign,Select
theFindFormsandselecttheSearchTextBindingandbindittothe
SearchTextaswecreatedduringquery.

IntheDefaultSetMappingmakesureyourDefaultSetuses
FindFomPanewhichwecreatedjustbefore.

Thatsallabouttheconfigurations.Nowgetintotothescreenwhere
youwanttoseetheOVS,inmycaseopenedtheQAFandselected
https://blogs.sap.com/2016/07/13/configureovsforintellisense/

8/10

06/12/2016

ConfigureOVSforintellisenseSAPBlogs

theBookfieldandassignedtheOVScomponent(Refer:9.4.3.18

ConfigureanObjectValueSelectorin1605sdk
documentation).

Asyoucansee,whenItypetheitshowsallthebooknamethat
beginswiththe.
****************************************************************************************
************************************************************
Regards,
Senthilmurugan

AlertModerator

1Comment

TiagoAlmeida
November9,2016at12:16pm

Thisisagoodguide.Thanksforthis.
Addingtothis:TheSADLquerydidnotworkforme.Theyseemtohavea
bugfilteringbyIndicatorfields(Booleans),theyjustignorewhateveryou
defineontheparametersofthequery.Ifyouhavethisissuetrycreatingan
SDKquery(thefirstmethoddefinedabove).
Cheers,

https://blogs.sap.com/2016/07/13/configureovsforintellisense/

9/10

Das könnte Ihnen auch gefallen