Welcome, Guest. Please login or register.

Login with username, password and session length
Pages: [1]   Go Down
Print
Author Topic: @keyx processing problem  (Read 627 times)
0 Members and 1 Guest are viewing this topic.
hjkelsheimer
Member

Posts: 28


View Profile WWW
« on: September 12, 2010, 08:50:01 PM »

using @keyx to initiate processing of several system commands to create / export several small files to combine into one file for web based service to view customer data in a specific format.

the files are made w/o problem.

the problem is that once completed and another record is brought up via index selection and @keyx is pressed again it sends the previous record data again and not the new record on screen. if i exit the program and come back into add, update, inquire and select the second record it will send the data.

from withing the @keyx processing with new record on screen how can have it "clear the previous data" or initiate the @keyx processing with the new record info.

i have not used @entsel  so am not sure if it could be used but i have tried using "restart" which doesn't seem to work correctly. could i use either of these or do a lookup within the current file and force it to reprocess. i have set up a variable to see if prev used @keyx to send the previous record but then what do i do with it.

any help or guidance would be appreciated.

 
Logged
Bill Randall
Administrator

Posts: 53


View Profile WWW
« Reply #1 on: September 17, 2010, 04:26:08 AM »

We would need to see snipets of your code.  You must be using global variables as that is the only way for them to hold data from a previous record.  Are you using variables or is it just a routine where you post from real fields?  Without seeing your code we are shooting in the dark.
Logged

Bill Randall
hjkelsheimer
Member

Posts: 28


View Profile WWW
« Reply #2 on: September 17, 2010, 08:55:03 PM »

I will not be in that clients offices anytime soon but will try to get by there and print out the prc table.

the fields are real fields w/ customer data. when using the @keyx prc it sendsthe customer data to multiple files to get the right layout for the data bridge to request medical services for the customer. the office personnel then go back to the index and select another record to bring up and then hit @keyx again but the new patient info is not sent- only the previous record. when you exit the file and re-enter it then do a index selection again  then go to the new patient record which is now on the screen then the @keyx it then sends the new patient data but only if you exit the program first.

Logged
Bill Randall
Administrator

Posts: 53


View Profile WWW
« Reply #3 on: September 18, 2010, 10:05:17 AM »

If they are real fields, then there is no way they can be the same for different records unless the data is the same.  At this point, without the code we are not much help.
Logged

Bill Randall
hjkelsheimer
Member

Posts: 28


View Profile WWW
« Reply #4 on: September 18, 2010, 08:55:44 PM »

i agree with you.

i will get the code and then maybe you can advise what i did wrong.

Logged
Pages: [1]   Go Up
Print
Jump to:  

Valid XHTML 1.0! Powered by SMF 1.1.15 | SMF © 2011, Simple Machines | Massive Blue Theme By Cadosoas Valid CSS!