This is the first time I'm encountering GetLayoutObjectAttribute
and I am having serious issues with it. My variable $web
won't set. I think it's because PD_WebV
isn't the right object name to refer to, but I don't know how to find the right object name. I can't find the objects name when I hit Edit Layout
, so does anyone know how to find an layout objects name?
Loop
Pause/Resume Script [Duration (seconds): 1]
Set Variable[$Web; Value: GetLayoutObjectAttribute("PD_WebV";"content")]
If[$Web="done"]
#execute if statements
After Edit:
After some troubleshooting, I found out that PD_WebV
is the right object name to refer and it's refered to correctly, so my new question is why doesn't the script go to the line If[$Web="done"]
and how could I fix it? Ss my If
statement not evaluating something it should be? Is my $web
variable never set to done
or is the issue something completely different? Would the problem possibly have to do with my WebDirect
sharing settings? Any guidance would help. Thanks.
After, After Edit:
So now that my application is getting past Set Variable[$Web; Value: GetLayoutObjectAttribute("PD_WebV";"content")]
, the variable $web
only equals <HTML></HTML>
. Does anyone know a way, without using javascript, to test the inside of the html
tags?
Also, I printed the bounds
of the webViewer PD_WebV
that I can't locate on the layout but am referring to in the script. The bounds that are printed are different each time I run the script. Is the usual or unusual? My source is also about:blank
so it doesn't look like I'm sourcing from a URL