monica1
27th June 2005, 13:35
I write a code in before.zoom in field section to depend a table zoom.to a session or another. But there are some cases where there is no zoom.
When this case appear a message is showed "No zoom session defined" and the principal session is blocked.

There is any way that when there isn´t zoom session the message doen´t appear and the session run normally?


field.camaq006.valor:
before.zoom:
select camaq010.*
from camaq010
where camaq010._index1 = {:idno}
selectdo
attr.zoomsession$ = camaq010.sess
endselect


Thank in advance,

bdittmar
27th June 2005, 14:03
I write a code in before.zoom in field section to depend a table zoom.to a session or another. But there are some cases where there is no zoom.
When this case appear a message is showed "No zoom session defined" and the principal session is blocked.

There is any way that when there isn´t zoom session the message doen´t appear and the session run normally?


field.camaq006.valor:
before.zoom:
select camaq010.*
from camaq010
where camaq010._index1 = {:idno}
selectdo
attr.zoomsession$ = camaq010.sess
endselect


Thank in advance,

Hello,

try

selectdo
attr.zoomsession$ = camaq010.sess
selectempty
do something else !!!!!!
endselect

monica1
27th June 2005, 14:22
I already try it, but I don´t want to do anything.

Rita Kotecha
27th June 2005, 16:37
I have used the following:

before.zoom:
if (oorg.f = whinh.oorg.purchase.man) then
attr.zoomsession$ = "tccom4521m000"
attr.zoomreturn$ = "tccom121.sfbp"
endif

if (oorg.f = whinh.oorg.sales.man) then
attr.zoomsession$ = "tccom4511m000"
attr.zoomreturn$ = "tccom111.stbp"
endif

Please see if it helps you.

monica1
27th June 2005, 17:12
No, the problem is:


field.camaq006.valor:
before.zoom:
select camaq010.*
from camaq010
where camaq010._index1 = {:idno}
selectdo
attr.zoomname$ = camaq010.sess
selectempty
NOTHING, NO MESSAGE, NO ZOOM
endselect


I need something like choice.again(), skip.io(), .... This kind of thing, something that kill the process and return to the normal program.

bdittmar
27th June 2005, 17:28
No, the problem is:


field.camaq006.valor:
before.zoom:
select camaq010.*
from camaq010
where camaq010._index1 = {:idno}
selectdo
attr.zoomname$ = camaq010.sess
selectempty
NOTHING, NO MESSAGE, NO ZOOM
endselect


I need something like choice.again(), skip.io(), .... This kind of thing, something that kill the process and return to the normal program.

Try :
check.input:

select camaq010.*
from camaq010
where camaq010._index1 = {:idno}
selectdo
attr.zoomname$ = camaq010.sess
selectempty
set.input.error("")
endselect

Regards

monica1
27th June 2005, 18:18
field.camaq005.valor:
before.zoom:
select camaq010.*
from camaq010
where camaq010._index1 = {:camaq003.idno}
selectdo
attr.zoomcode = Z.SESSION
attr.zoomsession$ = camaq010.sess
selectempty
attr.zoomcode = 0
attr.zoomsession$ = ""
endselect


With this code it works.

Thank you very much for your replies.