Maximum characters for EditText
Is there an option to set the maximum length of an EditText element or do I have to check the length with the onChange event for the EditText element?
You have to check the length with onChange event.
Similar Messages
-
Problem setting maximum characters for a date field.
Good morning all. I am trying to ensure that a date field on the form I am working on validates if the entry is not more than 8 digits, and if it is more, it should display a message, and return the focus back to the field until it is correct. Below is the code I wrote but it is not working:
if(DATE1.length>"8"){
xfa.host.messageBox(Enter eight digits for the date in the format YYYYMMDD or use the drop down calendar.);
xfa.host.setFocus("form1.Page1.DATE1");
I do not know why it is not working, i need help. I have this code on the exit event.
Thanks
v/r
TammyWell you are missing the " around the text in your messagebox but even then it doesn't seem to work. I am not a javascript expert so am not sure why but it works in formcalc like this:
if(Len($) > 8) then
xfa.host.messageBox("Enter eight digits for the date in the format YYYYMMDD or use the drop down calendar.")
xfa.host.setFocus("$")
endif -
How set maximum of characters for the columns
Hello I use a JTable and I want to set maximum of characters for the columns.
For example column 1 max 10 characters, column 2 max 20 characters, etc..
How can I do this?The principle is as follows: a table uses certain input components for editing a cell value, e.g. a JCheckBox for Boolean-type values or a JTextField for textual/numerical values. By default, a JTextField doesn't have any size limit, so you can enter as many chars as you want. In order to change this behaviour, you'll have to
1.) create a JTextField that does have a size limit and
2.) set a CellEditor on the JTable which uses this manipulated JTextField.
An easy way for 1.) is to create a custom Document (the internal data representation for text components, the M-part of the MVC -- see javax.swing.text.Document) that doesn't accept any text beyond a given limit, e.g.:
public class LimitedDocument extends PlainDocument {
private int max = 0;
public LimitedDocument(int max) {
this.max = max;
public void insertString(int offset, String str, AttributeSet a) throws BadLocationException {
// too long for the limit; get current contents, insert, and cut off trailing chars
if ((getLength() + str.length()) > max) {
StringBuffer buf = new StringBuffer(getText(0,getLength()));
buf.insert(offset,str);
remove(0,len); // remove current text contents
super.insert(0,buf.toString().substring(0,max),a); // insert whole text
// no problem, will fit
else {
super.insertString(offset,str,a);
}Then, in order to set the cell editor -- for example for the first column --, you can do as follows:
myTable.getColumnModel().getColumn(0).setCellEditor(new DefaultCellEditor(new JTextField(new LimitedDocument(5),"",5)));This will create a new DefaultCellEditor (see javax.swing.table) and initialize it with a given text field which will be responsible for any edition in this column. As the text field itself is created using a limit of 5, it should accept no text insertion beyond 5 chars. -
Maximum Number of Characters for Password??
Hello, and thank you for reading my post. I recently modified my Apple ID Password to a very strong password containing 32 characters. When I try to log into this discussions group with that particular Apple ID, I can't because the website won't accept the password? Wouldn't all of Apple's sites accept the same password?
Is there a maximum number of characters for a password in this discussion group?
ThanksWhat makes you believe that 32 characters is remotely necessary? As Ralph indicates, a shorter password is equally secure, in realistic terms. Keep in mind that even if some hacker set up a script to repeatedly try random passwords on your account, they're never going to get in because there are limits on the number of times one can enter an incorrect password before being blocked on any decent system. You can have a much shorter password, and as long as a human can't guess it from what is publicly known about you, it's secure.
-
Maximum number of characters for Host name..
Is there a limit to the number of characters for the host name of adobe lifecycle?
Is 15 characters to much?What makes you believe that 32 characters is remotely necessary? As Ralph indicates, a shorter password is equally secure, in realistic terms. Keep in mind that even if some hacker set up a script to repeatedly try random passwords on your account, they're never going to get in because there are limits on the number of times one can enter an incorrect password before being blocked on any decent system. You can have a much shorter password, and as long as a human can't guess it from what is publicly known about you, it's secure.
-
Is there a maximum size for photos imported in a slideshow ? I cannot anymore put my slide show into a wmv file.
About CLOB size, it's 4Go not 4000 characters - VARCHAR2 supports up to 4000 bytes. Pay attention also to unicode encoding!
Are you using CFQUERYPARAM to insert into the CLOB fields ?
<CFQUERYPARAM CFSQLTYPE="CF_SQL_CLOB" VALUE=" ">
use the Firebug extension (https://addons.mozilla.org/en-US/firefox/addon/1843) in Firefox3 and do some network monitoring: let me know what you're seeing there.
Hope it will help... -
Send attachment with maximum characters
I need to extract data from a table into a .csv and then send that .csv as an attachment.
I am converting the data to csv and assigning it to clob variable but table has huge data therefore procedure gets error out after around 7000 characters with
ORA-06502: PL/SQL: numeric or value error.
Please suggest a way to send attachment with maximum characters.
With the below sample code i am able to send atttachement upto 7000 characters.
DECLARE
v_From VARCHAR2(80) := '[email protected]';
v_Recipient VARCHAR2(80) := '[email protected]';
v_Subject VARCHAR2(80) := 'test subject';
v_Mail_Host VARCHAR2(30) := 'mail.mycompany.com';
v_Mail_Conn utl_smtp.Connection;
crlf VARCHAR2(2) := chr(13)||chr(10);
v_message clob;
BEGIN
v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host, 25);
utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
utl_smtp.Mail(v_Mail_Conn, v_From);
utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
utl_smtp.Data(v_Mail_Conn,
'Date: ' || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf ||
'From: ' || v_From || crlf ||
'Subject: '|| v_Subject || crlf ||
'To: ' || v_Recipient || crlf ||
'MIME-Version: 1.0'|| crlf || -- Use MIME mail standard
'Content-Type: multipart/mixed;'|| crlf ||
' boundary="-----SECBOUND"'|| crlf ||
crlf ||
'-------SECBOUND'|| crlf ||
'Content-Type: text/plain;'|| crlf ||
'Content-Transfer_Encoding: 7bit'|| crlf ||
crlf ||
'some message text'|| crlf || -- Message body
'more message text'|| crlf ||
crlf ||
'-------SECBOUND'|| crlf ||
'Content-Type: text/plain;'|| crlf ||
' name="excel.csv"'|| crlf ||
'Content-Transfer_Encoding: 8bit'|| crlf ||
'Content-Disposition: attachment;'|| crlf ||
' filename="excel.csv"'|| crlf ||
crlf ||
v_message|| crlf || -- Content of attachment
crlf ||
'-------SECBOUND--' -- End MIME mail
utl_smtp.Quit(v_mail_conn);
EXCEPTION
WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error then
raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
END;
Thanks,Thanks for your help Billy.
I am able to segment the data but I am not getting any attachment instead segmented data is showing in the mail body.
Can you please have a look and let me where it is going wrong?
DECLARE
v_From VARCHAR2(80) := '[email protected]';
v_Recipient VARCHAR2(80) := '[email protected]';
v_Subject VARCHAR2(80) := 'test mail';
v_Mail_Host VARCHAR2(30) := 'localhost';
v_Mail_Conn utl_smtp.Connection;
crlf VARCHAR2(2) := chr(13)||chr(10);
v_message clob;
message clob;
BEGIN
v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host, 25);
utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
utl_smtp.Mail(v_Mail_Conn, v_From);
utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
v_message := 'date: ' || to_char(sysdate, 'DD-MON-YYYY HH24:MI:SS')||chr(10)||
'from: '||v_From|| chr(10) ||
'to: '||v_Recipient ||chr(10)||
'subject: '||v_Subject || chr(10) || chr(10);
utl_smtp.open_data (v_Mail_Conn);
utl_smtp.write_data(v_Mail_Conn , v_message );
--MIME header.
UTL_SMTP.WRITE_DATA(v_Mail_Conn,'MIME-Version: 1.0' || crlf);
UTL_SMTP.WRITE_DATA(v_Mail_Conn,'Content-Type: multipart/mixed;' || crlf);
UTL_SMTP.WRITE_DATA(v_Mail_Conn,' boundary="-----SECBOUND"' ||crlf);
UTL_SMTP.WRITE_DATA(v_Mail_Conn,crlf);
-- Mail Body
UTL_SMTP.WRITE_DATA(v_Mail_Conn,'-------SECBOUND'|| crlf);
UTL_SMTP.WRITE_DATA(v_Mail_Conn,'Content-Type: text/plain;' || crlf);
UTL_SMTP.WRITE_DATA(v_Mail_Conn,'Content-Transfer_Encoding: 7bit' || crlf);
UTL_SMTP.WRITE_DATA(v_Mail_Conn, crlf);
UTL_SMTP.WRITE_DATA(v_Mail_Conn, 'Please see the attachments' || crlf);
UTL_SMTP.WRITE_DATA(v_Mail_Conn, crlf);
-- Mail Attachment
utl_smtp.write_data(v_Mail_Conn,'-------SECBOUND' || crlf);
utl_smtp.write_data(v_Mail_Conn,'Content-Type: text/plain;' || crlf);
utl_smtp.write_data(v_Mail_Conn,'name="excel.csv"' ||crlf);
utl_smtp.write_data(v_Mail_Conn,'Content-Transfer_Encoding: 8bit' ||crlf);
utl_smtp.write_data(v_Mail_Conn,'Content-Disposition: attachment;' ||crlf);
utl_smtp.write_data(v_Mail_Conn,'filename="excel.csv"' ||crlf);
utl_smtp.write_data(v_Mail_Conn,crlf);
message := 'OBJECT_TYPE, OBJECT_FOREIGNKEY, OPERATION, EVENT_ID, STATUS_ID, NUM_BLOCKED, MODIFIED_DATE, INT_UPDATEEVENT_FMWID, ERROR_DESCRIPTION';
utl_smtp.write_data(v_Mail_Conn , message );
for rec in (
select object_type, object_foreignkey, operation, x.event_id, x.status_id, num_blocked,
e.modified_date, e.INT_UPDATEEVENT_FMWID, replace(substr(e.error_description,1,100),',',' ') error_description
from (
select b2.object_type, b2.object_foreignkey, t.operation, e2.event_id, e2.status_id, count(1) num_blocked
from EVENT e
INNER JOIN TRANSACTION t
ON e.transaction_id = t.transaction_id
inner join transaction_dependency d
on t.transaction_id = d.transaction_id
inner join transaction_block b
on t.transaction_id = b.transaction_id
inner join transaction_block b2
on d.transaction_id <> b2.transaction_id
and d.object_type = b2.object_type
and d.object_foreignkey = b2.object_foreignkey
inner join transaction t2
on b2.transaction_id = t2.transaction_id
and t.source_type = t2.source_type
inner join event e2
on t2.transaction_id = e2.transaction_id
where t.source_type = 'CRM_OD_To_OP'
and e.created_date >=(sysdate - 1)
and e.status_id <1000
and e2.status_id <1000
group by b2.object_type, b2.object_foreignkey, t.operation, e2.event_id, e2.status_id
) x
inner join event e
on x.event_id = e.event_id
and e.status_id = 900
order by num_blocked desc, object_type, object_foreignkey
) loop
message := crlf || rec.object_type||','||rec.object_foreignkey||','|| rec.operation|| ','|| rec.event_id||
','||rec.status_id||','||rec.num_blocked||','||rec.modified_date||','||rec.INT_UPDATEEVENT_FMWID||','||rec.error_description;
utl_smtp.write_data(v_Mail_Conn , message );
end loop;
utl_smtp.write_data(v_Mail_Conn,crlf);
utl_smtp.write_data(v_Mail_Conn,'-------SECBOUND');
utl_smtp.close_data(v_mail_conn);
utl_smtp.quit( v_mail_conn );
EXCEPTION
WHEN others then
dbms_output.put_line('error ' || sqlerrm);
END; -
Special characters for projects
Hi experts,
Kindly explain to me how to define multiple Special characters in project system.
Regards,
Shynu JohnHi,
Do you mean Special characters for the Project coding mask?
If that is the case, you can define the special characters in OPSK. A maximum of 8 special characters can be defined in it.
And then create the project coding mask in OPSJ using those special characters as per your requirement. Alpha-numeric and numeric characters combination can be used along with the special characters while creation of coding mask.
Regards,
Kabir -
What is the fattest letter? i.e. what should I use to test
that content always fits within an input box regardless of what the
user types? Is it the letter "M"? I know M is used as a standard in
other design circles.
ThanksThank you. Is there an easy way to do the opposite, have a
user's text adapt to the textfield? For example, I have an input
textField that is 100 pixels in width, single-line, size 20 _sans
font (Maximum Characters turned off for demo. purposes). You can
input 5 "M's" before the field begins scrolling right, or you can
enter 24 lowercase "l's". In this case the input is for a form that
will be printed, therefore scrolling cannot occur (since it wouldnt
show up on the print form), and Maximum characters must be turned
on. So I would have to limit maximum characters to 5 right? In
reality I'm working with much larger textfields, but you get the
idea. Is there a way to set the maximum characters based on user
input? -
Maximum characters in textEdit field
Hi all,
I am using TextEdit control. now i want to set the maximum character for the control. for example 100 characters.
how to achieve this.
Regards,
Shanthakumar.Hi,
You should use LengthValidator to set the maximum character for the control.
Check this:
Client-side Input Validation with HTMLB - Intermediate
Regards,
Praveen Gudapati -
Set Maximum size for a subpanel created with splitter bars in LV8
Does anyone know how to set the Maximum size for a subpanel created with asplitter bar? If I show one cluster in the subpanel and use the scroll bar to scroll, I can see more (blank) area than I want. I just want the user to be able to scroll a cluster within a subpanel while the cluster is larger than the view area of the subpanel. I don't want to let the user scroll outside the cluster.
Ravi BeniwalI apologize for the mixup in terminology. Please read Pane wherever the word Subpanel was used.
Please see the attached VI for a description of my problem.
I would really appreciate any help with this.
Ravi Beniwal
Attachments:
Pane Scrolling Problem.vi 10 KB -
How to restrict number of characters for an input field
Hi All,
I have an input field.
The max number of characters for this input field is 10.
when a user enter more then 10 characters. it should prompt for an error or the input field should not allow to accpet the 11 character.
how we do this in VC.
need your helpful answers
Rgds
SrinivasHi Srinu
You could achieve this by configuring error messages under the formula:-
Select the control properties and in the Input field at the Display tab write the formula
"IF((@<LEN(text)>10),'appropriate message','Records available')"
Note :- there is a LEN(text) under text functions in formula tab.
Regards
Navneet
Message was edited by:
Navneet Giria -
I have FF 34 but this problem has been there for a lot of earlier versions. On many webpages there are pictures that cover my whole screen, and I want to set maximum size for showing images on webpages.
I ONLY wanr to change the maximum size of the images, AND IAM NOT asking about how to zoom the webpage.Do you want to hide large images or merely make them smaller by setting a max-width and max-height?
You would probably have to use JavaScript (bookmarklet) to achieve this reliably.
There are bookmarklets to make large images fit in the window to avoid a horizontal scroll bar
You can try this code in the <b>userContent.css</b> file (adjust the max-width accordingly).
*http://kb.mozillazine.org/userContent.css
<pre><nowiki>img { max-width: 1024px !important; height: auto !important; }</nowiki></pre>
The customization files userChrome.css (user interface) and userContent.css (websites) are located in the <b>chrome</b> folder in the Firefox profile folder.
*http://kb.mozillazine.org/Editing_configuration
*Create the chrome folder (lowercase) in the <xxxxxxxx>.default profile folder if this folder doesn't exist
*Use a plain text editor like Notepad to create a (new) userContent.css file in the chrome folder (file name is case sensitive)
*Paste the code in the userContent.css file in the editor window
*Make sure that you select "All files" and not "Text files" when you save the file via "Save file as" in the text editor as userContent.css.<br>Otherwise Windows may add a hidden .txt file extension and you end up with a not working userContent.css.txt file -
Create a flat file with multiple characters for enclosures
Hello,
we use OWB 11g2 (11.2.02).
Now we try to create a flat file with multiple characters for enclosures. The manual wrote:
"Enclosures (Left and Right): Some delimited files contain enclosures that denote text strings within a field. If the file contains enclosures, enter an enclosure character in the text box or select one from the list. The list displays commonenclosures. However, you may enter any character. The default for both the left and right enclosure is the double quotation mark ("). You can specify multiple characters and hexadecimal characters as field enclosures."
But it will not work. The OWB use the first character from the left enclosure definition as left enclosure and the second one as right enclosure !?!
Did anyone know this behavior? Is there a solution for this problem?
Thanks and regards
NorbertHI Raghu,
Use the function module 'GUI_UPLOAD'.
In that you have to specify the field_separator value = 'X' in export section.
Regards,
S.C.K -
Given file name or path contains Unicode or double-byte characters. Retry using ASCII characters for filename and path
What does this mean? It is happening when I try to publish an OAM for Dreamweaver.
Also: How can I specify the browser in Edge Animate? It is just going wherever. Are there no Preferences for Edge Animate?
BTW. Just call it Edge. Seriously. Do you call it Illustrator Draw? Photoshop Retouching?No, my file name is mainContent.oam
My project name is mainContent.an
This error happens when I try to import into Dreamweaver. Sorry, I wasn't clear on that earlier.
I thought maybe it was because I had saved my image as a png. So re-saved as a svg, still get the error.
DO I have a setting is Dreamweaver CC that is wrong? Should I try this in Dreamweaver CS6? I might try that next.
Why is this program so difficult? I know Flash. I know After Effects. I can work the timeline part just great. It's always in the export that I have problems.
On a MacPro, 10.7.
Are you an Adobe person or just a nice helper?
Maybe you are looking for
-
Download Error on Mavericks (mac)
When I go to the Creative Cloud application on the desktop, I go to the Apps tab and I get "Download Error" and when I try to reload the application, the error persists. I'm on a macbook running Mavericks, I've deleted the AAMUpdater (though it crea
-
Cannot install JDK 1.4.2 on Windows 2008 Server
Hello, I am trying to install JDK 1.4.2, but I get this error message: "Internal Error 2902. ixoFileCopy" I tried serveral versions (JDK 1.4.2_15, 1.4.2_19, 1.4.2_18, ...) but I get always the same error. It is a fresh Windows Server 2008 installatio
-
I need an equipment with an entry USB port to send a wav file and exit I & Q
We are working with an equipment consisted in a transmitter and a receiver.At the end we have 2 computers,we are trying to send a wav file through USB port from one computer and converted to I & Q signal (that supports our transmitter). On the other
-
Disable swapping for specific process?
Hi! Is there some way to disable swapping for a specific process? I wanted to disable it for my web servers, so their responsivness would be better. Cheers!
-
Stuck on landscape mode when playing music - intermittent
Kind of a weird problem here. Occurs intermittently, but still very very common When listening to music for about 10 mins or more, and ipod touch 2g is placed in pocket or while lying down, the screen switches to landscape mode and displays the album