Precisely Speaking
May 18, 2012, 03:51:26 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: So what's news with you?  Tell us about it in "Getting To Know You"!
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Next / Prev  (Read 4212 times)
DonQuixote
Rock Star
*****
Posts: 107


To Dream the Impossible Dream...


« on: May 18, 2007, 07:05:25 PM »


Here's the situation. On a main screen I have a multi-value list of items.  I select an item and press the button to see the detail screen; which also has multi-values (the subValues have been raised to WORK fields).  In the detail screen there are buttons to go to the next and prev details from the item list on the first screen.
The next/prev buttons work fine until you insert or delete items on the detail screen.  The data is correctly stored in WORK but fails to REFRESH the multi-values in the detail screen no matter what you set REFRESH to; until you return to the same line item that you inserted or deleted from.
My clean work-around is after pressing the Next or Prev button, if the field has changed then return to the Same point and make the user press the Next or Prev button again.  Its better than seeing a dirty screen.
Logged
precisonline
President/Chief Technologist
Administrator
Rock Star
*****
Posts: 1532



WWW
« Reply #1 on: May 19, 2007, 06:54:30 PM »

Let me see if I understand... you have this main screen (a /PD.O or /PD.I?) with a multivalued list of items.  (Is that list editable?) You then select an item (via.. a function key, <cr>, or some other method?) and another screen appears with subvalued information converted to value marks.  On this detail screen you can insert new information (into the multivalued list shown on the main screen)?

What exactly are the Next and Prev buttons doing?  Is this GUI?  Are you setting @REFRESH to -2 each time on Next or Prev?

Sorry for all the questions, I simply want to be sure I understand your situation correctly.
Logged

-Kevin
Accidents "happen"; success, however, is planned and executed.
DonQuixote
Rock Star
*****
Posts: 107


To Dream the Impossible Dream...


« Reply #2 on: June 05, 2007, 08:52:54 AM »

 Undecided   To answer your questions:  main screen (/PD.I)  editable. Selecting an items means to click/hit return or in some way getting the focus to that point.  On the detail-screen you have a multiValue field that you are inserting/deleting items.  So we are talking about changes in the detail-screen, not the main-screen.
Example: main screen has a list of people (John, Sam, Chi).  Select a person and go to the detail screen showing "things John carry".  John carries money, computer, phone.  Hit next on the detail-screen and you will see that Sam also carries money, computer, phone.  And yes, hitting 'next' again will show what Chi carries.
In the file there are two fields a multiValue list of items and a related subValue list of "things people carry"
Hitting next takes the subValue list for that person and raises it up to ValueMarks and puts it in a Work Variable.
Logged
precisonline
President/Chief Technologist
Administrator
Rock Star
*****
Posts: 1532



WWW
« Reply #3 on: June 05, 2007, 08:56:58 AM »

You didn't say whether you're setting @REFRESH = -2 on the Next/Prev..?
Logged

-Kevin
Accidents "happen"; success, however, is planned and executed.
DonQuixote
Rock Star
*****
Posts: 107


To Dream the Impossible Dream...


« Reply #4 on: June 06, 2007, 09:36:40 AM »

Yes, @REFRESH= -2 is being set
Logged
precisonline
President/Chief Technologist
Administrator
Rock Star
*****
Posts: 1532



WWW
« Reply #5 on: June 08, 2007, 05:51:16 AM »

And though the display is incorrect, you've verified that the work variables have the right values?  Have you tried this in character mode to see if there's any difference in behavior?  I understand you want to run it in GUI, but sometimes doing things in character mode can be useful for debugging.
Logged

-Kevin
Accidents "happen"; success, however, is planned and executed.
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!