Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Alternate command: xfa.layout.relayout()/Re-generating only particular subform

Avatar

Avatar
Level 1
Bghosh
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
Bghosh
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
Bghosh
Level 1

27-01-2016

Hi Folks,

I am using ALD in SAP to print static form. We have a requirement where a particular subform (Dynamic Footer) needs to be populated only at end of last page. In READY LAYOUT EVENT some calculation in javascript has been done by using method xfa.layout.relayout(); and is working fine. However on use of this METHOD a new issue has been discovered. i.e. when we use this method, internally/return parameter is coming up with 2 page where in actual page is 1. In print layout/taking print it is showing correctly but STANDARD CODE by SAP-ADOBE is returning an incorrect page count which is leading to other issues. Could anybody help on this, how to use this method in an alternate way/other way/any method to dynamically re-assign the sub form instead of the entire layout) . It is urgent and help would be really appreciated

Regards

BG

Code Ref:

var curp   = xfa.layout.page(this);

var totalp = xfa.layout.pageCount();

if ( curp == totalp )

{ this.h = 637 - xfa.layout.y(this) + "pts";

data.Subform_Pag_1.Positioned_Subfrm.Vertical_line_Subfrm.h = this.h;

xfa.layout.relayout(); }   //<-- ISSUE

Screen shot Ref:

Dynamic_Footer_Border_Page_1of1.JPG

Return_Parameter_page_as_2.JPG

Accepted Solutions (0)

Answers (0)