on 11-22-2008 3:12 PM
Hi experts!
I need make text field (matnr) in header of page equal to field(matnr) in table.
Any ideas?
thanks
Larissa
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.