I have a table in my VIEW, The view is called projectFilter. The first
column of this table are links.Example:
*12345* A B C
*34568* M N O
So i click 12345 i should be able to get the value associated with the
link, in this case 12345 in my controller. The column containing the linked
values is called NETWORK
How do i achieve this?
Thanks
On Thursday, May 2, 2013 2:11:47 PM UTC-4, Anthony wrote:
>
> I'm not quite sure what you want. Can you show the controller code?
>
> On Thursday, May 2, 2013 1:05:31 PM UTC-4, v1s wrote:
>>
>>
>> Thanks for the reply
>>
>> I changed the code to:
>>
>> <td><a href = "{{=URL('projectFilter', 'projectFilter',args
>> ='network')}}" id = "network">
>> {{=row.NETWORK}}
>> </a></td>
>>
>> My controller name is : projectFilter.
>>
>> What I am trying to do is get the value associated with the link on the
>> controller. Can you clarify it again?
>>
>>
>> On Thursday, May 2, 2013 12:54:23 PM UTC-4, Anthony wrote:
>>
>>> Are you saying that when the link is clicked, you want the controller to
>>> know the value of the id? In that case, you'll have to include it as an arg
>>> or var in the URL:
>>>
>>> <a href = "{{=URL('your_controller', 'projectFilter', args='network')}}"
>>> id = "network">
>>>
>>> Then in the controller, "network" will be in request.args(0).
>>>
>>> Anthony
>>>
>>> On Thursday, May 2, 2013 12:21:05 PM UTC-4, v1s wrote:
>>>>
>>>> Hi,
>>>>
>>>> I have the following code in my view
>>>>
>>>> <td><a href = "projectFilter" id = "network">
>>>> {{=row.NETWORK}}
>>>> </a></td>
>>>>
>>>> This gives me a link. How do I get the value of this link in my
>>>> controller (projectFilter) using the id.
>>>>
>>>
--
---
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.