StructuredDataNodeAPIAdapter questions

Wing Ming Chan's Avatar

Wing Ming Chan

Oct 25, 2015 @ 06:01 PM

I have two questions:

  1. When working with a StructuredDataNodeAPIAdapter object, is there a way to tell whether the corresponding node is a multiple node? It is not possible to find the answer by checking the number of nodes bearing the identical identifier, because a multiple field in the data definition can have a single instantiated node in the structured data.

  2. is the getGroup() method identical to getChildren()?

Thanks,
Wing

  1. 1 Posted by Wing Ming Chan on Oct 26, 2015 @ 01:08 PM

    Wing Ming Chan's Avatar

    Ryan,

    It seems that I no long have access to the private Cascade CMS Ideas. Would you please help me with this?

    Thanks,
    Wing

  2. 2 Posted by Ryan Griffith on Oct 26, 2015 @ 01:58 PM

    Ryan Griffith's Avatar

    Hi Wing,

    When working with a StructuredDataNodeAPIAdapter object, is there a way to tell whether the corresponding node is a multiple node? It is not possible to find the answer by checking the number of nodes bearing the identical identifier, because a multiple field in the data definition can have a single instantiated node in the structured data.

    Unfortunately, it is not currently possible to determine if the field is configured to be multiple. As you mentioned, the only way at the moment would be to use getStructuredDataNodes("identifier") and check size(), but that won't be accurate if the multiple field only has one instance.

    Do you have a specific use case for adding the property?

    is the getGroup() method identical to getChildren()?

    These methods are identical. The getChildren() method was added in 7.6 as part of a set of API improvements. Additionally, the getGroup() method was deprecated in favor of getChildren, because the newer method aligns better with the other methods that were added as part of the improvement.

    It seems that I no long have access to the private Cascade CMS Ideas. Would you please help me with this?

    Strange, but we do see this from time to time with the UserVoice system which generally clears up with a re-invitation. Before I go ahead and re-invite you, I was looking at the audits and noticed a [email blocked] email address as being active today. Can you confirm you have the correct email address entered when logging in?

    Please let me know if you have any questions.

    Thanks!

  3. 3 Posted by Wing Ming Chan on Oct 26, 2015 @ 02:13 PM

    Wing Ming Chan's Avatar

    Ryan,

    Thank you for the info. I will refrain from using getGroup then.

    I am fine now with Idea Exhange. I don't know why I could not access it earlier.

    Wing

  4. 4 Posted by Ryan Griffith on Oct 26, 2015 @ 02:21 PM

    Ryan Griffith's Avatar

    Thank you for following up, Wing, I am glad to hear you were able to log in successfully.

    I'm going to go ahead and close this discussion, please feel free to comment or reply to re-open if you have any additional questions.

    Have a great day!

  5. Ryan Griffith closed this discussion on Oct 26, 2015 @ 02:21 PM.

Discussions are closed to public comments.
If you need help with Cascade CMS please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac