Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

I/O default text

Former Member
0 Likes
887

Hi all!

I'm doing a Screen with an I/O box where users specify the name of a file. I'd like to have a default name already present when Screen appears, so users can use it.

Then, I'd like to modify this default name when user click on a button already present in screen.

It's possible to do this two features?

Thanks to all.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
867

Yes, u can do it.

In th program , u can default the variable attached to this I/O box with ur default path name ( do it before calling the screen).

In the PAI of this particular screen, u can change the same value depending upon the buttons clicked ( may be pop up for File name etc).

Cheers

SKC.

Hi all!

I'm doing a Screen with an I/O box where users specify the name of a file. I'd like to have a default name already present when Screen appears, so users can use it.

Then, I'd like to modify this default name when user click on a button already present in screen.

It's possible to do this two features?

Thanks to all.

5 REPLIES 5
Read only

Former Member
0 Likes
868

Yes, u can do it.

In th program , u can default the variable attached to this I/O box with ur default path name ( do it before calling the screen).

In the PAI of this particular screen, u can change the same value depending upon the buttons clicked ( may be pop up for File name etc).

Cheers

SKC.

Read only

0 Likes
867

How can I attach a variable to an I/O box? Do I need to declare it with DATA statement? And what type of variable I have to declare?

Thanks for your answers.

Read only

0 Likes
867

In case ur dealing with a module pool - then u have used the Screen painter to design the screen. When u do that - u specify a ID to that text box right .. in your main prog u define a variable with DATA statement .. and it will automatically connect.

In case it is a SELECTION-SCREEN ( means u execute it and in the Attribute of that program it will say that it s an executable prog), u define it as a PARAMETER and the parameter has a name, so u can pass values to this parameter name,

Cheers SKC.

Read only

0 Likes
867

Great tip! You solved my problems.

Thank you very much!

Best regards.

Marco

Read only

Former Member
0 Likes
867

HI,

Yes it is possible,

IN the PBO event you can pass the value to that field, so before apearing the screen the value will be assigned to that field, so this value will be appear in the screen.

Regards

Sudheer