Forum Discussion

Novari-QA's avatar
Novari-QA
Frequent Contributor
8 years ago

Child objects not linking to parent objects with custom variables

I have a web site with a custom calendar. This calendar when clicking on a specific day will give a list of actions.  

 

I built an aliase that has a variable holding the ID of the day. When stating "highlight" on screen, it works no problem. I say through my parameter, look for Day 1, 2, 3 etc it finds the cells no problem.

The issue, is that the child of the calendar, lets just call it a text node, within the caledar cell. It still is linking to Day 1.  The original recording.


Why won't the child objects work off of the parent. There is no way to customize the children, as they don't have those kinds of attributes.

1 Reply

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    It depends upon the mapping that you used, the default variable value, etc.  So, that text node, you need to look to see how it is mapped to determine what it's parent is... it probably has, as it's parent, the cell for Day 1.  So... you need to make sure that your text node is pointing to the cell that has your variable ID in it.  That's the thing about recording and namemapping... it maps, usually, based upon what you selected on the original record... so, you ALWAYS need to go back and examine your mapping after you record and make adjustments... 


    Keep in mind the logic for NameMapping... 

    1) Start with a parent object (at the root, that's Sys)

    2) Look for the designated child object with the indicated properties

    3) repeat all the way down the hierarchy until you get to the "tail" of the Alias.

     

    So, your text node, somewhere in the hierarchy, is mapped to be a descendant of some parent object that corresponds to your Day 1 cell.  Fix that, and you're problem is corrected.