Does anyone have an example of how to populate a multiline text area using a text component when a button is pushed?
In your text component declare a variable with the text that you want to populate in your textbox.
{
text = "This is some text."
""
}
In the button you want to do a runprocess. Then you can do something like this:
{OBSNOW("TEXTBOXTERM", text)}
OR
{DOCUMENT.TEXTBOX = text}
The code depends on if you textbox is an obs term or not. I hope that is helpful.
Brad
Assuming the multiline text is a document variable, e.g. mlt_text
In action button, use RunProcess
{ document.mlt_text="some text"}
Thank you, jfitzmd. I had that, but wanted to store the text outside of the form.
Thank you, Brad, for replying and so quickly!! You provided the clarity I needed--how to get the text into a variable!! Thank you!!!!!!