Jump to content
Sign in to follow this  
Cornysz

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

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×