You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by snowch <sn...@coralms.com> on 2009/05/05 19:57:49 UTC

correct way to set eventMessage in a service?

Hi Forum,

What is the correct way to set eventMessage in a service so that I can give
users an update message when they create/update/delete records?

Many thanks,

Chris
-- 
View this message in context: http://www.nabble.com/correct-way-to-set-eventMessage-in-a-service--tp23392723p23392723.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: correct way to set eventMessage in a service?

Posted by snowch <sn...@coralms.com>.
Found it:

<string-to-list string="My response message"
list-name="successMessageList"/>



BJ Freeman wrote:
> 
> can you give more detail
> what type of service, mini lanquage or java?
> Update as in the end of the service?
> You can find examples for both in the code
> 
> 
> snowch sent the following on 5/5/2009 10:57 AM:
>> Hi Forum,
>> 
>> What is the correct way to set eventMessage in a service so that I can
>> give
>> users an update message when they create/update/delete records?
>> 
>> Many thanks,
>> 
>> Chris
> 
> -- 
> BJ Freeman
> http://www.businessesnetwork.com/automation
> http://bjfreeman.elance.com
> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
> Systems Integrator.
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/correct-way-to-set-eventMessage-in-a-service--tp23392723p23393717.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: correct way to set eventMessage in a service?

Posted by snowch <sn...@coralms.com>.
Hi BJ,

In java, I am getting the result I need by using:

        return ServiceUtil.returnSuccess("Added contact history record.");

This displays the event message to the user.  

I'm now trying to do the equivalent from a minilang service.  

Many thanks,

Chris


BJ Freeman wrote:
> 
> can you give more detail
> what type of service, mini lanquage or java?
> Update as in the end of the service?
> You can find examples for both in the code
> 
> 
> snowch sent the following on 5/5/2009 10:57 AM:
>> Hi Forum,
>> 
>> What is the correct way to set eventMessage in a service so that I can
>> give
>> users an update message when they create/update/delete records?
>> 
>> Many thanks,
>> 
>> Chris
> 
> -- 
> BJ Freeman
> http://www.businessesnetwork.com/automation
> http://bjfreeman.elance.com
> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
> Systems Integrator.
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/correct-way-to-set-eventMessage-in-a-service--tp23392723p23393504.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: correct way to set eventMessage in a service?

Posted by BJ Freeman <bj...@free-man.net>.
look in the
/framework/minilang/dtd/simple-methods.xsd
search for error-list-name
there is a note there.

snowch sent the following on 5/5/2009 11:39 AM:
> Hi BJ,
> 
> In java, I am getting the result I need by using:
> 
>         return ServiceUtil.returnSuccess("Added contact history record.");
> 
> This displays the event message to the user.  
> 
> I'm now trying to do the equivalent from a minilang service.  
> 
> Many thanks,
> 
> Chris
> 
> 
> BJ Freeman wrote:
>> can you give more detail
>> what type of service, mini lanquage or java?
>> Update as in the end of the service?
>> You can find examples for both in the code
>>
>>
>> snowch sent the following on 5/5/2009 10:57 AM:
>>> Hi Forum,
>>>
>>> What is the correct way to set eventMessage in a service so that I can
>>> give
>>> users an update message when they create/update/delete records?
>>>
>>> Many thanks,
>>>
>>> Chris
>> -- 
>> BJ Freeman
>> http://www.businessesnetwork.com/automation
>> http://bjfreeman.elance.com
>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>> Systems Integrator.
>>
>>
>>
> 

-- 
BJ Freeman
http://www.businessesnetwork.com/automation
http://bjfreeman.elance.com
http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
Systems Integrator.