on 03-29-2009 12:22 PM
hi all,
in my application, iam using one table having hyperlink as one field, i want to restrict the user, not to click two times of the hyperlink, if he click the hyperlink second time he should get error message.
plz let me know how to check and give error message
regards,
sush
Hi Sushma,
Take a static variable and in the init method, u initiate it to 0 and in the on clickevent of the URL increment it. and write a condition there if that variable greater than 1, give a error msg using IWDMessageManager followed by a return statement. Hope it helps you....
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ssxdfs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create a context attribute of type boolean, lets say "Enabled" and set its value to true in the init method.
wdContext.currentContextElement().setEnabled(true)
On the click on this Link to action UI element reset this value to false
wdContext.currentContextElement().setEnabled(false)
bind this attribute to the readonly property of the UI element.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Sush,
Do one thing.created one context value attribute as visible in view ..type should beWdVisibility instead of String do as before
Click on Context atttribue as visiblr click on itgo to TYPE property of attributecom.sap.ide.webdynpro.uielementdefinitions.Visibility.(click on button goto com.sap.ide.webdynpro.uielementdefinitionsand chosse VIsibility)
Suppose you are using URLToAction as link.for that your will create one action like/.
set Visible property of URLToAction as Context attribute as visible (context attribute in view)
public void OnClick(event){
''''''''''''''''''''''''''''''
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
wdContext.currentContextElement().setVisible(WDVisibility.NONE);
}
hope this will work
Thanks
jati
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just disable the link or the associated action in the action handler.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.