Quantcast
Channel: PTC Community : Unanswered Discussions - Windchill
Viewing all articles
Browse latest Browse all 3592

creating textarea wherein I can manually enter values.

$
0
0

I have written datautility extending AbstractDataUtility but textarea is not visible in table builder.Code is as follows.

 

public class AttributeTextAreaDataUtility extends AbstractAttributeDataUtility {

      

       

       

 

    public Object getDataValue(String component_id, Object datum, ModelContext mc) throws WTException

    {

           super.getDataValue(component_id, datum, mc);

        TextArea textarea = new TextArea();

    

        TextArea textArea = GuiComponentUtil.createTextArea(1, 2, 3 );

        //textArea.setColumnName(AttributeDataUtilityHelper.getColumnName(component_id, datum, mc));

        textarea.setValue(getAttributeDisplayValue(component_id, component_id, datum, mc));

        textarea.setReadOnly(true);

        textarea.setWidth(40);

        textarea.setHeight(5);

        //textarea.setName(component_id);

        return textarea;

    }

 

    private static String getAttributeDisplayValue(String attributeName,String componentId, Object datum, ModelContext mc)

            throws WTException

            {

        Object raw_val = UtilityHelper.getRawValue(attributeName, datum, mc);

        String value = UtilityHelper.getStringValue(raw_val, componentId,datum, mc);

 

        return value;

    }

}


Viewing all articles
Browse latest Browse all 3592

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>