Show device markers based search user Thingsboard? - thingsboard

I'm using Thingsboard version 3.4.1, I want to display markers on the maps Thingsboard widget based on user search Input. So when the user searches for the item device that appears on the maps, only the device that matches the user's search.
How do I display the map icon that the user is looking for?
Thanks in advance.

You need Filter feature:
Create widget with HTML input field.
Every time when user types, you need to create/update USER attribute (example) to save search text in it.
Create dashboard filter that will compare device name or label with search text (use contain or not contains comparison functions).
Add filter from step 3 to map widget.

Related

Does the here.com autosuggest API allow for restricting results to only cities?

I'm playing around with the Here.com autosuggest feature, and I'm trying to find a way to limit the results of a query to only cities. I only want it to return potential city, state/prov, country matches, and not addresses or specific places.
The use case here is to allow the user to start typing in their current city and have autosuggest fill out the rest. So in this case, I also can't send the query with a bounding parameter like at or in, since I want the search to allow for matches world wide.
Is this possible with the current implementation of autosuggest? Or is there another way to accomplish this?
Thanks!
The API itself doesn't allow you to limit based on city but you can select responses where localityType=city in your application.

Can I use a Google Form to check the status of a student's paperwork that is recorded in Google Sheets?

I have a Google Sheets filled in with student names and the status of a paper form. I need to email parents to have them complete the paper form if it is missing. But every time I send this email the first question I get is Doesn't my kid already have this form completed and on file?
So I would like to create a Google form where parents can enter the name of their student and it will show whether or not there is completed paperwork.
I can find how to pre-populate forms but that's not what I want. I need it to show a response based on the information a parent enters.
that's not really how Google Form was intended to be used. (eg. it's unfortunately not possible). you will need to redo your approach... you could create a new spreadsheet in which you would use IMPORTRANGE formula and import column of names only and send this new spreadsheet to the parents. this way when they press CTRL+F to find their kiddo a cell gets highlighted or just not found.

How to get the all the recyclerView Items into ArrayList using appium

I have a scenario to verify the Sort&Filter functionality for Mobile App in Android.
Scenario:
Search for Item
Search Result Apper
Sort&Filter with some criteria
Have to Verify that Sort&Filter is applied correctly
Here results are added to RecyclerView.
As per RecyclerView/appium functionality, all the items are not loaded into view. Only visible Items are loaded into the view Hierarchy.
When I scroll Up the Linear Layout Indexes are re-arranged. I could not able to get all the Items.
Could you kindly provide me any sample scenario of this kind?
Or How can we achieve this kind of scenarios in Real Automation while working on the project?
Regards,
Shiva Oleti
Issue with Android as You stated is that it "sees" only what is visible on screen. I have similar issue, so I had to go deeper into element and fetch text. In your case I would do following:
1. Search Result Appear:
- fetch all visible elements, input search, fetch again -n results containing search result. Eg. if input 'beer' there should be eg. 4 elements with text containing "beer". Put elements in list and iterate:
List <MobileElement> listElements = driver.findElements(By.id("someId"));
for(MobileElement el : listElements){
if(el.getText().equalsIgnoreCase(expected)){
// do some validation //
}
}
Search Result Appear:
input exact value that will return unique, one result so You can easily count.
Sort&Filter with some criteria
remember initial values in items (text like 'Budweiser beer'), do some filtering / sorting, and check text in first element if is changed and if correct logic is applied (eg. sort desc.)
Have to Verify that Sort&Filter is applied correctly
think I answered in 3.
Basically:
'pick' text from items store them,
do some action (search, sort, filter),
'pick' newly changed items caused by 2. step, store them,
compare (depending on what You need...),
To get all items you have to swipe and store them in list.

In Jira, Is there a gadget that can display a list of reporters/users

I need a gadget that can display a list of users that have entered a certain type of issue/ticket (in a particular project).
I currently am using the "Issue Statistics" gadget and then setting the statistic type to "reporter".
This works, but also gives me a second column with the number of issues that user has entered. I really don't want this 2nd column for multiple reasons and wondered if there was either a way of removing it or using a different gadget to just show a list of users that have entered a certain type of ticket.
Thanks for any help
There is no any gadget about getting reporters/users list.
Here, all Atlassian gadgets:
https://confluence.atlassian.com/display/GADGETS/All+Atlassian+Gadgets#AllAtlassianGadgets-DisplayingJIRADatainaGadget

Dynamic Search Boxes in Jquery Mobile

Am not sure on how to do this but I will describe it and hopefully you all can come up with a good solution. I want to have a box (not sure if its an input of search box) that when someone types in the box it pulls values from my database and shows the closest match based on characters being typed in. If the word that is typed by the user is not there then when the form is submitted then the word is added to a database.
Additionally I want to have an add button next to the box, so that if the user wants to add more than one word they can. This means that when the add is clicked a duplicate of the first box appears which does the same thing. The values will be stored in an array.
Any idea how I can go about doing this?

Resources