Hi Team,
i have a card layout and on click of it the section with contents should showup to the user. For this i have added a link on card layout but on first click it doesnot saves value to local!showDetails but on second click it does because of which my section remains hidden on first click and gets visible on second click.It should save value always. The section hide and show under a card is also controlled by an external link ExpandClicked as well. Suggest a way to achieve this.
link: a!dynamicLink( value: if( index( index( index( index( index( ri!final_PRN_CDT.PrnSegment.Providers, 1, {} ), "ServiceLocation", {} ), "Addresses", {} ), ri!index, {} ), "ExpandClicked", false() ) = true(), not(ri!final_PRN_CDT.PrnSegment.Providers[1].ServiceLocation.Addresses[ri!index].ExpandSegment), not(local!showDetails) ), saveInto: { local!showDetails, a!save( ri!final_PRN_CDT.PrnSegment.Providers[1].ServiceLocation.Addresses[ri!index].ExpandSegment, false() ), a!save( ri!final_PRN_CDT.PrnSegment.Providers[1].ServiceLocation.Addresses[ri!index].ExpandClicked, false() ) } )
Discussion posts and replies are publicly visible
This is very confusing ... In a case where I have a hard time to understand what is going on, I try to simplify my code and get rid of external dependencies.