"loading" message to the removal of tabular form
I have a tabular presentation with a few entries in it. To remove, there is a cascading constraint which could cause the delete process to take some time.To allow the user to know that something is happening, I added a few pieces of code.
First, I edited the Remove button for that today's action is "url redirect" and the value of it is javascript:html_Submit_Progress (this);
The procedure of javascript is call looks like this:
function html_Submit_Progress(){
$x_Show('AjaxLoading');
window.setTimeout('$s("AjaxLoading",$x("AjaxLoading").innerHTML)', 100);
apex.confirm(htmldb_delete_message,'MULTI_ROW_DELETE');
}
This piece of javascript a div is visible and after which performs the action of apex.confirm that would normally have been executed by the buttonThere is a piece of html code in the footer:
<style> #AjaxLoading{padding:5px;font-size:18px;width:250px;text-align:center;left:40%;top:30%;position:absolute;border:2px solid #666;background-color:#FFF;}</style>
<div id="AjaxLoading" style="display:none;">..Delete in progress..<br />
Please wait<br /><img src="#WORKSPACE_IMAGES#processing3.gif" id="wait" /></div>
In the room in HTML you can put virtually anything that you want, is the part which becomes visible as soon as you press the button Delete.My problem is that the "loading" div is now displayed as soon as you press the button Delete, and there, even if you choose 'Cancel' in the confirmation popup message.
I would like it to appear only after the confirmation, when you press "ok".
I can't understand where my call to html_Submit_Progress() should be placed instead of the key. Any ideas?
I'm on oracle 11.2 and apex 4.1
Hello
You can call the function apex.confirm with the parameter showWait and waitMsg instead of using the Ajaxloading.
apex.confirm(htmldb_delete_message, {request:"MULTI_ROW_DELETE", showWait:"true", waitMsg:"..Delete in progress.."});
This way you can be sure that when Cancel is clicked, there is no message waiting indicating.
Kind regards
Erik-jan
Tags: Database
Similar Questions
-
Addition of the attribute of the element of tabular form filling
Hi all
I have the following in the attribute of the element of tabular form to make uppercase data once it is added. I found a problem where users are paste data in the field, and he added a space at the end of the data. Therefore, I would like to see if I can cut the data while making it uppercase. Can someone tell me how I can change this to mow all the spaces as well?
OnChange = "This.Value = This.Value.toUpperCase (); »
Thank you
MikeMike,
Replace it with
this.value.replace(/^\s+|\s+$/g,'').toUpperCase();
Thank you
Manish -
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
------------------------------------------------------------------------------ -
Hello Apex Experts,
When the user clicks on the button 'Add Row' a tabular presentation, I would like the new line to be at the top of the report rather than the bottom.
I followed the instructions from and Denes Kubicek demo application. But it does nothing, always create new bottom line.
Anyone have an idea or an idea?
Your help would be appreciated.
Kind regards
Blabla
Hi all
This problem is now solved by following the new blogpost of Dene:
http://www.deneskubicek.blogspot.de/2015/05/tabular-form-add-rows-top-universal.html
Kind regards
Blabla
-
How to stop records in doubles before the Save as tabular form Oracle/Developer
Dear friends
I want to stop duplicate records to save in tabular form of oracle developer.
For example
I have a tabular form and there are three fields.
Vendor_id Item_id Qty.
1 37630 1
1 37630 4
Above in double item_id should not be saved.
Help, please
Concerning
Why not make a unique constraint on the database?
Kind regards
Zlatko
-
How to validate the columns in tabular form date?
Hello
I have two columns in tabular form date
1.start_date 2.End_date so here I need validate the end_date shouldn't be less than column start_date
so any solution for this?Hello
use a validation of type "Function returning a Boolean" and the following code:
IF to_date(:YOUR_END_DATE,'YYYY-MM-DD') < to_date(:YOUR_START_DATE,'YYYY-MM-DD') THEN RETURN FALSE; ELSE RETURN TRUE; END IF;
The date format is of course your choice.
I hope this helps...
Thank you
Sandro -
To hide the field of tabular form
Dears
I want to hide the tabular form by JScript field in the APEX. can anyone help me in this matter.
Concerning
KamranHello
Please see API javascript $x_Hide
http://download.Oracle.com/docs/CD/E14373_01/apirefs.32/e13369/javascript_api.htm#CHDDAGFEKind regards
Jari -
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
------------------------------------------------------------------------------ -
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
-
Select the list in tabular form
Hi all
APEX Oracle 11.2 4.1 using SE (Oracle Linux Server release 6).
I have a Page with a region based on a tabular presentation.
The query Source in the region has several columns, including an id I have also added a DATE column and a column of "Buttons" that appear on all ranks.
The extra DATE field is displayed as a list select a named LOV.
The extra button field appears as a standard report column and has the link column attributes that cause a branch to another page when you press.
I want to make is that when the user presses the button on one of the lines, APEX defines two elements of application before going to the new page:
1. the ID column of the line in which the key has been pressed
2. the value currently highlighted in the select list, for the line in which the key has been pressed
Using a link of #ID column element value # I can successfully get their hands on the ID column for the line concerned.
But do the same thing for the select list column invariably returns by default in the Select list (i.e. the value initially selected). It does not pick up the change if the user has entered in the select list and chose a different value.
Can someone advise how best to gain the value selected in a Select list in a tabular presentation?This approach works:
1 make sure you have unique names for the id on the elements of the apex for example. in the use of sql, something like:
ID = f02_' | rownum
2. Add a hidden column in the form of table containing the rownum (named p_row in this example)
3 put the URL of the link column:
JavaScript: Window.Location.href = ' f? p = & APP_ID.: 49: & SESSION.: P49_EMPNO, P49_DEPTNO: #EMPNO #, ' + $v('f02_'+'#P_ROW#');
example of
http://Apex.Oracle.com/pls/Apex/f?p=579:48
If you need SSP then you will need to send the page by using the apex.submit function and a PLS process to prepare the URL and branch
See you soon
Shun
-
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.
-
Validation of tabular form regarding the item master detail
Hi guys,.
I have installation master detail on my page with a layout table below.
The master record has a field called RCV_QTY.
The tabular presentation has a column called box_qty.
What I'm trying to do is to validate it against the user to add lines in the table form which when added, is more than the amount of heading RCV_QTY.
I tried the following function returns the validation text error but it's not enough work.
As the line in the custom of tabular form be seen by the following SELECT INTO statements on submit, I guess I need more of a process of dynamic action type?
DECLARE
v_hdr NUMBER;
v_line NUMBER;
BEGIN
SELECT hdr.rcv_qty
IN v_hdr
OF XXMEL_VMI_RCV_HDR_TMP hdr
WHERE the hdr. VMI_RCV_HEADER_ID =: P2_VMI_RCV_HEADER_ID;
SELECT SUM (line. BOX_QTY)
IN v_line
OF XXMEL_VMI_RCV_HDR_TMP hdr
Online XXMEL_VMI_RCV_LINE_TMP
WHERE the hdr. VMI_RCV_HEADER_ID = line. VMI_RCV_HEADER_ID
AND hdr. VMI_RCV_HEADER_ID =: P2_VMI_RCV_HEADER_ID;
IF (NVL(v_line,0) - NVL(v_hdr,0)) < 0
THEN
RETURN (' ERROR: the sum of the quantities of tag is greater than the quantity of the received header ');
ON THE OTHER
RETURNS A NULL VALUE.
END IF;
END;
Any help would be great.
I use Apex V4.0.Hello
You must use the API APEX_APPLICATION total up to the Box_Qty of detail in Validation, and compare with the RCV_QTY. something like
DECLARE V_BOX_TOT NUMBER := 0; BEGIN FOR I IN 1..APEX_APPLICATION.G_F01.COUNT LOOP V_BOX_TOT := V_BOX_TOT + TO_NUMBER( NVL(APEX_APPLICATION.G_F01(I),'0')); END LOOP; IF V_BOX_TOT > :P1_RCV_QTY THEN RETURN FALSE; ELSE RETURN TRUE; END IF; EXCEPTION ..... END;
Kind regards
-
Is it possible to use the minimum and maximum dates in the datePicker in tabular form? It doesn't seem that this option is available in tabular form and I find it very difficult to find a way to limit the selection of the date of a given month when you use tables. Any suggestion would be appreciated.
Karen,
I created 2 extra hidden on page 2, P2_MASTER_MONTH_MINDATE and P2_MASTER_MONTH_MAXDATE.
1 dynamic action, after the region in a table is refreshed. Action to execute javascript, pull on the loading of the page check the true value.
$("td[headers='DETAIL_DATE'] input") .datepicker("option","changeMonth",false) .datepicker("option","minDate",$v("P2_MASTER_MONTH_MINDATE")) .datepicker("option","maxDate",$v("P2_MASTER_MONTH_MAXDATE"));
Which will reduce all datepickers to the column "detail" for the month of the master record.
-
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
-
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
Maybe you are looking for
-
Cannot lock preference status plugin
Hello. I have two plugins for online banking that I want to stay on mode 'request to activate' (1 for "plugin.state.npsf_bb" and "plugin.state.npsf_abn" preferences in all: config) but manage to reposition themselves on "always on" (value 2 for prefe
-
How can I fix error COOD1199
-
Is it possible to use the audio jack as input?
I was wondering if any of you know if it is possible to use the audio input jack on the BB10 devices as input source?
-
playerframework codeplex for audio8 app
Open source codeplex playerframework. only source listed on the site. Always says temporarily "out of Service" contacted Librivox books say that they are not affiliated with the site, even if the books from there. Don't know what to do. Written be
-
Should be deleted Contact supplier in R12
HelloWe need to remove the AP_SUPPLIER_CONTACTS table provider contacts.Why duplicate in another ORGANIZATIONAL unit contacts.Please suggest, as the Oracle has said that it has no API to remove contacts of suppliers, only way is to put an end to thei