0
votes

In classic report CARDS template, On clicking the card (not the link and just the card region) I want to read the same CARD_TITLE and store it into a PAGE_ITEM.

I have achieved it by making the CARD_TITLE as link and added dynamic action on it but i want to achieve it by clicking on the CARD.

Image

In the Image i have a classic report which is converted as cards. There are 7 seven cards in the page. meaning 7rows in the classic report.

I want to have the respective date should be populated on summary_date field when i click on each card. Currently its populating all the dates in the page item.

Thanks, Raja P

1
Hi Raja, did you still need help with this? Did you see Scott's answer?Dan McGhan
Hi Dan, I tried with the solution given by scott but i didnt get the expected result. I am completely new to Apex and i didnt get proper tutorial for cards online. It will be great if you share some advanced tutorial for apex.Raja Palani
This behaviour sounds like either the selector is wrong (which works for me), or you're not utilising the this.triggeringElement concept. Perhaps mock up the example on apex.oracle.comScott

1 Answers

0
votes

Create a dynamic action on click of jQuery selector, ensuring scope dynamic if your region refreshes, and maybe prefix with a static region ID if there are more than one set of cards.

.t-Card

Then have a JavaScript action in that DA that sets your item

$s('P1_ITEM', $(this.triggeringElement).find('.t-Card-title').text());

There will be a few variations on this.

For example, it could be a Set Value action that uses the second expression to populate yoru nominated field.