on 2005 Apr 27 7:42 PM
Hi,
I have created a uicommand following the steps of the diferent documentation found in the SDN (One-Step-Screenflow), but I still don't know how to make it work.
If I create a UICommand extending AbstracCommand, seems to work well until I try to use the RevisionScreenflow class from it. The error that it appears is:
class java.lang.NoClassDefFoundError
com/sapportals/wcm/rendering/screenflow/cm/RevisionScreenflow
I guess it's something wrong in the portalapp.xml.
I have also tried a different way, I create a component and extend the UIRevisionCommand and then configure the command inside the portal, the option does not appear in the menu where it is suppose to appear.
In general what I am trying to do is to create a package of my own with the UIRevisionCommand, RevisionScreenflow and ResourceRevisionControl. After that I will modify the control so it does what I want. I have done this in the two ways explained above. I don't know what I do wrong, may be there is another way to do the whole think, any ideas, please tell me.
As I said I fear the problem comes from the portalapp.xml, SharingReferences property, I guess I don't fill this property with the correct libraries. Please help.
Thanks in advance.
Gregori Coll Ingles.
Hi Gregori,
there are two reasons why this won't work:
1) The RevisionScreenflow class does not extend the abstract class com.sapportals.wcm.rendering.screenflow.AbstractScreenflow
which is the only base class which s supported for One-Step-Screenflow
2) The class com.sapportals.wcm.rendering.screenflow.cm.RevisionScreenflow is located in a private jar archive which cannot be referenced by custom coding.
Best regards,
Thilo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thilo,
thanks for yor answer. If I don't get it wrong, the only posible solution would be to create my own package with the RevisionScreenflow, the UIRevisionCommand and all the other classes that are private, and then reference them from inside the package(reference the ones in the package obviously). Is this a good way to do it?
Thanks in advance.
Best regards,
Gregori Coll Ingles.
Hi Gregori,
unfortunatly not, this won't help you, because only classes extending the base class com.sapportals.wcm.rendering.screenflow.AbstractScreenflow can be used in One-Step-Screenflows, the RevisionScreenflow doen't extend thos class. So the only possibility is, that you reimplement the RevisionScreenflow in your own coding.
Regards,
Thilo
Hi Thilo,
Sorry, I'll try to explain myself better. The final idea is to create in the detail iview an option in one of the menus, that loads the version iview. The problem is that I need to extend some of the functionalities of the standard versions iview. To do that I first tried to use the OneStepScreenflow, but I thinks it is not necessary. The idea I have from your earlier answer is that I would be able to extend the AbstractUICommand and use the RevisionScreenflow if I put does classes in my own package so they are not private. This way I would be able to extend all this classes. The question is would this work? Would the uicommand work well if it references a class that extends the AbstractUICommand?
Thanks in advance.
Gregori Coll Ingles.
Hi Gregori,
you have to distiguish between 2 things.
1) The UICommand itself can be referenced to every class with extends AbstractUICommand or AbstractCommand.
2) The Screenflow RevisionScreenflow cannt be used in UICommands that are custom developed due to the restrictions mentioned above.
So this means, you can either reference a standard UICommand which uses the RevisionScreenflow as is, or you implement your own UICommand (extend abstract class AbstractCommand) and implement an new screenflow based on an extension of com.sapportals.wcm.rendering.screenflow.AbstractScreenflow
class.
Regards,
Thilo
Hi, Gregori:
Will you please point me to the guide or tutorial of deveolping this custom UI command? You mentioned the documentation in SDN, but I couldn't find it.
Appreciate your help!
-Sean
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/implement... flexible ui one-step-screenflow.article
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.