cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe form - two text fields with the same value

Former Member
0 Kudos

Hi experts!

I need make text field (matnr) in header of page equal to field(matnr) in table.

Any ideas?

thanks

Larissa

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Larissa,

I hope I'm reading this right...

I have run into problems myself with two fields having the same name in a form. If you want the entries in both fields to be identical, what I would suggest is binding one of the fields to the backend, and then, make the other field type Calculated - Read Only. Within the calculated form calc script, use the following:

$.rawValue = <headerName>.<fieldName>.rawValue

Hope this helps...

Cheers,

Kevin

Former Member
0 Kudos

Hi, Kevin.

It must be like this:

______________________________

1 page:

<page header>

matnr :123

___<table>________________

matnr: 123

matnr: 123

.

.

.

2 page:

<page header>

matnr :123

___<table>________________

matnr: 123

matnr: 123

.

.

.

3 page:

<page header>

matnr :125

___<table>________________

matnr: 125

matnr: 125

With you code I get new value on every page( 1 - matnr:123, 2- matnr: 125..., but I need matnr: 123 on second page, like in table)

(Nested table does not help too)

I think I need get value of matnr to header from table (on every page), but I don't know how make it .

Can you help me ?

thanks

Larissa

Former Member
0 Kudos

Hi Larissa,

Sorry about that last post... What you could try do is the exact opposite. Take the field from the table and assign it to the header value, so:

$.rawValue = <table>.<fieldName>.rawValue

Question for you, why do you need matnr: 123 on the second page? Is it because there is more than one page of information on 123 and it rolls over to the next page?

Cheers,

Kevin

Former Member
0 Kudos

Hi Kevin

Yes, it because there is more than one page

of information on 123 .

______________________________________

$.rawValue = <table>.<fieldName>.rawValue

______________________________________

With this code I get Value from table only on first page,

on rest pages text field 'matnr' is empty.

Regards,

Larissa

Former Member
0 Kudos

Hey Larissa,

I would have to dig deeper into this problem, but maybe there is some way of checking to see what the current page is that you are on and the page that the start of the next table is, and only then you could re-assign the value of matnr to the new table, otherwise it would continue to print the matnr that it is on.

Does that make sense?

Cheers,

Kevin

Former Member
0 Kudos

Hi, Kevin.

Thank you

I solved this problem

Regards,

Larissa

Former Member
0 Kudos

Hi Larissa,

I'm glad to hear you solved it. Would you be willing to share your findings?

Cheers,

Kevin

Former Member
0 Kudos

Hi,

You need to first write a line of code to check the length of the string (MATNR) & then write one more line of script to dynamically set the lenght of the two fields.

Regards,

Hanoz