留言板
DLFileEntry : DLFileEntry Status
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
is there any other way we can get state of DLFILEENTRY in event listener?
ManyThanks
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
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?