on 02-18-2014 10:19 AM
Hi,
I need to pass the tag path in transaction instead of giving in pco query.
I created pco query with one tag and put it in transaction with pco action block and then I need to link the tag paths to pco query.
My moto is without browsing tags in mii pco query , I want to add tag in transaction with pco action block.
Please suggest me to do this.
Regards,
Raj.
Hi Raj,
Send the tag names in the input parameter of the transaction and map this transaction input parameter to the SelectedTags parameter of the PCo Query action block.
This parameter can take more than one tag names as a comma separated string.
Regards,
Rohit Negi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rohit,
Thanks for reply .
As you said , I copied the tag path in transaction parameter and linked it to selected tags
Tag path foramat is as below and this tag I am able read in pco query but getting " tag not found when I tried in Transaction.
This tag I have added in group on pco.
/ASSETS/LNG_PLANT/BOG_TANK/BOG_COMPRESSOR/C_0101A/C0101A_RUNHR.LTMOTORA.RUNTIME not found
Did I do any wrong , Please have look on it.
Regards,
Raj.
Hi Rohit,
I am waiting for your reply. Could you please look into this.
I have taken xml type property and added the tag as
<?xml version="1.0" encoding="UTF-8" standalone="no"?><group name="FuelGas">
<tag name="03FQI3710" source="/ASSETS/LNG_PLANT/UTILITY/GTG/03FIQ3710.SELREALA.OUT" type="32">
<metadata name="Description" type="1024"/>
<metadata name="Max." type="32"/>
<metadata name="Min." type="32"/>
</tag>
</group name>
and assigned tag--source to SelectedTags parameter of the PCo Query action block
Then after execution I didnot get any error but I did'nt get tag value in tracer output.
Regards,
Raj.
Hi Rohit.
I passed same way as you said.
'03FIQ3710.SELREALA.OUT' this is the tag name , I linked it to SelectedTags parameter.
I built one pco query with one tag value and in transaction configured above tag to SelectedTags parameter.
And query result linked to tracer. I am able to get only one tag in result . The 2nd tag which I have added
in TRX is not getting.
TRX not throwing any error.
where I am doing wrong...pls look at this.
Thanks.
Raj
Hi Raj,
You have to map two params in the PCo Query Action Block:
1. SelectedTags: Tag Names
2. SelectedTagsDisplayName: Names which you want to have in Resultset. Basically here you can give a meaningful name to the tag.
This will give you the expected result.
Sorry in the earlier reply I missed out the second parameter.
Also it is not possible to have one tag name in the query and pass another name dynamically to the query. The values you pass dynamically will take precedence over the values in the query(basically design time). So the result will only contain the tag values you pass dynamically in you case.
Also I am not sure whether you have to send the whole path of the tag.
Try with just the tag name and if does not works then you can try the tag path.
Kindly let me know whether tag name is required or the tag path(namespace).
Regards,
Rohit Negi.
Hi Raj
try to pass the input for selectedTag as:
Example: tag1 coming from group.. Group1/Tag1
tag2 coming directly without any group...tag2
pass input as:
"Group1/Tag1,tag2"
Hope this will resolve your issue. Make sure rest of params are passed correctly.
Thanks
Ruchir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
6 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.