Skip to main content
Solved

Client script functions on search screen

  • May 2, 2023 7:24 AM UTC
  • 2 replies
  • 83 views

Forum|alt.badge.img+9

Hi Experts,

I have a search type screen,
 



On it I am trying to invoke a client script via a button. But the script does not seem to pick the the rows of the resultnt search.

 


Is this expected, or am I missing something?

Best answer by Shneor Cheshin

Hey @Miraj 

I think you need to use getSearchResultDataTableRows

var rows = getSearchResultDataTableRows();
if (size(rows)> 0)
{
Do Something ...
}

 

Cheers!

View original

2 replies

Shneor Cheshin
Superhero (Employee)
Forum|alt.badge.img+28
  • Superhero (Employee)
  • Answer
  • May 2, 2023 11:33 PM UTC

Hey @Miraj 

I think you need to use getSearchResultDataTableRows

var rows = getSearchResultDataTableRows();
if (size(rows)> 0)
{
Do Something ...
}

 

Cheers!


Forum|alt.badge.img+9
  • Author
  • Sidekick (Partner)
  • May 3, 2023 2:03 AM UTC

Thanks @Shneor Cheshin