Hi
Currently I create a folder using the standard UINewFolderCommand. I now need to add functionality that creates the new folder based on a km template folder. Any easy solution to this, for example parameters I can send to UINewFolderCommand, resource types etc? Or maybe using another standard command like UITemplateCommand?
My initial idea was to extend the functionality of UINewFolderCommand. Before adding the functionality I have tried to implement a class that simply extends this class and adds no new functionality.
public class ZTemplateUICommand extends UINewFolderCommand {
}
I have then substituted the reference to the standard UINewFolderCommand with a reference to my "custom" command but get an error when executing the command. When extending standard km classes are there any methods that I have to implement?
Instead I have tried to extend AbstractCommand based on the flexible one step screenflow example. I can get the example to work but when I substitute the code with code from UINewFolderCommand to create a new folder I get an error when executing the command.
Can anyone help me with an example of how they have extended this functionality or a good idea of how to move on from here - please?
Br Thomas