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: 

smartforms

Former Member
0 Kudos

hi friends

i am doing one smartform for controlled and non controlled substance and i created two windows for con and non con

now i need to find the num of labels in particular form

var = 1.

if label_type 'c1' or 'n1'

var = var + 1.

endif.

plz tellme me the above logic is correct or not if its correct

plz tel me where i have to write this logic

regards

venkat

5 REPLIES 5

Former Member
0 Kudos

hi venkat,

i think its advisable to write this code in print program directly

Regards,

Naveen

0 Kudos

i have been asked to write in the form itself is it correct if so where i should write and how

regards,

venkat.

former_member188685
Active Contributor
0 Kudos

Hi,

You need to write this is Prgram lines for that window .only one change i can see

var = 0. "it should be Zero initially

if label_type 'C1' or 'N1'

var = var + 1.

endif.

Regards

vijay

0 Kudos

Hi Vijay

can i write the above logic in global definitions intialization tab.

otherwise i need to write this logic for two windows separately then it is difficult to maintain the no of lables value in one varriable

plz confirm

ragrds

venkat

Former Member
0 Kudos

HI,

You can write this in the Global Definations --> Initialization tab, here you need to maintain the Input Parameter and output parameter, adn write your code, so here VAR will be there in the output Parameter so that the value will be available for you

Hope you understand

Thanks

Sudheer