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
Nick
The 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
------------------------------------------------------------------------------
Tags: Database
Similar Questions
-
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
-
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 -
Hello
I tried something with the processing of the forms which doesn't seem to work. I wonder if the function really works or if I'm doing something wrong.
Here is an example of what I do: I have a form that I want to use. I add "Web Page redirection" processing step to my form. When I click on the processing step to set up, under "General settings" there is an option that says "Choose how the launch of destination page is selected." In this drop-down menu, there are three options: always redirect to the same landing page, use a drop-down list to select the landing page and the value of a form field allows you to select the destination page. I have a hidden field on the form that contains the URL of the web page to which I would like to redirect. When I select 'Use the value of a form field to select the landing page', I select the hidden field to the field that contains the URL of the web page to which I want to redirect. It's my setup. However, when I submit the form, nothing happens, I do not redirect to the URL contained in the hidden field... This function still works? I'm doing something wrong? I can't seem to get the function "Use a drop-down list to select the destination page" to work either. The same thing happens when I try to use the "Add Contact to shared the list" processing step. I add the name of the list that is shared in the field hidden, but the contact does not appear in the shared list... These functions still work? If yes how do I configure them?
Thank you!
Well, I understood the problem of the shared list... You must add the ID of the list shared in the hidden field. I had to use Firebug to see the real ID of the shared list. Once you have the ID, use you it as a static value in the field. If the HTML code of the form will look something like this:
If you do not use the lookup data ID. You use the ID real asset on the shared list. You must use something like Firebug to find.
I'm glad everything is working.
-
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
------------------------------------------------------------------------------ -
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
-
Default values in tabular form
I use Apex 4.0.
I want to create a tabular presentation. Y at - it an easy way to fill some of the field values just after a new row is added. -Basically, I want to set some default values
Ed.Hello Ed,
Go to the attributes report > change a column ( column attributes ) > attributes of tabular form , you select the default Type and default .
Then the line you add has this value.
Kind regards
Alan. -
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 -
"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:
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 buttonfunction html_Submit_Progress(){ $x_Show('AjaxLoading'); window.setTimeout('$s("AjaxLoading",$x("AjaxLoading").innerHTML)', 100); apex.confirm(htmldb_delete_message,'MULTI_ROW_DELETE'); }
There is a piece of html code in the footer:
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.<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>
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.1Hello
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 -
using the value of a form field in another form field
I hope that I can describe my problem. Please bear with me
I have a worksheet with a lot of form fields. For most of the text boxes and a few drop-down list boxes.
I use a lot of custom calculation scripts to determine what information auto fills in most of the fields.
But I have problems with a last form named ORTHOPLANID field.
The value that it auto fills depends on two other fields. A field is called MEDOOP. The other field is SUPPDENPLANID. I tried to use an if/then/else statement for ORTHOPLANID but it does not work. I'm guessing it doesn't b/c, the value of the MEDOOP field is generated from an if / then statement so I don't know whether or not the script recognizes its value as a real value.
Is there another way to get around this? I don't know if I have clearly explained the problem, but I hope someone can help
Thank you
Brandy
I think I know what the problem... You did not drop-down fields
commit their selected values immediately (under Properties - Options). As one
result, the calculations take place when you exit the field (i.e. click)
outside), and not when you do a
selection.
-
Treatment of the values not defined forms
I have a form with 50 frames.
Sometimes when my users submit it form, if the field value is equal to zero, completely remove the input area.
For example, when the form is submitted, and they get to the processing page. the value of form field for the field they deleted is «»
This causes problems as the value of the form is "", where it should be 0.00
I'm CFPARAM to the processing page. But I guess that, given that the value is set ("'") they are not used.
Is there a way for treatment in the form of code page so that if one of the fields of the form are "" they have by default a value of 0.00?
Pat
You could do it in a loop and | or a function.
I.E.
You may need to change this there are some areas that you don't want to test this way.
-
How can I activate the values hidden Login form in session variables?
QUESTION: How can I get form elements hidden for primelang, studylang, country and nationality of the Login form Post table to become the session variables?
Adobe page at http://kb2.adobe.com/cps/165/tn_16563.html gave me the info that didn't work because the code is old. The first question I asked was answered in useful, but partial and no values are appearing. All this is set out below, and I don't know if I can shorten and still make sense.
Page 1 has a form of connection with six fields.
The textfields in form are the user name and password.
The hidden form fields are: nationality, country, studylang, primelang and their values will be set by incoming was a previous page URL or hard-coded in.
I am trying to create four hidden fields session variables to avoid having to deploy recordsets on each subsequent page.
After the "connect" button is pushed, I want that these four form fields hidden, nationality, country, studylang, and primelang and their values, proceed to the next page, as of Session Variables and then be available to all pages so I can use them in the links to other pages and in < img src="folderX/SessionVariableValue/book1.php. > Make sense?
Each page of support seems to work:
On the login page, the $MM_redirectLoginSuccess = "yadayada.php"; works very well.I used <? PHP if ($_POST) {print_r($_POST) ;}? > to check the post table and it works properly for all areas.
I created links to the four Session Variables with the same words: primelang, studylang, country, nationality, and them deployed on the recipient page:
<? PHP echo $_SESSION ['primelang'];? >
<? PHP echo $_SESSION ['country'];? >
<? PHP echo $_SESSION ['nationality'];? >
<? PHP echo $_SESSION ['studylang'];? >
QUESTION: How can I get the form to primelang items, studylang, country and nationality of the table to enter the head Post code on the recipient page? I have deployed it in the code of the head, but the gentleman who offered assistance previously not a not inform me how to get the hidden field values in the "what".
<? PHP session_start();
$_SESSION ['nationality'] = 'whatever ';
$_SESSION ['studylang'] = 'whatever ';
$_SESSION ['primelang'] = 'whatever ';
$_SESSION ['country'] = 'whatever ';$nationality = $HTTP_POST_VARS ['nationality'];
$studylang = $HTTP_POST_VARS ["studylang"];
$primelang = $HTTP_POST_VARS ["primelang"];
$country = $HTTP_POST_VARS ['country'];
? >What is the magic, missing link?
I tried to use form Variables to pick up the values, but PHP doesn't, or I messed up. I can't find a FULL explanation of how to create, move, retrieve and deploy the Session Variables anywhere on the web. Thank you for your help.
What is the magic, missing link?
You're going to start, but the magic missing link is the realization that "it doesn't matter" is a fictitious string that represents everything you want to assign to the session variable.
$HTTP_POST_VARS and $HTTP_GET_VARS are obsolete. You must replace them by $_POST and $_GET respectively.
Maybe you are looking for
-
Videos don't get loading or are broken up, why?
I have problems loading the videos online. I tried to update the shockwave plugin, but it freezes.
-
Help my Lenovo G550 Webcam not found
Help my Lenovo G550 Webcam not found It was working fine last night and I went this morning etil did not work! Help her bed to the ive tried caraa drivers
-
Original title: "Client Services for NetWare." When I try to change my account settings, I get this message "client for NetWare has disabled the display of welcome and Fast User Switching. To restore these features, you must uninstall Client Services
-
I have a Vista Upgade that I bought because XP has a virus or something and does not start. When I put disc Vista he said that I should start of XP but it does not start. The reason why I bought Vista was because I believe that my Dell PC has a SAT
-
Need to reinstall Windows on my Dell laptop 8.1
Hello I had a windows 8.1 license to my Dell, but it failed when I tried to install linux os to do a dual boot. Now I want to reinstall windows on my laptop even 8.1. Kindly help me on this. I don't have the license key with me right now.