oracle-apex

Redirect to url in new tab from plsql code

馋奶兔 提交于 2019-12-06 06:30:53
On button click action "Redirect to URL" I call below script: javascript:var a = window.open('f?p=300:99:&APP_SESSION.::NO:105:PARAM_1,PARAM_2,PARAM_3:&P99_PARAM_1.,P99_PARAM_2,&P99_PARAM_3.'); Is it possible call this from PLSQL in oracle apex application eg. begin //call here //htp.p(?? end; You can use APEX_UTIL.REDIRECT_URL for this. Check the documentation . Your pl/sql would then be (bind var syntax :P1_ITEM because it is pl/sql): BEGIN apex_util.redirect_url(p_url => 'f?p=300:99:'||:APP_SESSION||'::NO:105:PARAM_1,PARAM_2,PARAM_3:'||:P99_PARAM_1||','||:P99_PARAM_2||','||:P99_PARAM_3);

Oracle Apex Set values before moving to another page, Items are all null

痴心易碎 提交于 2019-12-06 05:55:55
I am trying to do the following: Anonymous user with a unique key enters a code and clicks 'Start Survey' The button needs to call a plsql process to populate some hidden page items. Once the values are set branch to the survey page which will use the hidden items for filtering results. The Problem No matter what I have tried so far the items set by the process are null when I get to the next page. I assume this is because it did not submit. The way I have it at the moment is: Button navigates to the next page New process set to when the button is pressed sets the values of the page items. By

Oracle Apex 5 Opening page in new window

南笙酒味 提交于 2019-12-06 04:28:51
I am using Oracle Apex 5. On the page i have two items that are filled out (dynamic actions automatically refresh an interactive report based on the values of those two items). Also i have a button PRINT which is supposed to open a new page and send the values of the two items. Since i want this new page to open in a new window(tab) i am doing it by making the action of the button redirect to url and entering this Javascript in the url: javascript:var myWindow = window.open('f p=800:105:&APP_SESSION.::NO::REP_NAME,PAR1_NAME,PAR1_VAL,PAR2_NAME,PAR2_VAL:NarudzbenicaDobavljacV2,P_ACCOUNT_ID,&P15

Change NLS Character set parameters on Oracle 11g XE

倾然丶 夕夏残阳落幕 提交于 2019-12-06 04:09:28
问题 I am using Oracle 11g Express Edition. Currently when I check NLS character set parameter using SELECT * FROM nls_database_parameters; it gives the default values: NLS_CHARACTERSET: AL32UTF8 NLS_NCHAR_CHARACTERSET: AL16UTF16 I want to set both these parameters to UTF8. How can I do so? I have just installed Oracle 11g XE, so there is not data except those required by Oracle itself. 回答1: This worked for me where an application was checking for UTF8 rather than AL32UTF8 . SQL> shutdown

getting Session state protection violation error for a hidden item that is being set with computation before header - Oracle APEX

给你一囗甜甜゛ 提交于 2019-12-05 15:01:21
I am trying to set the label of an item dynamically using the value of an other hidden item in the same page. I created a computation for the hidden item in the page and set the value of the item as the dynamic label - &P613_EMPLOYEE_TYPE_LABEL. But I am getting this error Session state protection violation: This may be caused by manual alteration of protected page item P613_EMPLOYEE_TYPE_LABEL. Technical Info (only visible for developers) is_internal_error: true apex_error_code: APEX.SESSION_STATE.ITEM_VALUE_PROTECTION component.type: APEX_APPLICATION_PAGES component.id: 149000000613

Apex 5.0: Show a progress bar while Database Action is performed

人走茶凉 提交于 2019-12-05 06:57:58
问题 Implementing a Waitbar or Progressbar In my Apex 5.0 application I have a SQL Update which is taking very long to process, and I want to implement an indicator to show that it is still running, so that the user won't start the action again. A progressbar would do the trick, can anyone suggest a way of doing so? (plugins aren't possible) 回答1: Just Change the action of your SUBMIT button to Dyanamic Action On dynamic action choose ON CLICK as Event .Choose Button for Selection Type and Choose

dynamically changing the APEX_ITEM. TEXT value in Oracle apex

江枫思渺然 提交于 2019-12-05 05:56:13
问题 I have an application where I have created classic report. it has 4 columns. SELECT KEY, APEX_ITEM.TEXT(6,attribute3,10) attribute3, APEX_ITEM.HIDDEN(3,KEY) || APEX_ITEM.TEXT(4,attribute1, 10) attribute1, APEX_ITEM.TEXT(5,attribute2, 10) attribute2 FROM table1 ; I want to dynamically change the value for attribute2 based on attribute1. attribute2 = attribute3*attribute1 , where attribute3 will be pre-fetched and attribute1 will be entered by user . I want to calculate attribute3 on-fly

Current version of data in database has changed since user initiated update process

假如想象 提交于 2019-12-04 21:40:59
I have a Master Detail form in my Oracle APEX application. When I am trying to update data in this form, I am getting below error. Current version of data in database has changed since user initiated update process. current row version identifier = "26D0923D8A5144D6F483C2B9815D07D3" application row version identifier = "1749BCD159359424E1EE00AC1C3E3FCB" (Row 1) I have cleared browser cache and try to update. But it not worked. How can I solve this? I have experienced similar problem where my detail records set has timestamp fields. By default master detail wizard creates the timestamp fields

Proxy_pass ignoring port

守給你的承諾、 提交于 2019-12-04 20:53:31
I have a CentOS server running NGINX listening to 80 and a DB servering an app on 8080. I want to be able to Type http://example.com/dev/abc and have it actually access http://example.com:8080/apex/abc or http://localhost:8080/apex/abc I have used this location configuration location /dev { proxy_pass http://example.com:8080/apex; } However when I try it out the url displayed is http://example.com/apex/apex the page is not found and the log says: 2018/06/14 12:51:33 [error] 7209#0: *2067 open() "/usr/share/nginx/html/apex/apex" failed (2: No such file or directory), client: 124.157.113.187,

How to Access APEX_ITEM.TEXTAREA Field Using APEX_APPLICATION.G_F01

时光总嘲笑我的痴心妄想 提交于 2019-12-04 16:22:24
I have the following tabular report using the following query: select id, name, telephone, apex_item.checkbox2(1,id) as "Tick when Contacted", apex_item.text(20,my_date) as "Date Contacted", apex_item.textarea(30,my_comment,5,80) as "Comment" from my_table This report displays 10 records where the driving key is the checkbox assigned to F01. My problem is, as this is a tabular report, using Oracle APEX_APPLICATION.G_F01.COUNT - how can I access the values of the textarea field, where "my_comment" is a user enterable value on the report and not from a database column/table? From what I can see,