Text Field Menu Item
I'm trying to write a Text Field that is also a Menu Item, but when the field loses focus, the text is reset to what it was originally set using setText. (I'm not sure what to put in the input processing methods.) I could use the parent class to fix this, but I'd prefer to keep it all contained in this one. Here's the current code (didn't import anything).
private final static class MenuTextField extends javax.swing.JTextField
implements javax.swing.MenuElement{public MenuTextField(){super();}
public final void processMouseEvent
(final java.awt.event.MouseEvent E,
final javax.swing.MenuElement[]PATH,
final javax.swing.MenuSelectionManager MNGR){}
public final void processKeyEvent
(final java.awt.event.KeyEvent E,
final javax.swing.MenuElement[]PATH,
final javax.swing.MenuSelectionManager MNGR){}
public final void menuSelectionChanged(final boolean IS_INCLUDED)
{setEditable(IS_INCLUDED);}
public final javax.swing.MenuElement[]getSubElements()
{return new javax.swing.MenuElement[0];}
public final java.awt.Component getComponent(){return this;}}I'm using JDK 1.2.1, by the way. Any help would be greatly appreciated. Thanks in advance.
~Dave
you want to email it and I'll look and/or group the fields?
[email protected]
Similar Messages
-
Is it possible to "drop shadow" on text inside menu items?
As in subject
Hi n-dimension,
Currently, the only way in Muse to get a drop shadow on a text (including the text in the menu items) is using a System Font (which means we rasterize it into an image) and setting no fill color on the Text Frame.
Please let me know if that worked.
Thanks,
Razvan -
Bug:10.1.3ï¼dissappear my menu items' text
When I has finished some menus setting and are going to edit some other menu's text,those menu items' text lost.
Hi,
Can you give me a reproducible testcase of what you are doing?
What Operating System are you using?
Thanks,
Lisa Sherriff
JDev UML QA -
Is it mandatory to bind each & every CONTEXT element to a text field on the form?
Hello,
I am developing an Adobe Interactive Form, i have Designer 8.1 and Reader 9.0 in my Windows 7 Laptop. When i checked the menu EDIT-->form properties --> Compatability, its Adobe XML form File (XDP)
I have 3 elements (say, 1_Name, 2_Street and 3_City) in the CONTEXT and drawn ONLY 2 input enabled TEXT fields (for items - Name and Street of conetext) and then, BINDED them.
I did not put any associate text field for CITY and no chance of binding!
Pls. let me know that, Now can i utilize this CITY (of context) element containign data in the Java script? is this CITY is VISIBLE in the java script, even though it did not get BINDED with any text field on the form?
THank youThank you.
If it got BINDED, i knew how to point/get/visible the CITY element (of CONTEXT) containming data by using the below java script,
(this.rawValue == "A") or i can also get it with script of VISITOR.Page3.Subform11.CITY.rawvalue = "A"
If i do NOT bind CITY to any TEXT FIELD of FORM, then, how i can retrieve/get/visible/point CITY content? -
In PO -Me21N Material PO text field non editable
Dear All ,
We have specific requirment in PO (ME21N). In Item level ther is free text field "Item Texts". In Item texts we have 4 text fields
(1) Item Text
(2) Info Record PO text
(3) Material Po text
(4) Deivery Text
As per our configuration in "Material PO text" Material long description picking from Material master .We want to make this text field Non Editable.
In SAP there is facility to configure non editable Texts , But it will non editable all text fields.
How we can non editable only Material Po text .
Thanks in Advance.
Regards
Abhishek TiwariDear Chetan,
I think you have not understood my complete question. First thing i dont want to non editable Short text field.
In my problem i In Item level ther is free text field "Item Texts". In Item texts we have 4 text fields
(1) Item Text
(2) Info Record PO text
(3) Material Po text
(4) Deivery Text
In above text fields ,I want to non editable only "Material PO Text" only....
Regards
Abhishek Tiwari -
Can't see "Add or Edit Fields" menu in Acrobat 9 Standard v9.5.2
I am trying to edit the fields of an Adobe form from one of my co-workers. We both are running Acrobat 9 Standard v9.5.2. She is able to see the Forms-->"Add or Edit Fields" menu, while I cannot.
I cannot get this menu item to show? Can someone tell me if there is an option or setting to enable so that I can get to this menu item?
Here is a screenshot of the form:
Here is a screenshot of the Adobe Acrobat version we are running:
Thanks,
TedFinally found a work around to my problem. Here are the steps:
(1) The original form. Note missing "Add or Edit Fields" menu item.
(2) Click on Document-->Extract Pages
(3) The following dialog pops up. Since I am only working with a 1 page form I accept the defaults and click OK.
(4) The following window is launched. Now I just save the newly generated form:
(5) Now when I check the Forms menu, I finally see the "Add or Edit Fields" item: Yay!!!!
(6) In checking the Document Properties of the new form, the Application (PScript5.dll) and PDF Producer (GPL Ghostscript 8.15) metadata is still the same as before:
Still don't know why I couldn't get to the "Add or Edit Fields" menu item in the original form. After doing the Extract, now I am able to get to it. At this point that's all I care about right now.
Thanks George for helping me investigate this issue!
Teo -
Dear All,
i want to have one new text field on item level in PO so that i can update some text for ma future requierment.
in STD system i dunt have any field which covers my requirement.
PLease guide
ThanksHi,
Please check in SPRO
SPRO - MM- Purchase order - Texts for purchase orders
(or) take the help of SAP ABAP persons to add a new field
Regards
G.Ganesh Kumar -
Hello all,
Is there a way in SAP B1 (some permission, maybe) to disable the "User-Defined Fields" menu item, so that a certain user would not be able to view them?
Thanks in advance,
Antonhi,
It's not possible to disable View -->User defined Fields.
If ur goal is block access to user defined fields to a user,then
create additional authorization to restrict user defined field form settings(FormID - 38),
this way u can block user from creating UDF's & also form settings of it.Before applying authorization detick all udf's visible & active,this way u can block
only header level user defined fields,eventhough u can access
View -->User defined Fields,but u can't view user defined fields of header level.
To restrict row level user defined fields,make the
required fields in the form as visible & active,detick udf's.
General Authorization --> User(Left pane) --> General --> Document Settings --> No Authorization.
I have tested it,it's working.
Hope this will solve problem.
Edited by: Jeyakanthan A on May 15, 2009 3:47 PM -
Thanks to Gilad D67 for showing me how to have multiple drop down menu items appear in a separate text box. This stuff blows my mind. Is there any script I can use to make a new drop down menu item appear in the same text box, but on a new line below a previous entry. For example. I select 'cat' from my drop down menu and it appears in my text box. Now I choose 'dog' from my menu and it appears in my text box like so 'cat dog.' Is there any way I can make 'dog' go straight to a new line automatically without having to manually go into the text box and change it?
cat
dog (new selection goes straight to a new line)
Now, I don't have a clue if this is also possible, but imagine, I don't like my drop down menu selection of 'dog' and I go back into the menu and I change to 'rat' but in the text box, 'dog' still appears and 'rat' is added. Do I have to manually delete 'dog' from the text box or is there script that can do this for me.
Any assistance would be incredible. It amazes me how people know this stuff.
This is the script I have so far
(function () {
// Do nothing if not committed
if (event.willCommit) return;
// Set up an array to hold the individual paragraphs of text
var aQuotes = [3];
// Populate the array with the paragraph text
aQuotes[0] = "Use common singular nouns, plural nouns [plural ‘s’] and proper names to say what things are"
aQuotes[1] = "Use numbers 1–10 to count"
aQuotes[2] = "Use basic adjectives and colours to say what someone/something is or has"
// Get the selected item, which is the export value of the selected combo box item
var item = event.changeEx
// Display the text corresponding to the selected item in the text field
getField("Text30").value += " " + aQuotes[item];You have to set the option for the text field to be multiline and then change the last line of the script to:
getField("Text30").value += "\r" + aQuotes[item];
To reset the field you can use a separate button with a Clear Form command, and then you just select this one field from the list. -
The dropdown menu in the banner should be behind the text fields.
Hi Andy,
In our Application we have three Menus...The problem we are facing in that when ever we move the cursor, a drop down list will appear.. which is covering the text fields...
The dropdown menu in the banner should be behind the text fields.
Can u pls help me in this...
anoo..Hi Anoo,
(You can actually ask questions to everyone, not just me!)
Normally, dropdown menus are supposed to be on top of all other items, so the user can pick an option from the menu. In fact, usually the problem is that select lists in IE appear on top of menus, not the other way around!
What you may have to look in to is adding a z-index value to items. Have a look at: http://msdn.microsoft.com/en-us/library/ms531188(VS.85).aspx
z-indexes determine the order in which items appear when two or more occupy the same space on the page. The higher the number the nearer to the top that item is. You can use negative or positive numbers. So, if item A has a z-index of 1 and item B has a z-index of 2, then item B will appear on top of item A.
A z-index can be set as a style on your menus:
<........ style="z-index:-1".....>Andy -
Multiple drop down menu items to populate the same separate text box. How can I do it?
In Acrobat Pro X, I've figured out how to create a drop down menu with items that will populate a separate text box, but how can I get multiple menu items to populate the same text box. For example. My drop down menu has three items cat, dog, mouse. I choose cat and it appears in my separate text box (hooray). Next, I choose 'dog' from the same menu. I would like it to appear in the same text box along with my previous selection 'cat.' Is this possible? I'm very new to Java Script, any assistance would be greatly appreciated! Thank you
She is the script I'm using
(function () {
// Do nothing if not committed
if (event.willCommit) return;
// Set up an array to hold the individual paragraphs of text
var aQuotes = [3];
// Populate the array with the paragraph text
aQuotes[0] = "cat"
aQuotes[1] = "dog"
aQuotes[2] = "mouse"
// Get the selected item, which is the export value of the selected combo box item
var item = event.changeEx
// Display the text corresponding to the selected item in the text field
getField("Text field 1").value = aQuotes[item]; -
PHP/MySQL: 'Add New' text field from menu in form
I am creating an events posting website. I'm having a hard time finding the right words to describe this, but: I'd like the user to select a venue from the drop menu, but then if it isn't there, to select 'add new' from the dynamic menu, and have a new text field activate where they can enter in the new venue name. My database is currently set up so the event table links to the venue table through a venueID. Is there a way to insert the name from the new text field into the venue table, and have the rest of the form still submit to the event table? Sorry this is so wordy, but I'd appreciate any help. Thank you.
You cannot add a new value to a related table at the same time as inserting a record. So, to do this, you would need to use both JavaScript to add the new text field, and PHP conditional logic to handle the update to both tables. It's certainly doable, but not with the Dreamweaver server behaviors. You would need to do a lot of hand-coding yourself.
The way that I approached a similar problem in my "Essential Guide to Dreamweaver CS4" was to permit NULL values in the column that holds the foreign key, and insert nothing into that field if the value hadn't already been registered in the related table. I created a static value in the dynamic menu for "Not registered".
After inserting the new record with "not registered", the user then needs to enter the new value in the related table.
Once that has been done, display a page that lists all records. In the SQL, I use a LEFT JOIN to ensure that "not registered" items come up as well. You can then edit the item to add the value from the dynamic menu.
It's not the most elegant way to do it, but it works if you don't have the skill or time to hand-code all the logic yourself. -
Sale Order Item Level Text Field which table and field
Hi,
Thanks for your prompt reply and best solution.
Can you please tell me one more thing, in sale order at item level the TEXT Field maintaining by user at transaction level now they want that field in one of the report, so can you please tell what is the table and field where i will get this sale order item level text details.Hello,
is this going to work for item level text as well.
can you tell how to proceed with this functional module
or is there any other thing required.Please elaborate to
understand better way.
You can check out two table in respect to Sales TEXT i.e. STXH (STXD SAPscript text file header) and STXL(SAPscript text file lines).
The best approach of tracing out the Text in respect to Sales Order would be to use the Function module READ_TEXT and put this FM in SE37 and execute with the following parameter.
Client
Text ID of text to be read
Language of text to be read
Name of text to be read
Object of text to be read
Archive handle
Text catalog local
When you are essentially looking to read item level Text with respect to Sales Order then your Text OBject would be VBBP.
Regards,
Sarthak -
Line item text field from MIGO are not copied into FI line item text field
Hi all on SCN, please, I need a help.
It was created as required by the user a field status group with the text field required.
This field status group was assigned to some accounts, in order to make my unit tests.
u2003
In development envirionment was made some tests directly in FI area, and it works properly.
u2003
But the user made a test using MIGO transaction, choosing in this transaction an account that he changed its field status variant to the one created in development environment, that make the text fiels required. So, to start, he donu2019t fill the text item of MIGO, and a message error appear stating that he needs to enter values in this field.
After fill in the text fiels, he can save his work.
u2003
But the FI document generated donu2019t receive the line item text typed in MIGO, but receives the values on Reference document and Document Header text entered in the header of MIGO, what is missing, donu2019t is automatically copied MIGO text line items to FI documents line Items, does there is some additional configuration missing?
Hope someone help me with this issues.
Thanks in advanced!Hi,
Material document will get updated in reference field in FI by default. If for any reason, want to get this updated in text field, you need to define a subsititution in GGB1.
Best Regards,
Madhu -
Need to find table/field behind "Item long text" field in Notes tab in FB70
Hello,
To print a custom FI invoice, I need to access the data entered in the "Item long text" field of the Notes tab in FB70. To test, I used 5000 characters in that field to make sure it stood out from the rest of the data. F1 help does nothing on that field, and even running an SQL trace (ST05) doesn't show the text in that field being entered into any table. I tried F1 on a nearby field and got a structure instead of a table, so I investigated the structure through SE11 but found no character field with such a large capacity. How else can I find where that field is stored?Thanks! It took a while, but with your help and a few other pages I managed to piece together an answer.
Vinod helpfully explained that the text name is a concatenation of various fields, but didn't specify how to find the line item ID. If you go to table STXH (as hinted by Brad and confirmed [here|http://fuller.mit.edu/SAPWebDocs/LongComment.html]) and search for texts created today (or whenever you were testing), you'll see the text name ends in '001' after GJAHR, so the line item ID is '001' regardless of how many line items you enter in the invoice.
Armed with that info, you can call READ_TEXT and loop through the results to concatenate the contents of each TDLINE field. (FB70 automatically breaks the user-entered text into different lines even if the user didn't press Enter, and each line gets its own record in the results.)
Thanks again,
Pedro
Maybe you are looking for
-
This happens mainly on pages from commercial sites. For example, my online banking site. Most of page displays, but often critical stuff like an approval button is invisible even tho the link is there. I have been on the phone with a person at a comm
-
Lower than expected sound output from A100
Hi. I have recently bought a Satellite A100 PSAA9E and have been pretty disappointed with the low sound output from it. It's currently set to the highest volume level and is nowhere near the level I would expect. Is this normal for this machine? All
-
I recently bought a new app on the iTunes store and, after being unable to install it, decided to restore my iPod Touch. I tried doing it with the options provided in iTunes only to find that my iPod can not be restored (error 1604). I've tried manua
-
Tools to help us automate testing of major conversion
Hello: We are currently moving a large data-centric ORACLE FORMS 3.0 application to the ORACLE FORMS 10g platform. I am wondering if there is a black-box testing tool out there that can perform the following: 1. Hook into the client (PC running a
-
How can I repair the shuffle feature for IPOD?
My 3g phone recently lost its ability to shuffle music. I plays music just fine, but only one song at at time. The same song will repeat until I manually select a different one. The shuffle button has no effect.