cancel
Showing results for 
Search instead for 
Did you mean: 

How to Develop a UIcommand?

Former Member
0 Kudos
79

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks Ferenc

You had give me great help!

And i had develop a UIcommand what i need

Han

Answers (0)