When I refresh my browser with a specific view. The tags it uses to fill the page break. Specifcally in a flex repeater using a binding to build the path.
The original path looks something like:
[tagProvider]site_building_breaker_number
After refresh it says my tag looks like:
[tagProvider]site_buil
ding_breaker_number
I’ve tried making the binding persistent versus non-persistent; it doesn’t change anything. The output on the script used on the binding looks correct as well. I can’t really simulate it in my designer session. I’ve picked apart the script with other engineers and I added a specifc error case for this, but it changes nothing. Leading me to believe it isn’t the script either. Does anyone have other ideas?
I also have an issue with a specific pop-up (on a different page), but a similar problem. It works perfectly in designer but on the live-system the pop-up shows alarms for the incorrect device. Pop-ups one through 8 should show alarms for device 1 and pop-ups 9-16 show alarms for device 2. All of them show alarms for device 2 even though pop-ups 1-8 are only fed the path for device 1. (I might make another topic for the second issue but they were similar problems so i added it here as well.)
Yeah without sharing info about the script there's not much feedback that can be given.
As a troubleshooting step try adding labels to every single page and popup that display each parameter along the way. Then you can see if something isn't being passed at a certain stage or if your script isn't populating something correctly. As well make use of the logger functions in your script to show when it runs and the values it outputted.
Sorry for the delay in response. Unfortunately, I didn’t write/set up this so I cannot provide any reasons why it was done in this way. FYI the formatting is a bit messed up from the copy/paste.
Expression Structure Bindings:
tagPaths = breakers 1-12 (site specific tags that are correct)
tagPathsC = breakers 13-26 (site specific tags that are correct)
pdcPaths = Site_number_PDC_number (generic: non-specific path as input)
def transform(self, value, quality, timestamp):
# Combine the lists "tagPaths" and "tagPathsC" into a single list "combinedPaths"
combinedPaths = []
tagPaths = value.get("tagPaths", []) # Get "tagPaths" and default to an empty list if it's missing
tagPathsC = value.get("tagPathsC", []) # Get "tagPathsC" and default to an empty list if it's missing
# Add all elements from "tagPaths" first
combinedPaths.extend(tagPaths)
# Add all elements from "tagPathsC" next
combinedPaths.extend(tagPathsC)
instances = []
for index, path in enumerate(combinedPaths):
element = {}
# if len(value["pdcPaths"]) - 1 > index:
# element["pdc_path"] = value["pdcPaths"][index]
#else:
element["path"] = path
instances.append(element)
return instances
(Consider copying and pasting fresh, after you click the pre-formatted text forum editor button to place the markers in your topic. Do this on the comment above, not a new comment.)
Have to blur some of the image(sorry). I think it the overall message is still clear. Am I misinterpreting the error? To be clear, is it just formatting of the box making look like a new line or is it a new line? Not only this, but it is completely deleting the breaker number.
Correct path: [PDC_B2]xxx/PDC_B2/52F10/kW_tot
So the ‘52F10’ of the correct path is completely gone.
I’m not seeing any problem with the script you provided there. I’d check on the tagPaths, make sure they are all correct, check if the ‘52F10’ you mentioned is there. If the tagPaths list is being created in a different script, we’d need to see that. If you can’t share it, debug the list creation.