Perfect, thanks for the quick response.
-Jim
On Wednesday, March 20, 2013 9:13:02 AM UTC-5, Niphlod wrote:
>
> did you try with hash_vars = False ?
>
> EDIT: the grid uses vars as "additional" helpers to remember order, page,
> etc values. By default user_signature=True on the grid checks for args but
> not for vars.
> The URL() helper instead by default adds a signature hashing vars too, but
> if you pass URL(...., hash_vars=False) only args will be hashed and the
> grid should work it out ok.
>
> On Wednesday, March 20, 2013 2:49:14 PM UTC+1, Jim S wrote:
>>
>> Hi
>>
>> Working with SQLFORM.grid. I'm providing my own 'Add' button because I
>> want to gather some initial values before presenting the user with the
>> .grid 'new' page.
>>
>> So, when you click on my Add button a bootstrap modal window pops up and
>> you then select a 'site'. When I click on Next on my modal window I want
>> to pass that site value to the 'new' page from the .grid. I'm generating
>> the URL as follows:
>>
>> url = URL('applications', 'workorders', args=('new','workorder'),
>> user_signature=True,vars=dict(siteId=siteId))
>> redirect(url)
>>
>> When I run this I get a 'not authorized' message.
>>
>> However, if I take out: vars=dict(siteId=siteId) ...it works fine.
>>
>> I don't know why I'm getting a 'not authorized' only when I'm passing
>> vars to the URL function.
>>
>> Any ideas?
>>
>> -Jim
>>
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.