yann3
January 7, 2013, 10:25am
1
I try to find the way to insert the subscriptionDepth in the database.
I 've got a SubscribeForm with some value :
SubscribeForm subForm = new SubscribeForm(FormType.submit);
subForm.setDeliverOn(true);
subForm.setDigestFrequency(5000);
subForm.setDigestOn(true);
subForm.setIncludeBody(true);
but I can find something like setSubscriptionDepth…
Someone can help me??
If this is a missing field, you can simply add it via the generic Form methods for adding a new field. The setXXX methods just do this under the hood as a convenience.
yann3
January 9, 2013, 2:42pm
3
thanks for you answer.
I find this methode on the API SMACK SubscribeOptionFields where you can define the subscription_depth.
But I don’t know how I can use it.
yann3
January 11, 2013, 8:57am
4
Thanks rcollier I use the form methods like that:
SubscribeForm subForm = new SubscribeForm(FormType.submit);
subForm.setDeliverOn(true);
subForm.setDigestFrequency(5000);
subForm.setDigestOn(true);
subForm.setIncludeBody(true);
FormField field = new FormField(SubscribeOptionFields.subscription_type.getFieldName());
** field.setType(FormField.TYPE_LIST_SINGLE);**
** field.addValue(“items”);**
subForm.addField(field);
it’s ok