peterfarouk
29th June 2003, 16:04
Helloo
I decleared a variable as a report input filed called var_ttyp
and I decleared an after field layout in my report and assigned to it var_ttyp as the field name.
now when I write in the report script
after.tdsls045.ttyp.1
before.layout:
|Some Calaculations
after.layout:
|Some Calaculations
after.var_ttyp.1:
before.layout:
|Some Calaculations
after.layout:
|Some Calaculations
when I compile I got this error:
Section 'before.layout' already defined
Section after.layout' already defined
Invalid transaction id 1 specifed.
Can anyone Heeeeeeeeeeeelp.
thankx.:)
Ruskin
30th June 2003, 06:36
I'm not sure if this is your issue, but if you have copied and pasted the code, then you are missing a ':' after the section heading of;
after.tdsls045.ttyp.1
peterfarouk
30th June 2003, 08:23
Sorry this is not the issue , I alredy added a " :" but I didnt add it in my sample code.
But thankx anyway.
rupertb
30th June 2003, 09:58
Are you sure that's not the error Peter, I can replicate it on our system, if it's not the error please post the complete script here.
Regards,
Rupert
peterfarouk
30th June 2003, 10:37
Hello rupertb
I am sending the code please check it out and tell me where is the mistake.
Thankx alot for your help I really appreciate it.
rupertb
30th June 2003, 13:19
I can't see the mistake that the compiler is finding, however I see that you've built meaning into your data i.e. "JH" is the parent group of transaction types "JH1", "JH2", etc. and that you are indentifying the parent group by stripping off the third character... be careful this can cause you some headache in the future!
Let's call in the big guns here: Prashanth, Mark, Omeluuk Help!
MariaC
30th June 2003, 13:46
if you comment out the paragraph starting from after.var_ttyp.1, does the code then compile?
isimeon
30th June 2003, 13:52
Check the number of after.field layout (1 or ?)
peterfarouk
30th June 2003, 14:02
yes MariaC if I comment out the paragraph starting from after.var_ttyp.1 it compiles without any problem, and yes isimeon
the number of after.field layout is 1.
I cant see the problem .:confused:
It Should work normally I guess..
MariaC
30th June 2003, 14:06
And there is a report layout with that name on your report?
kbartelds
30th June 2003, 14:12
Hi,
Tested this and conclude that the compiler can not handle your variable var_ttyp. If you change it to var.ttyp your problem is solved. With var_ttyp I get the same error, with var.ttyp no problem.
Regards,
Klaas
peterfarouk
30th June 2003, 14:31
YES YES YES thankx kbartelds it works u r the man :D .
and thankx to u all guies for your help.
but why the compiler cant handle the variable names that has underscore ?????!!!
kbartelds
30th June 2003, 15:41
Hi,
I think the underscore is threathend as a reserved symbol, look at a report debug object where it is used in report functions.
Klaas
NvanBeest
30th June 2003, 16:38
threathendI guess you meant to type treated? :D