How to set maxWidth in tabular form Text Field
Text Fields do not have maxWidth property in tabular forms. Is there any way to set maxWidth using the Element Attributes field? Or at least create a Validation process to let the user know why an error appears if he/she enters more than the allowed characters in a text field.
Thanks
Francisco.
>>
This information should appear in the user'smanual.
Francisco.There should be a working MAXLENGTH attribute that
defaults to the correct length based on the data
dictionary.Hi,
been trawling through the forums for the same problem, found this solution which works a treat (thanks! ). But agree that the software should actually allow you to define this anyway, rather than bodge, fool, amend, bridge or circumnagivate (sp?) the software.
Similar Messages
-
Forms: How to set a maximum size in Text Fields with automatic size
¡Hi!
When I set a text field on my forms and I use automatic size for te text that the user can write, if the user don't need more space than the field size, when the text appears, Adobe Acrobat Pro always set the text-size to 14 or higher. How can I set a maximum size for that text? For example... 12 or 10...
Thank you very much,
Best regards from Spain,
David.Ok. If I use a single line text field, changing the height of the field seems to be a simple way to solve the problem, but... what should I do when the fields are multi-lineal?
Thanx for your quick answer. -
How to set a default tabular form value?
I am trying to set a default value for a tabular form.
In Tabular Form Element:
========================
Display as: Date Picker
Formet: Date Picker (DD-MON-RR)
Default Type: Item (application or page item name)
Default P2_DATE
My item P2_DATE is set as:
==========================
Date Picker (DD-MON-RR)
However when I try to add a row with a default date I get this error:
report error:
ORA-01790: expression must have same datatype as corresponding expression
Any ideas?
Regards,
Pawel.Sorry for spamming but found a solution:
which was to change the type into PL/SQL Expression like so:
to_date(:P301_PROJECT_XFR_DATE,'DD/MM/YYYY')
This is the format I used in P2_DATE...
Regards. -
How to set fixed size for inputfile text field
Hi all,
I am using inputfile component to test file uploading so I created a simple upload page. When I finished upload the file, the input text field will "shrink" its size and change the size to adjust the file name. Is there any way to set a fix size for input text field?
Here is some part of the code:
<af:form id="f1" usesUpload="true">
<af:panelHeader text="File Uploader" id="ph1">
<af:inputFile label="File to upload" id="if1" autoSubmit="true" valueChangeListener="#{fileBean.fileUpdate}"
value="#{fileBean.file}" partialTriggers="if1"
columns="50"/>
</af:panelHeader>
<af:commandButton text="Save" id="cb1"/>
FileBean:
public void fileUpdate(ValueChangeEvent valueChangeEvent) {
RichInputFile inputFileComponent = (RichInputFile)valueChangeEvent.getComponent();
UploadedFile newFile = (UploadedFile)valueChangeEvent.getNewValue();
UploadedFile oldFile = (UploadedFile)valueChangeEvent.getOldValue();
Thanks,
Jerryyou can set columns attribute in af:inputfile. Please see highlighted area i have inserted to you code
<af:form id="f1" usesUpload="true">
<af:panelHeader text="File Uploader" id="ph1" columns = "34" >
<af:inputFile label="File to upload" id="if1" autoSubmit="true" valueChangeListener="#{fileBean.fileUpdate}"
value="#{fileBean.file}" partialTriggers="if1"
columns="50"/>
</af:panelHeader>
<af:commandButton text="Save" id="cb1"/> -
How to set a focus to a text field when button is clicked
[b]in sun stdio creator setting a focus is not possible is it a bug
if we use java script
<ui: button onClick="focuss(form1:text1)"/>
function focuss(text1){
var text=text1;
text.focus();
the code is executed but it is not working why[/b]Sorry, I didn't read carefully your question. My answer refered to client side only. You can set the focus programmatically with Body.setFocus(). In the appropriate action method or action listener call
this.body1.setFocus("form1:textField1");
or maybe
this.body1.setFocus(this.textField1.getClientId());
to avoid errors due to changing client ID or save the client ID of the TextField in a private member and call Body.setFocus() in prerender(). -
Setting breaks in tabular forms
Has anyone had any luck with setting breaks in tabular forms. It seems so straight forward, yet it does not work for me.
I have a report with the first column called tail_number followed by many other fields.
I set the break formatting to
Breaks = First Column
Display the text on report breaks... = Total: #SUM_COLUMN_HEADER#
For Repeat Heading Breaks: <b>Details for Tail: #COLUMN_VALUE#<b/>
This all came straight from the book Pro Oracle Application Express.
Any ideas?
SandraHi Sandra,
I created a report against 'select tailnumber, serialnumber, itemnumber from aircraftitems'
I am showing all columns and have a sum on itemnumber.
Using theme Red and region template Reports Region (maybe some templates are temperamental on this)
In Break Formatting...
Display this text when printing report sums = null
Breaks = First Column
Display this text on report breaks...= Total: #SUM_COLUMN_HEADER#
When displaying a break row...= null
When displaying a break column...=null
When displaying a break row...= null
Identify how you would like your breaks = Repeat Headings on Break
For repeat headings breaks use...= Details for Tail: #COLUMN_VALUE#
And this worked as expected for the break and summary row.
Break Test
Details for Tail: N148FJ
AIRCRAFTSERIALNUMBER ITEMNUMBER
074 9
074 5
074 2
074 3
074 4
074 5
Total: TAILNUMBER 28 -
How do I Create a Tabular Form for an Intersection Table
Situation
There are three tables involved (PROJECT, STAFF, TASK)
PROJECT(PROJECT_ID, PROJECT_NAME)
STAFF(STAFF_ID, STAFF_NAME)
TASK(PROJECT_ID, STAFF_ID, HOURS)
There is a many to many relationship between PROJECT and STAFF. The intersection table is TASK.
Issue
I would like to create a tabular form for the TASK table. I would like to be able to click on a button (Add Row) to add a row to the existing tabular form. The row will have a LOV for the PROJECT_ID (showing PROJECT_NAME) and one for the STAFF_ID (showing STAFF_NAME) and a free form text field for the hours.
I've tried a bunch of different ways but am unable to acheive this functionality. I must be doing something wrong. This sort of thing is trivial.
Any guidance/suggestions are greatly appreciated.
ThanksAdding a new surrogate key column to an existing table is not that big a deal.
alter table t add (pk int primary key);
create a before-insert row-level trigger to populate the key;Other than that, you are out of luck w.r.t the wizards. Yes, you can define a 2nd PK column in the wizard, but then the 2 PK columns becomes read-only (but you want to update them).
You can write your own tabular form using htmldb_item APIs and your own after submit processes to process the updates. See the manual Tabular Form Howto in the documentation.
Thanks -
How to set alert mail contain SQL text activities
How to set alert mail contain SQL text activities.
In "Notification Templates" topic have no Available Tags about sql text. Can I send mail alert with SQL text?it should be text/plain, for a complete list refer
http://www.freeformatter.com/mime-types-list.html
Regards. -
How to create-Form text field to simultaneously preview the text over an image
I am trying to make a web page similar to the link below…where when a customer types in the form text field, and simultaneously, the text will preview in another area of the webpage over and image. See example when you create a label @ www.customwinesource.com custom labels…http://www.customwinesource.com/index.cfm?method=storepairing.listPairing&wineryid=auto
Any help would be much appreciatedI wasn't able to (easily) find anything in the way of a textfield to type something into that you describe, but you can assign code for input textfields to detect when something changes in them and take action from that event. How you do it depends on which version of actionscript you are using.
-
JTextPane, how to set only a part of text editable?
How to set only a part of text in JTextPane editable? For example I want to forbid changing text after 'enter'. JTextPane has method setEditable but this works only for whole JTextPane.
Plz help!!!I'm working on some application similar to unix console. It can't be done relatively simply with the provided components (for example two textfileds), but then it will not look like console :) .
Now some technical problems:
Anyway, use a DocumentListener and have it ignore any changes
in areas you deem to be protected.I have no idea how to ignore changes using DocumentListener. Could you give more information abut this?
I found "my own way". I create MyDefaultStyledDocument which extends DefaultStyledDocument. Then I overwrite two methods: insertString and remove. Using offsets values I manage to block everything before " > ", and I protect output from editing. But I still have a problem:
This works fine (add "> " to JTextPane text):
String s = console.getText();
s = s+"> ";
console.setText(s); but this doesn't work (for example replace last word):
String all = parent.getText();
all = all.substring(0,all.length() - cut);
all = all+text+" ";
parent.setText(all);where: parent = console = JTextPane
Why?
And one more question. Why when I typed "enter", Document remove all text and paste it again :/ -
JTextArea, how to set only a part of text editable?
How to set only a part of text in JTextArea editable? For example I want to forbid changing text beteween lines 2 and 6. JTextArea has method setEditable but this works only for whole JTextArea.
Plz help!!!http://forum.java.sun.com/thread.jspa?forumID=57&threadID=5177361
-
How to set a new value for formula field in crystal reports xi?
<p>How to set a new value for formula field in crystal reports xi?</p><p>//formula</p><p>{@description}</p><p> </p><p>exemplo in VB6</p><p>crxSubreport.FormulaFields.Item(1).Text = "'Subreport Formula'" or</p><p>crxSubreport.FormulaFields.Item("description").Text = "'Subreport Formula'"</p><p>How to in JRC?</p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p>
Hi,
This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
Regards,
<p>Blair Wheadon</p>
<p>Product Manager, Crystal Reports</p> -
HOW TO SET A DEAFULT VALUE FOR A FIELD?
hi friends
i have doubt..how to set a default value for a field..say like in local printer field i always want lp01 to be displayed defaultly..when i click F1 in that field i get the parameter id ..i know there is something dealt with that parameter id..how can i set that default value ..in the case of the default printer value i made in own data settings as lp01 but how to do it normally for other field which has parameter id ??????
thanks and regards
princeHi Prince,
u can set the default value in abap as given below
SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECTION-SCREEN SKIP 1.
PARAMETERS : S_BUKRS TYPE BSID-BUKRS OBLIGATORY DEFAULT '1000'.
PARAMETERS : S_BELNR TYPE BELNR_D OBLIGATORY DEFAULT '1600000070'.
PARAMETERS : S_GJAHR TYPE GJAHR OBLIGATORY DEFAULT '2008'.
PARAMETERS : ASON TYPE BUDAT OBLIGATORY DEFAULT SY-DATUM.
PARAMETERS : S_KUNNR TYPE KUNNR MODIF ID GP1.
PARAMETERS : S_LIFNR TYPE LIFNR MODIF ID GP2.
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN : END OF BLOCK B1.
or
u can give the default value in INITIALIZATION also.
vlue = '1000'. -
How to set default date value to a field on screen
How to set default date value to a field on screen and allow users to modify it ....
Hello,
In the PAI module, you need to save the changes to the database using the command MODIFY.
Follow an example:
Create or change a message in database table T100. If there is no message with the number 100 in the MYMSGCLASS message class in English, it will be created. Otherwise only the text is changed.
DATA message_wa TYPE t100.
message_wa-sprsl = 'EN'.
message_wa-arbgb = 'MYMSGCLASS'.
message_wa-msgnr = '100'.
message_wa-text = 'Some new message ...'.
MODIFY t100 FROM message_wa.
Regards. -
How to set a default value for particular field in SRM PO Portal
Dear Gurus,
Im desparetly need a help in web dynpro on how to set a default value for a field(flag) in PO header tab in portal.
My requirement is whenever the user press the edit button in PO screen,automatically a flag field should be set as abap_false.
I dont think this will handle in check badi or change badi. i tried this part in onbuttonpressed overwriteexit in CNR_VIEW views,i can get the function EDIT in debugging mode,but dont know how to proceed further.....
Many of them suggested to go with get attribute and set attribute for changing any particular field in web dynpro,but im not very familiar in using those get and set attributes.I request you people can give me sample code on how to identify my target field in the node and set the values while pressing EDIT Button.
Thanks in advance...
Regards,
SathishDear Laurent,
Thanks for your response,
But i searched in enhancement spot of WD_BADI, but couldnt get the exact way to change the coding,
My real requirement is, that particular flag should be enable and disable dynamically by checking a condition in my header values.So in that case i dont know how to proceed further to handle in the PO screen.
Kinly guide me how to get the particular node of field in the Purchase order screen.
Thanks you in advance,
Sorry for the inconvenience if any
Regards,
sathish
Maybe you are looking for
-
My iPad doesn't connect to my home WiFi; but my Toshiba Laptop does?
can any one help with my WiFi problem. My iPad doesn't connect to my home WiFi; but my Toshiba Laptop does? and my iPad works in other places but not at home????
-
How do I get the RSS feeds to work in iWeb'08 when published to FTP server?
There are so many unresolved questions because I have published to an FTP server (Netfirms). HOWEVER, my next task at hand is to resolve the issue of a non-working RSS feed and download capabilities. The published website is www.vibrationalvoyages.co
-
Replacement for HELP_VALUES_GET_WITH_MATCHCODE in ECC 6.0
Hi Friends, should the FM HELP_VALUES_GET_WITH_MATCHCODE bereplaced with the new one in ECC 6.0 or not.if so what is the replacement for it.Please provide. Regards, Pradeep P
-
Web Service to ABAP Proxy, Calling RFC from ABAP Proxy
can any body send me the notes or Step by step process of Webserice of calling RFC using ABAP proxy, I am new to XI. send me detail process of this perticular scenarios
-
Standards or best practises for Java imports?
I was just wondering how some of the more seasoned developers out there handle Java imports. I'm fairly new to Java programming and as far as I know there is very little difference between explicitly importing individual classes and importing entire