cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Remote property binding programmatically

Highlighted
Amethyst

Remote property binding programmatically

Hi,

 

We can create and set remote binding programmatically. But how can we set property attributes such as "Start Type", "Cache Method" and other parameters related to remote property.

 

I have attached the image for better understanding.

 

Also, I have shared the code which I tried.

 

 

 

With regards

YedukrishnanRemote Property.png

 

var aspects = {
"industrialDataType": "Short",
"tagAddress": "Channel1.Device1.tag3",
"scanRate": 1000,
"tagType": "Static",
"readOnly": "true"
};

 

var params = {
propertyName: "PropertyTag" /* STRING */,
pushThreshold: 0 /* NUMBER */,
aspects: aspects /* JSON */,
foldType: undefined /* STRING */,
sourcePropertyName: undefined /* STRING */,
timeout: 0 /* INTEGER */,
pushType: "VALUE" /* STRING */,
cacheTime: undefined /* INTEGER */
};

// no return
me.SetRemotePropertyBinding(params);

 

With regards

Yedukrishnan

 

Tags (1)
1 REPLY 1
Highlighted

Re: Remote property binding programmatically

I believe it is part of aspects, try getting the definition and parse out all the aspects.

sorry I had an example of this, but I don't think I have that anywhere anymore because it's on a machine that is now defunct

 

I also believe others have posted some snippets of their remote binding code, perhaps do a quick search (or even a search through support.ptc.com)

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum!