#query = (db.call_log.id > 0) & (db.call_log.incident_Id != 0)
    query = (db.call_log.id > 0) #& (db.call_log.incident_Id !="")
    field =
[db.call_log.call_lat,db.call_log.call_lng,db.call_log.call_status

,db.call_log.call_vip_prank_flag,db.call_log.incident_house_no,db.call_log.incident_street_no
            ]


    links = [lambda row: A('Club
call',_name="create-user",_onclick="if(confirm('hello'))document.location='%s':
return false;'",_href=URL("Informercall","clubCall",args=[row.id])),
               lambda row: A('Mark as prank', _onclick="confirmation("+str(
row.id)+")"),
               lambda row: A('Create Incident',_onclick="confirm('Do you
want to Create Incident for this call '
)",_href=URL("Informercall","Incident",args=[row.id]))]

    form = SQLFORM.grid(query,
                   fields=field,
                   links=links,
                   user_signature=True,
                   deletable=False,
                   editable=False,
                   details=False,
                   #selectable = lambda ids:
clubCall(ids),
                   #field_id=None,
                   csv=False,
                   paginate=20,
                   #showbuttontext=False,
                   searchable=True,
                   #create=False,
                   oncreate=None,
                   onupdate=None,
                   ondelete=None,
                   #formargs={},
                   #createargs={},
                   #editargs={},
                   #viewargs={},
                   #buttons_placement = 'right',
                   #links_placement = 'right',
                   #ignore_rw = False,
                   )

    #bevestig = T('Are you sure you want to create incident for selected
log?')
    #form.element('.web2py_table input[type=submit]')['_value'] = T('Club
Calls')
    #form.element('.web2py_table input[type=submit]')['_onclick'] = "return
confirm ('%s')" % bevestig
    if request.vars['submit']:
            response.flash='Submit sucess'
    #form.element.Insert('.web2py_table input[type=submit]')['_value'] =
T('saaa')
    return dict(form= form)




i am using this


On Mon, May 13, 2013 at 5:20 PM, Massimo Di Pierro <
[email protected]> wrote:

> yes. I will post an example.
>
>
> On Monday, 13 May 2013 04:54:05 UTC-5, Pawan Jha wrote:
>
>> is it possible to use pop up inside the SQLFORM.GRID
>>
>> On 5/13/13, Pawan Jha <[email protected]> wrote:
>> > Thanks a lot johann ..
>> >
>> > On 5/13/13, Johann Spies <[email protected]> wrote:
>> >> Web2py is using Bootstrap. Look at the tutorial at
>> >> http://www.w3resource.com/**twitter-bootstrap/modals-**tutorial.php<http://www.w3resource.com/twitter-bootstrap/modals-tutorial.php>
>> >>
>> >> Regards
>> >> Johann
>> >>
>> >>
>> >> On 13 May 2013 10:31, Pawan Jha <[email protected]> wrote:
>> >>
>> >>> Hi all
>> >>>
>> >>>
>> >>>    How to open a model pop up in Web2py . please provide me the code
>> >>> because i am using a fancy box but it is not working .
>> >>>
>> >>> --
>> >>>
>> >>> ---
>> >>> 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 web2py+un...@**googlegroups.com.
>> >>> For more options, visit 
>> >>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>.
>>
>> >>>
>> >>>
>> >>>
>> >>
>> >>
>> >>
>> >> --
>> >> Because experiencing your loyal love is better than life itself,
>> >> my lips will praise you.  (Psalm 63:3)
>> >>
>> >> --
>> >>
>> >> ---
>> >> 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 web2py+un...@**googlegroups.com.
>> >> For more options, visit 
>> >> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>.
>>
>> >>
>> >>
>> >>
>> >
>> >
>> > --
>> > *       Thanks  &  Regards
>> >         Pawan Kr. Pankaj
>> > 91-9968831967/9540773888
>> > **Software Engineer (DOT .Net)*
>> >  pawan.p
>> > <[email protected]>an**[email protected]<pawan.**
>> [email protected]>
>> >
>>
>>
>> --
>> *       Thanks  &  Regards
>>         Pawan Kr. Pankaj
>> 91-9968831967/9540773888
>> **Software Engineer (DOT .Net)*
>>  pawan.p <[email protected]>an**[email protected]<pawan.**
>> [email protected]>
>>
>  --
>
> ---
> 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.
>
>
>



-- 
*       Thanks  &  Regards
        Pawan Kr. Pankaj
91-9968831967/9540773888
**Software Engineer (DOT .Net)*
 pawan.p 
<[email protected]>[email protected]<[email protected]>

-- 

--- 
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.


Reply via email to