- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Ok I found an alternative way of not displaying the page, but it comes with a very strange side-affect.
I made a copy of my original to play with, and I wrote this piece of code only:
Orderform.Document::initialize - (FormCalc, both)
if
($record.CommonMetaData.Environment <> "PROD") then
$.Footer.instanceManager.removeInstance(0)
endif
This works in the copy-version, yet if I write this in the orignal I get the error "Error: accessor '$.Footer.instanceManager.removeInstance("0")"
I do NOT understand this _at all_ because after receiving the error I set every field equal in the original file compared to the copy-version. The code is being ran in the sam language, both client & server, Footer & Document have the exact same Object/Pagination/ ... settings.
Yet it only works in the copy-version, without any problem whatsoever, but in the original version it just refuses to work. I'm really stunned by this effect as I'm starting to wonder if the PDF is being generated @random or something because I cannot explain this behaviour in any other way.
Is there anyone who has any idea what the problem might be? I really am disappointed because I have a solution which works perfectly, yet it appears that LiveCycle is starting to hate me...
Views
Replies
Total Likes