cancel
Showing results for 
Search instead for 
Did you mean: 

Resetting form to default values

Former Member
0 Kudos

Hi all,

I have an adobe form that was populated by some default values from a node. I would like to have a button that would restore the form into the default values.

any ideas on how to achieve this?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

1.u can initialize values for ui elements in ur adobe form using wddoinit() method in ur view.

if u have

value node:Data

under it if v have value attributes---- fname,lname.

MyView---name of the view

IPrivateMyView.IDataElement elem = wdContext.nodeAddressNode().createDataElement();

elem.setFName("xxx");

elem.setLName("yyy");

wdContext.nodeData().bind(elem);

2.add the method RestoreForm in ur formview.

3.In the implementation part of onActionRestoreForm call wdDoInit().

use th following link (PAGE 6),

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2006d7d3-2362-2b10-f0ba-817affb6...

regards

Jayapriya

Answers (0)