掲示板

DLFileEntry : DLFileEntry Status

8年前 に Qasim Ali によって更新されました。

DLFileEntry : DLFileEntry Status

New Member 投稿: 5 参加年月日: 14/02/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
8年前 に Shinn Lok によって更新されました。

RE: DLFileEntry : DLFileEntry Status (回答)

Junior Member 投稿: 89 参加年月日: 11/01/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?
8年前 に Qasim Ali によって更新されました。

RE: DLFileEntry : DLFileEntry Status

New Member 投稿: 5 参加年月日: 14/02/17 最新の投稿
Thanks Shinn,

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