How to allow a max of 4 chars to be typed in gui textfield
I have textfields in my gui which i only want to allow the user to type in 4 numeric digits...is there a way to set some textfield property so that it will not hold more than 4 digits.
That isn't a great solution. What if they are at length 4 and they press the backspace key or the delete key, or they assing a key to clear the contents? You would have to add all those checks to your listener. If you modify the document then you don't have to worry about key bindings or pasting or checking for delete or backspace.
Similar Messages
-
How to retreive the max data length of a column
Hello All,
I know how to do a select to get the max data length of a column it is this :
SELECT MAX(LENGTH(COLUMN_NAME) FROM table.
However, I need this information combined with my SQL that returns the Data_type and length from the USER_TAB_COLUMNS. So taking the emp example if the ename column was 50 as VARCHAR2 but the max data entered in it was just 20 I want the information like this:
SELECT COLUMN_NAME, DATA_LENGTH, and the Max length of 20
FROM USER_TAB_COLUMNS WHERE TABLE_NAME='EMP';
I don't know how to get the Max Length of the Column in this table. Can anyone suggest me a hint? An Inline view maybe?
ThanksStill not sure about your requirements, but how about this
SQL> CREATE OR REPLACE FUNCTION get_max_length(p_table in varchar2, p_col in varchar2) return pls_integer
2 is
3 v_cnt pls_integer;
4 begin
5 execute immediate 'select max(length('||p_col||')) from '||p_table into v_cnt;
6 return v_cnt;
7 end get_max_length;
8 /
Function created.
SQL>
SQL> SELECT COLUMN_NAME,
2 DATA_LENGTH,
3 get_max_length(TABLE_NAME, COLUMN_NAME) max_length
4 FROM USER_TAB_COLUMNS
5 WHERE TABLE_NAME='EMP'
6 AND DATA_TYPE like '%CHAR%'
7 ;
COLUMN_NAME DATA_LENGTH MAX_LENGTH
ENAME 10 6
JOB 9 9
SQL> -
How to know a word is a char or number
how to know a word is a char or number??
urgent plThis question has appeared many times and you could search for previous answers.
The most popular answer is to write a function which attempts to_number(input_string). If it is not a number this raises an exception which you can handle, thus allowing the function to return true or false. -
How to find Average & Max of a Restricted key figure
Hi Friends,
I have a restriced Key figure. How to find Average & Max for that Restriceted Key figure.
Post Asap.
Thanks = Points.Hi Friends,
Let me explain my scenerio clearly.
I need to have five columns as below with char Current Assigne.
No of open cases No of Closed cases Avg age of closed cases Avg age of open cases Max age of Closed cases
Current Assigne.
Thanks,
James -
Hi ,
can anyone let me know how to retrive the max 3 values from a table...
I want to get the top 3 values of salary from emp table
Thanks,
PraveenPraveen,
Consider the following example:
SQL> set pagesize 9999
SQL> select empno, ename, sal
2 from scott.emp;
EMPNO ENAME SAL
7369 SMITH 800
7499 ALLEN 1600
7521 WARD 1250
7566 JONES 2975
7654 MARTIN 1250
7698 BLAKE 2850
7782 CLARK 2450
7788 SCOTT 3000
7839 KING 5000
7844 TURNER 1500
7876 ADAMS 1100
7900 JAMES 950
7902 FORD 3000
7934 MILLER 1300If you want to get the top three salaries, you can use this query
SQL> select sal
2 from
3 (select distinct sal
4 from scott.emp
5 order by sal desc)
6 where rownum<=3;
SAL
5000
3000
2975If you want to see all the employees having any of top-3 salaries you can use the following one:
SQL> select empno, ename, sal
2 from
3 (select empno, ename, sal, dense_rank() over (order by sal desc) dr
4 from scott.emp
5 )
6 where dr<=3;
EMPNO ENAME SAL
7839 KING 5000
7788 SCOTT 3000
7902 FORD 3000
7566 JONES 2975If you want to get the first 3 employees with the highest salaries. You can use the following one.
But, be aware, there might be more employees having $3000,00 salary.
SQL> select empno, ename, sal
2 from
3 (select empno, ename, sal
4 from scott.emp
5 order by sal desc)
6* where rownum<=3
SQL> /
EMPNO ENAME SAL
7839 KING 5000
7788 SCOTT 3000
7902 FORD 3000
SQL> -
how to allow some fixed extension go in from outside to inside but not allow go from inside to outside
for example, allow JPEG, MOV, AVI data flow from outside to inside
but not allow JPEG, MOV, AVI files access or upload or get by outside, in another words not from inside to outside
how to configure?Hi,
The ZBF link sent earlier show how we can inspect URI in http request
parameter-map type regex uri_regex_cm
pattern “.*cmd.exe”
class-map type inspect http uri_check_cm
match request uri regex uri_regex_cm
ZBf is the feature on Cisco routers and ASA though concepts are little same but works differently. However it is important that you can be more granular with the protocol (layer 7) inspection only. Like on ASA if you will try to restrict .exe file from a p2p application that won't be possible, But on router you have some application for p2p in NBAR and you can use it file filtering. Please check configuartion example for both devices.
Thanks -
Hi,
How can I convert HEX value to CHAR value.
The Code in <b>non Unicode</b> system is:
DATA: t_text LIKE tline OCCURS 0 WITH HEADER LINE.
constants: c_hex_20a5(2) TYPE x VALUE '20A5'.
t_text-tdline = 'seller of the item so listed. A legend of the Seller Code(s) is as'.
TRANSLATE t_text-tdline USING c_hex_20a5.
The same code give error in <b>Uni-Code</b> system:
<b>error is "c_hex_20a5 must be an character type object (C, N, D, T or String type)."</b>
If anyone know, what is the solution, please let me know.
Thanks!
Puneet.Hi,
Try declaring the Hex chars using the ABAP char utilities. This is just a sample piece of code on how to declare and use:
CLASS cl_abap_char_utilities DEFINITION LOAD.
DATA: ws_lf TYPE c VALUE cl_abap_char_utilities=>cr_lf.
data: c_newline TYPE x VALUE '0D'. [ it is zero D, for carriage return ]
ws_lf = c_newline.
CONCATENATE it_tab-maktx
ws_lf
ws_template
INTO it_notificatn-template.
Hope this helps...
Regards
Subramanian -
How to allow the special character in folder or filename
when i add the special character "&" in folder or file name it gives following error
"The file or folder name "P&A" contains invalid characters. Please use a different name. Invalid characters include the following: ~ " # % & * : < > ? / \ { | }. The name cannot begin or end with dot and cannot contains consecutive dots."
how can i allow these character in folder or file name.
waitingHello to everybody
It's ok for the ~ " # % & * : < > ? / \ { | } characters, they cannot be allowed,
but in a lot of languages there are letters like è é à ù ò that are accepted for path and/or filename;
how to allow these characters? Moss indexes them but when doing some searches and clicking on these files, in the new internet explorer windows the file cannot be opened abd examining the url the è é à ù ò are replaced with other character.
Thanks in advance to everybody
Regards to all
Roberto GerlandoGerly -
How to get the bounds of single char?
How to get the bounds of single char in text frame?
ThanksI also think there is not an exiting function which can get it, but we can work around. Can you give some ideas to work around it?
-
How to allow multiple wildcard elements in biztalk schema
Hi,
In my input xml, I can have one or more unknown elements in the xml. I know I can use <xs:any> in my schema for each of these elements but it does not work when there is unknown number of these unknown elements occuring in the input xml.
I know the location in xml where these unknown elements appear but I dont know how many times they appear in each location.
Any help on how to allow it would be very appreciated
thanks
manibestHi manibest,
You're trying to find a technical workaround on how to handle this in schema. But we have to understand that schema is to defining the structure and content of XML and you want a schema which is not going to define the content/structure of your
XML, its basically a flaw to conceive a Schema which has no relation to the XML.
Anyway what do you mean by " xml accepted by the schema" - As mentioned in the
other post you have raised today, if you don't enforce XML validation and if you don't bother about mapping this unknown fields across to the outbound schema or if your orchestration's processing is not bound to these unknown elements then you can
do use it.
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply. -
How to allow user print their draft anwsers before sending it as final ?
How to allow user print their draft anwsers before sending it as final in a form central questionnaire ?
Hey MTdev,
Panel close? events cannot be triggered on a VI being viewed or controlled remotely. Some more information on that can be found in the help here:http://zone.ni.com/reference/en-XX/help/371361E-01/lvprop/vi_panel_closeq/. My suggestion would be to set the Title Bar on the front panel of your remote VI to not be visible so that their only option for closing the window is to click the logout button. Are you using Remote Front Panels(http://zone.ni.com/devzone/cda/tut/p/id/3277) to do this instrument control? Using remote front panels allows you to manage a lot of the multiple people accesssing at the same-time type issues so it may be something to look into if you are not already using this method.
Regards,
Kevin
Product Support Engineer
National Instruments -
How to allow user chaning his password in OBIEE 11g weblogic custom LDAP?
Hi,
How to allow user chaning his password in OBIEE 11g weblogic custom LDAP?
I need to give user an option to do so, without the intervention of any Administrator. I also do not want to make user a Administrator else he will be able to login in weblogic and can do any damages unknowingly.....
Regards,
RahulHi,
Replace the line in the instantconfig.xml
<WebMessage name=”kmsgChangePasswordLink”><!–<HTML><sawm:messageRef name=”kmsgUIChangePassword”/></HTML>–></WebMessage>
with
<WebMessage name=”kmsgChangePasswordLink”><HTML><sawm:messageRef name=”kmsgUIChangePassword”/></HTML></WebMessage> -
How to get the max value in the query??
Plant calday(mm.dd.yyyy) Soldout.Qty
0001 01.01.2005 10
0001 01.02.2005 20
0001 01.03.2005 05
0001 01.04.2005 16
0001 01.05.2005 10
0001 01.06.2005 14
From the above values , how can i findout Max(Soldout.Qty)(i.e 20) for the above week...Suppose present aggregation = summation...How can i findout the value in the Query??don't want to do changes to design...Hi Bhanu,
I tried the calculation results as...Maximum,..
But that will pick the maximum value among the avialable values..like
plant1 max 10
plant2 max 20
plant3 max 30
then it will show as..
plant1 max 30
plant2 max 30
...like this...but my case is
plant1 calday1 10
plant1 calday2 05
plan1 calday7 08
plant2 calday1 10
plant2 calday2 05
plan2 calday7 20
so for each set it need to bring the maximum value... -
How to increas the max user process number in Solaris 11?
Hey
Could anyone told me how to increas the max user process number in Solaris 11? I tried below as described in https://blogs.oracle.com/hasham/entry/solaris_10_increasing_number_of , but it cannot work.
set pidmax=60000
set maxusers = 4096
set maxuprc = 50000
set max_nprocs = 50000
Thanks!
Edited by: 966272 on Oct 18, 2012 7:38 AMPerhaps you should work your original forum post:
Oracle 11g installation fail on Solaris 11 64bit - ORA-00443
through to a resolution before you complicate things that likely don't apply.
You make an assumption in that other post about exceeding various maximums. That may be true or it may not be true. Since the installation of a database program seems to be your actual expectation, go work that forum thread instead. -
How to allow multiple selection of nodes in a JTree
How to allow multiple selection of nodes in a JTree ?
Thanks
S.SatishBy default when you create new instance og JTree the selection model is multiple selection. And if you want to change it you use next:
tee.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
or
tree.getSelectionModel().setSelectionMode(TreeSelectionModel.CONTIGUOUS_TREE_SELECTION);
or
tree.getSelectionModel().setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);
Hope will help!
Maybe you are looking for
-
How do I get adobe flash player on the iPad?
How do I get adobe flash player on the iPad? Or do I have to get an app?
-
Cancellation of Service order confirmation
In IW31 we are creating service orders. That service order is posted in 03/24/2008. When i cancel that service order today it is posting into 03/24/2008. But it has to post in Current date. ( 11/25/2008 ).Can any one tell me why it is happening like
-
I am using Nokia 5800 XM firmware 50 When I am listening music and opening in browser page http://habrahabr.ru/blogs/apple/95711/ (or any other big page) - browser showing alert "Not enough memory" and closing music player if in browser there is not
-
Hey gurus I have been editing large numbers of tags throughout my music collection and I noticed that some changes to tags are written almost instantaneously while others take a surprisingly long time. My music in in mp3 format for the most part, and
-
Problem with reading in bytes.
See Below Edited by: ElCid on Mar 28, 2008 2:01 PM