on 05-02-2012 3:34 PM
Hi Experts,
I am trying to do DataCollection using DataCollectionService API. I am using the following code snippet for doing it. However I am not able to do it. I did not find method to set operationRef,SfcRef,ResourceRef.etc. Please suggest me the direction.
CreateParametricMeasure createParametricMeasure = new CreateParametricMeasure();
createParametricMeasure.setActual("");
createParametricMeasure.setMeasureGroup("");
createParametricMeasure.setMeasureName("");
createParametricMeasure.setDcParameterRef("");
createParametricMeasure.setEditedUserRef("");
List<CreateParametricMeasure> createParametricMeasureList = new ArrayList();
createParametricMeasureList.add(createParametricMeasure);
CreateParametricRequest createParametricRequest = new CreateParametricRequest();
createParametricRequest.setParametricMeasureList(createParametricMeasureList);
dataCollectionService.createParametricData(createParametricRequest);
Thanks in advance.
Refs are like GUIDs, you can't build them* - you must look them up with finder APIs or use Refs returned from other API calls.
What error are you getting? Are there errors in the NW logs?
-tim
*if you're a long-time ME/VM user and see the resemblance between a Ref and the UNSUPPORTED Handle class, keep that to yourself.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
102 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.