These no's specify the Position of the section within the activity.
Connections Doc for this :
http://www-10.lotus.com/ldd/appdevwiki.nsf/xpDocViewer.xsp?lookupName=IBM
+Connections+4.0+API
+Documentation#action=openDocument&res_title=Section_content_ic40a&content=pdcontent

Other review comments, taken care of and checked in changes.

Regards,
Vimal Dhupar
Social Business Toolkit SDK
vimal.dhupar@in.ibm.com




From:	Manish <notifications@github.com>
To:	OpenNTF/SocialSDK <SocialSDK@noreply.github.com>,
Cc:	Vimal Dhupar1/India/IBM@IBMIN
Date:	10/21/2013 09:42 PM
Subject:	Re: [SocialSDK] Activities samples cleanup (#703)



In
samples/j2ee/com.ibm.sbt.sample.web/WebContent/samples/java/Social/Activities/Create
 SectionNode.jsp:


>
> -		 		 ActivityNode sectionNode = new ActivityNode
(activityService, activity.getActivityId());
> -		 		 sectionNode.setEntryType
(ActivityNodeType.Section.getActivityNodeType());
> -		 		 sectionNode.setTitle("sectionNode from JSP " +
System.currentTimeMillis());
> -		 		 sectionNode.setContent("SectionNode Content " +
System.currentTimeMillis());
> -		 		 sectionNode.setPosition(2000);
> -		 		 sectionNode = activityService.createActivityNode
(sectionNode);
> -		 		 out.println("Section Node Created : " +
sectionNode.getId());
> +		 		 if(activities != null && !activities.isEmpty()) {
> +		 		 		 ActivityNode sectionNode = new
ActivityNode(activityService, activities.get(0).getActivityId());
> +		 		 		 sectionNode.setEntryType
(ActivityNodeType.Section.getActivityNodeType());
> +		 		 		 sectionNode.setTitle("sectionNode from
JSP " + System.currentTimeMillis());
> +		 		 		 sectionNode.setContent("SectionNode
Content " + System.currentTimeMillis());
> +		 		 		 sectionNode.setPosition(2000);




What exactly the numbers 2000 or 1000 signify ?


—
Reply to this email directly or view it on GitHub.