Hi,
I am using dmf:text for textbox and I want to clear value in textbox on click at textbox. Similar to onClick in javascript. Is there any way to achieve this in wdk ?
Thanks,
Krutish
Please consider moving this question as-is (no need to recreate) to the proper forum for maximum visibility. Questions written to the users' own "Discussions" space don't get the same amount of attention and questions can go unanswered for a long time.
You can do so by selecting "Move" under ACTIONS along the upper-right. Then search for and select: "Documentum" (Developer Network) which would be the most relevant for this question.
For further guidance on engaging with the communities for Documentum and related products, please refer to the IIG Communities Getting Started Guide
yup..
check in dmf tag definition file whether the dmf:text tag natively supports an onclick (which it should, but double check since i don't know what's your documentum version..)..
do something like
<dmf:text onclick="myfunction" name="sampletext">text</dmf:text>
and in the wdk component class define said function like this
public void myfunction(Control control, ArgumentList argument)
{
Text mytext = (Text) getControl("sampletext",Text.class);
mytext.setvalue("");
}
should be setvalue iirc, if setvalue doesn't work check if the text object has a setText or setLabel method, can't remember the actual method and I don't have any compiler at hand to check the stuff
this should get you covered.. hopefully i've not done any writing error..
alternatively you can do it with js too of course, but this is a pure wdk approach (quite basic..)