Application Development 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: 

Dynamically changing text of a text field in table control (Column heading)

Former Member
0 Kudos
792

Hi all,

I have a table control in which the column headings are created as a text field.

I want to dynamically change the text of one of the text fields.

Please help me to do this...

Thanks,

Rajan

6 REPLIES 6

Former Member
0 Kudos
97
Goto-->Screen Painter-->Select the Table column-->Enter New value in the NAME <ZFLD>Field for column.

IN PBO or PAI.

IF CONDITION.
<ZFLD> = 'ANY COLUMN NAME'.
ENDIF>

Regards,

Gurpreet

0 Kudos
97

Hi Gurpreet,

I want to dynamically change the text of field in program.

Thanks,

Rajan

0 Kudos
97
Goto-->Screen Painter-->TEXT FIELD(Double click)-->Properties
Enter New value in the NAME <ZFLD>Field .

PBO or PAI
IF Condition.
<ZFLD> = 'TEXT NAME'.
ENDIF.

Try this ...

Regards,

Gurpreet

0 Kudos
97

Hi Gurpreet,

Can you please be more detail.

Should I declare <ZFLD> this as a field symbol, if yes, please give complete coding.

Thanks,

Rajan

0 Kudos
97

Hi,

No filed symbol is required-->Its just the name of the input field and just assign display values to field name at runtime.

Regards,

Gurpreet

Former Member
0 Kudos
97

table control allows you to create column headings as both text or input/output fields.

If we create the column heading as text field we cannot change text label dynamically.

whereas, now, I have created this column heading as input/output field. it allows me to change the label text dynamically within the program.

Thanks,

Rajan