Request Express 5.0.0.00.31/Tabular form/number of lines
Hello
I would like to ask how to configure the number of lines displayed per page.
I did the below and also I tried to re-charge/reload, but impossible to get what I want.
Implement a tabular form
Set the presentation attributes of the State and the paging number of rows 50
Registered and run this page, it shows still 15 ranks in this page.
A I missed something? Or as a table don't allow no more than 15 lines be shown on 1 page?
Thank you.
Hello
Pagination settings are cached for the duration of the session. This change is visible immediately, close the session, restart the brower and connect again or manually re - request the page from the browser's address bar, adding the ClearCache position 'RP' in the URL.
Do not set anything in number of lines (point). This is used to identify an element of the page containing the number of lines to allow users to control this
(Note: If you think it answers your question, please mark it as correct answer.) This will help other users in the community)
Thank you
Benhamdia
Tags: Database
Similar Questions
-
Adding line by submitting the manual tabular form while adding lines
Hi all
I'm a newbie in the Apex.
I created a manual tabular form based on Apex_Collection. In addition, created the buttons ADD, DELETE and APPLY the CHANGES .
The data below are the steps that I did.
1 initialize the Collections
Process: When loading - before header
Enforcement process: once a Page visit
Source:
DECLARE l_collection_name APEX_COLLECTIONS.COLLECTION_NAME%TYPE; l_bind_names APEX_APPLICATION_GLOBAL.VC_ARR2; l_bind_values APEX_APPLICATION_GLOBAL.VC_ARR2; l_query VARCHAR2(32767); BEGIN l_collection_name := 'EMAILDETAILS'; IF apex_collection.collection_exists(l_collection_name) THEN apex_collection.delete_collection(p_collection_name => l_collection_name); END IF; l_query := ' SELECT cmp_cd, ' --c001 => f01 || ' email, ' --c002 => f02 || ' tab_seq_id, ' --c003 => f03 || ' NULL, ' --c004 => f04 || ' NULL, ' --c005 => f05 || ' NULL, ' --c006 => f06 || ' NULL, ' --c007 => f07 || ' NULL, ' --c008 => f08 || ' NULL, ' --c009 => f09 || ' NULL, ' --c010 => f10 || ' NULL, ' --c011 => f11 || ' NULL, ' --c012 => f12 || ' NULL, ' --c013 => f13 || ' NULL, ' --c014 => f14 || ' NULL, ' --c015 => f15 || ' NULL, ' --c016 => f16 || ' NULL, ' --c017 => f17 || ' NULL, ' --c018 => f18 || ' NULL, ' --c019 => f19 || ' NULL, ' --c020 => f20 || ' NULL, ' --c021 => f21 || ' NULL, ' --c022 => f22 || ' NULL, ' --c023 => f23 || ' NULL, ' --c024 => f24 || ' NULL, ' --c025 => f25 || ' NULL, ' --c026 => f26 || ' NULL, ' --c027 => f27 || ' NULL, ' --c028 => f28 || ' NULL, ' --c029 => f29 || ' NULL, ' --c030 => f30 || ' NULL, ' --c031 => f31 || ' NULL, ' --c032 => f32 || ' NULL, ' --c033 => f33 || ' NULL, ' --c034 => f34 || ' NULL, ' --c035 => f35 || ' NULL, ' --c036 => f36 || ' NULL, ' --c037 => f37 || ' NULL, ' --c038 => f38 || ' NULL, ' --c039 => f39 || ' NULL, ' --c040 => f40 || ' NULL, ' --c041 => f41 || ' NULL, ' --c042 => f42 || ' NULL, ' --c043 => f43 || ' NULL, ' --c044 => f44 || ' NULL, ' --c045 => f45 || ' NULL, ' --c046 => f46 || ' ''O'', ' --c047 (for record status) || ' wwv_flow_item.md5(cmp_cd, email, tab_seq_id) ' --c048 (for optimistic locking) --c049 for (not used in collection/reserevered for seq_id array) --c050 (not used in collection/reservered for delete checkbox array) || ' FROM Cmp_Email ' || ' WHERE cmp_cd= v(''P9_CMP_CD'') '; apex_collection.create_collection_from_query_b ( p_collection_name => l_collection_name, p_query => l_query ); IF :REQUEST = 'ADD' THEN APEX_COLLECTION.ADD_MEMBER(p_collection_name => l_collection_name); END IF; END;
2. tabular Guide
Type: SQL query
Source:
SELECT apex_item.hidden(4,c047,NULL,'f04_'|| '#ROWNUM#') || apex_item.hidden(5,c048,NULL,'f05_'|| '#ROWNUM#') || apex_item.hidden(6,seq_id,NULL,'f06_'|| '#ROWNUM#') || apex_item.hidden(3,c003,NULL,'f03_'|| '#ROWNUM#') || apex_item.hidden(1,c001,NULL,'f01_'|| '#ROWNUM#') || apex_item.checkbox( 7, seq_id, NULL, CASE WHEN c047 = 'D' THEN seq_id END, ':', 'f07_' || '#ROWNUM#' ) AS delete_checkbox, apex_item.text( 2, c002, 20, 50, NULL, 'f02_' || '#ROWNUM#' ) AS email_id FROM apex_collections WHERE collection_name ='EMAILDETAILS' ORDER BY c002
The buttons used:
1. name button: ADD
Action: send the Page
2 button name: DELETE
Action: send the Page
3 Collection page
Point process: present now - before the calculations and Validations
Enforcement process: once a Page visit
Source:
DECLARE l_collection_name APEX_COLLECTIONS.COLLECTION_NAME%TYPE; l_original_md5 VARCHAR2(32); l_latest_md5 VARCHAR2(32); BEGIN l_collection_name := 'EMAILDETAILS'; FOR x IN 1 .. apex_application.g_f06.count LOOP IF apex_application.g_f01(x) IS NOT NULL --ID exists, check to see if record was updated THEN SELECT c048 INTO l_original_md5 FROM apex_collections WHERE collection_name = l_collection_name AND seq_id = apex_application.g_f06(x); l_latest_md5 := wwv_flow_item.md5( apex_application.g_f01(x), apex_application.g_f02(x), apex_application.g_f03(x) ); IF l_original_md5 != l_latest_md5 THEN apex_collection.update_member( p_collection_name => l_collection_name, p_seq => apex_application.g_f06(x), p_c001 => apex_application.g_f01(x), p_c002 => apex_application.g_f02(x), p_c003 => apex_application.g_f03(x), p_c047 => 'U', p_c048 => apex_application.g_f05(x) ); END IF; ELSE --ID does not exist, must be new record apex_collection.update_member( p_collection_name => l_collection_name, p_seq => apex_application.g_f06(x), p_c001 => apex_application.g_f01(x), p_c002 => apex_application.g_f02(x), p_c003 => apex_application.g_f03(x), p_c047 => 'N', p_c048 => apex_application.g_f05(x) ); END IF; END LOOP; IF :REQUEST = 'DELETE' THEN FOR x IN 1 .. apex_application.g_f07.count LOOP apex_collection.update_member_attribute( p_collection_name => l_collection_name, p_seq => apex_application.g_f07(x), p_attr_number => '47', p_attr_value => 'D' ); END LOOP; END IF; END;
4. table collection
Point process: submit now - after calculations and Validations
Enforcement process: once a Page visit
Source:
DECLARE l_table_md5 VARCHAR2(32); l_collection_name APEX_COLLECTIONS.COLLECTION_NAME%TYPE; l_del_count PLS_INTEGER := 0; l_upd_count PLS_INTEGER := 0; l_ins_count PLS_INTEGER := 0; l_success_message VARCHAR2(32767); CURSOR op_lock_check_cur (p_id IN NUMBER) IS SELECT wwv_flow_item.md5(cmp_cd, email, tab_seq_id) FROM Cmp_Email WHERE tab_seq_id = op_lock_check_cur.p_id FOR UPDATE; BEGIN l_collection_name := 'EMAILDETAILS'; FOR x IN ( SELECT * FROM apex_collections WHERE collection_name = l_collection_name AND c047 IN ('N','U','D')) LOOP IF x.c047 = 'N' THEN INSERT INTO Cmp_Email(tab_seq_id,cmp_cd,email) VALUES (cmp_email_seq.nextval, :P5_CMP_CD_HIDN, x.c002 ); l_ins_count := l_ins_count + 1; ELSIF x.c047 = 'U' THEN OPEN op_lock_check_cur(x.c003); FETCH op_lock_check_cur INTO l_table_md5; IF l_table_md5 != x.c048 THEN raise_application_error(-20001,'Current version of data in database has changed since user initiated update process.'); END IF; UPDATE Cmp_Email SET cmp_cd=:P5_CMP_CD_HIDN ,email = x.c002 WHERE CURRENT OF op_lock_check_cur; CLOSE op_lock_check_cur; l_upd_count := l_upd_count + 1; ELSIF x.c047 = 'D' THEN DELETE FROM Cmp_Email WHERE tab_seq_id = x.c003; l_del_count := l_del_count + 1; END IF; END LOOP; apex_collection.delete_collection(p_collection_name => l_collection_name); l_success_message := l_ins_count || ' rows inserted, ' || l_upd_count || ' rows updated, ' || l_del_count || ' rows deleted'; :P5_SUCCESS_MESSAGE:= l_success_message; END;
When I press the ADD button, a new line must be added to the shape of the table and the data should be saved to the collection. , But currently, the page is being submitted to the database table when adding new lines in the form of tables. The data should only be saved in the database when the user clicks on the APPLY CHANGES button
I searched the Forum about this issue and have found many discussions which suggested to use JavaScript to add new lines. As I have no knowledge of JavaScript, these solutions have been strange for me.
Please help me solve this problem.
Thanks in advance.
Kind regards
Aravind
Hi Christophe,
Follow the changes mentioned below
1. remove this your Collections initialize
IF :REQUEST = 'ADD' THEN APEX_COLLECTION.ADD_MEMBER(p_collection_name => l_collection_name); END IF;
2 condition your collection process initialize
Modify your process-> conditions-> PLSQL Expressions->: REQUEST IS NULL
3. create a process more onload I say Add new line to the collection
DECLARE l_collection_name APEX_COLLECTIONS.COLLECTION_NAME%TYPE; BEGIN l_collection_name := 'EMAILDETAILS'; IF apex_collection.collection_exists(l_collection_name) THEN APEX_COLLECTION.ADD_MEMBER(p_collection_name => l_collection_name); END IF; END;
4 condition your Add new line to the collection
Modify your process-> conditions-> request = Expression1-> ADD (this should be request ADD button)
5. change your button-> Action addition-> redirect to this application page :-> page no (same page)->-> ADD APPLICATION
6. check your through the process conditional Page collection
Modify your process-> conditions-> PLSQL Expressions->: ASK IN ('ADD', 'APPLY_CHANGES', 'DELETE')
7. check your subject to the process of Collection to Table under condition
Modify your process-> conditions-> PLSQL Expressions->: ASK IN ('APPLY_CHANGES')
8. for the whole process to remove the conditions when the button is pressed.
If the problems persists, create a sample on apex.oracle.com and share the connection information with the name of workspace.
Hope this helps you,
Kind regards
Jitendra
-
Tabular form when adding line error
I click on the 'Add' button to add a row to the table OCA_OTHER_AGENCIES, I get the following error:
Internal error in the routine mru: ORA-20001: error in MRU: line = 1, ORA-01400: cannot insert NULL into ('CONFIRM'. "" "" OCA_OTHER_AGENCIES '. "" OA_ID"), insert"CONFIRM ". "" OCA_OTHER_AGENCIES values ' ('OA_FIRM_ID', 'OA_ID', 'The AGENCY', 'PROGRAM', 'STATUS', 'AGENCY_DATE', 'DBE_ON_SITE_VISIT', 'DBE_ON_SITE_VISIT_DATE', "DBE_ON_SITE_VISIT_STATE") (: b1,: b2,: b3: b4,: b5,: b6,: b7,: b8,: b9)
OA_ID is the primary key and is defined in the table as presentation:
display as: HIDDEN
default type: PL/SQL Expression or a function
default: oca_pkg.get_next_key ('OA')
the get_next_key function returns the following sequence as follows:
Function get_next_key (p_key in varchar2) return number is
number of v_seq_no;
Start
If (p_key)
When ("OA") and then select OCA_OA_SEQ.nextval in the double v_seq_no;
When ('FARM') and then select OCA_FIRMS_SEQ.nextval in the double v_seq_no;
Another null.
end case;
return (v_seq_no);
end;
In debug mode: append query appears as:
0.08: Add line query: select 'FIND$ 01' "CHECK$ 01", 'OA_FIRM_ID' 'OA_FIRM_ID' 'OA_ID' 'OA_ID' 'OA_FIRM_ID_DISPLAY' 'OA_FIRM_ID_DISPLAY', 'OA_ID_DISPLAY', 'OA_ID_DISPLAY', 'AGENCY' "', 'PROGRAMME', 'PROGRAMME', 'STATUS', 'STATUS', 'AGENCY_DATE' 'AGENCY_DATE' 'DBE_ON_SITE_VISIT' 'DBE_ON_SITE_VISIT' 'DBE_ON_SITE_VISIT_DATE' 'DBE_ON_SITE_VISIT_DATE' 'DBE_ON_SITE_VISIT_STATE' 'DBE_ON_SITE_VISIT_STATE' of (select NULL" RECORD$ 01 "'). , 'OA_FIRM_ID' 'OA_FIRM_ID' 'OA_ID' 'OA_ID' 'OA_FIRM_ID_DISPLAY' 'OA_FIRM_ID_DISPLAY', 'OA_ID_DISPLAY', 'OA_ID_DISPLAY', 'AGENCY' "', 'PROGRAMME', 'PROGRAMME', 'STATUS', 'STATUS', 'AGENCY_DATE' 'AGENCY_DATE' 'DBE_ON_SITE_VISIT' 'DBE_ON_SITE_VISIT' 'DBE_ON_SITE_VISIT_DATE' 'DBE_ON_SITE_VISIT_DATE' 'DBE_ON_SITE_VISIT_STATE' 'DBE_ON_SITE_VISIT_STATE' from (select 'OA_FIRM_ID' , 'OA_ID', 'OA_FIRM_ID' OA_FIRM_ID_DISPLAY, OA_ID_DISPLAY 'OA_ID', 'AGENCY', 'PROGRAM', 'STATUS', 'AGENCY_DATE', 'DBE_ON_SITE_VISIT', 'DBE_ON_SITE_VISIT_DATE', ' DBE_ON_SITE_VISIT_STATE ' to "CONFIRM'." " ((OCA_OTHER_AGENCIES' where oa_firm_id =: F103_FIRM_ID UNION ALL SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL FROM DUAL WHERE: request = 'ADD_ROWS' or: application is NULL to CONNECT BY LEVEL < = 1)) Union all select NULL 'CHECK' $ 01, NULL, 'OA_FIRM_ID', oca_pkg.get_next_key ('OA') 'OA_ID', NULL, 'OA_FIRM_ID_DISPLAY '. NULL, NULL, 'OA_ID_DISPLAY', NULL, 'AGENCY', 'PROGRAM', NULL, 'STATUS', NULL, 'AGENCY_DATE', NULL, 'DBE_ON_SITE_VISIT', 'DBE_ON_SITE_VISIT_DATE', 'DBE_ON_SITE_VISIT_STATE' of the double NULL NULL
Can someone please.Why you doing this in the form and not by a trigger?
Denes Kubicek
------------------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
------------------------------------------------------------------------------ -
Tabular form - stop some lines from being modified according to user
Hello
For an application that I'm developing, I wish I could use the group_id (stored in a session variable) in order to prevent the user from changing certain lines. However, I still have the user to be able to see all the lines.
To clarify, I have a tabular presentation composed of elements belonging to a certain group. Once users logs in a variable called Group of stored session ID. I'm like tables to display all items as usual but only allow the user to change the items belonging to their group.
Apex has a "Built-in" way to do? I looked but can't seem to find a solution.
My second idea was to use JavaScript to compare the value of column group_id session and somehow lock/unlock ID line. However, the group_id column is a selection list and I'm not sure on how I can retrieve the value selected using JavaScript.
Initially, I came to this:
$("#report_pivot_tbody_tr_td").each (function () {}
If ($(this) .attr ('headers') == 'GROUP_ID') {}
If ($(this) .val ()). == 2432832) {}
$(this).css({"background-color":"#FF6200"});)
}
}
});
When tested on other columns code works and correctly colors the cell however with the list selection that does not work.
Any help would be appreciated.
Thanks in advance,
James Menzies
The only way to protect the data of the edition is to not show or show it in a single report to display. Using jquery to protect your data is not a good practice. Thus, data for editing must be included in a table for. Cannot be changed in a second report below.
Denes Kubicek
-------------------------------------------------------------------
-------------------------------------------------------------------
-
For some reason that I do not see the developer at the bottom of the page links (Page Edit, Session, debug, etc.) How can I fix? Request Express 4.2.2.00.11
I hope someone could help me!
Thank you
-Fury
It could be caused by a known bug...
Oracle Application Express 4.2.2 - known issues
See: 16769040
Concerning
-
Button to apply tabular form - can I just update region c. send this page?
Hi all -
I have a tabular form of base with a button apply. After the button is clicked the MRU is done properly, but it then triggers a sending of full page. I would rather just refresh the region like nothing else on the page requires a refresh. If I create a dynamic action, I think that I need the pl/sql to do the update and I hope I can find an easier way around this.
The only action the button options are send page, redirect to a page or the url and "defined by the dynamic action. I'm on request Express 4.1.0.00.32.
I hope it's something really basic but I have ideas or suggestions,
JohnHi John,.
If you want to stay with the built-in feature in a table, as the process of page MRU, optimistic locking, etc., then you need send a page and the full reload. You can easily navigate the game following lines using partial page refresh and also make sort. But for writing data in the database, you must send the page. Especially if you have extra in the form of validations and related processes. Of course, you could go entirely manual, write your own JavaScript to collect the data from all the tables in table form and submit this via an AJAX request and initiate an update of only the region in table form. But you loose some features in doing so.
We are looking for in this, addressing a new component to edit grid several rows before us for inclusion in the APEX 5.0:
http://www.Oracle.com/technetwork/developer-tools/Apex/application-express/Apex-sod-087560.html
... However for the moment, I would strongly recommend to stick to submit to full page and reload in this case.
Kind regards
Marc -
APEX_ITEM. DATE_POPUP2 in case of manual tabular forms
Hi all
I'm unable to view the based on jQuery popup calendar in my manuals tabular forms by using the APEX_ITEM. Function DATE_POPUP2. It displays the text of an item but without the calendar button. What I need to change the attributes of the column and set the option ' display as ' on 'Date Picker?'
Request Express 4.0.2. Here is my report query:
Please let me know what the problem with my query above.SELECT cust_first_name, cust_last_name, apex_item.hidden(1,customer_id,NULL,'f01_'|| '#ROWNUM#') || apex_item.date_popup2( 2, SYSDATE, 'MM/DD/YYYY', 12, 12, NULL, 'f02_' || '#ROWNUM#' ) dob FROM demo_customers
Thank you!
JMcGHello
Try
SELECT cust_first_name, cust_last_name, apex_item.hidden(1,customer_id,NULL,'f01_'|| ROWNUM) || apex_item.date_popup2( 2, SYSDATE, 'MM/DD/YYYY', 12, 12, NULL, 'f02_' || ROWNUM ) dob FROM demo_customers
I think the problem is that you can't use substitution #ROWNUM # in the report query.
Your code has generated the same attribute of id for all text fields (id = "" f02_ #ROWNUM # ' ").
ID attribute must be unique within the HTML document.Kind regards
Jari -
APEX: Can we add additional items in tabular form existing
Hi Experts,
I built a nice tabular form with all the buttons and whistles. All goes well until my request for the user to add another
the point in the form of tables and here's my night Mare, I have this error code
failed to parse SQL query: ORA-01403: no data found
I pinned it down to the process of the ApplyMRU or ApplyMRD; because once I delete these.
I see the tabular presentation.
But when I tried to manually recreate the SRM process, with the same criteria, I have the same error code
Is this a Bug or just the way the behaviour of tabular presentation?
What should I do to fix the error?
Please don't tell me that I have to rebuild the tabular presentation. :-(
Hi JAS-Oracle,
JAS-Oracle wrote:
Hi Experts,
I built a nice tabular form with all the buttons and whistles. All goes well until my request for the user to add another
the point in the form of tables and here's my night Mare, I have this error code
failed to parse SQL query: ORA-01403: no data found
I pinned it down to the process of the ApplyMRU or ApplyMRD; because once I delete these.
I see the tabular presentation.
But when I tried to manually recreate the SRM process, with the same criteria, I have the same error code
Is this a Bug or just the way the behaviour of tabular presentation?
What should I do to fix the error?
Please don't tell me that I have to rebuild the tabular presentation. :-(
Here an other elements means another column in the form of tables... Right?
This column to another is the same table on which you build your tabular presentation.
If this is the case, then you must add the extra column in your select query and a few changes in the properties of this column, no need to do anything with the process of the MRU.
for that go to report attributes-> change the newly added column-> slot of the attributes of tabular form
The Table - name of the schema reference owner
The Table name - name of the reference table
Column name of the column in reference
If this isn't the case then of additional information on the same.
If the column is in the other table, to check out this blog: manipulate several tables in a tabular form
or create the sample on the apex.oracle.com, allowing the user to resolve your issue quickly.
,
Hope this helps you
Kind regards
Jitendra
-
tabular form, adding line does not
Hello
Since a while I worked with Apex so it is maybe the reason why I am facing problems but...
Nothing, I created a presentation table out of the box, extras.
Add lines to the slot table form works not done "next".
I noticed that no processwere of "applyMRU" was created to "Add line".
Create it manually attempted WITHOUT success ;-(
Request Express 4.2.6.00.03 on CROME
Thanks for any ideas what may be the problem
/ Gunnar
Change the theme solved the problem
Thanka a lot of Sunil
Concerning
Gunnar
-
How to refer to the primary key column of newly inserted rows of tabular form
Hello
I use APEX 4.2.0.00.27 with Oracle DB 11.2.0.3.0.
I work with a tabular presentation wizard-created for insert and update a table using the integrated SRM process (sequence 10). I'm trying to use a process of anonymous block of PL/SQL (sequence 30) to make another manipulation of table after the records were inserted or updated. The manual process is associated with my tabular form and I use the variables of name of column binding in my program block.
My (rsn_test) table has 3 columns: test_id (number), test_nbr (number), test_id2 (number). Test_id column is identified as the primary key and the type of the source already exists a sequence rsn_test_seq. Column test_id2 gets its default value 0 to a hidden page element.
I would use my manual process for updating the value of the test_id2 column. If it's 0 then I want to put the value of the column test_id. If it is any other value, then it must remain at this value. My logic works very well for an existing line, but I'm running into a problem with the newly added lines. The new lines get inserted, but the test_id2 column remains the default value 0. I can tell the debugger that the SRM process is triggered first and inserts the line, then my manual dealing with fires. The problem seems to be that the connection variable: TEST_ID for the primary key column remains NULL after insertion. I don't know how to get the value of the column test_id of my newly created line to use in my PL/SQL block to my update.
Process of PL/SQL:
DECLARE BEGIN :P7_SHOW := NULL; :P7_SHOW := NVL(:TEST_ID2,555) || ' and ' || NVL(:TEST_ID,787) || ' and ' || NVL(:TEST_NBR,9999); IF :TEST_ID2 = 0 AND :TEST_ID IS NOT NULL THEN UPDATE rsn_test SET test_id2 = :TEST_ID WHERE test_id = :TEST_ID; ELSE :TEST_ID2 := :TEST_ID2; END IF; END;
Excerpt from the debugger:
0.01625 0.00010 Processes - point: ON_SUBMIT_BEFORE_COMPUTATION 0.01635 0.00008 Branch point: Before Computation 0.01643 0.00003 Process point: AFTER_SUBMIT 0.01646 0.00022 Tabs: Perform Branching for Tab Requests 0.01668 0.00008 Branch point: Before Validation 0.01676 0.00024 Validations: 0.01700 0.00135 Perform basic and predefined validations: 0.01835 0.00020 Perform custom validations: 0.01855 0.00049 ...Validation "TEST_NBR must be numeric" - Type: ITEM_IS_NUMERIC 0.01904 0.00007 ......Skip for row 1 because row hasn't changed 0.01911 0.00016 ......Skip for row 2 because row hasn't changed 0.01927 0.00012 ...Validation "TEST_ID2 must be numeric" - Type: ITEM_IS_NUMERIC 0.01939 0.00007 ......Skip for row 1 because row hasn't changed 0.01945 0.00018 ......Skip for row 2 because row hasn't changed 0.01964 0.00005 Branch point: Before Processing 0.01968 0.00004 Processes - point: AFTER_SUBMIT 0.01972 0.00588 ...Process "ApplyMRU" - Type: MULTI_ROW_UPDATE 0.02560 0.00154 ...Execute Statement: declare function x return varchar2 is begin begin for c1 in ( select "RSN_TEST_SEQ".nextval pk from sys.dual ) loop return c1.pk; end loop; end; return null; end; begin wwv_flow.g_value := x; end; 0.02714 0.00140 ......Row 3: insert into "APPPCSRSN"."RSN_TEST" ( "TEST_ID", "TEST_NBR", "TEST_ID2") values ( :b1, :b2, :b3) 0.02854 0.00011 ...Process "ApplyMRD" - Type: MULTI_ROW_DELETE 0.02865 0.00004 ......Skip because condition or authorization evaluates to FALSE 0.02869 0.00015 ...Process "Process Submit" - Type: PLSQL 0.02884 0.00007 ......Skip for row 1 because row hasn't changed 0.02891 0.00012 ......Skip for row 2 because row hasn't changed 0.02903 0.00012 ......Process row 3 0.02915 0.00429 ...Execute Statement: begin DECLARE BEGIN :P7_SHOW := NULL; :P7_SHOW := NVL(:TEST_ID2,555) || ' and ' || NVL(:TEST_ID,787) || ' and ' || NVL(:TEST_NBR,9999); IF :TEST_ID2 = 0 AND :TEST_ID IS NOT NULL THEN UPDATE rsn_test SET test_id2 = :TEST_NBR WHERE test_id = :TEST_ID; ELSE :TEST_ID2 := :TEST_ID2; END IF; END; end; 0.03344 0.00013 ...Session State: Saved Item "P7_SHOW" New Value="0 and 787 and 1300" 0.03356 0.00004 Branch point: After Processing 0.03360 0.00048 ...Evaluating Branch: "AFTER_PROCESSING" Type: REDIRECT_URL Button: (No Button Pressed) Condition: (Unconditional) 0.03407 0.00013 Redirecting to f?p=290:7:8717971109610:::::&success_msg=0%20row(s)%20updated%2C%201%20row(s)%20inserted.Success%2FEBD244168556408CBA714E3974918C09%2F 0.03420 0.00012 Stop APEX Engine detected 0.03432 0.00007 Stop APEX Engine detected 0.03439 - Final commit
Any suggestions?
I have run tests on
https://apex.Oracle.com/pls/apex/f?p=83488:1 demo/demo
to see your problem.
I have 2 solution for your problem.
I add trial NOT tabular just usual block of PL/SQLBEGIN I'm IN (SELECT TEST_ID FROM RSN_TEST WHERE TEST_ID2 = 0) LOOP UPDATE RSN_TEST SET test_id2 = TEST_ID WHERE test_id = i.TEST_ID; END LOOP; END; and works very well, you can see in the sample.
The other solution is to show new generated TEST_ID
Adding a sequence as a default value for a column in a table field
And to execute your procedure.
I get how is with the good luck of time.
By
-
Calculation of tabular form, problem with decimal numbers
Hello
I wrote a simple java script function that is responsible for calculating the price * quantity and store that value to total_price.
function CalcTotalPrice (pThis)
{
var vRow = pThis.id.substr (pThis.id.indexOf ('_') + 1);
html_GetElement ('f07_' + vRow). Value = parseInt (html_GetElement('f06_'+vRow).value, 10) * parseInt (html_GetElement('f05_'+vRow).value, 10);
}
The function calculation is correct, but I have problem when the price or quantity decimal numbers.
For example.
Currently:
price * quantity = total_price
7.5 * 1 = 7 instead of * cf. 7.5 *.
I've already put a mask of correct format for all of these areas (999G999G999G999G990D00).
I appreciate your help.
Request Express 4.2.1.00.08
Oracle Database 11g Express Edition Release 11.2.0.2.0
Kind regardsHi John,.
before the multiplication, you analyze your values as an integer, so 'cut' the decimals.
Replace "parseInt" by "parseFloat" should do the trick.function CalcTotalPrice(pThis) { var vRow = pThis.id.substr(pThis.id.indexOf('_')+1); html_GetElement('f07_'+vRow).value = parseFloat(html_GetElement('f06_'+vRow).value, 10) * parseFloat(html_GetElement('f05_'+vRow).value, 10); }
Please let me know if this worked for you.
Thank you
Sandro -
If the default tabular form when you add line
Hi guys,.
I had a tabular presentation where I need to set a default 1 value in one of the fields that I click on Add a line. I have no idea how to reference the element in a table via JavaScript.
Despite this, Add a line already button calls a javascript function to add a line, do not think its possible to use javascript here.
Any suggestions how can I achieve this?
Thank you very much.Can't you just change column attributes > tabular form attributes > type default PL/SQL Expression or a function > as the default * '1' *.
This should add the value 1 to add when you click line
You can use JavaScript, but why worry if it's easily achievable
-
Hi all
I work with Application Express 4.1.1.00.23 on
I create and successefully test my application in which I use DML on myTable and I have a tabular presentation on myTable.Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi PL/SQL Release 10.2.0.5.0 - Production CORE 10.2.0.5.0 Production TNS for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Productio NLSRTL Version 10.2.0.5.0 - Production
Can I move my table on a different database that is
I create and successefully test a dblink and a sysnonym from myTable.Oracle Database 10g Release 10.2.0.3.0 - 64bit Production PL/SQL Release 10.2.0.3.0 - Production CORE 10.2.0.3.0 Production TNS for IBM/AIX RISC System/6000: Version 10.2.0.3.0 - Productio NLSRTL Version 10.2.0.3.0 - Production
When I test the tabular presentation error ORA-00942: table or view does not exist (row 1) is triggered.
Is it possible to use a tabular form on a synonym?
I try DMLvia Apex workshop SQL > SQL commands and it works.
Thank you all for any help or suggestion.
Alex.Hi Alex,
Means on a Table with data link does not work with APEX. You can work around by the definition of a view on this Table, which will work with the TabForm.
brgds,
Peter-----
get syntax highlighting for Application Builder: http://apex.oracle.com/pls/apex/f?p=APEX_DEVELOPER_ADDON: SUBJECT: 0:
Blog: http://www.oracle-and-apex.com
ApexLib: http://apexlib.oracleapex.info
BuilderPlugin: http://builderplugin.oracleapex.info
Work: http://www.click-click.at and http://www.wirsindapex.at -
How to customize the width of fields in tabular form?
Hi all
I have the small demo application created on demand 4.1.0.00.23 Express. None of the pages has been created as a table. I want to customize with columns to this page. When I click on edit this page and go to the regions - report, I see a field titled "width of the column. Unfortunately, it seems that everything I put in here is ignored. The width of the column remains constant, regardless of if I put 2 or 200 as column width. How can I customize with columns in tabular form?
Thank you for your time.
Danieldanield_2 wrote:
Blue,Thanks for your suggestion. This page has tabluar shape, and I do not see here of "the column definition. The content area is "Report" and when I click it, I see: "Alias"; 'Link '; 'Change '. 'Title', 'Coumn Width","The column alignment", etc.
I tried to 20px in the "column width" and I got an "Invalid number" error when I ran this page. But if I put 2 or 200 - column is always in the same width.Daniel
Hi Daniel,.
On the page you describe with the Alias, the link, position etc. beside the column in question, there should be a link change (type of pencil icon), to get the column attributes for that particular item, you need to click on this icon. On the resulting page there is (on APEX 3.1 there is) a column formatting section of the column, you will see the scope of the CSS style there.
-
Enter the name of app_user by updating the tabular form of builtin apex
Hi people,
I am a new to apex and trying to implement a tabular apex that has only an editable field box and form two audit field. Last updated by and updated, I use the built-in tabular form Apex.
Properly put form to update the field box to check and it works as it is supposed to be, the two audit field and Updated_by Update_date, I'm updating via slot table form and not updated.
Any help will be much appreciated. After the code that I use in the application process after submit
BEGIN
II in 1... APEX_Application.g_f02. COUNTY
LOOP
(ii) apex_application.g_f08: =: sysdate;
apex_application.g_f09 (II (: = v ('APP_USER');))
/*
UPDATE MG_RESTRICTION_DEV SET UPDATED_BY = v ('APP_USER')
WHERE MG_ID = APEX_APPLICATION. G_F05 (II);
*/
END LOOP;
END;
My goal is to use the max integrated apex and want to use the default MRU apex process. I get the success message, but the value does not get updated on the table.
Thank you
Shabbir
Published by: user13413381 on July 4, 2011 10:39Post this question in the forum asking Express. This is the forum of forms.
Maybe you are looking for
-
What extensions I have installed?
How can I see which extensions I've installed on my Firefox
-
It began with my time do not update automatically. When I go to the tab "internet time" to connect and update, he needs an administrator to fix it and even though I am the administrator, it won't let me, but that's another issue all together. I have
-
Hello world My WIndows XP home PC has an error - Application error Exception EFOpenError in module aviWMP54Gv4.dll at 0000DB5F. What can I do about it? Any help is greatly appreciated. Thank you Gemma.
-
How Flash the BIOS on Aspire S3-391 when no present OS?
I have a new Acer Aspire Ultrabook S3-391-6862. I want to update the BIOS on the unit, but has difficulty because there is no OS on the Ultrabook again (it came with Win8 on it but I wiped the HARD drive to put Win7 on it). I downloaded the latest
-
Laptop speakers not working not, earphones work after Windows Update
Hello Immediately after getting an update for Windows 8 yesterday, I noticed that the speakers on my laptop were not all sounds. No music, no its game, no videos, nothing. They are not labeled as muted, and the drivers do not seem to be updated. I tr