cancel
Showing results for 
Search instead for 
Did you mean: 

Prove the link of the image field dynamically with FormCalc

Former Member
0 Kudos

Hello

I have a problem by Adobe LiveCicle - Transaction sfp.

In the interface I have defined  a table .

This table I have associated with the form:

In the Layout I have an ImageField with the name "Zelle1".

In the event "Initialize Cell1" I want to assign the current line of the URL.

data.Main.LosAngaben.MerkmaleProLos.Histograms.Tabelle11.Zeile1.Zelle1::initialize - (FormCalc, client)

Zelle1.value.#image.href = $.QCERT_TT_LOT_PDF.DATA[$.parent.index].IT_HISTOGRAM.DATA[$.parent.index].SPEICHERORT;

In the Field "SPEICHERORT" is following saved "\\sapme006\images1\chartexport_100000000376_0010.bmp"

If I do this:

data.Main.LosAngaben.MerkmaleProLos.Histograms.Tabelle11.Zeile1.Zelle1::initialize - (FormCalc, client)

Zelle1.value.#image.href = "\\sapme006\images1\chartexport_100000000376_0010.bmp";

It works.

Can anybody help me?

Best Regards,

Ulrike

Accepted Solutions (0)

Answers (1)

Answers (1)

ChrisSolomon
Active Contributor
0 Kudos

1. are you sure the value of "$.QCERT_TT_LOT_PDF.DATA[$.parent.index].IT_HISTOGRAM.DATA[$.parent.index].SPEICHERORT;"

is an URL to an image? you should make a text field on the form and set/pass the value to it too to make sure you are seeing the right filepath/URL

2. are you sure the variable you are using can hold the URL? it looks like the length is 64 char...but what if your URL is longer?

Former Member
0 Kudos

Hello,

Whatever the reason, the database field


$.QCERT_TT_LOT_PDF.DATA[$.parent.index].IT_HISTOGRAM.DATA[$.parent.index].SPEICHERORT


it is not working.


I have solved my problem in this way:


I have defined a Textfield "SPEICHERORT" with Binding


$.QCERT_TT_LOT_PDF.DATA[*].IT_STRUCT_HISTOGRAM.DATA[*].HISTORIE.SPEICHERORT


This text field has the font color white.


The image field "Bildfeld1" has a FormCalc-Code:


data.Main.LosAngaben.MerkmaleProLos.Histograms.PFAD.Bildfeld1::initialize - (FormCalc, both)

$.value.#image.href = PFAD.SPEICHERORT.rawValue;

So it works. The different images are displayed in the CoQC.

Ulrike