on 2006 Jan 11 4:36 AM
Do you have experience on Develop a UIcommand?
I want develop a UIcommand that can link to a
Website like 'www.google.com' when we click it.
How to develop it? I had read the 'Implementing Flexible UI One-Step-Screenflow' in https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/kmc/implementing flexible ui one-step-screenflow.article
but what it said is not enough to me.
And when i deploy the example par file 'SimpleOneStepScreenflow'
it also can be used as a command.
Please help me .
give me more information about the Uicommand's develop
Or give me the Code is best.
Best Regards
Han
Hi Han,
You have to add to your code the following methods:
/**
Prevents an event being fired.
The execute method will not be called.
*/
public boolean raisesEvent() {
return false;
}
/**
Causes a redirect to the specified URL
in the specified target frame.
*/
public LinkAttributes getLinkAttributes(){
return new LinkAttributes("http://www.sap.com", "_blank");
}
Some useful links:
<a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6b30b090-0201-0010-829d-e988d093ac65">Knowledge Management and Collaboration (KMC)</a>
<a href="https://www.sdn.sap.com/irj/sdn/thread?forumID=41&threadID=49918&messageID=511624">UICommand topic</a>
Hope it helps!
Regards,
Ferenc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.