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: 

Script Working properly after scrolling the table in cat2?

Former Member
0 Kudos
117

I added Project / Project Description / Network / Network Description / Activity

Code / Activity Code Description colums in Data Entry Area Table and Worklist

Table in CAT2,after that scroll went out in Data entry Area and Worklist table

in CAT2.

Because of scrolling issue we changed table settings->administrator->Further

settings->No of Fixed Columns Will be changed to Empty(Earlier Value is

20).After Scrolling issue is resolved

Now Script is working after scrolling the table in CAT2.

Can you please let me why the script is working after scrolling the table?

The below code i written in CAT2 Script

Column "NetworkDescription" size=16 name="NetworkDescription"

table="T[Worklist]" position=5 Keycolumn="[Network]" -readonly -alignleft

Column "NetworkDescription" size=16 name="NetworkDescription" table="T[Data

Entry Area]" position=6 Keycolumn="[Network]" -readonly -alignleft

Column "Project" size=11 name="Project" table="T[Worklist]" position=6

Keycolumn="[Network]" -readonly -alignleft

Column "Project" size=11 name="Project" table="T[Data Entry Area]" position=7

Keycolumn="[Network]" -readonly -alignleft

Column "ProjectDescription" size=16 name="ProjectDescription"

table="T[Worklist]" position=7 Keycolumn="[Network]" -readonly -alignleft

Column "ProjectDescription" size=16 name="ProjectDescription" table="T[Data

Entry Area]" position=8 Keycolumn="[Network]" -readonly -alignleft

Column "ActivityDescription" size=16 name="ActivityDescription"

table="T[Worklist]" position=8 Keycolumn="[Activity]" -readonly -alignleft

Column "ActivityDescription" size=16 name="ActivityDescription" table="T[Data

Entry Area]" position=10 Keycolumn="[Activity]" -readonly -alignleft

ColumnOrder [Data Entry Area,ActTyp] 10

ColumnOrder [Data Entry Area,Activity] 8

ColumnOrder [Worklist,Activity] 8

ColumnOrder [Worklist,ActTyp] 9

// Network Description,Project and ProjectDescription

set V<i> 1

Label Next_networkdescription

set V[Network] "&cell[Data Entry Area,Network,&<i>]"

if V[Network]

Call "Z_Get_Network_Desc" In.NETWORK_NO="&V[Network]"

Out.NETWORK_DESC="NetworkDescription.&V[Network]"

Out.PROJECT_NO="Project.&V[Network]"

Out.PROJECT_DESC="ProjectDescription.&V[Network]"

set V<i> &<i> + 1

goto Next_networkdescription

endif

set V[j] 1

Label Next_networkdescription_worklist

set V[Network] "&cell[Worklist,Network,&[j]]"

if V[Network]

Call "Z_Get_Network_Desc" In.NETWORK_NO="&V[Network]"

Out.NETWORK_DESC="NetworkDescription.&V[Network]"

Out.PROJECT_NO="Project.&V[Network]"

Out.PROJECT_DESC="ProjectDescription.&V[Network]"

set V[j] &[j] + 1

goto Next_networkdescription_worklist

endif

// Activity Description

set V[k] 1

// set V[l] 1

Label Next_activitydescription

set V[Network] "&cell[Data Entry Area,Network,&[k]]"

set V[Activity] "&cell[Data Entry Area,Activity,&[k]]"

if ( V[Network] and V[Activity])

Call "Z_GET_NW_ACTIVITY_DESC" In.NETWORK_NO="&V[Network]"

In.ACTIVITY="&V[Activity]" Out.ACTIVITY_DESC="ActivityDescription.&V[Activity]"

set V[k] &[k] + 1

// set V[l] &[l] + 1

goto Next_activitydescription

endif

set V[l] 1

Label Next_activitydescription_worKlist

set V[Network] "&cell[Worklist,Network,&[l]]"

set V[Activity] "&cell[Worklist,Activity,&[l]]"

if (V[Network] and V[Activity])

Call "Z_GET_NW_ACTIVITY_DESC" In.NETWORK_NO="&V[Network]"

In.ACTIVITY="&V[Activity]" Out.NETWORK_DESC="NetworkDescription.&V[Network]"

Out.ACTIVITY_DESC="ActivityDescription.&V[Activity]"

set V[l] &[l] + 1

goto Next_activitydescription_worklist

endif

Thanks & Regards,

Subba Rao

1 REPLY 1

Sandra_Rossi
Active Contributor
0 Kudos
69

Hi,

I'm not sure to undertand your question. Moreover, think to format your code correctly, there are lots of characters missing because you omitted the around it.

You say you had 20 fixed columns, so it means the 20 left columns of the table control are always displayed on the screen, maybe there are even wider than the screen, so the other columns can't be displayed! Here I'm talking about horizontal scrolling, I don't know if it's what you're talking about...

Sandra