Hello!
I’m trying to use Toolbox plugin (JavascriptToBubble) to change a field in my search result, but I don’t know how.
I have simple data type “test” with only two fields (TestNumber, TestText):

I have simple page with JS2B control, button and repeating grid:
I configured JS2B as shown in picture above.
Repeating grid’s data source is as following:

On button click, I am calling following javascript:
I would like to change the value of testtext field (or testtext_text as it is interpreted in javascript) but I can’t manage to do that. I tried:
mylist[0].testtext_text = “from JS”;
But it didn’t change anything since I got original list from database in repeating grid (and in JS2B value list when inspecting in debug mode).

I would appreciate help about this very much.
I can see that paramlist1 is not exact array of objects from my database…
The creator of the plugin made an example where he shows how to alter the whole record:
// alter second item in sorted list
mylist[1] = {
“_api_c2_userId”: 999,
“_api_c2_id”: 888,
“_api_c2_title”: “Bet ya didnt expect this post”,
“_api_c2_body”: “Running like rubber chicken”
};
His example is on api result, not on database search, maybe there is some kind of difference.
I have also tried to enter Do a search for directly into javascript (without paramlist), but I got the following error:

I have seen examples with :each item fieldName join with “”, but I need complete record, not just one field.
Thanks!







