Thanks to all who attended today's OpenText Support Community Event: Customer Contributions to Knowledge Program.

A recording of the event and the next steps to start your contributions can be found here:

Customer Contributions to Knowledge Presentation

Let's get started!

DFC code for converting Text Field to TextArea in Webtop

Hi,

The following code works fine for Single attribute (Converting Text Field to Text Area):

protected void renderSingleAttribute(String strFormattedValue, String strValue, boolean bReadonly, boolean bHasCompleteList,JspWriter out) throws IOException, JspTagException
{ String strLines = setDynamicLines(); // This is a custom method
String size = setDynamicSize(); // This is a custom method
DocbaseAttributeValue value = (DocbaseAttributeValue) getControl();
value.setLines(strLines);
value.setSize(size);
super.renderSingleAttribute(strFormattedValue, strValue, bReadonly, bHasCompleteList, out);
}

I got the code for Repeating attribute, but It is not working:
protected void renderRepeatingAttribute(String strFormattedValue, boolean bReadonly, JspWriter out)
{ String strLines = setDynamicLines();
String size = setDynamicSize();
DocbaseAttributeValue value = (DocbaseAttributeValue) getControl();
value.setRepeating(true);
value.setLines(strLines);
value.setSize(size);
super.renderRepeatingAttribute(strFormattedValue, bReadonly, out);
}

If have any clue, please give me the same. It would be a great help.

Thank you.
ashok

Sign In or Register to comment.