{"id":1338,"date":"2018-07-05T10:36:16","date_gmt":"2018-07-05T08:36:16","guid":{"rendered":"http:\/\/oracle.malin.pl\/?p=1338"},"modified":"2018-07-05T10:46:49","modified_gmt":"2018-07-05T08:46:49","slug":"oaf-tabela-dodanie-nowego-rekordu-do-tabeli","status":"publish","type":"post","link":"https:\/\/oracle.malin.pl\/?p=1338","title":{"rendered":"OAF &#8211; Tabela &#8211; dodanie nowego rekordu do tabeli"},"content":{"rendered":"<p>Przykad dla tabeli detail ( master->detail) dlatego jest pobranie viewlinka.<\/p>\n<pre lang=\"JAVA\"> \r\n  public void xxCreateAgentSetupLines() {\r\n    \r\n        ViewLink vl = getViewLink1();\r\n        OAViewObject childVO = (OAViewObject)vl.getDestination();\r\n        childVO.executeQuery();\r\n          \/\/   System.out.println( \"createRecordLines\" );\r\n\r\n        Row row = childVO.createRow();\r\n\r\n        childVO.last();\r\n        childVO.next();\r\n        childVO.insertRow(row);\r\n        childVO.setMaxFetchSize(1);\r\n        row.setNewRowState(Row.STATUS_INITIALIZED);\r\n\r\n    }\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Przykad dla tabeli detail ( master->detail) dlatego jest pobranie viewlinka. public void xxCreateAgentSetupLines() { ViewLink vl = getViewLink1(); OAViewObject childVO = (OAViewObject)vl.getDestination(); childVO.executeQuery(); \/\/ System.out.println( &#8222;createRecordLines&#8221; ); Row row = childVO.createRow(); childVO.last(); childVO.next(); childVO.insertRow(row); childVO.setMaxFetchSize(1); row.setNewRowState(Row.STATUS_INITIALIZED); }<\/p>\n","protected":false},"author":37,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[96],"tags":[58],"_links":{"self":[{"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=\/wp\/v2\/posts\/1338"}],"collection":[{"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1338"}],"version-history":[{"count":1,"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=\/wp\/v2\/posts\/1338\/revisions"}],"predecessor-version":[{"id":1339,"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=\/wp\/v2\/posts\/1338\/revisions\/1339"}],"wp:attachment":[{"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}