Fórum Dbgrid não mostra os campos da tabela. DBGrid Vazio #343960
02/08/2007
0
SQLConnection
SQLDataSet // ctTable
DataSetProvider
ClientDataSet
DataSet
Um ligando outro. O que posso está fazendo de errado para não aparecer no grid?
Já fiz outras vezes e não tive problemas.
FirebIrd 2.0
Jpauloss
Curtir tópico
+ 0Posts
02/08/2007
Marco Salles
dos componentes em questão
Gostei + 0
02/08/2007
Jpauloss
dos componentes em questão[/quote:6e84b81e7f]
Como faz para fazer isso?
Gostei + 0
02/08/2007
Jpauloss
Gostei + 0
03/08/2007
Marco Salles
Deve aparecer algo assim :
mas por favor coloque somente as [b:f8a2c9a4e8]propriedades relevantes[/b:f8a2c9a4e8]
Gostei + 0
04/08/2007
Jpauloss
dos componentes em questão[/quote:7211277436]
object DM: TDM
OldCreateOrder = False
Height = 361
Width = 358
object CONEXAO: TSQLConnection
ConnectionName = ´materiais´
DriverName = ´UIB FireBird15´
GetDriverFunc = ´getSQLDriverINTERBASE´
LibraryName = ´dbexpUIBfire15.dll´
LoginPrompt = False
Params.Strings = (
´DriverName=UIB FireBird15´
´BlobSize=-1´
´CommitRetain=False´
´Database=LOCALHOST:C:\MATERIAIS\DADOS\materiais.fdb´
´ErrorResourceFile=´
´LocaleCode=0000´
´Password=masterkey´
´RoleName=RoleName´
´ServerCharSet=´
´SQLDialect=3´
´Interbase TransIsolation=ReadCommited´
´User_Name=SYSDBA´
´WaitOnLocks=true´)
VendorLib = ´fbclient.dll´
Connected = True
Left = 40
Top = 16
end
object SP_PROJETO_I_U: TSQLStoredProc
MaxBlobSize = -1
Params = <
item
DataType = ftInteger
Name = ´ID_PROJETO´
ParamType = ptInput
end
item
DataType = ftString
Name = ´NOME_PROJETO´
ParamType = ptInput
end
item
DataType = ftString
Name = ´DATA_REGISTRO´
ParamType = ptInput
end>
SQLConnection = CONEXAO
StoredProcName = ´SALVAR_PROJETO´
Left = 40
Top = 240
end
object DSP_PROJETO: TDataSetProvider
DataSet = SDS_PROJETO
Left = 40
Top = 128
end
object DSP_MATERIAL: TDataSetProvider
DataSet = SDS_MATERIAL
Left = 224
Top = 128
end
object SP_MATERIAL_I_U: TSQLStoredProc
MaxBlobSize = -1
Params = <
item
DataType = ftInteger
Name = ´id_cod´
ParamType = ptUnknown
end
item
DataType = ftString
Name = ´cod_ordenado´
ParamType = ptUnknown
end
item
DataType = ftString
Name = ´descricao´
ParamType = ptUnknown
end
item
DataType = ftString
Name = ´un´
ParamType = ptUnknown
Value = ´0´
end
item
DataType = ftString
Name = ´preco_unitario´
ParamType = ptUnknown
Value = 0.000000000000000000
end
item
DataType = ftString
Name = ´tipo_conta´
ParamType = ptUnknown
end>
SQLConnection = CONEXAO
StoredProcName = ´SALVAR_MATERIAL´
Left = 224
Top = 240
end
object SDS_MATERIAL: TSQLDataSet
Active = True
CommandText = ´MATERIAL´
CommandType = ctTable
MaxBlobSize = -1
Params = <>
SQLConnection = CONEXAO
Left = 224
Top = 72
end
object CDS_MATERIAL: TClientDataSet
Active = True
Aggregates = <>
Params = <>
ProviderName = ´DSP_MATERIAL´
Left = 224
Top = 184
object CDS_MATERIALID_COD: TIntegerField
FieldName = ´ID_COD´
ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
Required = True
end
object CDS_MATERIALCOD_ORDENADO: TStringField
FieldName = ´COD_ORDENADO´
ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
end
object CDS_MATERIALDESCRICAO: TStringField
FieldName = ´DESCRICAO´
Size = 70
end
object CDS_MATERIALUN: TStringField
FieldName = ´UN´
Size = 2
end
object CDS_MATERIALTIPO_CONTA: TStringField
FieldName = ´TIPO_CONTA´
Size = 1
end
object CDS_MATERIALPRECO_UNITARIO: TFloatField
FieldName = ´PRECO_UNITARIO´
currency = True
end
end
object SDS_PROJETO: TSQLDataSet
Active = True
CommandText = ´PROJETO´
CommandType = ctTable
MaxBlobSize = -1
Params = <>
SQLConnection = CONEXAO
Left = 40
Top = 72
end
object CDS_PROJETO: TClientDataSet
Active = True
Aggregates = <>
Params = <>
ProviderName = ´DSP_PROJETO´
Left = 40
Top = 184
end
end
Gostei + 0
06/08/2007
Marco Salles
posi em olhei rápido e vi nada que possa provocar este tipo de erro..
Dei falta do DataSorce e do DbGrid
Tb não entendi se sua dúvida é cm relação a qual dos dados :
O dados da Tabela PROJETO ou da Tabela MATERIAL ou mesmo se essas
tem algum relacionamento , que possa restringuir a inibição dos dados
Apesar que pelo DFM voce usa em ambas as tabelas
[b:9f1c621847]CommandType = ctTable [/b:9f1c621847] para a propriedade do SqlDataSet ,
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)