Jump to content

SetBodyPageUsage isn't working?


NPN

Recommended Posts

This is for Digital Storefront.

 

The job consists of two pages, a pick list in the 'HTML Form' returns either the value 'left' or 'right' based on choice.

 

The rule (onrecordstart) defined as a 'callback' looks like this:

 

if (Field("arrow") == "right")

{

FusionPro.Composition.SetBodyPageUsage("right", true);

FusionPro.Composition.SetBodyPageUsage("left", false);

}

else

{

FusionPro.Composition.SetBodyPageUsage("right", false);

FusionPro.Composition.SetBodyPageUsage("left", true);

}

 

I've set the second page as 'unused' under page usage, and i've named the pages 'right' and 'left' also under page usage. (1 is right and 2 is left).

 

It returns page 2 (left) no matter what you choose in the pick list (arrow).

 

What have I done wrong?

Link to comment
Share on other sites

ehem ... I did not copy+paste because I translated some of the content. So i did forget the capital F.

 

Not used to writing code myself, mostly copy+paste and editing. :)

 

Thanks again, Dan, you da man.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...