Portal Filter

PeteM1
Tera Contributor

Hello All. I am currently having an issue with a filter in a datatable portal widget.

 

I have a simple script includes that returns the value 'xxxxxxxxxxxx'

 

getFilterValue: function(){

return 'xxxxxxxxxxxx';

}

 

I call the script includes from the filter using pid=:javascript new scriptincludename().getFilterValue();

 

In every case I try, I get a NULL value.

 

Any thoughts? Can I no use a script include in this way?

 

Thank you in advance.

1 ACCEPTED SOLUTION

That's very helpful! For a script include being a single function, cut the javascript part in the filter down to just javascript:lpb_script_library() so it isn't trying to look for a sub-function.

Claude E. D'Amico, III - CSA

View solution in original post

6 REPLIES 6

That's very helpful! For a script include being a single function, cut the javascript part in the filter down to just javascript:lpb_script_library() so it isn't trying to look for a sub-function.

Claude E. D'Amico, III - CSA

@Claude DAmico - thank you very much for the response......and the answer! So, I tried the above and still had issues. But reread one of your previous posts and switched to the api name and it worked!

javascript:x_325383_aparent_0.lpb_script_library().

 

Again, thank you