I think I just need some help with syntax and available functions that are available to $user.psoSlotTools.getSlotContents($sys.assemblyItem,‘ciCFSearchBlock’,$params).
I am able to access info from slot ciCFSearchBlock which is contained in another slot named ciCustomSideNavSlot. If I set $user.psoSlotTools.getSlotContents($sys.assemblyItem,‘ciCFSearchBlock’,$params).size() in my parent page bindings I get the expected printout of the var as 1 with no errors.
So I am getting info from that slot, but I need to get a particular value that was set in a content type form.
But when I try $user.psoSlotTools.getSlotContents($sys.assemblyItem,‘ciCFSearchBlock’,$params).getProperty(‘dbtype’).String I get an error that says:
Could not find method getProperty for object
Can anyone tell me what I can use to get the value dbtype from the ciCFSearchBlock slot? I’m obviously mixing and matching the wrong functions together.
If anyone could just give me a line or snippet of code they have used to do this you would make me the happiest developer ever! Thanks!