Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • manoj 4 posts 84 karma points
    Aug 17, 2017 @ 14:41
    manoj
    0

    IContent and IPublishedContent return null for the other tabs properties

    I am having two tabs in the page. when I trying to access the properties using IContent and IPublishedContent, I am able to access the properties of the first tab but for second tab property its returning null.

    Can anyone suggest how I should I access my second tab properties while iterating?

    foreach (IContent local in localsNode.Children()){
    // Getting null for the second tab property
    var questionInsight = local.Properties["questioninsight"].Value.ToString();}
    

    enter image description here

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Aug 28, 2017 @ 13:39
    Alex Skrypnyk
    100

    Hi Manoj

    There is no difference what tab are you using, try to get values as for the first tab.

    You need only property alias for getting the data from the property.

    Thanks,

    Alex

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Sep 12, 2017 @ 14:20
    Alex Skrypnyk
    0

    Hi Manoj

    Did you fix the issue? Can you share with our community?

    Thanks,

    Alex

  • manoj 4 posts 84 karma points
    Sep 13, 2017 @ 04:09
    manoj
    0

    Hi Alex,

    Yes, i was able to retrieve the other tabs as the child element of the node.

    Thanks for your suggestion...

Please Sign in or register to post replies

Write your reply to:

Draft