cancel
Showing results for 
Search instead for 
Did you mean: 

Add button in form view

0 Kudos

Hi friends,

I got a requirement RE: Add a normal button and that should be come beside of input field in form view.

can anybody help me on this issue?

Ex: i have form view it contain 2 columns and 10 rows, button should come beside of 2 column's 7 row's input field.....

thank you in advance...

Accepted Solutions (0)

Answers (2)

Answers (2)

nicolas_busson
Active Contributor
0 Kudos

Hi,

For your information as of SAP CRM7.01 you can make use of so called "action menu / action providers":

Action Menu - Generic User Interface Functions - SAP Library

That's a very nice & simple way to add "buttons" close to input fields. What I like is the ability to reuse the same menu across many pages without any further development effort (i.e. you do develop it once, and reuse it wherever you need). See what you can do page 22 of this document: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90bfc5bc-118b-2c10-6daf-994bf2cfa...

Regards,

Nicolas.

kumar5
Active Contributor
0 Kudos

Hi,

You can achieve this by  coding in .htm page of your form view. You need to use grid and gridcell tags in the .htm code.

Sample code would look like:

<thtmlb:grid id     = "g1"
         height = "10"
         columnSize = "40"
         rowSize= "5"
         width  = "1200" >

  <thtmlb:gridCell columnIndex = "8"

               rowIndex= "2"
               colSpan = "5"
               rowSpan

= "2" >

<thtmlb:button id  = "Processed"
               onClick = "Processed"
               design  = "EMPHASIZED"
               text= "Submit/Processed"
               type= "<%= cl_thtmlb_util=>gc_icon_done %>"
               enabled = "<%= lv_mode %>" />

  </thtmlb:gridCell>

  </thtmlb:grid>

Try changing rowIndex , colSpan and rowSpan according to your requirement . These are used to change the position of the button.

Thanks

Kumar.