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
I have one observation. Below is a CDT boolean property when i debugged i see it has empty value when form loads and on first card layout clcik its set to false then on second clcik showdetails is changing value.
index( index( index( index( index( ri!final_PRN_CDT.PrnSegment.Providers, 1, {} ), "ServiceLocation", {} ), "Addresses", {} ), ri!index, {} ), "ExpandClicked", false() )