You are on page 1of 5

6/19/2016

SAPCRMWEBUI:58.ONECLICKACTIONS

SAP CRM WEB UI


"A place to learn basics of SAP CRM WEB UI"

T ues day, 4 June 2013

58.ONECLICKACTIONS
When we open any service contract, we can see these one click actions in the item
assignment block. These actions help us to edit some important fields of line item there
itself in the table view. We need to not navigate to item overview page to edit it and also
we can delete that item on the same assignment block.
Let us provide one click action for a table view. Here I am going to add OCAs to the table
view that I created in the chapter VALUE NODE CONCEPT. However procedure that we
follow applies to any table view.

Step1.
We need to add one value attribute with name THTMLB_OCA with type
CRM_THTMLB_ONE_CLICK_ACTION to the context node of table view.

HELPFUL TOPICS

Go to the table view context node for which you want to implement ONE CLICK ACTIONS.
Add a value attribute as mentioned above. Kindly see the below screen shots for reference.

2.How LogIn to WEBUI

1.Introduction

3.Main Parts of WEBUI Page


4.First Look At Navigation Bar
5.Logical LInk
6.Introduction Business Role
7.Creating Business Role
8.Assigning Role to Users
9.Navigation Bar Configuration
10.Generic Step to Customize NAV BAR
11.Identifying the Logical Link
12.First Step in Customizing NAV BAR
13.DeActivating Work Center
14.Changing Work Centers Position
15.WorkCenter Link Group & Second Level
Navigation
16.Direct Link Group
17.Search Operation
18.Create Operation

http://www.sapcrmwebui.com/2013/06/58oneclickactions.html

1/5

6/19/2016

SAPCRMWEBUI:58.ONECLICKACTIONS
19.Introduction to UI Component
20.Adding MODEL to UI Component

Complete the wizard. We have created the attribute.


Step2.
Move the newly created attribute to the displayed fields section on the view configuration
tab.

21.Creating Search View


22.Layout of Search View
23.Assigning View To Window
24.Creating Search Event Handler
25.Fetching Data in Event Hnalder
26.Creating Result View
27.Creating ViewSet
28.Custom Controller & Data Binding
29.Changing the Page Title
30.Creating Form View
31.Creating Overview Page

Step3.
Go to the context node class of table and redefine the method GET_OCA_T_TABLE.

Write the following code inside that method and activate the method. In this method we
have added buttons.

32.Making Table Field as HyperLink


33.Navigation Link Creation
34.Creating Context Node in Custom
Controller
35.Little Complex Coding In Event Handler
36.Bread Crumbs
37.First Assignment To Users

Step4.
We need to tell the framework about newly created value attribute is an OCA type. For that
we need to code in the P getter method of new attribute.
If Pgetter is greyed out, then just double click on. Framework will ask to create it. Then
choose yes. Then write the following code inside the method.

38.DROP DOWN List


39.F4 Help Creation
40.Looking At Data of CL CRM BOL ENTITY
in Debugging
41.Basics Of BOL Programming
42.Table View Vs Form View
43.Creating Table View For Line Items With
Dependent Context Nodes
44.What It Takes To Reuse a View
45.Reusing View in Another Component
46.Understanding ViewGroupContext

http://www.sapcrmwebui.com/2013/06/58oneclickactions.html

2/5

6/19/2016

SAPCRMWEBUI:58.ONECLICKACTIONS
47.Adding Buttons To Overview Page
48.Adding EDIT,CANCEL and SAVE Buttons
To Overview Page
49.UI Object Type & Design Object
50.DO CONFIG DETERMINATION method

51.Using Callback Classes For Creating


SubObjects For View Configuration
52.Configuration Keys Discussion

53.Integrating Component Into NAV Bar


54.Reusing View As PopUp
55.Value Node Displaying Custom Table On
Web UI
56.One Click Actions
57.Displaying Messages
58.Displaying Navigable Messages
59.Enhancing BP Search With Existing Field
60.Enhancing Standard UI Component

Here _oca is the event handler name that will be triggered when we click on edit or
cancel buttons.
Step5.
Create on event handler with name _oca. (event handler name is case sensitive ).

61.Tree View
62.Responding to Event of Another
Component.

Followers

Jointhissite
withGoogleFriendConnect

Members(184) More

Here for two buttons only one event handler is assigned. So whether you click on EDIT
button or DELETE button, same event handler will be triggered. So we need to know on
which button user has clicked to process our logic.
Write the following code inside the event handler and activate it.

Alreadyamember?Signin

TRANSLATE FOR BETTER UNDERSTANDING

SelectLanguage

Popular Posts

41.BASICS OF BOL PROGRAMMING


1.ABOUT TUTORIALS
3.IDENTIFYING MAIN PARTS
OF WEB UI PAGE

THANK YOU EVERY ONE


2.LOGGING IN TO WEB UI

http://www.sapcrmwebui.com/2013/06/58oneclickactions.html

3/5

6/19/2016

SAPCRMWEBUI:58.ONECLICKACTIONS

Total Pageviews

707,755
We are getting the ID of buttons on which user has clicked. Based on the button id, We need
to process our own logic.
Test the application by placing a break point in the above event handler.

Clickonanybuon.IclickedonDELETEbuon

Colour
Consultancy@home
GetExpertAdvicebyAsian
PaintsAlongwithFreeIn
HouseQuotation.

Posted by MANNALA P at 06:50

Recommend this on Google

5comments:
Anonymous 12 July 2013 at 01:45
Thank you for the gr8 post..
I have a question.. If we want to display any other image instead of 'edit' or 'delete'. How
are we going to it??
Reply

http://www.sapcrmwebui.com/2013/06/58oneclickactions.html

4/5

6/19/2016

SAPCRMWEBUI:58.ONECLICKACTIONS

Anonymous 12 February 2014 at 05:55


Thank you very much for very helpfull entry!
Reply

Anonymous 2 March 2014 at 23:25


if i want to edit a particular column in row level wat i want to do...
Reply

Anonymous 13 May 2014 at 20:20


Hey, what if my requirement is to remove the standard one click action column of a
table view? any suggestions or will you write a new topic for these?
Reply

Anonymous 9 September 2014 at 02:49


Thank you for this helpfull article.
Reply

Enteryourcomment...

Commentas:

Publish

Selectprofile...

Preview

Newer Post

Home

Older Post

Subscribe to: Post Comments (Atom)

Copyright 2013 Praveen K Mannala. All Screenshots were taken from SAP CRM Software. . Template images by andynwt. Powered by Blogger.

http://www.sapcrmwebui.com/2013/06/58oneclickactions.html

5/5

You might also like