Click here to Skip to main content
15,920,603 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: scan folder in vb 6.0 Pin
bony_baba27-Mar-06 16:46
bony_baba27-Mar-06 16:46 
QuestionRefreshing Crystal Reports at runtime Pin
Vikrant Badhai26-Mar-06 19:09
Vikrant Badhai26-Mar-06 19:09 
AnswerRe: Refreshing Crystal Reports at runtime Pin
Dave Kreskowiak27-Mar-06 5:07
mveDave Kreskowiak27-Mar-06 5:07 
GeneralRe: Refreshing Crystal Reports at runtime Pin
Vikrant Badhai27-Mar-06 20:26
Vikrant Badhai27-Mar-06 20:26 
GeneralRe: Refreshing Crystal Reports at runtime Pin
Dave Kreskowiak28-Mar-06 2:44
mveDave Kreskowiak28-Mar-06 2:44 
GeneralRe: Refreshing Crystal Reports at runtime Pin
Vikrant Badhai2-Apr-06 23:47
Vikrant Badhai2-Apr-06 23:47 
GeneralRe: Refreshing Crystal Reports at runtime Pin
Vikrant Badhai2-Apr-06 23:51
Vikrant Badhai2-Apr-06 23:51 
Questionis this achievable? Pin
uglyeyes26-Mar-06 16:44
uglyeyes26-Mar-06 16:44 
Hi,

I have a table with ID, col_name1, col_name2 and so on.

i am building a dataTable with ID
another datatable with all the columns that contains that id

now i am passing ID as a parameter in the second datalist and building a dataview. which gives me a block of data with just one specific ID. please refer to my code below:

-----------------------------
objConn = New SqlConnection(dbPath)
Try
'select the table with only distinct ID based
cmd = New SqlCommand("select distinct measure_id from measuredata m, textdata t where t.ScoreCardId = m.ScoreCardId", objConn)

Dim da As SqlDataAdapter = New SqlDataAdapter(cmd)
Dim dtId As New DataTable("MeasureId")

da.Fill(dtId)

'select all columns with ID
Dim cmd1 As SqlCommand = New SqlCommand("select * from measureData", objConn)

Dim da1 As SqlDataAdapter = New SqlDataAdapter(cmd1)
Dim dt As New DataTable("MeasureSource")

da1.Fill(dt)

Dim myView As New DataView(dt)
Dim datarow As DataRow
Dim listitem As System.Web.UI.WebControls.ListItem
For Each datarow In dtId.Rows

myView.RowFilter = String.Format("Measure_Id='{0}'", datarow.Item("measure_Id"))

'######## checking if the dataview works #########
DataGrid1.DataSource = myView
DataGrid1.DataBind()

Next datarow

Catch ex As Exception
Response.Write("OOPs what went wrong:" + ex.ToString)
Finally
End Try
-----------------------------

now Datagrid1 is picking up only the block of record with last ID as it can only hold i set of data.
how can i programatically populate a chart inside that loop so that i can build a chart if there is data related to specific ID.

my aim is to generate a separate webchart for each ID in run time. do i need to declare those webchart control before i actually bind the data to it.

hope its not complex. I did post this question lots of time but i am not getting any response. is it too hard? I am happy to buy a third party software if could automate what i want to achieve.

many thanks again for all your help.

AnswerRe: is this achievable? Pin
Dave Kreskowiak27-Mar-06 5:03
mveDave Kreskowiak27-Mar-06 5:03 
GeneralRe: is this achievable? Pin
uglyeyes27-Mar-06 12:32
uglyeyes27-Mar-06 12:32 
GeneralRe: is this achievable? Pin
Dave Kreskowiak27-Mar-06 17:18
mveDave Kreskowiak27-Mar-06 17:18 
QuestionUrgent~ how to read next line from text? Pin
campbells26-Mar-06 15:02
campbells26-Mar-06 15:02 
AnswerRe: Urgent~ how to read next line from text? Pin
Christian Graus26-Mar-06 15:15
protectorChristian Graus26-Mar-06 15:15 
GeneralRe: Urgent~ how to read next line from text? Pin
campbells26-Mar-06 15:33
campbells26-Mar-06 15:33 
GeneralRe: Urgent~ how to read next line from text? Pin
Christian Graus26-Mar-06 16:12
protectorChristian Graus26-Mar-06 16:12 
GeneralRe: Urgent~ how to read next line from text? Pin
campbells26-Mar-06 16:45
campbells26-Mar-06 16:45 
GeneralRe: Urgent~ how to read next line from text? Pin
Christian Graus26-Mar-06 16:49
protectorChristian Graus26-Mar-06 16:49 
GeneralRe: Urgent~ how to read next line from text? Pin
campbells27-Mar-06 2:29
campbells27-Mar-06 2:29 
AnswerRe: Urgent~ how to read next line from text? Pin
FeRtoll27-Mar-06 1:12
FeRtoll27-Mar-06 1:12 
GeneralRe: Urgent~ how to read next line from text? Pin
FeRtoll27-Mar-06 2:15
FeRtoll27-Mar-06 2:15 
GeneralRe: Urgent~ how to read next line from text? Pin
campbells27-Mar-06 3:42
campbells27-Mar-06 3:42 
GeneralRe: Urgent~ how to read next line from text? Pin
Dave Kreskowiak27-Mar-06 4:52
mveDave Kreskowiak27-Mar-06 4:52 
GeneralRe: Urgent~ how to read next line from text? Pin
campbells27-Mar-06 5:08
campbells27-Mar-06 5:08 
GeneralRe: Urgent~ how to read next line from text? Pin
Dave Kreskowiak27-Mar-06 10:21
mveDave Kreskowiak27-Mar-06 10:21 
GeneralRe: Urgent~ how to read next line from text? Pin
campbells27-Mar-06 13:23
campbells27-Mar-06 13:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.