more fun with SQLTABLE

36 views
Skip to first unread message

Dave S

unread,
Jan 15, 2022, 7:56:57 AM1/15/22
to web2py-users
I'm working on Yet Another Personal Application, and in the main table I define a field as type 'upload'.  The upload works fine, and I can grab the file back by the download function.  But when I make a list of uploads by some criteria and then try to display that list with SQLTABLE, I don't get the expected link, I just the filler text.

I've verified that the ROWS object returned has the value of the upload field (the obfuscated filename), but I still appear to be hitting sqlhtml.py#L3603 instead of L3601.(v2.21.1).  Appadmin gets this right, though.

Any suggestions on what I need to correct?

Dave S
/dps

Dave S

unread,
Jan 15, 2022, 9:48:42 AM1/15/22
to web2py-users
Go back and review the book often enough, and it starts to sink in ....  I needed to set an additional parameter  with ', upload = "download" '.

Maybe I'll even remember this next time.

/dps

 
Reply all
Reply to author
Forward
0 new messages