cancel
Showing results for 
Search instead for 
Did you mean: 

Shift a block area in Adobe Forms

raul_daimiel
Participant
0 Kudos
1,587

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

Accepted Solutions (0)

Answers (4)

Answers (4)

raul_daimiel
Participant
0 Kudos

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

raul_daimiel
Participant
0 Kudos

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

raul_daimiel
Participant
0 Kudos

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!.

coding.jpg

Thank you very much for your support!!!

Kind Regards.

Raúl

mjoksch
Participant
0 Kudos

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

raul_daimiel
Participant
0 Kudos

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

raul_daimiel
Participant
0 Kudos

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

mjoksch
Participant
0 Kudos

Hello Raul,

Example.

Moving a subform in the Master page. (Arrow)

Moving a subform in the Layout (move)

BR Marc

raul_daimiel
Participant
0 Kudos

Dear Marc!

Thank you very much for your answer and your quite helpful example!!.

I think it will absolutely solve my issue!!!.

I have not implemented yet, but I will definitelly will get back to you once I've done it!

Thank you very much!!!!!!

Kind Regards.

Raúl

raul_daimiel
Participant
0 Kudos

Dear Marc,

I'm having a question regarding your code.

Find attached a screenshot of what I'm having now.

It'd be just helpful if you'd give me a clue on it!.

Kind Regards.

Raúl