[web2py] parse in json

2013-05-31 Thread Pawan Jha
row = db.executesql(SELECT * FROm GetIncidentByIncidentId('+Incidentid+')) T.force('hi') MessageType=T('Please reach') return MessageType list=[] for i in row: data = {'MessageType':MessageType, 'num':i[1]} list.append(data);

Re: [web2py] Re: Need to add custom field in the Sqlform.Grid

2013-05-30 Thread Pawan Jha
May 2013 07:43:30 UTC-5, Pawan Jha wrote: Hi Every one *I want to add one more column in Sqlform.grid which will calculated field means here i am showing all the Unit and each unit has its own longitude and latitude i want to calculate the distance by the unit long/lat by static longitude

[web2py] Add Image Button in sqlform.grid

2013-05-25 Thread Pawan Jha
Hi i need to customize my link with image icon so how will i do this in web2py SQLFORM.grid i am adding link to sqlform.grid -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails

[web2py] Re: Add Image Button in sqlform.grid

2013-05-25 Thread Pawan Jha
, May 25, 2013 4:39:58 PM UTC+5:30, Pawan Jha wrote: Hi i need to customize my link with image icon so how will i do this in web2py SQLFORM.grid i am adding link to sqlform.grid -- --- You received this message because you are subscribed to the Google Groups web2py-users group

[web2py] add image icon in lamda row value

2013-05-24 Thread Pawan Jha
Hi all I want to add icon in lambda row: A('Mark as prank',,_href=URL(Informercall,Markasprank,args=[row.call_log.id])) please suggest me what i need to use for this -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from

Re: [web2py] Re: Binding SQLFORM grid By query string value giving error

2013-05-16 Thread Pawan Jha
this . On Tue, May 14, 2013 at 7:27 PM, Anthony abasta...@gmail.com wrote: I'm not sure what you mean by that. On Tuesday, May 14, 2013 8:56:55 AM UTC-4, Pawan Jha wrote: its normal view page .. On Tue, May 14, 2013 at 6:25 PM, Anthony abas...@gmail.com wrote: The first argument

[web2py] SQLFORMGRID

2013-05-15 Thread Pawan Jha
Hi Every On i want to Customize my SQLFORM.grid according to row id if the suppose if row.id == 2 then the row color should be red if row.id == 3 then the row color should be Blue if row.id == 4 then the row color should be Black how this will possible please suggest me -- --- You

[web2py] Map integration getting lat / long from map

2013-05-15 Thread Pawan Jha
Hi all I need to implement a local map of city is any one here to advised me that how will i use map in my application please suggest me .. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop

Re: [web2py] Re: Binding SQLFORM grid By query string value giving error

2013-05-14 Thread Pawan Jha
: SQLFORM.smartgrid(db.call_log, constraints=dict(call_log=query), ...) Anthony On Tuesday, May 14, 2013 1:29:35 AM UTC-4, Pawan Jha wrote: Hi all Please let me know why this is giving error as i need to query the table as the value comes with the query string field

[web2py] Jquery Model Pop up

2013-05-13 Thread Pawan Jha
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

Re: [web2py] Jquery Model Pop up

2013-05-13 Thread Pawan Jha
Thanks a lot johann .. On 5/13/13, Johann Spies johann.sp...@gmail.com wrote: Web2py is using Bootstrap. Look at the tutorial at http://www.w3resource.com/twitter-bootstrap/modals-tutorial.php Regards Johann On 13 May 2013 10:31, Pawan Jha pawan.pan...@agnicient.com wrote: Hi all

Re: [web2py] Jquery Model Pop up

2013-05-13 Thread Pawan Jha
is it possible to use pop up inside the SQLFORM.GRID On 5/13/13, Pawan Jha pawan.pan...@agnicient.com wrote: Thanks a lot johann .. On 5/13/13, Johann Spies johann.sp...@gmail.com wrote: Web2py is using Bootstrap. Look at the tutorial at http://www.w3resource.com/twitter-bootstrap/modals

[web2py] show pop up dialog FROM CONTROLLER

2013-05-13 Thread Pawan Jha
Is any way to show pop up dialog by controller function .. Please provide me .. -- --- 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

Re: [web2py] Re: Want to add Confirmation on link in sqlform.grid

2013-05-13 Thread Pawan Jha
;' % URL(,** Incident,args=[row.id])] On Monday, 13 May 2013 00:56:27 UTC-5, Pawan Jha wrote: Hi all I am using this in SQLFORM.grid here is confirm message but on clicking this Message is coming but when i am clicking on no the its refresh the pages so please tell me how will i prevent

Re: [web2py] Jquery Model Pop up

2013-05-13 Thread Pawan Jha
using this On Mon, May 13, 2013 at 5:20 PM, Massimo Di Pierro massimo.dipie...@gmail.com 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 pawan@agnicient.com wrote

[web2py] Binding SQLFORM grid By query string value giving error

2013-05-13 Thread Pawan Jha
Hi all Please let me know why this is giving error as i need to query the table as the value comes with the query string field = [db.call_log.call_datetime_from,db.call_log.incident_street_no,db.call_log.incident_house_no] page = request.args(0) query = db.call_log.incident_Id

[web2py] What is the problem with this code is not running its givning error 'Query' object has no attribute

2013-05-13 Thread Pawan Jha
*What is the problem with this code is not running its givning error **'Query' object has no attribute '_tablename'* def opencall(): from gluon.tools import Crud from datetime import datetime from time import strftime #page = request.args(0) query =

[web2py] Want to add Confirmation on link in sqlform.grid

2013-05-12 Thread Pawan Jha
Hi all I am using this in SQLFORM.grid here is confirm message but on clicking this Message is coming but when i am clicking on no the its refresh the pages so please tell me how will i prevent this links = [lambda row: A('Club call',_onclick=confirm('Do you want to club this

Re: [web2py] SQLFROM.GRID SELECTEBLE

2013-05-11 Thread Pawan Jha
i have already used this but this is not working On Fri, May 10, 2013 at 10:12 PM, Javier Pepe javierp...@gmail.com wrote: Hi you have to use selectable = lambda ids: function(ids) def function(ids): ... ... ... On Fri, May 10, 2013 at 9:14 AM, Pawan Jha pawan.pan

[web2py] SQLFORM.RID Selectable

2013-05-11 Thread Pawan Jha
Hi I am new developer with Web2py so getting problem to work on so please help I'm using selectable=True in the sqlform.grid. This shows a checkbox in first column for all the rows except the header and Submit Button i want to get all the Selected check box id on clicking on submit button

[web2py] I'm using selectable=True in the sqlform.grid. This shows a checkbox in first column for all the r

2013-05-10 Thread Pawan Jha
I'm using selectable=True in the sqlform.grid. This shows a checkbox in first column for all the rows except the header and there is submit button i want to get all the Checked item id please reply ... -- --- You received this message because you are subscribed to the Google Groups

[web2py] SQLFROM.GRID SELECTEBLE

2013-05-10 Thread Pawan Jha
Hi I am new developer with Web2py so getting problem to work on so please help I'm using selectable=True in the sqlform.grid. This shows a checkbox in first column for all the rows except the header and Submit Button i want to get all the Selected check box id on clicking on submit button