Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

SAP Adobe Form Create bookmark

Avatar

Level 1

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

4 Replies

Avatar

Level 10

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

Level 1

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 .

Avatar

Level 10

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

Level 1

Hello Radzmar,

Thank  you so much for your explanation.

Best regards ,

Sébastien.