disable the ENTER KEY on the text element
All,
I am trying to disable VALIDATE on the ENTER KEY for a piece of text on a page like below but still his presentation how can I achieve this.
I want the page to totally disable the entry button so when I press the ENTER KEY, nothing happens.
what I did:
1. when the page loads,
$("input").keypress (function evt) {}
charCode = evt.charCode var | evt.keyCode;
If (charCode == 13) {}
Returns false;
}
});
2.
NO.
APEX 4.2
Thank you.
Hello
Your code is not valid.
I don't know that it generates errors.
Put on the page-> Execute JavaScript when loading the Page
$("input,select").keypress(function(e){ return e.keyCode!==13; });
Kind regards
Jari
Tags: Database
Similar Questions
-
My requirement is
If we click on the POP UP dot LOV button then I want the dependent value of this item in column of the text element in a table.
How do I get this as a table?
Hi Dan,.
I have a table, in the first column is popup LOV.and second column key is text element.
So my question is if we click contextual key lov and select employee name, then I want to show the email address of this employee in the second column of tabular presentation.
This can be done with AJAX. Write a JavaScript function on the onchange event of popup LOV item (Employee) key and pass the number of the employee selected to your AJAX call, go get the employee email and assign it to your entry corresponding to the key LOV popup text has changed.
As your dealing with Form (Wizard Based/APEX_ITEM Based-not specified) in a table, you take insofar as each column is the table of elements mapped to APEX_APPLICATION input. G_FXX tables and therefore to write JavaScript to locate the item to update.
I hope this helps!
Kind regards
Kiran
-
How to get the control to one of the text element?
Dear people,
I have two items of text to say TEXT_ITEM5 and TEXT_ITEM6.both values entered in the text elements must be equal.else that an error message should be displayed and two items of text should be cleared.so that I wrote the following code in WHEN BUTTON the shutter as.
Its almost works well, but after having erased the text in the two elements of the control text should go back to TEXT_ITEM5. I even tried GO_ITEM but is not working properly.pls help me with suggestions.If :block3.text_item5 <> :block3.text_item6 then c:=show_alert('ALERT21'); :block3.text_item6:=null; :block3.text_item5:=null; raise form_trigger_failure; end if;
Regarding
VidsHello
If the value of two text element should be equal so why give the possibility to enter 2 text boxes? Enter 1 text and WHEN-VALIDATE-ITEM trigger of this element, assign the value to the other text element. And if you still need the old way, then you must write the GO_ITEM integrated before the RAISE FORM_TRIGGER_FAILURE statement.
IF :BLOCK3.TEXT_ITEM5 != :BLOCK3.TEXT_ITEM6 THEN C := SHOW_ALERT('ALERT21'); :BLOCK3.TEXT_ITEM6 := NULL; :BLOCK3.TEXT_ITEM5 := NULL; GO_ITEM('BLOCK3.TEXT_ITEM5'); RAISE FORM_TRIGGER_FAILURE; end if;
Kind regards
Manu.
-
The text element values value when the user clicks a report line.
The text element values value when the user clicks a report line.
I have a report based on the EMP table and two elements P911_EMPNO, P911_DEPTNO. When I click on one of the lines the EMPNO and DEPTNO is copied to the text elements.
It works fine if I leave the EMPNO and DEPTNO as SHOW report, but if I then these clear values are not retrieved the report form (my javascript is very limited).
I need a method to retrieve the data hidden in the report and display in the text without the reposting of the page elements.
Also, would be nice if the line was highlighted until another line is clicked but especially is my priority.
Elements
P911_EMPNO, P911_DEPTNO (field of disabled text, saves the State)
Report
Select * from emp using the model of report below.
Custom model.
standard_report_cust_P330-a copy of the standard report with a change model.
BEFORE EACH LINE
< tr onclick = "selectRow (this);" #HIGHLIGHT_ROW # >
* Javascript in the Page Header.*
< script language = "JavaScript1.1" type = "text/javascript" >
function selectRow (p_tr)
{
var l_deptno = p_tr.childNodes [8] .innerHTML;
var l_empno = p_tr.childNodes [1] .innerHTML;
html_GetElement ('P911_DEPTNO'). Value = l_deptno;
html_GetElement ('P911_EMPNO'). Value = l_empno;
}
< /script >
If anyone has any ideas. Thanks, PeteHello
When you use this type of report model, you actually control on where the column values are used - and they can be used several times.
For example, a setting of 'Model line 1' for one such model could be:
<tr> <td class="c1">#1#</td> <td class="c2">#2#</td> <td class="c2">#3#</td> <td class="c2">#4#</td> <td class="c3">#5#</td> </tr>
#1 # fact refers to the data in the first column, #2 # for the second and so on. So you can do:
<tr onclick="javascript:dosomething('#1#','#2#');"> <td class="c1">#1#</td> <td class="c2">#2#</td> <td class="c2">#3#</td> <td class="c3">#5#</td> </tr>
For example, by clicking on the line would trigger the dosomething() function and pass in that the values of the first and second columns. Also note that the 4 # does not appear now - this column is 'hidden' (but note that you must check the box to show the column)
Andy
-
How to extract values of classic report column in the text element
Hi all
I've created a classic report (select id, name,' < input type = "button" value = "add" id = "add" name = "add" > "as" add details "details ;) with a single column as column values want link.i in the text element when I click on the link of that particular record of the report)
(1) in the link this link column property I've specified the URL as [javascript:insert_in_table(#ID#,#NAME#)]
(2) text two article P_ID, P_NAME
(3) in the header of the page, I've specified as javascript
< script type = "text/javascript" >
function insert_in_table (id, name) {}
var regId = ' #detail #'.substr (1);
var req = new htmldb_Get (not null, $v ('pFlowId'), 'APPLICATION_PROCESS = add', $v('pFlowStepId'));
Req.Add ('P_ID', ID);
Req.Add ('P_NAME', Name);
forced. GetAsync (function () {}
If {(p.readyState is 4)
$a_report (regId);
}
});
}
< /script >
(4) created a (add) process whose point: on demand, run this process when requested by ajax
pl/sql: insert into name_detail (id, name) values (: P_ID,: P_NAME)
now the problem is I m not getting the values of column in the report in the text element, it only shows white.
Kind regards
Ketan
Hello Ketan,
Assuming that you want to insert the values into the table, this is why you want to set values for the element,
If this is the case, then no need to define values for the element to insert.
Follow the steps below, it is one of the embodiment of your condition.
Step 1: Put the code below in your classic report query
assuming that the id is of type number and the name is of type varchar, that's why I am attaching the name to apostrophe, see line 3
select id , name , '' as "Add to detail" from detail
Edit 'Add details' column-> column attributes-> view-> column of Standard report
Step 2: Create a process in the processing of the Page
Name: INSERT_DATA
Address the point: on demand, run this process when requested by ajax
Process: putting the code below
Declare P_ID number ; P_NAME varchar2(50); Begin P_ID := apex_application.g_x01; P_NAME := apex_application.g_x02; insert into name_detail(id,name) values (P_ID,P_NAME); End;
Step 3: Create a java script function to call your insert ajax process.
Change the Page-> the function and the global variable declaration-> put the code below
function insert_in_table(id,name) { apex.server.process ( "INSERT_DATA", { x01: id,x02: name }, { success: function( pData ) { } }); }
Hope this helps you,
Kind regards
Jitendra
-
How can I disable the first elements adobe from my computer crashed
How can I disable the first elements adobe from my computer crashed
Hi Franks,
This probably should have been posted in the Premiere Elements forum, as this forum is a place of social discussion.
However, you can simply install Premiere Elements of the new computer and activate it. If not, then you will need to contact Adobe customer service and use the 'chat' option - they will help reset your activation:
I hope this helps!
Mike
-
This is a bug or a really bad and frustrating idea for a story.
(1) in the layers panel, select a text layer, it highlights
2) change to the text tool
3) click on the text element in the workspace
OR
(1) select a layer in the layers panel
(2) Ctrl-J, new layer by copying
EXPECTED: Panel layers rest in the same position
REAL: Panel layers scrolls the element selected or new layer to the top of the Panel. BORING.
I do not need or want Photoshop to make decisions for me, space to work around to move without asking, or generally to spoil my flow!
Please fix this or give me an option to turn it off as soon as POSSIBLE.
You have successfully updated to 2015.0.1?
The bug known as in the original message has been fixed in this version.
-
How can I disable the Photoshop elements 13?
How can I disable the Photoshop elements 13?
Help > log out
-
How to display database records in the text element
Hello friends,
I use forms6i...
I called "username" in the layout of text editor. I created this point in the text of the data block Wizard... I put the number of items displayed = 3 in this wizard...
In the 'user name' property palette I have following changes
Number of displayed items = 3;
When I click on the button named "list_user" must watch all the user names in the text element...
My shutter button pressed when code is:
declare
cursor c1 is
Select Logid log1 where logout_date is null;
Start
Open c1;
Fetch c1 into: name of user;
end;
But my problem is when I run the user a single form displayed in the text element... The text elements two remaining are have no data...
The result of the cursor query is:
SQL > ed
A written file afiedt.buf
1 Select logid log1 where logout_date is null
SQL > /.
LOGID
--------------------
104
105
106
Please help me
Published by: Bauer on February 23, 2011 01:451.
There is no loop in your code, so it stops after the first extraction.2.
with each loop you overwrite the same text field. Add CREATE_RECORD:DECLARE CURSOR c1 IS SELECT logid FROM log1 WHERE logout_date IS NULL; BEGIN OPEN c1; LOOP IF :username IS NOT NULL THEN CREATE_RECORD; END IF; FETCH c1 INTO :username; EXIT WHEN c1%NOTFOUND; END LOOP; END;
-
Dynamic adjustment of the height of the text element
Hi all
I'm trying to view content of the letter to a text element. If the content is up to 5 lines
the height of the text element is just to include content only.
In other words, the height of the text element must expand and shrink based on the content.
It is possible that way?
Thank you
{: 8}Hello
You can do it. Try
SET_ITEM_PROPERTY('
', POSITION, GET_ITEM_PROPERTY('letter', X_POS), TO_NUMBER(GET_ITEM_PROPERTY('letter', Y_POS)) + TO_NUMBER(GET_ITEM_PROPERTY('letter', HEIGHT))); Kind regards
Manu.
-
Restrict the text element of data entry
Dear comrades,
I have a block of data. In this block, I have a DB text element. When I use the execute_query, the values are filled in this point of the DB block text. Some of the text elements are filled with value and some are not according to the database table.
In this situation, I want to limit this element of text in a way so that if it already has the data, so no one can change the value other than (i.e. If the text element has a null value) the user can put data out there.
Please help me this app. Thank you for your support and your help.
Rgds,
Lutherper block of several recording, you need to use SET_ITEM_INSTANCE_PROPERTY instead of set_item_property, but in this case, only the INSERT_ALLOWED AND UPDATE_ALLOWED properties can be set. see the forms for more information online help
set_item_instance_property('myblock.myitem',current_record, insert_allowed, property_false); set_item_instance_property('myblock.myitem',current_record, update_allowed, property_false);
If the answers are useful or correct please mark
Baig,
http://baigsorcl.blogspot.com -
How to write to several lines in the text element?
I tried to write 2 lines in the text element, however only return one row:
: myqueues.queue: = "Hello" | Chr (10) | ' world ';
It gives me only 'Hello' in the first line and nothing else in the 2nd line.
Are there settings needs to be activated in the property of text element?Try this:
DECLARE v_filename VARCHAR(50); v_handle text_io.file_type; begin v_filename := get_file_name(file_filter=>'All files(*.*)|*.txt|'); if v_filename is null then bell; return; end if; v_handle := text_io.fopen(v_filename, 'r'); go_block ( 'myqueues' ); clear_block; text_io.get_line(v_handle, :myqueues.queue ); next_record; text_io.get_line(v_handle, :myqueues.queue ); next_record; text_io.get_line(v_handle, :myqueues.queue ); next_record; text_io.get_line(v_handle, :myqueues.queue ); first_record; text_io.fclose(v_handle); exception when no_data_found then text_io.fclose(v_handle); end;
Published by: Magoo on 02.10.2009 12:01
-
How to view computer-id (user name) in the text element
I want to know how to display the name of average user specific computer id that uses my module in the text element?
Any idea
Concerning
ThereseHai,
Run the following command to create a database function.
CREATE FUNCTION Fn_Get_Computer_Name RETURN VARCHAR2 IS Str_RetVal VARCHAR2(1000); BEGIN SELECT SYS_CONTEXT('USERENV', 'OS_USER') INTO Str_RetVal FROM DUAL; -- Windows User Name RETURN Str_RetVal; EXCEPTION WHEN OTHERS THEN RETURN NULL; END;
And in the forms, just write
:
. := Fn_Get_Computer_Name; Kind regards
Manu.
If this answer is useful or appropriate, please mark. Thank you.
-
How to insert the scroll bar in the text element
Hi all
Now I use form 10g.
Is it possible to add the scroll bar in the text element? If, Yes...
Please help me to insert the scroll bar in the multi line text item.
Thank youHello
You should not do anything... to get a scroll bar...
For all the elements of several lines, scroll bar is automatically
the runtime if data exceeds the size of the
field...Concerning
Swati -
Disable the text with the selection query list element?
4.2.1
THM:2
Hi all
In the full text with Auto item, is the query preloaded when the page loads? Or is it run only when the user enters any text? Reason being that on the follow-up to our application apex because of a performance issue, it was noted that the query associated with the AutoComplete text box was running 3 times, (it has been referred to in 3 places on the same page in a sql report. We feel that the sql would be only when someone starts to enter a value in the field? If this isn't the case, we can disable to run when the page loads?
In addition, if the text with Auto C is used in the where clause of a sql report, would it be internally run the underlying sql query? Should he treats not only as a text element?
Thank you
Ryan
Hi Ryan,
Please see the concept of lazy loading of AutoComplete.
http://blog.whitehorses.nl/2010/02/25/Oracle-Apex-4-0-text-field-with-AutoComplete/
-Sunil Bhatia
Maybe you are looking for
-
Migration wizard - final step problem.
So I'm transferring my data by the migration to a new laptop, my old Wizard. I had to turn off safe and then allowed me to complete the migration and the laptop itself restarted. Now the window I'm stuck with what is "transfer of information", finali
-
Advanced Audio (A2DP) how to start on my Tecra?
I noticed that my TECRA supports the A2DP and AVRCP Bluetooth profiles, but it seems impossible to get music in the computer when I'm sending my cell phone... (He refuses the connection as soon as I try to put in place) Anyone know what lack us.The h
-
Get the default value for class LV 1498 error
I call get the Default Value.vi LV class to dynamically load a class. It was working fine until I added Open Config Data.vi to read an .ini file. The application works fine when I press the button RUN in the LabView development environment, but when
-
Hello I have access to the different machines behind the RV042 on ports 80 or 443. Each machine can be paid locally to the private IP address. So if I read it right, I have to configure UPnP functionality to do the translation, but it does not work:
-
I have an Oracle 12 c with container root database CDB$ROOT , containing seeds PDB$SEED and 2 PDB files, namely APEX42PDB and APEX50PDB. I have installed 2 versions of the APEX, namely V4.2 and V5 2 separate data bases-ins, APEX42PDB and APEX50PDB re