{"id":157,"date":"2012-08-15T08:57:00","date_gmt":"2012-08-15T07:57:00","guid":{"rendered":"https:\/\/blogfvinhas.wordpress.com\/?p=157"},"modified":"2012-08-15T08:57:00","modified_gmt":"2012-08-15T07:57:00","slug":"could-not-find-a-property-named-on-the-type-specified-by-the-dataobjecttypename-property-in-objectdatasource","status":"publish","type":"post","link":"https:\/\/blog.fvinhas.com\/index.php\/2012\/08\/15\/could-not-find-a-property-named-on-the-type-specified-by-the-dataobjecttypename-property-in-objectdatasource\/","title":{"rendered":"Could not find a property named \u2018\u2026 \u2018 on the type specified by the DataObjectTypeName property in ObjectDataSource \u2018\u2026\u2019"},"content":{"rendered":"\n<p>Ora deparei-me com um problema a n\u00edvel de update\/delete numa detailsview<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Ent\u00e3o temos uma detailsview alimentada por um ObjectDataSource, a qual pretendemos altera, mas quando se cria o ODS ele cria por defeito alguns parametros, e os quais precisam de ser alterados.<\/p>\n<\/blockquote>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"297\" height=\"509\" src=\"https:\/\/blog.fvinhas.com\/wp-content\/uploads\/2024\/12\/image-23.png?w=297\" alt=\"\" class=\"wp-image-158\" srcset=\"https:\/\/blog.fvinhas.com\/wp-content\/uploads\/2024\/12\/image-23.png 297w, https:\/\/blog.fvinhas.com\/wp-content\/uploads\/2024\/12\/image-23-175x300.png 175w\" sizes=\"auto, (max-width: 297px) 100vw, 297px\" \/><\/figure>\n\n\n\n<p>O erro que nos d\u00e1 \u00e9 o seguinte abaixo.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"464\" src=\"https:\/\/blog.fvinhas.com\/wp-content\/uploads\/2024\/12\/image-24.png?w=1024\" alt=\"\" class=\"wp-image-159\" srcset=\"https:\/\/blog.fvinhas.com\/wp-content\/uploads\/2024\/12\/image-24.png 1024w, https:\/\/blog.fvinhas.com\/wp-content\/uploads\/2024\/12\/image-24-300x136.png 300w, https:\/\/blog.fvinhas.com\/wp-content\/uploads\/2024\/12\/image-24-768x348.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Ora como solucionamos o problema?<\/p>\n\n\n\n<p>Simples:<\/p>\n\n\n\n<p>1\u00ba \u2013 Seleccionamos o nosso ObjectDataSource como o rato<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"330\" height=\"554\" src=\"https:\/\/blog.fvinhas.com\/wp-content\/uploads\/2024\/12\/image-25.png?w=330\" alt=\"\" class=\"wp-image-161\" srcset=\"https:\/\/blog.fvinhas.com\/wp-content\/uploads\/2024\/12\/image-25.png 330w, https:\/\/blog.fvinhas.com\/wp-content\/uploads\/2024\/12\/image-25-179x300.png 179w\" sizes=\"auto, (max-width: 330px) 100vw, 330px\" \/><\/figure>\n\n\n\n<p>2\u00ba \u2013 Na Janela de Propriedades procurar a propriedade \u201cDataObjectTypeName\u201d<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"286\" height=\"304\" src=\"https:\/\/blog.fvinhas.com\/wp-content\/uploads\/2024\/12\/image-26.png?w=286\" alt=\"\" class=\"wp-image-162\" srcset=\"https:\/\/blog.fvinhas.com\/wp-content\/uploads\/2024\/12\/image-26.png 286w, https:\/\/blog.fvinhas.com\/wp-content\/uploads\/2024\/12\/image-26-282x300.png 282w\" sizes=\"auto, (max-width: 286px) 100vw, 286px\" \/><\/figure>\n\n\n\n<p>3\u00ba \u2013 Eliminar os dados existentes no campo<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"287\" height=\"311\" src=\"https:\/\/blog.fvinhas.com\/wp-content\/uploads\/2024\/12\/image-27.png?w=287\" alt=\"\" class=\"wp-image-163\" srcset=\"https:\/\/blog.fvinhas.com\/wp-content\/uploads\/2024\/12\/image-27.png 287w, https:\/\/blog.fvinhas.com\/wp-content\/uploads\/2024\/12\/image-27-277x300.png 277w\" sizes=\"auto, (max-width: 287px) 100vw, 287px\" \/><\/figure>\n\n\n\n<p>4\u00ba \u2013 Correr a aplica\u00e7\u00e3o e testar, a aplica\u00e7\u00e3o j\u00e1 dever\u00e1 fazer o update e o delete sem problema<\/p>\n\n\n\n<p>NOTA: o sistema automaticamente por vezes define propriedades que n\u00e3o s\u00e3o indicadas, deveremos verificar o que n\u00e3o se encontra correto.<\/p>\n\n\n\n<p>Problema corrigido por: Anabela Silva em<\/p>\n\n\n\n<p><a href=\"http:\/\/www.pcreview.co.uk\/forums\/could-not-find-property-named-type-specified-dataobjecttypename-property-objectdatasource-t2877349.html\">http:\/\/www.pcreview.co.uk\/forums\/could-not-find-property-named-type-specified-dataobjecttypename-property-objectdatasource-t2877349.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ora deparei-me com um problema a n\u00edvel de update\/delete numa detailsview Ent\u00e3o temos uma detailsview alimentada por um ObjectDataSource, a qual pretendemos altera, mas quando se cria o ODS ele cria por defeito alguns parametros, e os quais precisam de ser alterados. O erro que nos d\u00e1 \u00e9 o seguinte abaixo. Ora como solucionamos o &#8230; <a title=\"Could not find a property named \u2018\u2026 \u2018 on the type specified by the DataObjectTypeName property in ObjectDataSource \u2018\u2026\u2019\" class=\"read-more\" href=\"https:\/\/blog.fvinhas.com\/index.php\/2012\/08\/15\/could-not-find-a-property-named-on-the-type-specified-by-the-dataobjecttypename-property-in-objectdatasource\/\" aria-label=\"Read more about Could not find a property named \u2018\u2026 \u2018 on the type specified by the DataObjectTypeName property in ObjectDataSource \u2018\u2026\u2019\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[30,57,58,60,72],"class_list":["post-157","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-dataobjectrypename","tag-named","tag-not-find","tag-objectdatasource","tag-proporty"],"_links":{"self":[{"href":"https:\/\/blog.fvinhas.com\/index.php\/wp-json\/wp\/v2\/posts\/157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.fvinhas.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fvinhas.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fvinhas.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fvinhas.com\/index.php\/wp-json\/wp\/v2\/comments?post=157"}],"version-history":[{"count":0,"href":"https:\/\/blog.fvinhas.com\/index.php\/wp-json\/wp\/v2\/posts\/157\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.fvinhas.com\/index.php\/wp-json\/wp\/v2\/media?parent=157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fvinhas.com\/index.php\/wp-json\/wp\/v2\/categories?post=157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fvinhas.com\/index.php\/wp-json\/wp\/v2\/tags?post=157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}