cancel
Showing results for 
Search instead for 
Did you mean: 

Control Level processing in ADobe forms ..Not working

Former Member
0 Kudos

Hello all

I am working on requirement in Adobe forms where i need to print a list in which, for a particular equipment no. there are multiple order nos...

I want to print this list based on the Equipment no..

For ex

Equip No... Order no

A....................001

......................002

......................003

B....................001

......................002

And so on...

But output i m getting is ,

Equip No... Order no

A...................001

A...................002

A...................003

B...................001

B...................002

i.e. equip.no is getting repeated for every record, which i dont want ...

In context of the form i have mentioned the Control level for internal table at equipment No.

PLease suggest any solutions...

Thanks in advance

Nilesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Most surely you know abap.

In the interface > Code Initialization you can code in abap and play with the values inside that table you are passing. Just set the table as Input and output parameters and have fun with abap.

Option 2. Use nested tables. I do this a lot.

Table A

- Field1

- Table B

-- Field2

Former Member
0 Kudos

k

Former Member
0 Kudos

Hello

The problem is solved !

Thanks Amit for ur most valuable inputs in Formcalc, though unfortunately none of the solutions worked for me.

I always thought instead of playing with code in the script , this shld have been done automatically using Control level processing.

Thanks Paul for ur options but again writing a code for the feature which is already present is not what i wanted and in case of nested tables i wud have to separate single table into 2 tables unnecessarily, which i didnot want.

So after lot of head scratching and adjusting the object properties of my subforms ( i.e. subform for Equip. no and subform for corresponding order details ) i got what i wanted.

Thanks all !

Question is closed and points assigned !

Cheers

Nilesh

Former Member
0 Kudos

k

Former Member
0 Kudos

Hi Nilesh,

i have same Problem. how did you solved this problem ?

best regards

heidi

Edited by: Heidi Heinzberger on Jul 22, 2010 3:28 AM

Former Member
0 Kudos

any inputs?

Former Member
0 Kudos

I've installed Adode live cycle 8.2. It works now.

Edited by: Heidi Heinzberger on Jul 23, 2010 11:26 AM

Former Member
0 Kudos

Hi Heidi Heinzberger

I could solve the problem by adjusting the object properties of the subforms.

Are you sure your problem got solved by just installing Adobe live cycle 8.2

Best regards

Nilesh

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Nilesh,

You can write following FormCalc on the Table Row:

var prev_index = $.index - 1

var first_value

first_value = BP.sf_Partner.sf_Table.Table1.Row1[0].NAME.rawValue

if($.index > 0) then

var prev_value = BP.sf_Partner.sf_Table.Table1.Row1[prev_index].NAME.rawValue

if ( $.NAME.rawValue eq first_value ) then

$.NAME.rawValue = " "

else

first_value = $.NAME.rawValue

endif

endif

Hope this helps,

Amit

Former Member
0 Kudos

Hi amit

I tried with following script.

Former Member
0 Kudos

Hi amit

I tried with your code but it didnt work out...I used folllowing script


var prev_index = $.index - 1
var first_value
 
first_value = data.Bodypage1.Table.DATA[0].EQUNR_S.rawValue
 
<b>if</b>($.index > 0) then
var prev_value = data.Bodypage1.Table.DATA[prev_index].EQUNR_S.rawValue
 
<b>if</b> ( $.EQUNR_S.rawValue eq first_value ) then
 
$.EQUNR_S.rawValue = &quot; &quot;
<b>else</b>
first_value = $.EQUNR_S.rawValue
endif
 
endif

The Object hierarchy in my case is as follows.

Data

......... |_Masterpag

..........|..........|_Bodypage1

..........|

..........|_ Bodypage1

............... |_Table

...................|_DATA

......................|_EQUNR_S

......................|.....|_Textfield EQUNR

......................|

......................|_ Datarow

...............................|_Datarow_S

....................................|-orderno

....................................|-order text

....................................|-order type

Please help

Iisnt there is any solution in the designing itself...

Is it not possible without scripts ?

Also im now getting into one more strange situation here.....When i print this form..if i have 10 records only 9 gets printed , the first record is missing...

any idea on this?

Please help !!!

Thanks

Nilesh

Former Member
0 Kudos

Hello

No replies ???? Anyone there ..I wud appreciate your valuable responses..

Please help !

Nilesh

Former Member
0 Kudos

Hi Nilesh,

Have you written this script on the LayOut Ready event of DATA.

Regards,

Amit rai

Former Member
0 Kudos

HI amit

As you mentioned i did write that code in the layout:ready event for the DATA subform...But still its not working !

Please help

Nilesh

Former Member
0 Kudos

HI amit

As you mentioned i did write that code in the layout:ready event for the DATA subform...But still its not working !

Please help

Nilesh

Former Member
0 Kudos

Hi Nilesh,

Yeah I tried it, you have to make small changes in the script.

First, add a TextField in the BodyPage and make it hidden.

then make some changes in the script.

var prev_index = $.index - 1

var first_value

first_value = BP.TextField1.rawValue

<b>if</b>($.index > 0) then

var prev_value = data.Bodypage1.Table.DATA[prev_index].EQUNR_S.rawValue

<b>if</b> ( $.EQUNR_S.rawValue eq first_value ) then

$.EQUNR_S.rawValue = " "

<b>else</b>

BP.TextField1.rawValue = $.EQUNR_S.rawValue

endif

endif

This should work.

Regards,

Amit

Former Member
0 Kudos

Hi amit

I tried with the revised code but the problem still exists..

I think there is a pbm in object's properties of my subforms..but i m not able to get it . ? !

Any other inputs ?

Best regards

Nilesh