Hotstrings in text fields
Is there a way to add hotstrings to a text field form.
IE user types "POC" and the system expands the text to "Proof of Claim".
thanks for that suggestion. I know that back in Dir8 when i wrote this beast of a programme, that text members were too slow to be used, as these fields get updated more or less each frame. Is it still the case that fields are quicker to update, and provide less strain on the programme running?
anyway, i just wrote a handler that sets the lineheight of any field 2 more than the fontsize and that seems to level things up as they should be. Also it replaces the font with Helvetica if its a Mac and it all looks nice.
re the font embedding, i do have Arial embedded as Arial * but it looks rubbish when applied to a field member. I assume because there's antialiasing in the font which the field doesn't allow. It looks great on text members of course, so I use it for that.
Actually though, the mac's Helvetica fields look much better (almost text member-like) than the pc's Arial fields.
Similar Messages
-
How to provide text formatting options to user from a text field
Hi,
My requirement is - in the interactive form, a comments field needs to be provided where user should be able to enter text with formatting options like
Headers
indentations
bold/italic
bullet points and numbers
Once user enters the formatted texts in a text field, data needs to be displayed/printed in the same format. Could you help me on how to provide these formatting options to the user for a particular text field?
I understand that once I define the text field with format XHTML (with RTF), user formatting can be captured and displayed in the same way. But I am not sure on how to provide the formatting options for the text field.
Thank you,
MadhuHi,
if you select a text field for Rich Text and the press Ctrl + E you'll get a bar for all available text formatting options in Acrobat/Reader. -
Wrap a single word in a text field
Hello everyone!
I currently have a problem with text data that is displayed in a Flex text field <mx:Text>.
It's a narrow textfield (100px wide) in a animated ad banner that displays content from a database. There are some words that are too long for the available space, so flash wraps some letters to the next line. I have attached a screenshot that shows the actual problem.
The text is shown in a Java web-application as well, and since that Java app is displayed as a normale webpage, there is a lot more space for the text. I cannot put hyphens into the text because it would look weird in the normal web view.
Is there a way to make automatic hyphenation happening when Flash wraps a single word?
It would be perfect to get language-specific correct hyphenation, but a hyphen at the wrong spot is still better than no hyphen at all.
Thanks for your time and help!I think your simplest bet would be to use mx:label and use the op
tion truncateToFit="true". Also adjust the width so that the text appears prope
rly. Hope this helps..!! -
Sales order CARRIER TEXT field
Hi,
I am creating query through SQVI, I would like to use sales order carrier text field with the query.please advice which table and field should I use for query ?
Thanks in advanceSorry, by mistake I posted the message again.
Pls ignore it.
Hi JK,
Where are u entering the sales order carrier data. Is it Header Data or Item Data. Is it a long text?
Please give more details.
Regards,
Vinod -
Change the font color of a text field in a table by key-combination
I want to change the font color of a text field in a table (single cell only) on pressing a key combination. Does anybody know how to do this.
I have a lot of data in a table. During an evaluation of the data in a meeting I want to change the color of the text depending on the result of the meeting. (for example: High risk = CTRL+R makes the text red).
I know how to change the color using a button, but I do not want to add a button after each cell. For this reason I would like to do it on a key combination that alway refers to the active cell.
Many thanks for your help in advance.
MarcelHi,
I don't think you can use the ctrl key like that as those shortcuts will be intercepted by Reader (ctrl-R toggles the ruler display on / off). You also might have trouble updating the color while you still have focus on it. You can use the shift key in a similar way, so if you only have lower case characters in the text fields then you can do something like;
if (xfa.event.shift)
switch (xfa.event.change)
case "R":
this.fontColor = "255,0,0";
break;
case "O":
this.fontColor = "255,102,0";
break;
case "G":
this.fontColor = "0,255,0";
break;
xfa.event.change = ""; // ignore character
If you need uppercase characters maybe you can have one button to set "review mode" and test that on the if (xfa.event.shift) line. But again it wont take effect until you have tabbed out of the field.
Regards
Bruce -
Repeat Text Field Value on Master page
This might be a really simple question. I have a form with two master pages. The second is applied to all but the first page. On the second master page I have a text field that I populate with user entered data from a text field. I want this value to show on all pages after the first page (page 2 to n). It shows up with the value on page 2, but all the rest have a blank value. Do I need to script something to make it repeat for all pages? Any help would be appreciated.
The simpliest method would be:
Under the Object tab, select Binding, and change the Default Binding to Global. The TextFields you create must have the same name, and Global binding will populate all the fields. -
Unable to clear text Field in Multi Screen JFrame GUI Application
i am working with a Swing GUI project where I want to accept user input in a
text field
I have used singleton pattern which will create only one instance of object
due to this when i move from one scree to another the input of textfield
doesnt updated I have used setText method to clear the JTextField but it wont
works
Program one -- 1st screen
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
import java.awt.event.*;
import javax.swing.JTextField;
public class Frame1 extends JFrame
public static Frame1 frame1;
public JButton button;
public JTextField input;
public static Frame1 getInstance()
if(frame1==null)
frame1 = new Frame1();
return frame1;
public JButton getJButton(String mytext)
JButton button = new JButton();
button.setText(mytext);
button.setBounds(450,450,150,50);
return button;
public void myGUI()
JPanel panel = new JPanel();
panel.setLayout(null);
button = getJButton("1st Frame");
addActionListener(button);
input = new JTextField(10);
input.setBounds(200,300,100,30);
panel.add(input);
panel.add(button);
add(panel);
setUndecorated(true);
setSize(1024, 768);
setVisible(true);
setDefaultCloseOperation(EXIT_ON_CLOSE);
public void addActionListener(Object obj)
try{
JButton button1 = (JButton)obj;
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ae)
String text = "";
input.insert("", 0);
Frame2.getInstance().myGUI();
Frame2.getInstance().repaint();
dispose();
catch(Exception e1)
System.out.println("Exception==> "+e1.toString());
public static void main(String[] args)
Frame1.getInstance().myGUI();
Frame1.getInstance().repaint();
program 2 - 2nd screen
import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
import java.awt.event.*;
import javax.swing.JTextField;
public class Frame2 extends JFrame
static Frame2 frame2;
public JButton BackButton;
public JTextField input;
public static Frame2 getInstance()
if(frame2==null)
frame2 = new Frame2();
return frame2;
public JButton getJButton(String mytext)
JButton button = new JButton();
button.setText(mytext);
button.setBounds(450,450,150,50);
return button;
public void addActionListener(Object obj)
try{
JButton BackButton1 = (JButton)obj;
BackButton.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent ae)
input.setText("");
Frame1.getInstance().myGUI();
Frame1.getInstance().repaint();
dispose();
catch(Exception e2)
System.out.println("Exception==> "+e2.toString());
public void myGUI()
JPanel panel2 = new JPanel();
panel2.setLayout(null);
BackButton = getJButton("2nd Screen");
addActionListener(BackButton);
input = new JTextField(10);
input.setBounds(200,300,100,30);
panel2.add(input);
panel2.add(BackButton);
add(panel2);
setUndecorated(true);
setSize(1024, 768);
setVisible(true);
setDefaultCloseOperation(EXIT_ON_CLOSE);
In this application the status of TextField input remain same means it shows
the earlier input in the textfield wnen I come to earlier or next screen.
what is the solution to clear the TextField input while moving from 1st
scrren to 2nd screen.multiple screens = multiple posts
well done indeed - just another farking cross-poster
[http://www.coderanch.com/t/492998/Swing-AWT-SWT-JFace/java/unable-clear-text-box-Multi#2218566] -
How do you grey out a radio button if a text field is blank in Adobe Acrobat XI Pro?
How do you grey out a radio button if a text field is blank in Adobe Acrobat XI Pro?
So this what I'm trying to do:
( ) |TEXT FIELD|
( ) |TEXT FIELD|
( ) | |
( ) |TEXT FIELD|
I have a radio button: ( )
and a text field: |TEXT FIELD|
The third text field is blank, and I would like for the radio button next to it greyed out (user can't click on it) since the text field is blank. Is this possible to achieve? I'm assuming I'll have to use javascript, but what would the code be and would it be entered in the javascript editor for the text field or the radio button?
Thanks in advance guysHey, thanks, but it didn't work
I have the text fields as read only. Could that be why it's not working? Should I make the fields not read only?
Thanks, -
How to find the number of occurance of a string in text field of Infopath form?
Hi All,
In Infopath text field, How to find the number of occurrence of a particular string in that field?
Thanks in advance!You can check to see if it contains a string once by using the contains function, but there isn't a very clean way to do what you want. If you wanted to guess at the maximum number of occurrences, then you could:
Box A has your initial. Set Box B to do a concat of string-before and string-after of Box A where it copies Box A minus the string we're looking for. Then we have Box C that does the same thing to Box B. Repeat as many times as you see necessary.
Example:
String: "1"
Box A - "123451234512345"
Box B - "23451234512345"
Box C - "2345234512345"
Box D - "234523452345"
etc.
We then have a field that has nested ifs looking backwards from Z -> A looking for a non-blank. Based on that, we return the number of occurrences. Again, this isn't clean, but it will work if you think there's a predefinable maximum.
Andy Wessendorf SharePoint Developer II | Rackspace [email protected] -
Adding user-defined number of text fields.
Okay I am having problems, obviously. I am developing a program where the user will enter X and Y values and the program will calculate the relational data. However, I can't even get a start.
First of all, the user defines the number of pairs of points they want to define. For example, they have 20 points, each with its own X and Y, so they click on 20 and then okay in the first window.
The next window will then take their answer and display X and Y text fields for as many points as they defined. However, I can't figure out any way to do this.
Feel free to run the program, the problem lies in the method setTextFields(). Help please!
import javax.swing.*; //FOR SWING COMPONENT CLASSES
import java.awt.*; //FOR CONTAINER CLASS
import java.awt.event.*; //FOR EVENT HANDLING
public class RegressInput extends JFrame
private JComboBox listJComboBox; //COMBO BOX TO HOLD HOW MANY PAIRS OF DATA POINTS THE USER HAS TO ENTER
private JButton answerButton; //BUTTON TO CLICK AFTER SELECTING PAIRS OF DATA POINTS
private JPanel textFieldTopPanel; //TEXT FIELD TOP PANEL
private JPanel textFieldBottomPanel; //TEXT FIELD BOTTOM PANEL
private JPanel textFieldPanel; //TEXT FIELD PANEL
private CardLayout cardSelector; //DECLARE CARD LAYOUT OBJECT
private JPanel cardDeck; //DECLARE CARD PANEL OBJECT
public RegressInput(String title)
super(title); //CALL SUPERCLASS CONSTRUCTOR
//CREATE A CONTAINER
Container container = getContentPane();
//INSTANTIATE CARD LAYOUT OBJECT
cardSelector = new CardLayout();
//INSTANTIATE PANEL OBJECT
cardDeck = new JPanel();
//SET LAYOUT OF CARD DECK PANEL TO CARD LAYOUT
cardDeck.setLayout(cardSelector);
//DEFINE LABEL FOR FIRST CARD
Label question = new Label("How many PAIRS of data would you like to enter?");
//BUTTON TO SUBMIT NUMBER OF POINTS TO PLOT
answerButton = new JButton("OK");
listJComboBox = new JComboBox( getArray() );//USE getArray() METHOD TO SET ITEM LIST OF THE COMBO BOX
listJComboBox.setMaximumRowCount(10); //SETS THE VISIBLE NUMBER OF ITEMS TO THE USER
Label xValues = new Label("X Values"); //LABEL FOR X values
Label yValues = new Label("Y Values"); //LABEL FOR Y values
//BUILD CARD DECK
JPanel comboBoxCard = new JPanel(); //CREATE FIRST CARD
comboBoxCard.add(question); //ADD question LABEL TO FIRST CARD
comboBoxCard.add(listJComboBox); //ADD listJComboBox TO FIRST CARD
comboBoxCard.add(answerButton); //ADD answerButton TO FIRST CARD
textFieldTopPanel = new JPanel(); //CREATE TOP PANEL OF SECOND CARD
textFieldTopPanel.add(xValues); //ADD xValues Label TO SECOND CARD
textFieldTopPanel.add(yValues); //ADD yValues Label TO SECOND CARD
textFieldBottomPanel = new JPanel(); //CREATE BOTTOM PANEL OF SECOND CARD
textFieldBottomPanel.setLayout(new FlowLayout(FlowLayout.CENTER,10,10)); //SET LAYOUT FOR BOTTOM PANEL
textFieldPanel = new JPanel(); //CREATE PANEL FOR SECOND CARD
textFieldPanel.setLayout(new BorderLayout(10, 10)); //SET LAYOUT FOR SECOND CARD
textFieldPanel.add(textFieldTopPanel, "North"); //ADD textFieldTopPanel TO NORTH
textFieldPanel.add(textFieldBottomPanel, "South"); //ADD textFieldBottomPanel TO SOUTH
cardDeck.add(comboBoxCard, "Step 1"); //ADD FIRST CARD TO DECK
cardDeck.add(textFieldPanel, "Step 2"); //ADD SECOND CARD TO DECK
container.add(cardDeck); //ADD CARD DECK TO CONTAINER
//DEFINE BUTTON HANDLER OBJECT
ButtonHandler buttonHandler = new ButtonHandler();
//ADD ACTION LISTENER FOR BUTTONS
answerButton.addActionListener(new ButtonHandler());
}//END RegressInput() CONSTRUCTOR
//METHOD TO CREATE AND RETURN AN ARRAY OF VALUES FOR JComboBox
private String[] getArray()
//CREATE ARRAY TO HOLD 30 VALUES
int numbers[] = new int[29];
//CREATE int IN ORDER TO START THE ARRAY AT 2 INSTEAD OF 1
int number = 2;
//ASSIGN VALUES FROM 2 TO 30 TO numbers[] ARRAY
for(int count=0; count < 29; ++count)
numbers[count] = number; //SETS EACH INDEX TO number
number++; //INCREMENTS number
}//END for LOOP
//CREATE pairs[] ARRAY TO HOLD 30 STRINGS
String pairs[] = new String[29];
//ASSIGN VALUES 1 TO 30 IN STRING ARRAY FOR COMBO BOX
for(int count = 0; count < 29; ++count)
pairs[count] = "" + numbers[count];
}//END for LOOP
return pairs;//RETURNS pairs[] ARRAY FOR THE LIST ITEMS IN listJComboBox
}//END getArray() METHOD8
//RETURNS THE ITEM SELECTED BY THE USER FROM THE JComboBox
private int getValue()
//ASSIGNS STRING VALUE OF THE JComboBox TO A WRAPPER
Integer v = new Integer((String) listJComboBox.getSelectedItem());
//ASSIGNS WRAPPER VALUE TO int
int value = v.intValue();
//RETURN VALUE OF SELECTED ITEM
return value;
}//END getValue()
private void setTextFields()
{//HERE LIES THE PROBLEM! WHAT GOES IN THIS METHOD????
for(int count = 0; count < (2 * getValue()); ++count)
}//END setTextFields()
//BUTTON EVENT HANDLER CLASS
private class ButtonHandler implements ActionListener
//PROCESS EVENT
public void actionPerformed(ActionEvent e)
//WHICH BUTTON CAUSED THE EVENT?
if(e.getSource() == answerButton)
cardSelector.last(cardDeck);
cardDeck.setSize(600,600);
}//END if STATEMENT
}//END actionPerformed()
}//END ButtonHandler CLASS
}//END RegressInput CLASSHere is main:
import javax.swing.JFrame;
public class TestSharpStats
public static void main(String[] args)
//DEFINE FRAME OBJECT
RegressInput window = new RegressInput("Hi"); //SETS TITLE BAR
window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //CLOSES WINDOW
window.setSize(400, 600); //SET FRAME SIZE
window.setResizable(true); //PREVENTS USER FROM RESIZING WINDOW
window.setVisible(true); //SETS window TO VISIBLE
}//END main()
}//END TestSharpStats CLASSmuit-post: http://forum.java.sun.com/thread.jspa?messageID=4442652
-
How to store text field data from web dynpro application in pcd ?
Hi Forum,
I am new to web Dynpro.
I want to store user specific data (a text field value) from a wd application in PCD and access it every time the user runs the application.How can I achieve this?
Thanks,
Mickey.Hi
I created the "read" and "update" methods in my application service. How can I call them? I created and implemented the methods just like here: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/340fc0ea-0c01-0010-74bf-965b11031e77
Operations:
- readMyEntityService:
- updateMyEntityService
Implementation:
retValue = getMyEntityService().read(key);
getMyEntityService().update(dS0);
In Web Dynpro there is this update method with the code above (in my original post).
How can I call the update-method????????
Kind regards
Bettina -
Trying to use web app text field to redirect a page.
I am trying to create a web app, that will provide 'members' with a page that they can use to redirect to other pages of their choice. What I want to do is allow the member user to select (from a dropdown menu, or even input their own into a text field) a specific url (i.e. http://www.facebook.com/myfacebookpage) on their customer page. Once they select the url they want, and save their info, that url will be used in a redirect page, (i.e. <meta HTTP-EQUIV="REFRESH" content="0; url={tag_redirectURL}"> or something to that effect. Has anyone done this or have any ideas how to do it? Ultimately, I want the user to be able to change on the fly where someone goes when they share their user link with a friend (i.e. http://www.mywebsite.com/userpage/ will take someone to a facebook page or to a youtube video, or some other page they redirect to) so they can switch it on their own when they choose to.
Hi Scott,
You could create a web app which as a text (string) field in it for customers to enter the URL they want to redirect the customers to. Then place a JavaScript redirect inside the detailed layout, which would look like this:
<script type="text/javascript">
<!--
window.location = "{tag_your-url-field}"
//-->
</script>
Give them access to secure zone, place a web app item creation form onto it and you're good to go.
Cheers,
mario -
Displaying the value of text field A in text field B
I have a PDF form with 2 layers. Layer 1 has information, a textfield, and a button. Layer 2 is a certificate design. The user inputs their name in to a textfield called NameEntry.
When they hit the button, layer 1 disappears -- the instructions and NameEntry box become hidden. Layer 2 is the certificate design and I need a new textfield (which is called NameDisplay) to be populated from inputted information in text field NameEntry.
The simple answer, I know, is to name both text fields the same. This does not work for me as I need the input textfield to be styled differently (background and border) due to decisions out of my control vs the NameDisplay which will have no background and no border.
Any ideas? Thanks!Use this custom calculation script:
event.value = this.getField("NameEntry").valueAsString; -
Validation for text field: Null and contains no spaces
Currently on APEX 3.2
I want to check 1 text field and 2 text areas to ensure they are not null and blank (hitting the space bar in the field) before submitting the page. How do I do both validations for on each field?I created a validation with a type of 'Function Returning Boolean' and using the following code in the expression:
IF( TRIM( :P1_Text_Field) IS NULL
Or LTRIM( :P1_Text_Field ) != :P1_Text_Field )
THEN
RETURN false;
ELSE
RETURN true;
END IF;
Edited by: Jeremy_F on Apr 12, 2012 8:15 AM -
How does APEX check for null values in Text Fields on the forms?
Hello all,
How does APEX check for null values in Text Fields on the forms? This might sound trivial but I have a problem with a PL/SQL Validation that I have written.
I have one select list (P108_CLUSTER_ID) and one Text field (P108_PRIVATE_IP). I made P108_CLUSTER_ID to return null value when nothing is selected and assumed P108_PRIVATE_IP to return null value too when nothign is entered in the text field.
All that I need is to validate if P108_PRIVATE_IP is entered when a P108_CLUSTER_ID is selected. i.e it is mandatory to enter Private IP when a cluster is seelcted and following is my Pl/SQL code
Declare
v_valid boolean;
Begin
IF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NULL THEN
v_valid := TRUE;
ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NOT NULL THEN
v_valid := TRUE;
ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NULL THEN
v_valid := FALSE;
ELSIF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NOT NULL THEN
v_valid := FALSE;
END IF;
return v_valid;
END;
My problem is it is returning FALSE for all the cases.It works fine in SQL Command though..When I tried to Debug and use Firebug, I found that Text fields are not stored a null by default but as empty strings "" . Now I tried modifying my PL/SQL to check Private_IP against an empty string. But doesn't help. Can someone please tell me how I need to proceed.
ThanksSee SQL report for LIKE SEARCH I have just explained how Select list return value works..
Cheers,
Hari
Maybe you are looking for
-
Ipod 4th gen turns on and off repeatedly as soon as USB connected
Hi, this is driving me (more specifically my daughter) nuts. I have an ipod 4th generation (new and retail boxed) which we bought in May 2010. It's never been used and she decided last week that she wants to start using it. Got it out of the box, ins
-
How to populate ADF Faces Drop Down without Errors?
Hi, I have a drop down in ADF Faces which gets populated when a value is selected in another drop down. And its mandatory that we need to select both the values from the drop down. Hence i have used the attribute 'required' and set it to 'true'. The
-
Can't get Officejet 5740 to connect wirelessly - VPN?
I have successfully connected my Officejet 5740 to my home wireless network, and the printer shows as connected. However, when I go to connect the computer to the printer, it tells me it cannot find the IP address. Is the issue that my computer is us
-
Problem with Nodemanager Configuration
Any one please help me to resolve, I m struggling with these isssue around 3 days. I tried to configure with different document , but i couldn't able to create, Please find the error log from nodemanager, This is the error occuring, when i m trying t
-
DM 3.0.0.665: Disabled flag "Engineer To" is not saved
Hi, I disabled the flag "Engineer To" for a table in the logical model in the Entity Properties and saved the changes. When I now engineer the logical to the relational model, the table is not taken into the relational model. But after closing and op