{"id":901,"date":"2015-09-16T12:08:30","date_gmt":"2015-09-16T10:08:30","guid":{"rendered":"http:\/\/oracle.malin.pl\/?p=901"},"modified":"2015-09-16T13:22:42","modified_gmt":"2015-09-16T11:22:42","slug":"ustawienie-zmiana-kontekstu-aplikacji","status":"publish","type":"post","link":"https:\/\/oracle.malin.pl\/?p=901","title":{"rendered":"Ustawienie \/ zmiana kontekstu aplikacji w PL\/SQL"},"content":{"rendered":"<pre lang=\"PLSQL\">\r\nSELECT USER_ID,\r\n  RESPONSIBILITY_ID,\r\n  RESPONSIBILITY_APPLICATION_ID\r\nFROM FND_USER_RESP_GROUPS\r\nWHERE USER_ID =\r\n  (SELECT USER_ID FROM FND_USER WHERE USER_NAME = '&user_name')\r\nAND RESPONSIBILITY_ID =\r\n  (SELECT RESPONSIBILITY_ID\r\n  FROM FND_RESPONSIBILITY_VL\r\n  WHERE RESPONSIBILITY_NAME = '&resp_name'\r\n  );\r\n\r\n-- Je\u017celi chcemy dynamicznie pobra\u0107 idki w zleceniu wsp\u00f3\u0142bie\u017cnym\r\nFND_GLOBAL.USER_ID\r\nFND_GLOBAL.RESP_ID\r\nFND_GLOBAL.RESP_APPL_ID\r\n--poni\u017csze wywo\u0142anie zlecenie samo wywo\u0142uje\r\n\r\nFND_GLOBAL.Apps_Initialize(FND_GLOBAL.USER_ID,FND_GLOBAL.RESP_ID,FND_GLOBAL.RESP_APPL_ID); \r\n\r\n--wykonanie\r\nPROMPT Initialize context of profiles, etc.\r\nPROMPT Note you can query the user id, responsibility id,\u00a0\r\nPROMPT and application id from the FND tables.\r\nexecute\u00a0fnd_global.APPS_INITIALIZE(UserID,ResponsibilityID,ApplicationID);\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>SELECT USER_ID, RESPONSIBILITY_ID, RESPONSIBILITY_APPLICATION_ID FROM FND_USER_RESP_GROUPS WHERE USER_ID = (SELECT USER_ID FROM FND_USER WHERE USER_NAME = '&#038;user_name&#8217;) AND RESPONSIBILITY_ID = (SELECT RESPONSIBILITY_ID FROM FND_RESPONSIBILITY_VL WHERE RESPONSIBILITY_NAME = '&#038;resp_name&#8217; ); &#8212; Je\u017celi chcemy dynamicznie pobra\u0107 idki w zleceniu wsp\u00f3\u0142bie\u017cnym FND_GLOBAL.USER_ID FND_GLOBAL.RESP_ID &hellip; <a href=\"https:\/\/oracle.malin.pl\/?p=901\">Czytaj dalej <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":38,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[40,88,97],"tags":[],"_links":{"self":[{"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=\/wp\/v2\/posts\/901"}],"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\/38"}],"replies":[{"embeddable":true,"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=901"}],"version-history":[{"count":9,"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=\/wp\/v2\/posts\/901\/revisions"}],"predecessor-version":[{"id":1185,"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=\/wp\/v2\/posts\/901\/revisions\/1185"}],"wp:attachment":[{"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=901"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=901"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=901"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}