BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
JacobSimonsen
Barite | Level 11

Hi everyone,

Building applications is still a bit new for me, so this question may seem stupid for experts in SAS/AF.

I have added a textpad-component in my frame. Then, in my scl-program I would like to have some control of the text that appears in the textpad, forexample:

rc=insertc(mytextpad.text,'This is the firstline',-1);

rc=insertc(mytextpad.text,'This is the second line',-1);

Why does the textpad not show these two lines? Do I need to call some function to get the textpad updated with the new entries?

I made some experience with using a text-entry component instead. here the text is autmatically updated, but this component can only contain one line.

Jacob

1 ACCEPTED SOLUTION

Accepted Solutions
BrunoMueller
SAS Super FREQ

Since you only change the SCL List contents the widget is not aware of any changes.

You can you the _refresh, or _needRefresh method, so that the widget redraws it s content.

Something like:

   rc = insertc(textPad.text, tempString, -1);

   textPad._needRefresh();

View solution in original post

1 REPLY 1
BrunoMueller
SAS Super FREQ

Since you only change the SCL List contents the widget is not aware of any changes.

You can you the _refresh, or _needRefresh method, so that the widget redraws it s content.

Something like:

   rc = insertc(textPad.text, tempString, -1);

   textPad._needRefresh();

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 392 views
  • 0 likes
  • 2 in conversation