Skip to Content

Add button in form view

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...

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Dec 31, 2013 at 11:26 AM

    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-994bf2cfa82c?quicklink=index&…

    Regards,

    Nicolas.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 29, 2013 at 04:54 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.