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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Remote property binding programmatically

Yedukrishnan
13-Aquamarine

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

 

1 REPLY 1
PaiChung
22-Sapphire I
(To:Yedukrishnan)

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)

Top Tags