Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
3900 มุมมอง

How I can translate field value  for example (124/P1/25 to 124-1-25). Actually how I can do sting operations  in Report Designer ?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello my friend;

here is how you can convert your (124/P1/25 to 124-1-25).

Answer:

s = "124/P1/25"

print s

s.replace('/','-')

print s

s = s.replace('/','-')

print s

s.replace('P','')

print s

s = s.replace('P','')

print s

Best Regards.

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Thanks  I used that [ ((o.fiskal_broj).replace('/','-')).replace('P','') ]]  in my report. You helped me a lot. :)

อวตาร
ละทิ้ง

in your service :) but why dont you vote ;)

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ย. 15
7319
Reportlab: Conditional Table Header แก้ไขแล้ว
2
ส.ค. 15
10219
0
มี.ค. 15
7045
4
มี.ค. 25
23040
2
เม.ย. 24
1931