{"id":1203,"date":"2016-01-15T08:57:10","date_gmt":"2016-01-15T06:57:10","guid":{"rendered":"http:\/\/oracle.malin.pl\/?p=1203"},"modified":"2016-01-21T13:07:53","modified_gmt":"2016-01-21T11:07:53","slug":"api-oe_fnd_attachments_pub-do-dodawania-kopiowania-zalacznikow","status":"publish","type":"post","link":"https:\/\/oracle.malin.pl\/?p=1203","title":{"rendered":"API Oe_Fnd_Attachments_Pub &#8211; do dodawania kopiowania za\u0142\u0105cznik\u00f3w"},"content":{"rendered":"<p>API Oe_Fnd_Attachments_Pub s\u0142u\u017cy do tworzenia i dodawania za\u0142\u0105cznik\u00f3w.<\/p>\n<p>1. Dodanie za\u0142\u0105cznika do formatki.<br \/>\n &#8211; Oe_Fnd_Attachments_Pub.Create_Short_Text_Document &#8211; utworzenie z\u0142\u0105cznika<br \/>\n &#8211; OE_FND_ATTACHMENTS_PUB.Add_Attachment &#8211; dodanie za\u0142\u0105cznika do formatki<\/p>\n<p>2. Kopiowanie za\u0142\u0105cznik\u00f3w z formatki na inna formatk\u0119.<br \/>\n &#8211; pseudo kod<\/p>\n<pre lang='PLSQL'>\r\n    l_OEXOEORD   VARCHAR2(100):='OE_ORDER_HEADERS';\r\n    l_ARXTWMAI   VARCHAR2(100):='RA_CUSTOMER_TRX';\r\n    v_tab oe_fnd_attachments_pub.Copy_Attachments_Tbl_Type;\r\nFOR rec IN get_invoices(l_request_id)\r\n    LOOP\r\n      v_tab(1).from_entity_name:=l_OEXOEORD;\r\n      v_tab(1).from_pk1_value  :=rec.header_id;\r\n      v_tab(1).to_entity_name  :=l_ARXTWMAI;\r\n      v_tab(1).to_pk1_value    :=rec.customer_trx_id;\r\n      Oe_Fnd_Attachments_Pub.Copy_Attachments( p_api_version => 1.0, p_copy_attachments_tbl =>v_tab );\r\n      commit;\r\n    END LOOP;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>API Oe_Fnd_Attachments_Pub s\u0142u\u017cy do tworzenia i dodawania za\u0142\u0105cznik\u00f3w. 1. Dodanie za\u0142\u0105cznika do formatki. &#8211; Oe_Fnd_Attachments_Pub.Create_Short_Text_Document &#8211; utworzenie z\u0142\u0105cznika &#8211; OE_FND_ATTACHMENTS_PUB.Add_Attachment &#8211; dodanie za\u0142\u0105cznika do formatki 2. Kopiowanie za\u0142\u0105cznik\u00f3w z formatki na inna formatk\u0119. &#8211; pseudo kod l_OEXOEORD VARCHAR2(100):=&#8217;OE_ORDER_HEADERS&#8217;; l_ARXTWMAI VARCHAR2(100):=&#8217;RA_CUSTOMER_TRX&#8217;; &hellip; <a href=\"https:\/\/oracle.malin.pl\/?p=1203\">Czytaj dalej <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":37,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[203,234,88],"tags":[],"_links":{"self":[{"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=\/wp\/v2\/posts\/1203"}],"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=1203"}],"version-history":[{"count":2,"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=\/wp\/v2\/posts\/1203\/revisions"}],"predecessor-version":[{"id":1205,"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=\/wp\/v2\/posts\/1203\/revisions\/1205"}],"wp:attachment":[{"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}