APEX_APPLICATION. G_F01. Count remains 0
I have,
My main requirement is table based on IR o/p upsert. But I realized that my pl/sql block was not in the loop as long as APEX_APPLICATION. G_F01. Count; down to 0.
That is why I changed my DA as below which shows that the count is always 0.
declare
Number DEFAULT_THRESHOLD: = 95;
x number;
Start
x: = APEX_APPLICATION. G_F01. Count;
insert into apex_imh_team.test_loop values (x);
commit;
END;
SQL > select * from apex_imh_team.test_loop;
COUNTY
----------
0
0
0
Request for IR:
Select apex_item.select_list_from_lov (1, case when (select count (DISKGROUP_NAME) in rep_user.) ASM_DG_THRESHOLD where HOST_NAME =: P2_HOST and DB_NAME =: P2_DB and DISKGROUP_NAME = a.DISKGROUP_NAME) = 0 then 95
other (indicate the THRESHOLD of rep_user. ASM_DG_THRESHOLD where HOST_NAME =: P2_HOST and DB_NAME =: P2_DB and DISKGROUP_NAME = a.DISKGROUP_NAME)
end, 'THRESHOLD_RANGE',: P13_THRSHOLD_SELECT_STATUS, p_show_null = > 'NO', p_show_extra = > 'NO') THRESHOLD.
TIMESTAMP, DISKGROUP_NAME, APEX_ITEM. Hidden(2,DISKGROUP_NAME) DG_HIDDEN, sum (round(DISK_TOTAL_SIZE_GB,2)) 'TOTAL GB", sum (round(DISK_FREE_SIZE_GB,2))"GB FREE",
(round ((sum (round(DISK_TOTAL_SIZE_GB,2)) - sum (round(DISK_FREE_SIZE_GB,2))) /sum (round(DISK_TOTAL_SIZE_GB,2)) * 100, 2)) "USED PCT.
of rep_user. ASM_DETAILS_CENTRAL one
where HOST_NAME =: P2_HOST
and DB_NAME =: P2_DB
Group of TIMESTAMP, DISKGROUP_NAME
order by 5 desc;
Am I missing something here?
Kind regards
Meet.
user8862264 wrote:
Please update your forum profile with a recognizable username instead of "user8862264": Video tutorial how to change username available
Always include detailed information here when you post a question.
My main requirement is table based on IR o/p upsert. But I realized that my pl/sql block was not in the loop as long as APEX_APPLICATION. G_F01. Count; down to 0.
That is why I changed my DA as below which shows that the count is always 0.
declare
Number DEFAULT_THRESHOLD: = 95;
x number;
Start
x: = APEX_APPLICATION. G_F01. Count;
insert into apex_imh_team.test_loop values (x);
commit;
END;
SQL > select * from apex_imh_team.test_loop;
COUNTY
----------
0
0
0
Request for IR:
Select apex_item.select_list_from_lov (1, case when (select count (DISKGROUP_NAME) in rep_user.) ASM_DG_THRESHOLD where HOST_NAME =: P2_HOST and DB_NAME =: P2_DB and DISKGROUP_NAME = a.DISKGROUP_NAME) = 0 then 95
other (indicate the THRESHOLD of rep_user. ASM_DG_THRESHOLD where HOST_NAME =: P2_HOST and DB_NAME =: P2_DB and DISKGROUP_NAME = a.DISKGROUP_NAME)
end, 'THRESHOLD_RANGE',: P13_THRSHOLD_SELECT_STATUS, p_show_null => 'NO', p_show_extra => 'NO') THRESHOLD.
TIMESTAMP, DISKGROUP_NAME, APEX_ITEM. Hidden(2,DISKGROUP_NAME) DG_HIDDEN, sum (round(DISK_TOTAL_SIZE_GB,2)) 'TOTAL GB", sum (round(DISK_FREE_SIZE_GB,2))"GB FREE",
(round ((sum (round(DISK_TOTAL_SIZE_GB,2)) - sum (round(DISK_FREE_SIZE_GB,2))) /sum (round(DISK_TOTAL_SIZE_GB,2)) * 100, 2)) "USED PCT.
of rep_user. ASM_DETAILS_CENTRAL one
where HOST_NAME =: P2_HOST
and DB_NAME =: P2_DB
Group of TIMESTAMP, DISKGROUP_NAME
order by 5 desc;
Am I missing something here?
Generally, apex_application.g_fxx
values in the table are available in the page accept the procedure if the page is presented and therefore are not met when a dynamic action is executed (unless DA fills it first table).
Why do you use a dynamic action instead of submit page?
Tags: Database
Similar Questions
-
Problem with apex_application.g_f01
HII...
I have a table with a column 10.
How I would come to know which column has received what a picture...
like apex_application.g_f01, apex_application.g_f02, apex_application.g_f03...
I want to write a validation on slot form of table, then...
Please answer...Hello
Run the page and inspect the HTML source of the page
Kind regards
Jari -
APEX 4.2
Hello
If I have a report and using
Check in there as follows:
SELECT APEX_ITEM. "Select", CheckBox(1,ID)
CNAME, age
FROM table1
and then on display report button Delete is placed for deletion, if a check box is selected.
All these work very well, but I just want to know if no checkbox is enabled and but press the delete button and then
success message shows that I don't want? I tried to put certain conditions but does not work.
so, if APEX_APPLICATION. G_F01. COUNT is 0 or null, then it should display the error message?
Any idea please?
Thank you.
RI
Irha10 wrote:
so, if APEX_APPLICATION. G_F01. COUNT is 0 or null, then it should display the error message?
Any idea please?
Create a validation of Expression PL/SQL using the expression
apex_application.g_f01 is not null
and apex_application.g_f01.count > 0Subordinate validation on the delete key.
-
Problem with APEX_APPLICATION. G_F01. COUNTY
I'm on 5 APEX and trying to loop through the lines of an interactive report with a after submit process Page.
I added an item hidden in my SQL IR:
Select empno,
"' < input type ="hidden"value =" "|" EmpNo | "" "name ="f01">"as "STUDENT_LIST"
WCP
I created a button on the page with the Submit Page action
I create a Page process (Point after Submit - once a page visit) who uses apex_application.g_f01. COUNTY, but for some reason apex_application.g_f01. COUNTY is not defined. So my if LOOP don't process (see code below). Something was changing in APEX5 with apex_application.gxx.count that would prevent this from working?
DECLARE
l_dcid emp.empno%TYPE;
BEGIN
If apex_application.g_f01. COUNT > 0 then null;
BECAUSE me in 1... apex_application.g_f01. COUNTING LOOP
l_dcid: = apex_application.g_f01 (i);
insert into mytable (DCID) values (l_dcid);
END LOOP;
on the other
null;
end if;
END;
Hi bobmagan,
First edit this query:
Select empno,
'"like"STUDENT_LIST"
WCP
to something like this:
SELECT EMPNO , APEX_ITEM.HIDDEN(1,EMPNO)||ENAME AS ENAME FROM EMP
As you use a tag of entry in your query above, APEX will not be able to save it with APEX_APPLICATION session. G_FXX berries.
Reference: See the example of application and treatment of samples given below the API APEX_ITEM. HIDDEN
Change the column with APEX_ITEM attribute. HIDDEN, display as-> Standard report column
Reference: If you do not find the column attribute Standard report see the following thread: APEX_ITEM. Question CHECKBOX2 in apex 5
Finally, change your process of:
DECLARE
l_dcid emp.empno%TYPE;
BEGIN
If apex_application.g_f01. COUNT > 0 then null;
BECAUSE me in 1... apex_application.g_f01. COUNTING LOOP
l_dcid: = apex_application.g_f01 (i);
insert into mytable (DCID) values (l_dcid);
END LOOP;
on the other
null;
end if;
END;
to do this:
BEGIN FOR i in 1 .. apex_application.g_f01.COUNT LOOP insert into mytable (DCID) values (apex_application.g_f01(i)); END LOOP; END;
See the example for treatment in documentation APEX_ITEM. HIDDEN api.
I hope this helps!
Kind regards
Kiran
-
Remove the table if the value not in APEX_APPLICATION. G_f01?
Hello again!
I have an apex_application.g_f01 that contains the values in the boxes, now I want apex to remove rows from the table that contains values that are not present in the G_f01 (what are disabled) on submit.
I can't understand the sql code to do this, could someone give an example?
This can be a simple thing, but I'm getting confused a lot with sql, maybe because I just php and java.
EgaSega wrote:
I have an apex_application.g_f01 that contains the values in the boxes, now I want apex to remove rows from the table that contains values that are not present in the G_f01 (what are disabled) on submit.
I can't understand the sql code to do this, could someone give an example?
This can be a simple thing, but I'm getting confused a lot with sql, maybe because I just php and java.
One possibility would be to create a collection of APEX containing key checked values and use that as the source of the lines to be kept in the SQL delete. Something like:
begin apex_collection.create_or_truncate_collection('CHECKED_VALUES'); for i in 1..apex_application.g_f01.count loop apex_collection.add_member( p_collection_name => 'CHECKED_VALUES' , p_c001 => apex_application.g_f01(i)); end loop; delete from t where not exists (select null from apex_collections c where collection_name = 'CHECKED_VALUES' and c.c001 = t.id); end;
-
Access APEX_APPLICATION. G_F01 in a SQL query for a report
APEX 4.0.2.00.07
I have a standard report with check boxes. The SQL along the lines of:
Then I have another report below, I want to drive based on the items checked in the first report. I know that the values of the checkbox in the APEX_APPLICATION. Collection of G_F01. Normally, these are accessible using pl/sql such as:SELECT APEX_ITEM.CHECKBOX(1,empno,'CHECKED') " ", ename, job FROM emp
But is it possible that I can access the collection from the sql for my second report.FOR I in 1..APEX_APPLICATION.G_F01.COUNT LOOP DELETE FROM emp WHERE empno = to_number(APEX_APPLICATION.G_F01(i)); END LOOP;
that is, I want my sql to be something like:
I was hoping that the collection box would be available in the APEX_COLLECTIONS view, but it doesn't seem to be there.SELECT empno, day_of_service FROM emp_timesheet WHERE emp_no in <get access to the collection here>
Thank you
JohnJohn,
If the goal is to keep the values checked for another treatment then you could add them to a collection yourself.
create a process on your page that looks like this:
This will create your collection if not exist or don't delete everything currently in it if it exists and then insert your new selections.DECLARE l_col_name varchar2(30) := 'EMP_SELECTED'; BEGIN apex_collection.create_or_truncate_collection(l_col_name); FOR I in 1..APEX_APPLICATION.G_F01.COUNT LOOP apex_collection.add_member( l_col_name, to_number(APEX_APPLICATION.G_F01(i)) ); END LOOP; END;
your second question might look like this:
SELECT empno, day_of_service FROM emp_timesheet WHERE empno in (select C001 empno from apex_collections ac where ac.collection_name = 'EMP_SELECTED')
Edit
Some people choose to create a view of some collection queries ontop that will be repeated throughout the application so we can justcreate view selected_emps as select C001 empno from apex_collections ac where ac.collection_name = 'EMP_SELECTED'
and your new query will look like:
SELECT empno, day_of_service FROM emp_timesheet WHERE empno in (select empno from selected_emps)
See you soon,.
Janet Tyson
Published by: Tyson Janet on April 6, 2011 10:37
-
I have box implemented as a column of report on an APEX report page. I try to access control values in a PLSQL process using APEX_APPLICATION. G_F01. It works very well in an OnSubmit Page process, but does not return a value if used in dynamic action. I think that APEX_APPLICATION. G_F01 returns the values checked only on the page. Is it all work around I can extract the values checked in dynamic action that is triggered by the change of box event.
Thanks in advance
Hina
Hi HIna,
I created an example for you
https://Apex.Oracle.com/pls/Apex/f?p=245:11
Steps are below:
1. report query
Select
apex_item. CheckBox2 (1, empno) empno, ename, sal from emp;
2 dynamic Action:
var arr_f01 = [];
() $("input[name='f01']:checked").each
function() {}
arr_f01.push ($(this).) Val());
});
Alert (arr_f01);
(apex). Server.Process
'PROCESS_CHECKED '.
, {f01: arr_f01}
, {dataType: "text"}
, success: {function (pData)}
Alert ('data inserted into the Temp Table');
} }
);
3. the application process:
Start
I'm looping 1.apex_application.g_f01.count
insert into temporary values (APEX_APPLICATION. G_F01 (i));
commit;
end loop;
end;
It works for me. The only change I see in my and your query is of the Data Type in apex.server.process. I assume that the default is JSON, you need to change to 'text '.
-
Hello
Apex 4.2
I have a standard report. I want to access the values in this report of pl/sql using the table in apex_application.g_f01. However, apex_application.g_f01.count will return as 0.
I'm clearly missing something, the column probably not interested stores its values in session state, even when I put the column "Show as text (save session state)", it is indifferent.
Please can someone point me in the right direction?
Thank you
Ralph
Hi Richard,
Well. I can see that your works. Mine, not so much. I created a new page, copy exactly what you had (changes in names of tables and columns in the query). The only thing that is different is the model of the report where you have "standard region" and I "reporting area"... I don't have the option for a 'standard' region But when I got it as 'Empty Region' the dynamic event refused to fire at all...
But alas the .count will return as 0... yet.
Now a big difference seems to be that real output in the report for you perfect where you concatenated the apex_item.hidden. However, mine is full tags. for example
H Source of the request is
Select
subject_id,
apex_item. Hidden(1,subject_id) | subject_type as subject_type,
subject_name
topics
That is generated by this query. So this may be something to do with it? I don't know how to get those not hidden tags to display. Maybe its to do with the model of region of report...
-
Hello
I am trying to build a report from SQL query using the query below:
------------------------
Select
APEX_ITEM. SELECT_LIST (1, 'NULL',' Yes;) Y, no.; Select approval; NULL') "approve."
INT_ADJ_SK,
JOURNAL_ID,
CUSTOMER_TYPE
of REV_INTERNAL_ADJUSTMENT
where APPROVE_IND is NULL;
------------------------
My present after process is as below:
------------------------
DECLARE
Article NUMBER;
BEGIN
BECAUSE me in 1.APEX_APPLICATION. G_F01. COUNTY
LOOP
agenda: = to_number (APEX_APPLICATION. G_F01 (i));
IF APEX_APPLICATION. G_F01 (i) = "Y" THEN
UPDATE REV_INTERNAL_ADJUSTMENT
SET APPROVE_IND = 'Y' where INT_ADJ_SK = APEX_APPLICATION. G_F02 (Item);
END IF;
IF APEX_APPLICATION. G_F01 (i) = n THEN
UPDATE REV_INTERNAL_ADJUSTMENT
SET APPROVE_IND = ' no where INT_ADJ_SK = APEX_APPLICATION. G_F02 (Item);
END IF;
END LOOP;
COMMIT;
END;
------------------------
However, I get the error message: ORA-06502: PL/SQL: digital or value error: character of number conversion error
Please help as I am unable to find a solution to this.
Thanks in advance,
RahulHello
Just a hidden column can help you that the value of INT_ADJ_SK:
select APEX_ITEM.SELECT_LIST(1,'NULL','Yes;Y,No;N,Select Approval;NULL') "Approve", APEX_ITEM.HIDDEN(2,INT_ADJ_SK) || INT_ADJ_SK, JOURNAL_ID, CUSTOMER_TYPE from REV_INTERNAL_ADJUSTMENT where APPROVE_IND is NULL
Note that any value you give for the attribute p_idx for functions in package APEX_ITEM that they are used in APEX_APPLICATION. G_Fxx refer.
For example:APEX_ITEM.SELECT_LIST(1,'NULL','Yes;Y,No;N,Select Approval;NULL')
will designate as an array of:
APEX_APPLICATION.G_F01(i)
Reference:
APEX_ITEM:http://download.Oracle.com/docs/CD/E17556_01/doc/apirefs.40/e15519/apex_item.htm#CACEEEJE
APEX_APPLICATION:
http://download.Oracle.com/docs/CD/E17556_01/doc/apirefs.40/e15519/apex_app.htm#CHDDADIE
Your after submit the process would be:
BEGIN FOR i in 1..APEX_APPLICATION.G_F01.COUNT LOOP IF APEX_APPLICATION.G_F01(i) = 'Y' THEN UPDATE REV_INTERNAL_ADJUSTMENT SET APPROVE_IND = 'Y' where INT_ADJ_SK = APEX_APPLICATION.G_F02(i); END IF; IF APEX_APPLICATION.G_F01(i) = 'N' THEN UPDATE REV_INTERNAL_ADJUSTMENT SET APPROVE_IND = 'N' where INT_ADJ_SK = APEX_APPLICATION.G_F02(i); END IF; END LOOP; COMMIT; END
I hope that helps!
Kind regards
Kiran -
validations in APEX_APPLICATION. G_Fxx (i)
Hello
I use APEX 3.2. There is a column in a table with the fields: number of statement Date (Calendar), Amount (number), (varchar2).
I'm doing some validations my slot shape:
In order to avoid nulls for the column amoutn, so I used, validation of levels Page-> PL/SQL-> function returns the error text
BEGIN
BECAUSE me in 1.APEX_APPLICATION. G_F05. COUNTY
LOOP
IF APEX_APPLICATION. G_F05 (i) is null
THEN
RETURN to "Please enter a valid amount";
END IF;
END LOOP;
END;
The above is a simple validation palin and it works for me. But I don't know how I can validate the date, the user will not be able to enter a date that is greater than the current date. This is the calendar only, to assume that if they enter manually, this date must be in this format DD-MON-YYYY.
Similarly, amount and report number cannot be zero, one or more negative numbers.
Please help me with the validation.
Thank you
Published by: Suzi Sep 21, 2010 12:02 AMHi Suzi,
This must be a level of Page validation, no question of level.
I have not test the code before posting, then there are a few typos. But I guess you fixed them as you did run.
The basic logic is correct in my opinion. I'm writing again code not tested once again, see if it works.DECLARE v_date date; v_num number; v_msg varchar2(4000) := null; -- new variable BEGIN --FOR i in 1..APEX_APPLICATION.G_F05.COUNT LOOP FOR i in 1..APEX_APPLICATION.G_F01.COUNT LOOP -- using f01 in place of f05 BEGIN SELECT TO_DATE(APEX_APPLICATION.G_F01(i),'DD-MON-YYYY') INTO V_DATE FROM DUAL; IF V_DATE > TRUNC(SYSDATE) THEN --RETURN 'Date cannot be in the future.'; v_msg := 'Date cannot be in the future.'; exit; END IF; EXCEPTION WHEN OTHERS THEN -- RETURN 'Please enter a date in valid format '; v_msg := 'Please enter a date in valid format '; exit; END; BEGIN SELECT TO_NUMBER(NVL(APEX_APPLICATION.G_F02(i),'0')) INTO V_NUM -- added the missing right parenthesis FROM DUAL; IF V_NUM <= 0 THEN -- RETURN 'Enter an amount greater then zero.'; v_msg := 'Enter an amount greater then zero.'; exit; END IF; EXCEPTION WHEN OTHERS THEN --RETURN 'Please enter a valid number in Amount '; v_msg := 'Please enter a valid number in Amount '; exit; END; END LOOP; RETURN v_msg; END;
Kind regards
Published by: Dominique 23 Sep, 2010 14:11
-
apex_application.g_f0X - how
I'm looking example of @ Dene.
http://Apex.Oracle.com/pls/OTN/f?p=31517:214:4482592621033283:no
and cannot help but wonder how to identify what is apex_application.g_f0 * X * I need to use in my page?
How this can be done, if I do not form automatically generate?Hello again!
How about something like this in your process of page?
DECLARE v_err_rows VARCHAR2(255); v_err_msg VARCHAR2(255); BEGIN FOR i IN 1.. APEX_APPLICATION.G_F01.COUNT LOOP IF LENGTH(APEX_APPLICATION.G_F01(i)) > 10 THEN IF v_err_rows IS NULL THEN v_err_rows := i; ELSE v_err_rows := v_err_rows||' and '||i; END IF; END IF; END LOOP; IF v_err_rows IS NOT NULL THEN IF LENGTH(v_err_rows) > 1 THEN v_err_msg := 'Names on rows '||v_err_rows||' are just too damn long!'; ELSIF v_err_rows IS NOT NULL THEN v_err_msg := 'Name on row '||v_err_rows||' is just too damn long!'; END IF; END IF; IF v_err_msg IS NOT NULL THEN wwv_flow.show_error_message(v_err_msg); END IF; END;
See you soon
Ben
http://www.munkyben.WordPress.com
Don't forget to mark the answers useful or correct ;) -
Problem with APEX_APPLICATION. G_F02 (i)...
Hello
I'm having problems with my report. I put an extra column with checkboxes in my report. The meaning of these checkboxes must send an e-mail to all employees who are activated. And it works. He sends me emails on the right. But I put data in my email that comes from the report itself. I also have a column with a list of selection based on a lov with the language of the employee.
APEX_ITEM. SELECT_LIST_FROM_LOV (4, "TBL_WERKNEMERS". "LANGUAGEID", "lov_taalkeuze") 'LANGUAGE' "
In the report, the employee's language is automatically selected in the select list and it works too. (I need a select list so that the user can change the language, if necessary, otherwise I could get it to my database). But when I want to my value to determine the language to use, it is not always fair. When I select all ranks, it works. But when I check for example that the first and the fifth line, then the first language is correct, but for the fifth line, it takes the value of the second row in my report (which has not been verified).
That is how I call these values
BECAUSE me in 1.APEX_APPLICATION. G_F01. COUNTING LOOP
SELECT v_emailid FROM TBL_EMAIL where report = 'Test' and taalid = APEX_APPLICATION emailid. G_F04 (i);
END LOOP;
So I think that the values in my APEX_APPLICATION. G_F01 are right, because I get emails on the right. But the APEX_APPLICATION values. G_F02, APEX_APPLICATION. G_F03, APEX_APPLICATION. G_F04,... are not because I think that all the values are stored when I loop through them the value according to the variable 'i' is returned.
Someone know how I can get the right value?
Any help would be greatly appreciated.
Bram.Hello
The only way I can see that this work is have hidden instances of the EMPNO (or whatever the column that contains the user ID) and check these against the elements checked - the value of the check boxes would also EMPNO.
For example: [http://apex.oracle.com/pls/otn/f?p=267:97]
The SQL code for this is:
SELECT EMPNO, ENAME, APEX_ITEM.HIDDEN(1, EMPNO) || APEX_ITEM.HIDDEN(2, ENAME) || APEX_ITEM.CHECKBOX(3, EMPNO) TEST FROM V_EMP
ENAME and EMPNO are hidden as I want to use in the code in the process.
and the code of the process is:
DECLARE vSELECTED VARCHAR2(1000); BEGIN vSELECTED := ':'; FOR x IN 1..APEX_APPLICATION.G_F03.COUNT LOOP FOR y IN 1..APEX_APPLICATION.G_F01.COUNT LOOP IF APEX_APPLICATION.G_F03(x) = APEX_APPLICATION.G_F01(y) THEN vSELECTED := vSELECTED || APEX_APPLICATION.G_F02(y) || ':'; END IF; END LOOP; END LOOP; :P97_SELECTED := vSELECTED; END;
P97_SELECTED shows just the ENAME values for checked items. The code loops through the checkboxes and then loops through the hidden elements of EMPNO - when it finds a match, it creates a string of the values of ENAME.
Andy
-
Classic report - add the column "select box"?
I have a classic report and you want to add a column with a check box so that the user can select several lines and perform an action on all of the lines (delete selected, for example). Looks like it should be easy and maybe integrated features, but I don't find it. Is there a standard way to do this?
Steve
APEX 5.0
Hello
to add a box to your classic report using apex_item.checkbox like this API function:
select APEX_ITEM.CHECKBOX(p_idx=>1, p_value=>DEPTNO) as select_dept, DEPTNO as DEPTNO, DNAME as DNAME, LOC as LOC from DEPT
You can access the values checked (for example in a process page)
declare v_deleted_depts number := 0; begin FOR i in 1..APEX_APPLICATION.G_F01.count LOOP v_deleted_depts := v_deleted_depts + 1; delete from dept where deptno = APEX_APPLICATION.G_F01(i); END LOOP; :P1_DEPTCOUNT := v_deleted_depts; end;
P1_DEPTCOUNT (hidden) is just for later interaction with this procedure - for example, you want to present your users with a message of success and error custom as "Deleted & P1_DEPTCOUNT. departments. »
Maybe you would like to add an option to check all checkboxes at once. If so, read this blogpost Blog of Carl Backstrom: September 2007.
Kind regards
Pavel
Edit: don't forget to toggle the leak key for special characters not your column "checkbox.
-
Problem filling APEX 4.1 Collections
Using APEX 4.1
Oracle 11g
I'm having a devil of a time of filling of a multivalued collection. I can easily fill c001 but can't figure out how to get value c002. I checked the web, but I shouldn't be asking the question in the right way. Any help would be appreciated. It won't let me attach JPEG files so I hope I described it well.
I have a report that contains a check box, a link change, a number of store and a language.
A bank may have several languages.
< code >
SELECT apex_item.checkbox (1, WL. SELECT_STORE STORE_CD),
"EDIT_TZ,.
WL. STORE_CD,
L.LANGUAGE_NM,
etc...
< code >
I tried SELECT apex_item.checkbox (1, WL. STORE_CD, 2, L.LANGUAGE_NM) SELECT_STORE,
I tried apex_item.display_and_save (2,L.LANGUAGE_NM) language_nm
Using the checkboxes, populates a collection and redirects to a form of multi line edit.
in the processing of the page I have:
< code >
Start
apex_collection.create_or_truncate_collection ('store_list');
If apex_application.g_f01.count > 0 then
apex_collection.add_members ('store_list', apex_application.g_f01);
end if;
end;
< code >
I tried apex_collection.add_members ('store_list', apex_application.g_f01, apex_application.g_f02, apex_application.g_f03, apex_application.g_f04 ) and such and always get the same result
After redirection, I get to my form and it has all the records for each store (several languages), but I only need to edit and update a
Looking at the State of session, collections, I see two rows with c001 filled for each store.
Collection name sequence C001-C002
Store_list 1 - 15
Store_list 2 - 18
However, I would like to fill c002 bearing the name of the language, so I can use it as a filter on the form. something like this:
< code >
SELECT WL. STORE_CD,
L.LANGUAGE_NM,
S.CITY_NM,
S.ST_PRVN_CD,
WL. TIME_ZONE_NM,
WL. STATUS_DESC
OF MDM_DATA. MD_STORE_WEB_LANGUAGES WL, MDM_DATA. REF_WEB_LANGUAGES L, MDM_DATA. MD_STORE S, apex_collections c
WHERE WL. STORE_CD = S.STORE_CD (+)
AND WL. L.LANGUAGE_ID = OPPORTUNITY
and c.c001 = s.store_cd
and c.c002 = l.language_nm
and c.collection_name = 'STORE_LIST. '
< code >
Thanks for the reply. I read all the Oracle documentation on collections, but it's like reading a dictionary. Good information but nothing on how to use it in a sentence. Thanks for placing it in a sentence. I'll work with that and see if I can get him.
-
How to create a process of erasure for sub form of table
Hello
I created two applications and they share the same DB schema to apex.oraclecorp.com.
One is app purchase order, when user enter 'Purchase requisition number' and select ' ERT HW/Item ID: HW/Item Name.
and click 'apply changes' in the tabular presentation, the other app in 3rd screenshot, automatically updated data with the ID of the item selected with the "purchase requisition number.
I did it with the following code in the first screenshot.
I would like to know how to create a delete for this process?
Does it mean that when I delete one of the item in purchase order app, another application can update the article with this number of requisition (PRM) as null?
How to specify the item I checked to remove?
Thank you!
Alice
Hi AliceFan-Oracle,
AliceFan-Oracle wrote:
I read the thread of the solution you provided. But I think that my case is different.
I therefore reproduce my apex.com case.
In the page of the order, I create a process of "Apply change" button, so when you select item ERT ID and press the button 'apply changes', the process will update the column 'PURCHASE_REQUEST_NUMBER' in the table 'ERT_TABLE_ITEM '.
So it works on the button 'Apply Changes' that hope you that it works and you want to reproduce the same thing for the button 'delete '? as mentioned below:
So my question is how to create a deletion process, then click on the button Delete, the application of 'buy' in the article ERT Table number must be removed while the selected item with ID ERT point in the purchase order page is deleted?
Check your Application 81653 - Page 3.
Made the following changes:
- Created a process of PL/SQL 'Remove the PRM in ERT_ITEM_TABLE' as follows:
Declare j number; Begin For i IN 1 .. apex_application.g_f01.count LOOP j := apex_application.g_f01(i); Update ERT_TABLE_ITEM SET PURCHASE_REQUEST_NUMBER = null Where ERT_ITEM_ID = apex_application.g_f30(j); END LOOP; End;
- Subordinate the process of 'Remove the PRM in ERT_ITEM_TABLE' to 'Remove' button request: MULTI_ROW_DELETE
- Re-sequenced process so that the process of 'Remove the PRM in ERT_ITEM_TABLE' runs before "ApplyMRD".
Kind regards
Kiran
Maybe you are looking for
-
IO use the Mail app. MI living often che dopo avere delle e-mail, the avatar.3D.DVDSCR.XviD received e poi out the application. Quando riapro app, pero, are ricaricate Como no lette, anche che avevo letto/eliminato precedentemente e-mail. E una cosa
-
Equium M50-216: cannot save or use the microphone or "phone entries
I have an Equium M50-216, with 1 GB of RAM & Centrino 1.7 GHz processor, running XP Home. Without apparent reason, I am suddenly unable to use my SKYPE USB ' phone to talk. Audio output is perfect, however. I also tried my helmet using the jack on th
-
Updated to iOS 9.3 - problems with
Hi, I upgraded my iPhone to iOS 9.3 6 and have these problems: when I get an e-mail or whatsapp I get two identical notifications on my screen and the application icon does not unread messages. Does anyone have the same problem? Any idea on how to so
-
HP Pavilion g125ds 17: HP Pavilion g125ds 17
It bought nine and Win10 of hatred. Wipe the disk and put Win7 Ultimate on and nothing works, no USBs, no Ethernet, NOTHING. I downloaded ALL the drivers for Win 7 and Win 10 and still NOTHING! I have to burn it to a cd/dvd, because nothing works...
-
How to find a file of the fragment and repairor remove the file from the computer?
I ran a fragmentation of the disk on my Dell windows XP and that you have a sparse file, I don't know where to find to fix or thiseven needs my attention?