show inserts from batchprocessor to another solution

Hi,

I have a batchproces that generates records and releated records.
EDIT : this a Servoy Batch Processor !

I want to notify the user that is looking at the same tables in another solution that there
are new records and/or show them to him.

Can this be done ? and how ?

Regards,

you could use the ondatabroadcast event for that.

Let the batchprocessor trigger also something that all clients do look at
and that will be data for a client to look at.

you could use the ondatabroadcast event for that.

Let the batchprocessor trigger also something that all clients do look at
and that will be data for a client to look at.

Thanks Johan,

Do you mean update some database column that is shown in all clients ? or ?

Regards,

yes
so that clients do listen to those changes
and you can use that row/column to push data so that you know what to do in the client

I set an onDataBroadCast.

I never useed this before, but it does not seem to get fired ( i just put in some log output )

EDIT : I got it working the client that gets data broadcasted to it gets the event, not the sending one :oops:

Regards,

Great !!! that onDataBroadcast.

One question left : is there a table of the action type returned ? ( I’ve seen 2 and 3 )

Could’nt find it in the wiki.

Regards,

thats a good one, this is the list:

DELETE_ACTION = 1;
INSERT_ACTION = 2;
UPDATE_ACTION = 3;

And the doc tells me that:

@param {Number} action see ACTION constants

but i dont see that Constant class at all. (at least i cant find it also)
can you create a case for that?

Thanks Johan,

I’ll create a cased. (case = 314328)

Regards,