BrowseDialog com chave primaria composta


Author
Message
Malcon M. Mikami
Malcon M. Mikami
StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)
Group: Forum Members
Posts: 60, Visits: 1.3K
Boa tarde, estou utilizando em um BrowseDialog um BO que possue PK composta.

Na pesquisa do BD ele apresenta o seguinte erro:

"The PrimaryKeyFiels property must have ecactly 1 field to use the PrimaryKeyField property"

na linha:

'-- Set the primary key field to the tag

loReturn.Item("ColTag") = _BusinessObject.Item(_BusinessObject.PrimaryKeyField)

do objeto browsedialogwindow.vb

Como faço para meu BD trabalhar com chaves compostas?

 

Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Oi Malcon.

Eu tenho certeza que você deve ter um bom motivo para trabalhar com "composed primary key", porém, eu acredito que o BrowseDialog vai ser um problema. Vou pesquisar aqui e volto a te dar mais informações.

Malcon M. Mikami
Malcon M. Mikami
StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)
Group: Forum Members
Posts: 60, Visits: 1.3K
Obrigado pela pronta resposta.
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Bom, pelo jeito deveria funcionar normalmente, então o que eu te falei está errado. Seria bem legal se você conseguisse montar um projeto de exemplo pra mandar pra gente, assim poderíamos investigar melhor. Mas vou passar sua mensagem de erro e ver se consigo alguma coisa.
Malcon M. Mikami
Malcon M. Mikami
StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)
Group: Forum Members
Posts: 60, Visits: 1.3K
Como poderia enviar para vc? Um email private?
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Pode zippar num arquivo só e anexar aqui num post no forum mesmo. No final da página quando você está escrevendo uma mensagem tem um botão "Edit Attachments".
Malcon M. Mikami
Malcon M. Mikami
StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)
Group: Forum Members
Posts: 60, Visits: 1.3K
Ola Ivan, ja descobri oq é, mas nao pq acontece.

Esse erro soh da usando o DB do devexpress Wrapper.

Em anexo segue o script do banco junto com o aplicativo e os 2 BD(SF, SF+DEV)

Attachments
WindowsApplication1.zip (129 views, 678.00 KB)
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Opa, já é uma dica, vou passar para eles. Vamos olhar o exemplo também. Enquanto isto, você consegue se virar com o BD normal?
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Malcon, confirmando pra você... o BD do DevExpress não está mais recebendo atualizações, sendo apenas mantido para proporcionar compatibilidade com quem tenha usado no passado. Há muito código envolvido nele para se manter duas bases distintas. Então, você irá precisar usar o BD normal para suas buscas.
Malcon M. Mikami
Malcon M. Mikami
StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)
Group: Forum Members
Posts: 60, Visits: 1.3K
Que pena Ivan.

Isso apenas com o DEV ou o Infra tbm nao terá mais atualizações?

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search