{"id":472,"date":"2006-10-01T17:03:37","date_gmt":"2006-10-01T17:03:37","guid":{"rendered":"http:\/\/osmeusapontamentos.com\/?p=472"},"modified":"2006-10-01T17:03:37","modified_gmt":"2006-10-01T17:03:37","slug":"problemas-basico-csla","status":"publish","type":"post","link":"https:\/\/osmeusapontamentos.com\/index.php\/2006\/10\/01\/problemas-basico-csla\/","title":{"rendered":"Problemas b\u00e1sico CSLA"},"content":{"rendered":"<p><a href=\"http:\/\/forums.lhotka.net\/forums\/thread\/1978.aspx\">Dataportal.Create failed<\/a><br \/>\nYou need to override the DataPortal_Create method.<\/p>\n<p><a href=\"http:\/\/forums.lhotka.net\/forums\/thread\/5114.aspx\">Overriding AddNewCore<\/a><br \/>\nWhen you override AddNewCore, is anyone raising the AddingNew event?<br \/>\nIn your collection class, are you overriding AddNewCore?\u00a0 It should look similar to this:<\/p>\n<p><a href=\"http:\/\/forums.lhotka.net\/forums\/thread\/6651.aspx\">Problem get Datagrid to work<\/a><br \/>\nIn your collection class, are you overriding AddNewCore?\u00a0 It should look similar to this:<br \/>\nprotected override AddNewCore() {<br \/>\nTimeCardEntry entry;<\/p>\n<p>entry = TimeCardEntry.NewTimeCardEntry();<br \/>\nOnAddingNew( new AddingNewEventArgs( entry ) );<\/p>\n<p>Add( entry );<\/p>\n<p>return entry;<br \/>\n}<\/p>\n<p><a href=\"http:\/\/forums.lhotka.net\/forums\/thread\/6050.aspx\">Address Line Disappearing on Datagrid<\/a><br \/>\nI found the problem.\u00a0 Because my ID for my object is the Primary Key from a table in Ms SQL2005, I didn&#8217;t put a value in for the Object Id.\u00a0 So every new object had an Id of zero (0).\u00a0 So when ever you were on a new line and you went into edit mode and cancelled it, the code would remove every object with an Id of zero because that Id matched the object that was created for the line that you started editing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dataportal.Create failed You need to override the DataPortal_Create method. Overriding AddNewCore When you override AddNewCore, is anyone raising the AddingNew event? In your collection class, are you overriding AddNewCore?\u00a0 It should look similar to this: Problem get Datagrid to work In your collection class, are you overriding AddNewCore?\u00a0 It should look similar to this: protected [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[536,555],"class_list":["post-472","post","type-post","status-publish","format-standard","hentry","category-ler-ver-ouvir-passear","tag-programacao","tag-referencia"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Problemas b\u00e1sico CSLA - Os Meus Apontamentos<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/osmeusapontamentos.com\/index.php\/2006\/10\/01\/problemas-basico-csla\/\" \/>\n<meta property=\"og:locale\" content=\"pt_PT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Problemas b\u00e1sico CSLA - Os Meus Apontamentos\" \/>\n<meta property=\"og:description\" content=\"Dataportal.Create failed You need to override the DataPortal_Create method. Overriding AddNewCore When you override AddNewCore, is anyone raising the AddingNew event? In your collection class, are you overriding AddNewCore?\u00a0 It should look similar to this: Problem get Datagrid to work In your collection class, are you overriding AddNewCore?\u00a0 It should look similar to this: protected [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/osmeusapontamentos.com\/index.php\/2006\/10\/01\/problemas-basico-csla\/\" \/>\n<meta property=\"og:site_name\" content=\"Os Meus Apontamentos\" \/>\n<meta property=\"article:published_time\" content=\"2006-10-01T17:03:37+00:00\" \/>\n<meta name=\"author\" content=\"Vitor Silva\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vitorsilva\" \/>\n<meta name=\"twitter:site\" content=\"@vitorsilva\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vitor Silva\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tempo estimado de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/osmeusapontamentos.com\\\/index.php\\\/2006\\\/10\\\/01\\\/problemas-basico-csla\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/osmeusapontamentos.com\\\/index.php\\\/2006\\\/10\\\/01\\\/problemas-basico-csla\\\/\"},\"author\":{\"name\":\"Vitor Silva\",\"@id\":\"https:\\\/\\\/osmeusapontamentos.com\\\/#\\\/schema\\\/person\\\/d508df9c3ffc8b4e64a18dbf0ba18dd8\"},\"headline\":\"Problemas b\u00e1sico CSLA\",\"datePublished\":\"2006-10-01T17:03:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/osmeusapontamentos.com\\\/index.php\\\/2006\\\/10\\\/01\\\/problemas-basico-csla\\\/\"},\"wordCount\":165,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/osmeusapontamentos.com\\\/#\\\/schema\\\/person\\\/d508df9c3ffc8b4e64a18dbf0ba18dd8\"},\"keywords\":[\"programa\u00e7\u00e3o\",\"referencia\"],\"articleSection\":[\"Ler\\\/ Ver\\\/ Ouvir\\\/ Passear\"],\"inLanguage\":\"pt-PT\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/osmeusapontamentos.com\\\/index.php\\\/2006\\\/10\\\/01\\\/problemas-basico-csla\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/osmeusapontamentos.com\\\/index.php\\\/2006\\\/10\\\/01\\\/problemas-basico-csla\\\/\",\"url\":\"https:\\\/\\\/osmeusapontamentos.com\\\/index.php\\\/2006\\\/10\\\/01\\\/problemas-basico-csla\\\/\",\"name\":\"Problemas b\u00e1sico CSLA - Os Meus Apontamentos\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/osmeusapontamentos.com\\\/#website\"},\"datePublished\":\"2006-10-01T17:03:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/osmeusapontamentos.com\\\/index.php\\\/2006\\\/10\\\/01\\\/problemas-basico-csla\\\/#breadcrumb\"},\"inLanguage\":\"pt-PT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/osmeusapontamentos.com\\\/index.php\\\/2006\\\/10\\\/01\\\/problemas-basico-csla\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/osmeusapontamentos.com\\\/index.php\\\/2006\\\/10\\\/01\\\/problemas-basico-csla\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\\\/\\\/osmeusapontamentos.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Problemas b\u00e1sico CSLA\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/osmeusapontamentos.com\\\/#website\",\"url\":\"https:\\\/\\\/osmeusapontamentos.com\\\/\",\"name\":\"Os Meus Apontamentos\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/osmeusapontamentos.com\\\/#\\\/schema\\\/person\\\/d508df9c3ffc8b4e64a18dbf0ba18dd8\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/osmeusapontamentos.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-PT\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/osmeusapontamentos.com\\\/#\\\/schema\\\/person\\\/d508df9c3ffc8b4e64a18dbf0ba18dd8\",\"name\":\"Vitor Silva\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-PT\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f81f58ad909e8a213ab0a690f6ed65e5c0e0e2274bf35ac49ff31d7988d483ce?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f81f58ad909e8a213ab0a690f6ed65e5c0e0e2274bf35ac49ff31d7988d483ce?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f81f58ad909e8a213ab0a690f6ed65e5c0e0e2274bf35ac49ff31d7988d483ce?s=96&d=mm&r=g\",\"caption\":\"Vitor Silva\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f81f58ad909e8a213ab0a690f6ed65e5c0e0e2274bf35ac49ff31d7988d483ce?s=96&d=mm&r=g\"},\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/vitormrsilva\",\"https:\\\/\\\/x.com\\\/vitorsilva\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Problemas b\u00e1sico CSLA - Os Meus Apontamentos","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/osmeusapontamentos.com\/index.php\/2006\/10\/01\/problemas-basico-csla\/","og_locale":"pt_PT","og_type":"article","og_title":"Problemas b\u00e1sico CSLA - Os Meus Apontamentos","og_description":"Dataportal.Create failed You need to override the DataPortal_Create method. Overriding AddNewCore When you override AddNewCore, is anyone raising the AddingNew event? In your collection class, are you overriding AddNewCore?\u00a0 It should look similar to this: Problem get Datagrid to work In your collection class, are you overriding AddNewCore?\u00a0 It should look similar to this: protected [&hellip;]","og_url":"https:\/\/osmeusapontamentos.com\/index.php\/2006\/10\/01\/problemas-basico-csla\/","og_site_name":"Os Meus Apontamentos","article_published_time":"2006-10-01T17:03:37+00:00","author":"Vitor Silva","twitter_card":"summary_large_image","twitter_creator":"@vitorsilva","twitter_site":"@vitorsilva","twitter_misc":{"Escrito por":"Vitor Silva","Tempo estimado de leitura":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/osmeusapontamentos.com\/index.php\/2006\/10\/01\/problemas-basico-csla\/#article","isPartOf":{"@id":"https:\/\/osmeusapontamentos.com\/index.php\/2006\/10\/01\/problemas-basico-csla\/"},"author":{"name":"Vitor Silva","@id":"https:\/\/osmeusapontamentos.com\/#\/schema\/person\/d508df9c3ffc8b4e64a18dbf0ba18dd8"},"headline":"Problemas b\u00e1sico CSLA","datePublished":"2006-10-01T17:03:37+00:00","mainEntityOfPage":{"@id":"https:\/\/osmeusapontamentos.com\/index.php\/2006\/10\/01\/problemas-basico-csla\/"},"wordCount":165,"commentCount":0,"publisher":{"@id":"https:\/\/osmeusapontamentos.com\/#\/schema\/person\/d508df9c3ffc8b4e64a18dbf0ba18dd8"},"keywords":["programa\u00e7\u00e3o","referencia"],"articleSection":["Ler\/ Ver\/ Ouvir\/ Passear"],"inLanguage":"pt-PT","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/osmeusapontamentos.com\/index.php\/2006\/10\/01\/problemas-basico-csla\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/osmeusapontamentos.com\/index.php\/2006\/10\/01\/problemas-basico-csla\/","url":"https:\/\/osmeusapontamentos.com\/index.php\/2006\/10\/01\/problemas-basico-csla\/","name":"Problemas b\u00e1sico CSLA - Os Meus Apontamentos","isPartOf":{"@id":"https:\/\/osmeusapontamentos.com\/#website"},"datePublished":"2006-10-01T17:03:37+00:00","breadcrumb":{"@id":"https:\/\/osmeusapontamentos.com\/index.php\/2006\/10\/01\/problemas-basico-csla\/#breadcrumb"},"inLanguage":"pt-PT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/osmeusapontamentos.com\/index.php\/2006\/10\/01\/problemas-basico-csla\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/osmeusapontamentos.com\/index.php\/2006\/10\/01\/problemas-basico-csla\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/osmeusapontamentos.com\/"},{"@type":"ListItem","position":2,"name":"Problemas b\u00e1sico CSLA"}]},{"@type":"WebSite","@id":"https:\/\/osmeusapontamentos.com\/#website","url":"https:\/\/osmeusapontamentos.com\/","name":"Os Meus Apontamentos","description":"","publisher":{"@id":"https:\/\/osmeusapontamentos.com\/#\/schema\/person\/d508df9c3ffc8b4e64a18dbf0ba18dd8"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/osmeusapontamentos.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-PT"},{"@type":["Person","Organization"],"@id":"https:\/\/osmeusapontamentos.com\/#\/schema\/person\/d508df9c3ffc8b4e64a18dbf0ba18dd8","name":"Vitor Silva","image":{"@type":"ImageObject","inLanguage":"pt-PT","@id":"https:\/\/secure.gravatar.com\/avatar\/f81f58ad909e8a213ab0a690f6ed65e5c0e0e2274bf35ac49ff31d7988d483ce?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f81f58ad909e8a213ab0a690f6ed65e5c0e0e2274bf35ac49ff31d7988d483ce?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f81f58ad909e8a213ab0a690f6ed65e5c0e0e2274bf35ac49ff31d7988d483ce?s=96&d=mm&r=g","caption":"Vitor Silva"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/f81f58ad909e8a213ab0a690f6ed65e5c0e0e2274bf35ac49ff31d7988d483ce?s=96&d=mm&r=g"},"sameAs":["https:\/\/www.linkedin.com\/in\/vitormrsilva","https:\/\/x.com\/vitorsilva"]}]}},"_links":{"self":[{"href":"https:\/\/osmeusapontamentos.com\/index.php\/wp-json\/wp\/v2\/posts\/472","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/osmeusapontamentos.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/osmeusapontamentos.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/osmeusapontamentos.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/osmeusapontamentos.com\/index.php\/wp-json\/wp\/v2\/comments?post=472"}],"version-history":[{"count":0,"href":"https:\/\/osmeusapontamentos.com\/index.php\/wp-json\/wp\/v2\/posts\/472\/revisions"}],"wp:attachment":[{"href":"https:\/\/osmeusapontamentos.com\/index.php\/wp-json\/wp\/v2\/media?parent=472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/osmeusapontamentos.com\/index.php\/wp-json\/wp\/v2\/categories?post=472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/osmeusapontamentos.com\/index.php\/wp-json\/wp\/v2\/tags?post=472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}