cancel
Showing results for 
Search instead for 
Did you mean: 

two buttons in Adobe Form

Former Member
0 Kudos

Hello,

I am using Netweaver 2004s SP10. Does any body know how to incorporate two buttons in a Adobe Interactive Form. I want to insert approve button and reject button with different actions for each button.

Moreover, How can we remove the toolbar buttons in the adobe form at runtime. since they occupy a major portion of area. How to reomve the print, save, all these buttons.

Thanks, any help is appreciated.

Sunita.

Accepted Solutions (0)

Answers (3)

Answers (3)

amolgupta
Active Contributor
0 Kudos

hi Sunita,

as far as i have seen it...

we have two types of buttons that are accesible in WebDynpro.

GOTO interactive form->edit->Library tab->web dynpro tab

1).Submit to SAP and 2).Check.

these two buttons and their corresponding events and actions are available in Web Dynpro when the form is available online(ONLINE scenario).

you can change the text on these buttons to ur requirement like "APPROVE" or "REJECT" in the form editor.

now these two buttons in the form will just act like buttons in Web Dynpro layout.

in the properties of the interactive form you can see events for these....

now you can go to implementation and write as desired code.

the code for rejecting and approving the form...

(You must be knowing that the contents of the form are available in the ONLINE scenario in the corresponding CONTEXT attributes of the form for use in dynpro

ie when online you can modify the contents of the Form by working on dynpro Context attributes like getAttribute(), or setAttribute(). )

regards,

-amol gupta

former_member205624
Contributor
0 Kudos

Hi Sunita,

To disable the toolbar at runtime try this :

open the project in NWDS right click on UIElement: InteractiveForm --> Edit.

From Library Click on WebDynpro Tab and drag & drop Hide Reader Toolbar to Adobe Form.

Now when you redeploy the application the print button and other header option of PDF form will be dissabled.

Cheers,

Former Member
0 Kudos

Hi Sunita,

One option is to trigger the same code on pressing the two buttons. the difference in buttons can be sorted by passing a flag.

Say you have a hidden text field in your form, on pressing the 'Approve' button, set the value of this text field to be 'A' through scripting and check for this flag in your backend code, thus you can have any number of buttons in the Form.

If its only two buttons, you can also have the hiddden element as a check box ya radio button or what ever you like .

For removing Adobe form toolbar, there are already some similar threads in this forum, also you can refer in the help.sap.com refering to hiding the Adobe toolbar. (Its a simple script).

happy Adobe Form development !

Rgds,

- anto.