SAP Adobe Form Create bookmark

Avatar

Avatar

Sebastien_LYON

Avatar

Sebastien_LYON

Sebastien_LYON

25-01-2017

Hello ,

I have to create an workbook with a bookmark .

The Workbook seem working fine but I’m facing a problem .

Bookmark is displayed as bellow :

bokmark_géné.PNG

For this, I modified the xml source code . but, it’s not the result I expected .

How to do :

"summary" and Title are hard-coded, but I need to displayed a real data.

In my example TITLE is a variable called GV_MARG_GRP ( extract from XML :

capt_2.PNG

This variable contains value ‘DU FALL/Winter’.

Capture3.PNG

Anf is this ( DU FALLL/Winter ) I want to place into bookmark .

But I don’t know how to pass value of GV_MARG_GRP into xml code.

do I use include it  between  <EXTRA> </Extra>  ?

Is This the right way ?

Is this possible ?

Must I add a javaScript script ?

If yes , How to define this ? (I don”t know anything in javascript )

Thank you so much for all help , advice .

Best regards ,

Sébastien .

Enregistrer

Accepted Solutions (0)

Answers (4)

Answers (4)

Avatar

Avatar

radzmar

MVP

Total Posts

(val/1000)?string[".0"]}K

Likes

385

Correct Answer

485

Avatar

radzmar

MVP

Total Posts

(val/1000)?string[".0"]}K

Likes

385

Correct Answer

485
radzmar
MVP

30-01-2017

Hi Sébastien,

you can add every script you want. It simply executes when you click the corresponding bookmark. The following bookmark will show a messageBox for example:

<extras name="bookmark">

              <text name="name">Chapter 1</text>

              <text name="color">0,0,0</text>

              <text name="style">normal</text>

              <text name="action">runScript</text>

              <text name="script">/* Bookmark JavaScript */

xfa.host.messageBox("You've selected Chapter 1.");</text>

            </extras>

LiveCycle Blog: Lesezeichen in XFA-Formularen//Bookmarks in XFA forms

Avatar

Avatar

radzmar

MVP

Total Posts

(val/1000)?string[".0"]}K

Likes

385

Correct Answer

485

Avatar

radzmar

MVP

Total Posts

(val/1000)?string[".0"]}K

Likes

385

Correct Answer

485
radzmar
MVP

26-01-2017

You cannot use variables in bookmarks, I'm afraid. The bookmark tree is only loaded once the form is opened and cannot be updated.

Avatar

Avatar

Sebastien_LYON

Avatar

Sebastien_LYON

Sebastien_LYON

03-02-2017

Hello Radzmar,

Thank  you so much for your explanation.

Best regards ,

Sébastien.

Avatar

Avatar

Sebastien_LYON

Avatar

Sebastien_LYON

Sebastien_LYON

27-01-2017

Hello Radzmar,

Thank you so much for your message.

.

I was expected solve this point by adding Script in expression EXTRAS - /EXTRAS.

like this :

<extras name="bookmark">

   <text name="name">Bookmark</text>

   <text name="color">0,0,0</text>

  <text name="style">normal</text>

  <text name="action">gotoPage</text>

<extras>

As described in the Adobe Designer help the values for action are;

 

gotoPage: This is the default value. Focus is shifted to the page where the parent subform starts.
setFocus: Can be used when the parent container is a field. Sets the parent field in focus.
runScript: Triggers JavaScripts to be run.

What kind of script can I add ?

Thank you so much for your help .

There is still time to wish you a Happy new year 2017 .

Best regards ,

Sébastien .