jayugandhi
2nd April 2015, 09:04
Hi all,
field.abc:
1st zoom :
attr.zoomsession$ = 1st session code
attr.zoomreturn$ = return value
if isspace(return value)
attr.zoomsession$ = 2nd session code
attr.zoomreturn$ = return value1
endif
In this, 1st zoom working fine and able to get return value but when second zoom conditions matches it is not opening 2nd session.
sachinbaan
2nd April 2015, 10:09
hi jay,
you should add conditional statement to first zoom also,
ex.,
field.abc:
before.zoom :
if not issapce(abc) then
attr.zoomsession$ = 1st session code
attr.zoomreturn$ = return value
else
attr.zoomsession$ = 2nd session code
attr.zoomreturn$ = return value1
endif
as in your code, always first zoom will be in action as , it is unconditional... try this... I hope you will get solution :)
jayugandhi
2nd April 2015, 10:20
Hi Sachin,
I have condition like this,
field.abc:
before.zoom :
if cus = "xyz" then
attr.zoomsession$ = 1st session code
attr.zoomreturn$ = return value1
if isspace(return value1) then
attr.zoomsession$ = 2nd session code
attr.zoomreturn$ = return value2
endif
else
attr.zoomsession$ = 3rd session code
attr.zoomreturn$ = return value3
endif
In this, second zoom session is not getting open.
manish_patel
2nd April 2015, 11:02
Hi Jay,
What is "return value1" here? Could you please post your actual code?
In case if you are expecting the return value of zoom session in before.zoom section itself, then it will not work with this code. You have to rethink your logic.
sachinbaan
2nd April 2015, 11:05
hi manish,
return value get stored in the field from which zoom has been done.
so in this case return value will be stored in field abc.
sachinbaan
2nd April 2015, 11:06
hi jay,
please post your source code.
manish_patel
2nd April 2015, 11:26
hi manish,
return value get stored in the field from which zoom has been done.
so in this case return value will be stored in field abc.
Yes that's true Sachin. But do you think it will return in before.zoom section?
sachinbaan
2nd April 2015, 11:56
hi manish,
yes, it will return in before.zoom, section...
field.cono:
before.zoom:
if not isspace(cono) then
attr.zoomsession$ = "ltctm1500m000"
attr.zoomreturn$ = "tpctm100.cono"
else
attr.zoomsession$ = "ltctm1500m100"
attr.zoomreturn$ = "tpctm100.cono"
endif
I m getting value in "cono" field.
jayugandhi
2nd April 2015, 12:03
Hi Sachin & Manish,
Here is my original code -
field.tduil700.pksp:
before.zoom:
if tduil700.sfbp(1;3) = "ICB" then
query.extend.where.in.zoom("whinh302.sfbp = " & quoted.string(tduil700.sfbp))
attr.zoomsession$ = "whinh3502m000"
attr.zoomreturn$ = "whinh302.pcsp"
if isspace(whinh302.pcsp) then
query.extend.where.in.zoom("tduil720.sfbp = " & quoted.string(tduil700.sfbp))
attr.zoomsession$ = "tduil7520m100"
attr.zoomreturn$ = "tduil720.pksp"
endif
else
query.extend.where.in.zoom("tduil720.sfbp = " & quoted.string(tduil700.sfbp))
attr.zoomsession$ = "tduil7520m100"
attr.zoomreturn$ = "tduil720.pksp"
endif
sachinbaan
2nd April 2015, 12:16
Jay Saheb,
field.cono:
before.zoom:
if fd = 0 then
attr.zoomsession$ = "ltctm1500m000"
attr.zoomreturn$ = "tpctm100.cono"
if isspace(cono) then
attr.zoomsession$ = "ltctm1500m100"
attr.zoomreturn$ = "tpctm100.cono"
endif
else
attr.zoomsession$ = "ltctm1500m100"
attr.zoomreturn$ = "tpctm100.cono"
endif
I tried on dummy session, it is working properly... :)
vamsi_gujjula
2nd April 2015, 12:16
Sachin , is it working for sure !!!!! try using different table return values..
Sachin , what manish said is right
attr.zoomreturn$(18) Name of return field of zoom session on current field.
basically it stores which field value has to be returned
More over how can the program return value even before zooming to session.
what i suggest is try after.zoom check the return value if its blank , use zoom.to.$ and accordingly change the value
sachinbaan
2nd April 2015, 12:25
wamsi, I got your point.. , I was going on wrong way... :D