Jump to content

using gg.addListItems() but only save the value not change


Cornysz

Recommended Posts

Posted

wik = gg.getResults(10)

for i, v in ipairs(wik) do

wik.value = '1'

wik.freeze = false

wik.freezeType = gg.FREEZE_NORMAL

end

gg.addListItems(wik)

 

I want to edit all to 1 but in this script, it only save to the saved list not change the value to 1

How to fix this? thanks in advance

  • Administrators
Posted

Use setValues if you need only setValues.

When you add item to saved list, then value set too.

You doing wrong loop. use wik instead of v, so you do not change anything.

Posted
Use setValues if you need only setValues.
When you add item to saved list, then value set too.
You doing wrong loop. use wik instead of v, so you do not change anything.
Oh okay, my bad. Thanks!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.