The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
Service Desk Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

SD Service Pages Customization

Highlighted
fgssl2
Regular Collector

SD Service Pages Customization

Hi all,

I'm editing the ListServiceCalls.jsp file so that it returns only the records of a certain category.. the thing is that I cannot get it to work! Inside the "for" that presents the list I putted an "if" that filters the category.

When I put an "out.print(category_text)" before the "if" it returns the category I want (catx). But it just won't enter the "if"!!

I'm sending the modified file in attach..

Does anybody have an idea why this is happening??

Thanks in advance!
1 REPLY
Gyula Matics_1
Honored Contributor

Re: SD Service Pages Customization

instead of
if (category_text == "catx")

use

if ("catx".equals(category_text))

That's how to compare strings.

Gyula
//Add this to "OnDomLoad" event