on 2021 Oct 18 8:13 AM
Dear all,
I'm having a doubt regarding a topic in Adobe Forms.
Let me briefly explain my scenario so far: My form has two blocks holding header information. Depending on the value of a custom table, this info are displayed on the left or on the right side of the form, hidding the other block. This is working just fine!. 🙂
But my rising question - mostly my doubt - would be: Could this feature be achieved by using the "this.x" feature?. It would be just marvelous if we could get the block shifted to the right or left.
Did someone face any similar issue?. It'd be nice to have an example of it!.
Thank you very much in advance!!!
Kind Regards.
Raúl
Request clarification before answering.
Dear all,
I have another brief issue in regards of this.
When do the print preview of the form, if needs to be shifted, it does. 🙂
But when we print it out to a certain printer, it is not working.
Regardless where should be printed, the block is always printed in the same position as it's created on the layout.
Is there another event ( maybe PrePrint? ) in which should be placed the logic as well?
It'd be just marvelous if you would give me a hint!.
Kind Regards
Raúl
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear all,
I'm having a question that is driving me crazy!. :).
When I do the following on the DocReady Event, is working:
if (xfa.host.name!="XFAPresentationAgent")
{
this.resolveNode("#pageSet.DELIV.INFO_WINDOW").x = "3.5";
this.resolveNode("#pageSet.DELIV.ADDRESS").x= "0.5";
}
But when I try to get an additional condition, it does not work!.
var position = xfa.resolveNode("LEFT").rawValue;
if (xfa.host.name!="XFAPresentationAgent")
{
if ( position == "R" ){
this.resolveNode("#pageSet.DELIV.INFO_WINDOW").x = "3.5";
this.resolveNode("#pageSet.DELIV.ADDRESS").x= "0.5";
}else if (position == "L"){
this.resolveNode("#pageSet.DELIV.INFO_WINDOW").x = "0.5";
this.resolveNode("#pageSet.DELIV.ADDRESS").x= "3.5";
}
}
I can not see the difference in this coding as long as the 'LEFT' variable is binded accordingly....
Any clue would be deeply appreciated!.
Kind Regards.
Raúl
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear - and patient 🙂 - gurus!!!.
I finally were able to make it work just fine!!!. 🙂
I was applying the DocReady code on the very begining of the form.
I copied it into the INFO_WINDOW area - which makes sense, because it's the object I want to be moved 🙂 - and that's it!.
Thank you very much for your support!!!
Kind Regards.
Raúl
Hello Raúl,
I guess it is because you missed the ! after xfa.hostname. Btw. with 10,5 it might dissapear to the right.
Try this:
--------------------------------------------------
if (xfa.host.name != "XFAPresentationAgent") {
this.resolveNode("#pageSet.DELIVERY_NOTE.LEFT_FORM").x = "3.5";
}
--------------------------------------------------
Cheers Marc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Marc,
Thank you very much!. This was really helpful!!!. It worked just fine!.
Now I would like to get the following code ready...
But for some reason it's not working properly!.
Would there be something is missing - for sure - that I'm not seeing?. ! Surely! 🙂
Kind regards and, again, THANK YOU VERY MUCH!!!
Kind Regards!.
Raúl
Dear Marc,
I just was checking this post again - because suddenly ( maybe after a SAP GUI update ) - the shifting process is not working anymore!. I guess sooner or later ( I hope that sooner, hopefully ) it will get solved. 🙂
But anyways, there's an additional question in regards of how to apply this settings for being sent to the real printer.
I have sought a little bit and I have some findings: Probably the event to be used would be PREPRINT.
And inside of this event, they talk about xfa.host.print... - but not totally sure how should these parameters be filled.
It'd be just awesome if you would give me a clue on that one!:
Thank you so much!
Kind Regards.
Raúl
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
21 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.