Skip to main content
Solved

Client script functions on search screen

  • May 2, 2023
  • 2 replies
  • 65 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!

2 replies

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

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

Thanks @Shneor Cheshin