I have a number field (TradeLongCount) that is either a 1 or a zero. It takes a Boolean field's value and multiplies it by -1. The goal is that as I click the yes/no box, an icon will be added and then removed from the item field. Here's what I've tried in the Auto Assign Rules of the TradeLongCount field:
A:Item=AddKeyword(Item,"<img>arrow_up</img>")|E:Item=RemoveKeyword(Item,"<img>arrow_up</img>")
This has no effect on the item field.
Then I tried:
M:Item=if TradeLongCount=1 then AddKeyword(Item,"<img>arrow_up</img>") elseif TradeLongCount=0 then RemoveKeyword(Item,"<img>arrow_up</img>")
This will completely empty the existing text in the Item field at the first click, not adding the icon. I've also written the above logic as an iif with the same result.
I know this forum isn't about VBscript but the first attempt is very similar to both the forum post on automating wiki assignments, referenced in Section 4 of the manual and the page on icon assignments. I'm having a tough time figuring out why I'm not getting the expected result. Does it have to do with the number field? I've also tried >0.9 and <0.1 in case there was a problem with a floating decimal. It didn't make any difference. Neither did turning "Null Values=0" on and off.
P.S. Pierre - thank you for the advice on file size. I've also opened a number of pdfs in the html pane and saved them so they would be indexed. Could that also be a major contributor to the file's size?
Comments