留言板

DLFileEntry : DLFileEntry Status

Qasim Ali,修改在8 年前。

DLFileEntry : DLFileEntry Status

New Member 帖子: 5 加入日期: 14-2-17 最近的帖子
Hi,

I capture FileEntry event using DLFileEntryListener,
I have to perform some task on other sites using this DLFileEntry status.
I tried with DLFileEntry.getStatus(); but it returns 0 here in case of draft/Approve

@Override
    public void onAfterCreate(final DLFileEntry dlf) throws ModelListenerException {

    	super.onAfterCreate(dlf);
	dlf.getStatus() // return 0 always


}

is there any other way we can get state of DLFILEENTRY in event listener?
ManyThanks
thumbnail
Shinn Lok,修改在8 年前。

RE: DLFileEntry : DLFileEntry Status (答复)

Junior Member 帖子: 89 加入日期: 11-1-14 最近的帖子
The status is tied to the DLFileVersion which is added after the DLFileEntry model is created. Try adding a listener on the DLFileVersion model instead?
Qasim Ali,修改在8 年前。

RE: DLFileEntry : DLFileEntry Status

New Member 帖子: 5 加入日期: 14-2-17 最近的帖子
Thanks Shinn,

After adding listener on DLFileVersion i am getting updated status of DLFileEntry.