cancel
Showing results for 
Search instead for 
Did you mean: 

how to add text and bind data in a textfield

Former Member
0 Kudos

hi,

how can i add some text in textfield with a bind data? is there any concatenating symbol like + in others?

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member191569
Active Participant
0 Kudos

Viral, the TextEdit will show the data held in your context attribute bound to tue TextEdit. However, if you want to show in the TextEdit not only the contents but any other value you can set the property 'calculated = true' of the context attribute.

Then, in the generated get<attributeName> method you can return any message you like, and also can use the actual value of the attribute concatenated with any other strings.

Former Member
0 Kudos

HI,

you can make the calculated property of the attribute

to true .

when u make it true , a get<attr>() method gets generated

there u can bind and return the strimg u want

eg:

return element+"hi";

Regards,

Satya.

Former Member
0 Kudos

Hi,

You can use the following



String str = "Sample Text" + wdContext.currentContextElement().get<AttributeName>();
	  wdContext.currentContextElement().set<AttributeName>(str);

Regards

Ayyapparaj