Fórum

DLFileEntry : DLFileEntry Status

Qasim Ali, modificado 8 Anos atrás.

DLFileEntry : DLFileEntry Status

New Member Postagens: 5 Data de Entrada: 17/02/14 Postagens Recentes
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, modificado 8 Anos atrás.

RE: DLFileEntry : DLFileEntry Status (Resposta)

Junior Member Postagens: 89 Data de Entrada: 14/01/11 Postagens Recentes
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, modificado 8 Anos atrás.

RE: DLFileEntry : DLFileEntry Status

New Member Postagens: 5 Data de Entrada: 17/02/14 Postagens Recentes
Thanks Shinn,

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