Hie

I created a robot to add some stuff to an existing wave as soon as i add it
as a contact.
The code is:

@Capability(contexts = {Context.SELF})
@Override
public void onWaveletSelfAdded(WaveletSelfAddedEvent e) {

LOG.info("onWaveletSelfAdded");
Blip blip = e.getBlip();
Wavelet wavelet = e.getWavelet();

// Test setting wavelet title.
wavelet.setTitle("The CRM opportunity wave");

// Test inserting image.
blip.append(new Image("http://www.google.com/logos/clickortreat1.gif";, 320,
118,
"Click or treat"));

    Blip inlineBlip = blip.insertInlineBlip(5);
inlineBlip.append("Hello again!");
}


This works fine but the issue is it deletes/overrides the previous wave
contents. What I want is to append the stuff instead. Any advise please

Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google Wave API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en.

Reply via email to