I am a newbie to this forum and trying some of the libs for one of my client application. I am using Remote Database Connector (RDC) to connect to MSSQL database. I am facing following problems
- I want fill listview with records by executing following query. As soon as the user logs in, I am calling this function on Activity_Create function
I am executing following query which is written in config.properties file
On execution of the query, I am getting following error
** Activity (allworkorders) Create, isFirst = true **
** Activity (allworkorders) Resume **
java.sql.SQLException: Invalid column name 'FinalProduct'.
** Activity (allworkorders) Pause, UserClosed = false **
** Activity (main) Create, isFirst = false **
sending message to waiting queue (CallSubDelayed - JobDone)
I have run the same query MS SQL server management studio but it is executing properly and gives correct results. But thru RDC, it is not working. Please help me to resolve this issue, I am not able to find what is going wrong.
Also after throwing above error, it is calling Activity Main instead of stopping in the allworkorders activity.
Appreciate your help!
- I want fill listview with records by executing following query. As soon as the user logs in, I am calling this function on Activity_Create function
B4X:
Activity.LoadLayout("AllWorkOrders")
If FirstTime Then
FillWorkOrders
End If
B4X:
Sub FillWorkOrders()
Dim cmd As DBCommand
Dim Result As String
cmd.Initialize
cmd.Name = "select_allworkorders"
'cmd.Parameters = Array As Object(Main.CustID)
Main.reqManager.ExecuteQuery(cmd, 0, "allworkorders")
End Sub
B4X:
SELECT FinalProduct, SUM(PendingBadri) as status, SUM(QTY) as QTY ,SUM(SQM) as SQM , M.JCNumber,M.JCNo,M.JCDate
FROM JC_Main M INNER JOIN JC_Sizes S ON M.JCNumber=S.JCNumber AND M.JCYear=S.JCYear
INNER JOIN JC_Specs SP ON SP.JCNumber=M.JCNumber AND SP.JCYear=M.JCYear
WHERE M.IsCancel=0 AND CustomerID= 1 GROUP BY FinalProduct, CustomerID, IsCancel,M.JCNumber,M.JCNo,M.JCDate order by M.JCDate desc
On execution of the query, I am getting following error
** Activity (allworkorders) Create, isFirst = true **
** Activity (allworkorders) Resume **
java.sql.SQLException: Invalid column name 'FinalProduct'.
** Activity (allworkorders) Pause, UserClosed = false **
** Activity (main) Create, isFirst = false **
sending message to waiting queue (CallSubDelayed - JobDone)
I have run the same query MS SQL server management studio but it is executing properly and gives correct results. But thru RDC, it is not working. Please help me to resolve this issue, I am not able to find what is going wrong.
Also after throwing above error, it is calling Activity Main instead of stopping in the allworkorders activity.
Appreciate your help!