arrakis123
9th May 2007, 12:13
hi to all,
i have one problem. i have one session that call to other one. then when appear the second session the user could be select any line and it call to other session, the thirth one.
when i close the thirth session, the user can select other line in the second session. ok, so the mark.occur section dont execute again.
i try to put remove.mark to unselect the line, but not run, they close.
my english is not good, but well,
thanks to all
mark_h
9th May 2007, 15:09
Post your code and someone may see something that would fix the problem.
arrakis123
9th May 2007, 15:38
this is the code when you select one line on the second session:
choice.mark.occur:
after.choice:
display.all()
refresh()
|do.all.occ(ocurrencias)
ocurrencia=actual.occ
if ocurrencia <> 0 then
zoom.to$("tdpat0905m002",Z.SESSION,"","",0)
import("nueva",nueva)
endif
antigua=tdpat972.dsca
grabar.aux.984()
grabar.transf.arti()
)
the third session code (imports,etc):
before.program:
db.set.to.default(ttdpat972)
display.all()
refresh()
import("tdpat972.term",tdpat972.term)
import("tdpat972.dsca",tdpat972.dsca)
import("tdpat972.orno",tdpat972.orno)
import("tdpat972.pono",tdpat972.orno)
orno=tdpat972.orno
pono=tdpat972.pono
dsca=tdpat972.dsca
nueva=tdpat972.dsca
select tdpat972.*
where tdpat972._index1 = {:term,:orno,:pono,:dsca}
order by tdpat972._index1 asc
as set with 1 rows
selectdo
endselect
i do de debug and i see that in the second session always take the same code (orno,pono,dsca....).
i dont know if i must do any remove.mark or what
thanks
Hitesh Shah
9th May 2007, 15:51
I think use of display.all in after choice section of mark.occur is not required . It will change the current occurence values which will not be available in 2nd session correctly.
arrakis123
9th May 2007, 15:56
trayed to quit display.all and refresh, but not run. i have all the time the same description, etc, on the thirth session
mark_h
9th May 2007, 16:04
The second time thru the session is actual.occ set to the new marked occurance?
en@frrom
9th May 2007, 16:15
Try to leave out the display.all() and refresh(), I'm afraid they change the actual.occ...
arrakis123
9th May 2007, 16:16
i dont understand.
the second time, when i select a record in the second session, always takes the same. i think do you say that when you say actual.occ.
how can i take the new marked record?
arrakis123
9th May 2007, 16:20
Try to leave out the display.all() and refresh(), I'm afraid they change the actual.occ...
i have done, but not run
arrakis123
9th May 2007, 16:41
i try to put do.all.occ(function). the in function, where i do a lot of things, at the begining i put "if marked then" but not run.
anyone knows how can i use mark.table() ?? i dont know to do someone diferent
mark_h
9th May 2007, 17:09
Before the zoom.to$("tdpat0905m002",Z.SESSION,"","",0) put your export statements. Test and make sure the variables are for the new marked record. If not then step through the program after it returns from tdpat0905m002. Make sure the next time you mark a record the after.choice gets executed without the refresh and display statements.
arrakis123
10th May 2007, 10:27
run!!!
well, finally i put in the second session that:
choice.mark.occur:
after.choice:
do.all.occ(ocurrencias)
function ocurrencias()
{
if mark.table(actual.occ) then
zoom.to$("tdpat0905m002",Z.SESSION,"","",0)
import("nueva",nueva)
antigua=tdpat972.dsca
grabar.aux.984()
grabar.transf.arti()
endif
}
thanks to all