Can't Get Single Element Properties when using getElementProperties api #6619
-
I wrote a test class, but when calling the PresentationManager.getElementProperties function, I couldn't retrieve the element's property information. I'm not sure where I went wrong, thank you for your help. Below is the code for the test class and the call: // Test Class
// Test Code
|
Beta Was this translation helpful? Give feedback.
Answered by
grigasp
Apr 15, 2024
Replies: 1 comment 7 replies
-
Hi, can you please be more specific what you mean by "couldn't retrieve the element's property information"?
Thanks. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I rebased my branch on
release/4.5.1
and the test still succeeds.Now that I look at your initial post, I think the problem is this line:
When a
PresentationManager
is created, it registers the rulesets it uses, including the "ElementProperties" one. Your call clears the registered rulesets list, so requesting content with "ElementProperties" ruleset ID results in no content.