Function to get my location

Mi1
Tera Contributor

Hi,

I'm setting up a query with a widget.

The code below is not getting well, is there any correct code?

javascript: gs.getUser().getLocation() 

find_real_file.png

I want to get my location.

find_real_file.png

 

Regards,

2 REPLIES 2

Aman Kumar S
Kilo Patron

You don't specifically need to dot walk to compare your sys_id,

To further answer your query, this code is absolutely fine :gs.getUser().getLocation();

When you apply the same filter in the list layout, do you get right records there?

Best Regards
Aman Kumar

Mi1
Tera Contributor

HI,

Thank you for your comment.

Yes. I copied the query from the list and pasted it into the widget's settings.

The list returns the results correctly, but the widget side does not return only the results of the LOCATION.

Can I use this function with widget?