Automatic update of tabular form
I have a tabular layout with several editable fields created from a view and using a trigger to update the specific data fields that can be changed or entered instead. The data entered in the updates of this form without problem. My problem is that I would like to automatically update two fields in the database, (is displayed and you're not), when the specific fields in the form of tables are entered. I tried a PL ON process/SUBMIT SQL runs when you push the button SUBMIT. I get my success message, but the database does not get updatesStart
If: f12 is not null and: f13 = 'Now' then
Update [email protected]
Set mail_date = sysdate, treated = 'Y '.
where: f02 = request_detail_id;
end if;
end;
You can provide any assistance will be greatly appreciated. Thank you.
JC
JC
Your following update statement references table "f12" and "f13. What columns of tables these correspond to the? You can use the
'View form information' tab of the toolbar of developer for this track.
Also at the point of Scott, in which the clause where reference you the table "f02" shouldn't you have "i" instead of "1"
begin
FOR i IN 1 .. apex_application.g_f02.COUNT LOOP
update APEX_TR_OPEN_REQUESTS_V
set d_mail_date = sysdate, d_processed = 'Y'
where apex_application.g_f02(1) = d_request_detail_id and apex_application.g_f12(i) = 'N' and apex_application.g_f13(i)='Now';
end loop;
end;
CITY
Tags: Database
Similar Questions
-
Block of detail automatically updated when the form is saved
Hello
I have a form with 2 blocks of tabular data (1 master and 1 retail).
The retail block also contains a non-base of data element, a checkbox control. User can check or uncheck this box for each record in the detail block.
My problem is, when the user changes something in the main block and saves (by pressing F10 or by clicking on save button), box block of retail values are lost.
For a test, I created a trigger validation key at the level of the main block: I iterates over the detail records to collect values of checkboxes before doing a commit_form (the goal was to restore checkbox values right after), but even at this stage the check boxes are all null as if the retail block has already been re-populated and of course non-base of data items reset before the trigger validation key is enabled.
What Miss me. It is a detail of a relationship block master / detail is updated when the form is saved standard? What are the alternatives to keep/restore my values of checkboxes in this situation?
Thanks in advance for your help
L0rd says:
Hello
I have a form with 2 blocks of tabular data (1 master and 1 retail).
The retail block also contains a non-base of data element, a checkbox control. User can check or uncheck this box for each record in the detail block.
My problem is, when the user changes something in the main block and saves (by pressing F10 or by clicking on save button), box block of retail values are lost.
For a test, I created a trigger validation key at the level of the main block: I iterates over the detail records to collect values of checkboxes before doing a commit_form (the goal was to restore checkbox values right after), but even at this stage the check boxes are all null as if the retail block has already been re-populated and of course non-base of data items reset before the trigger validation key is enabled.
What Miss me. It is a detail of a relationship block master / detail is updated when the form is saved standard? What are the alternatives to keep/restore my values of checkboxes in this situation?
Thanks in advance for your help
Check any Execute_query code in your form, which produce this issue.
-
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.
-
Insert only not updated in tabular form
Hi friend
I want to insert the value using tabular form, but I don't want to update the value in a table.
in fact I create a page with sub form of table and I select to update and insert option but here I want to insert value only in the table.
Is it posible.
How can I do that.
Thank you
MauryMaury:
You can simply remove the buttons and the process of page corresponding to the Insert actions & update of the definition of the page.
CITY
-
helps with the update of tabular form using dynamic Action
Hello world
I'm trying to simplify a tabular presentation based on a collection so that it uses more dynamic actions that will be ultimately more easy for us to debug.
Our tabular presentation is based on the query:
SELECT apex_item.text(1,seq_id,'','','id="f01_'||seq_id,'','') "DeleteRow", seq_id, seq_id display_seq_id, c003, c004, c005, c006, apex_item.text_from_LOV(c004,'SPECIES')||'-'||apex_item.text_from_LOV(c005,'GRADE')||'-'||apex_item.text_from_LOV(c006,'MARKETCODE')||'-'||apex_item.text_from_LOV_query(c007,'select unit_of_measure d, unit_of_measure r from species_qc') unit, apex_item.select_list_from_LOV(8,c008,'DISPOSITIONS','onchange="getAllDisposition('||seq_id||')"','YES','0',' -- Select Favorite -- ','f08_'||seq_id,'') Disposition, apex_item.select_list_from_LOV(9,c009,'GEARS','style="background-color:#FBEC5D; "onFocus="checkGearPreviousFocus('||seq_id||');"onchange="getAllGears('||seq_id||')"','YES','3333','-- Select Favorite --','f09_'||seq_id,'') Gear, apex_item.text(10,TO_NUMBER(c010),5,null, 'onchange="setTotal('||seq_id||')"','f10_'||seq_id,'') Quantity, apex_item.text(11,TO_NUMBER(c011),5,null,'onchange="getPriceBoundaries('||seq_id||')"','f11_'||seq_id,'') Price, apex_item.text(12, TO_NUMBER(c012),5,null, 'onchange="changePrice ('||seq_id||')" onKeyDown="selectDollarsFocus('||seq_id||',event);"','f12_'||seq_id,'') Dollars, decode(c013,'Y',apex_item.text(14, c014,30,null,'style="background-color:#FBEC5D;" onClick="onFocusAreaFished('||seq_id||');"','f14_'||seq_id,''),'N','N/A') Area_Fished, c014, c015, c016, c017 additional_measure_flag, decode(c017,'Y',apex_item.text(18, c018,4,null,'style="background-color:#FBEC5D; "onBlur="setUnitQuantity('||seq_id||')"','f18_'||seq_id,''),'N','N/A') UNIT_QUANTITY, decode(c017,'Y',apex_item.text(19,'CN',3,null,'readOnly=readOnly;','f19_'||seq_id,''),'N','N/A') UNIT_COUNT, c024 fins_attached, apex_item.textarea(28,c028,3,null,'class="hms_info"','f28_'||seq_id,'') Explanation, decode(c024,'N',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','class="hms_info"''onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'U',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'Y','N/A') Nature_Of_Sale, c030, c031, c032, c033, c034, c035, c036, c037, c038, c039, apex_item.select_list_from_LOV(40,c040,'HMS_AREA_CODE','style="background-color:#FBEC5D;" class="hms_info" ',null,null,null,'f40_'||seq_id,'') HMS_AREA_CODE, c020 hms_flag, apex_item.text(41,TO_NUMBER(c041),5,null, 'class="hms_info"','f41_'||seq_id,'') Sale_Price, c042, c043, c044, c050 shark_flag from apex_collections where collection_name = 'SPECIES_COLLECTION' order by seq_id
Note that many of the fields referenced are c0xx... and really serve as place holders so that the c0xx = fxx. It's awkward, like every time that a movement or move a column, it upsets the fxx value. So, I tried to use the CLASS if possible.
I have a dynamic action that had worked perfectly, until I moved one of the columns... and now, it seems not to work when I'm trying to update anything with the HMS_INFO or SHARK_INFO class. Grrr.
dynamic action: CHANGE COLUMN
event: CHANGE
selection type: JQUERY SELECTOR
jQuery selector: input [name = 'f10'], input [name = 'f11'], input [name = 'f12'], input [name = "f24"], textarea [name = "f28"], select [name = "f40"], input [name = "f41"]
true action1: defined value, expression javascript, set P110_ID = this.triggeringElement.id
true action2: defined value, expression javascript, set P110_VALUE = this.triggeringElement.value
true action3: run pl/sql,.
declare v_attr number; v_seq number; begin v_attr := TO_NUMBER (SUBSTR (:p110_id, 2, 2)); select ltrim(substr(:p110_ID,5,4),'0') into v_seq from dual; safis_collections.update_column(v_seq, v_attr, :p110_value); end;
the safis_collections.update_column package is:
procedure update_column(v_seq in varchar2, v_attr in number, v_value in varchar2) is begin apex_collection.update_member_attribute (p_collection_name=> 'SPECIES_COLLECTION', p_seq => v_seq, p_attr_number => v_attr, p_attr_value => v_value); apex_debug.message('updated column. seq='||v_seq||' attribute='||v_attr||' with '||v_value); end;
I wonder if there is a way to make the CLASS in my JQUERY SELECTOR, so something like reference entry [class = "HMS_INFO"], input [CLASS = "shark_info"]... and if so, what happens if a single item in the class is an option button and the other is a selection list and the other an element?
is it possible to not have to rely on the fxx. Currently, my collection columns map to the investment in the form of tables... sense, c024 = f24... because I placed c024 to be the 24th editable column, but this seems crazy. Is there a simpler way? I'm just learning class, then maybe there is something extra, or rather that I could use...
any help is appreciated. Thank you!
I think I have solved the problem.
dynamic action: CHANGE COLUMN
event: CHANGE
selection type: JQUERY SELECTOR
jQuery selector: input [name = 'f10'], input [name = 'f11'], input [name = 'f12'], .shark_info, .hms_info
true action1: defined value, expression javascript, set P110_ID = this.triggeringElement.id P110_VALUE POINT KEYS
true action2: run pl/sql code
begin null; end;
items to submit page: P110_ID
true action3: defined value, expression javascript, set P110_VALUE = this.triggeringElement.value P110_VALUE POINT KEYS
true Action4: value: PL/SQL expression, the value P110_SEQ = rtrim (substr(:P110_ID,5,4),'0 ') CONCERNED POINT: P110_SEQ
true Action5: run pl/sql code
declare v_attr number; begin v_attr := TO_NUMBER (SUBSTR (:P110_id, 2, 2)); apex_collection.update_member_attribute (p_collection_name => 'SPECIES_COLLECTION', p_seq => :P110_SEQ, p_attr_number => v_attr, p_attr_value => :P110_VALUE); end;
items to submit page: P110_ID, P110_VALUE, P110_SEQ
true action6: refreshment area
I think it is the combination of the use of pl/sql expression to calculate P110_SEQ and also your tip on TRUE ACTION2 to submit the item that did the trick.
Thanks Kofi, for your patience and help! It was great.
Ugh... on the next issue.
Karen
-
Update / drop / tabular form
Hallo,
my name is Rene and need your help.
I have two tables
1 DIM_TIER
Tier_ID Tier_bezeichnung 1 Hund 2 Katz 3 Vogel 2 FAKT_ZOO
Besitzer_ID TIER_ID BESITZER_NAME 1 1 TIM 2 2 TOM 3 3 TUM Now I join the tables
Select DT.Tier_Bezeichnung, FZ.Tier_Bezitzer From Fakt_Zoo FZ INNER JOIN DIM_TIER DT on FZ.TIER_ID = DT.TIER_ID;
Result:
DT. TIER_BEZEICHNUNG FZ. TIER_BESITZER Hund TIM Katze TOM Vogel TUM In my Apllication of the Apex, I take a tabular presentation. The FZ column. TIER_BEZEICHNUNG is "the SELECTION LIST (QUERY BASE LOV) with SQL:
Select Tier_Bezeichnung, Tier_ID FROM DIM_TIER
Watt, I want: if I now change the value of DT. Tier_Bezeichnung with the drop (HUND, KATZE, VOGEL), the TIER_ID has changed in the FAKT_ZOO table after you click the Send button
Watt arrived: Notihng! Only an error: no data in tables found. Call your admin.
Can you help me?
Hi René,.
What is your source tabular query? It should be
SELECT besitzer_id, tier_id, besitzer_name
OF fakt_zoo
And for the "tier_id" column, you must set "LIST SELECT (QUERY BASED LOV)" with the query you specified above.
Then you should see the names of animals, but animal ID be passed when update (presentation).
BR,
Daniel
-
ATabular to automatically update form
Hi, how can I automatically update a tabular presentation?
I tried to use it this way I used in conventional reports, but it does not work.
Anyone know how I can do it or if its possible.var refreshId = setInterval(function(){ $('#P4_LIST').trigger('apexrefresh'); }, timer_in_seconds*1000);
TanksProblem solved.
'Enable partial Page Refresh' has not been set to YES for your tabular presentation.
Once I changed that, it worked as expected :-)
brgds,
Peter-----
Blog: http://www.oracle-and-apex.com
ApexLib: http://apexlib.oracleapex.info
BuilderPlugin: http://builderplugin.oracleapex.info
Work: http://www.click-click.at -
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 -
tabular form - update the non-visible fields
Hi gurus!
I built a tabular form over a table composed of 6 fields and I use the MRU to allow the user to edit the record; Two field in that table are not visible and editable by the user; I want to use the two fields to track which change the record (both fields are Modify_USER, Modify_date).
I want to insert in the two fields the values the user variable and the sysdate.
Is it possible, is there a way to do this with MRU or do I have to manually write the PL/SQL for this?
I'm on APEX 3.2
Any suggestion will be appreciated.
Thanks in advance,
DDFInstead of doing it this way, why not watch a trigger in the database, which will fill these columns when you perform an update on the table? The user will be & user_id. and the sysdate you already...
CREATE OR REPLACE TRIGGER Update_Table_X BEFORE UPDATE of Table_X ON R_RECORDS FOR EACH ROW BEGIN :new.Modify_date := sysdate; :new.Modify_USER := app_user; END;
Thank you
Tony Miller
Webster, TXA lady came up to me on the street, pointed at my suede jacket and said: "do you not know that a cow was murdered for that jacket?
' I didn't know there are witnesses ', I replied: "now, I'll have to kill you too. ' -
Insert/update of the lines in tabular form from one table to another table
Hello
I'm having a tabular presentation for a table (equip_test) with 2 columns (equip_id, equip_name). I create a new
Button (submit_alt) in this tabular form. I need to insert or update lines that are changed in this table to form
another table (equip_staging) when you press the submit_alt button. How can I do this? How can I identify which lines are
Insert or update? The process of the page I am trying since this button is
But it does not work. Help, pleasebegin FOR i in 1..APEX_APPLICATION.G_F01.count LOOP insert into equip_staging values(APEX_APPLICATION.G_F02(i),APEX_APPLICATION.G_F03(i)); END LOOP; end;
Thank you
TJUnchecking (does not) the column is a problem. Use this SQL instead (which is included in my examples):
SELECT empno, empno || apex_item.hidden (33, wwv_flow_item.md5 (ename, sal, job)) empno_display, ename, sal, job FROM emp
and join this column hidden from your display column. In this way, it should work. When you feel there is no data found message in the treatment in a table, it will mean that the id does not exist.
Denes Kubicek
------------------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
------------------------------------------------------------------------------ -
Validation of a column in a query SQL-tabular form (updated report)
Hello
I have a tabular form on a table of type SQL Query (editable report). Users can modify/add lines to the table through the form. I would like to have some sort of validation on each column of the report form. Is there a way I can do it by their SUMMIT. Please note that I did not manually create this form... just use the tools in the APEX. Thank you.
SihemIn the same way.
Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
------------------------------------------------------------------- -
Insert automatically the values in tabular forms
Hello.
I have a page with a regular shape and a tabular form. The tabular presentation is shows the result of a query on a table called CONTACT_DETAILS...
Select * from CONTACT_DETAILS
where CONTACT_DETAILS. USER_ID =: P5_ID
... and: P5_ID is a hidden field on the ordinary form.
In the settings in a table, the CONTACT_DETAILS column. User_id is hidden. When a user clicks on the button "Add a line", fills the new line of cells, and then click on 'Submit', how can I ensure that the current value of: P5_ID is written in the hidden cell USER_ID for this line?
Thank you
NickThe hidden column can have a default value of type question and there you can put the name of the element as follows:
P1_HIDDEN_ITEM
Denes Kubicek
------------------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
------------------------------------------------------------------------------ -
Are operations of possible update on the form as a report?
I have a form that I click a button CREATE to create a record with a new id.
When more information will be entered in the fields, click on a "SAVE" button to submit the information for the rest of the form fields to the database.
My problem is that I get an error. It is said:
No updated report found. Multi line update and delete operations cannot be performed on tabular forms of type 'Update report'
I know that I don't have an updated report up-to-date. It is a form. But, I must submit/save the form after the initial creation information.
What should I do to save the information?
Thank you very much
MaggieIf you have a form, you must make sure that your fields have a "Column" source and that you found your fields to columns in your database by entering the column name in the source field.
In addition, you must use "Auto-line treatment" instead of multiple lines updates and deletions. Operations of several rows work with tabular forms. You should have a hidden field in your primary key and an automatic extraction routine that runs when this field is not null, so you can use your form of the changes. It might be easier for you to start with the form wizard that puts it all in place. If your more comfortable it might be easier to encode operations manually like PL/SQL procedures on your page.
-
Towards the end of an automatic update of Firefox, the program opens a dialog box that says that it is to check the compatibility of the new version with my addons. He also mentioned that I be patient, the process may take several minutes. The process continues without normal ending, and I have to use Windows Task Manager to stop it. I have let it run the form as long as 35 minutes, but it's never complete the process. This has happened for each automatic updates of last 3 or 4. What is going on?
It is possible that there is a problem with the files that store the registry extensions.
Delete the files (extensions.sqlite, extensions.ini) extensions.* and compatibility.ini in the profile folder of Firefox to reset the extensions registry.
New files will be created if necessary.
See "extension corrupted files:
- http://KB.mozillazine.org/Unable_to_install_themes_or_extensions
- https://support.Mozilla.org/KB/unable+to+install+add-ons
If you see disabled extensions or is not compatible in ' Firefox/tools > Modules > Extensions ' and then click the Tools button, on the side of the left end of the search bar to check if there is an update available compatibility.
If this did not help, then also delete the addons.sqlite file.
-
Set to automatic update gave BSOD
Hi all
I recently installed a service pack windows from automatic updating (I don't know which) and when I restarted my computer I got the blue screen of death. I tried to reboot in safe mode, but it keeps going back to the same screen.
The tech info that gave me was:
UNMOUNTABLE_BOOT_VOLUME
STOP: 0X000000ED (0X86D69C08, 0X00000000, 0XC000009C, 0X00000000)
I don't have my installation CD and I am running windows XP media center edition. Any suggestions on what I should do? What I've read it seems I need drives so is there anyway I can get them online or something?
Thank you
ZachHow to ask a question
http://support.Microsoft.com/kb/555375 >It helps those answering questions if you provide:
what the version of windows (32-bit or 64-bit) and service pack level.
you use what browser (exact version).
what application anti-virus or security suite is installed and your current subscription?
What third-party firewall
What anti-malware software can be installed.
What updates you trying to install? (Number of KB)
Please do it in your next reply.
`~`
Stop error 0x000000ED Volume on IDE drive with caching is mounted
Microsoft Knowledge Base. Q315403>
http://www.kellys-Korner-XP.com/xp_u.htm>
http://support.Microsoft.com/kb/297185>
Nothing should be running during the CHKDSK command, try this way.
Windows XP - Checkdisk running on a Boot CD.
http://KB.wisc.edu/Helpdesk/page.php?id=5097>
Good info here, too.
http://www.updatexp.com/Windows-XP-Chkdsk.html>
http://www.schrockinnovations.com/Chkdsk.php>
`~`
Test the hard drive with a diagnostic utility downloaded from site of the disc mftr... You create a bootable CD with the files you download. You will need a burning third-party software to do this such as Roxio, Nero, or the free CDBurnerXP Pro. Burn as an image, not in the form of data.
Boot with the CD that you have done and do a full test of the reader. The physical tests fail, replace it.
If the drive passes all physical tests (long test), then retrieve your data using a Linux Live CD (I prefer Knoppix) or a Bart PE and do a clean install of Windows, because the file system is completely b0rked.
`~`
Maybe you are looking for
-
See above. I 'refresh firefox' and lost my previous toolbars, that were in the text, not icons.
-
Firefox is to remember my password but it isn't to their display on the sign in space. "Remember password" is checked. This is true on all sites. How to make this work? Thank you, Scott
-
Re: Satellite C660-115 very strange problems Wifi!
I've been busy with a problem on a C660-115 wireless, always without success. Satellite C660-115Windows 7 - 64 bit The case:-Laptop is connected to the power supply: Wifi works fine, no problem-Laptop power supply disconnected: Wifi does not work, al
-
100 log scanning handwritten old pages to PDF via HP Officejet Pro 8500
Scanned in about 100 pages of old newspaper manuscript to PDF using HP Officejet Pro 8500 and everything went well until I said finished. At this moment there a box that says not enough memory came. Is that referring to the memory of the printer? My
-
Hi I got a hp pavilion elite hpe-480uk. is this what usb3.0 port in this desctop or not?