cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to execute standard KM UI commands from WD?

Former Member
0 Kudos

Hi, Is it possible to execute standard KM UI commands from wd? Actually i am creating a folder in KM from WD. I need to enable time dependent publishing on that. for this i need to execute UI comand. Please help me out..its urgent!!

Thanks in advance!!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Alok,

I don't think it is possible to use the UI Commands directly, but you should be able to use the KM API from WebDynpro to create a folder and set the validfrom and validto properties.

Johan

Former Member
0 Kudos

Hello Johan,

I am creating the folder using KM APIs. A folder doesn't have valid fr and valid to property..but documents created under that will have those properties. I know how to set these properties to documents under the folder. But these are effecting only after "Enable Time-Dependent Publishing" is done for the folder.

Former Member
0 Kudos

Hi Alok,

You could try to create a "template" folder which has time dependent publishing enabled, and then copy this folder (I'm not sure if this will work though).

Otherwise you should try to decompile the UICommand class in KM and see what it does. Perhaps the methods used are also available through the KM API from WebDynpro.

Johan

Former Member
0 Kudos

Johan,

can you elaborate on from where to get this UICommand class for decompilation?

or is there a way to look in which property would be changed corresponds to UI command.

Former Member
0 Kudos

Hi Alok,

In System Administration->System Configuration->Knowledge Management->Content Management->UserInterface->Commands you will find the list of all UICommands and the corresponding java classes.

The command you need is called time_based_publishing and corresponds to class com.sapportals.wcm.rendering.uicommand.cm.UITimeBasedPublishingCommand.

I'm not sure where this class is located, but you can find it by searching on the server using winrar (searches in archives, such as jar files).

Johan