Next occurrence via an entity scroll bar

Author: heloise.besseau@euralis.com (helbenmar)

Hi all I am a bit lost about the behaviour of the entity scroll bar. It does not seem to do a classic "next occ", as it automatically triggers a FGF/LVF in the first printed field of my form (wherever I come from), before calling an OGF. This is kind of a problem for us because we try to keep in memory the current field in order to prompt on the same field in the next occurrence when moving. It works well using the next occ button, or with the keyboard arrows, because OGF is triggered without jumping on the default field. Do you know a way of NOT automatically going to the default $prompt when scrolling? Thanks in advance Héloïse

3 Comments

  1. helbenmar said Hi all I am a bit lost about the behaviour of the entity scroll bar. It does not seem to do a classic "next occ", as it automatically triggers a FGF/LVF in the first printed field of my form (wherever I come from), before calling an OGF. This is kind of a problem for us because we try to keep in memory the current field in order to prompt on the same field in the next occurrence when moving. It works well using the next occ button, or with the keyboard arrows, because OGF is triggered without jumping on the default field. Do you know a way of NOT automatically going to the default $prompt when scrolling? Thanks in advance Héloïse  

    *grummel* UnifAce at it's best A dirty(?) solution: Hold in memory the current occurence number   Write a little procedure, doing the things necassary to switch over another occurence :  GP_OGF   In this procedure set $$LAST_OCC_NBR = $curocc()    ; (something like this) When ever a FGF is fired, check, if you still in the same occurence. If not, call GP_OGF    IF($$LAST_OCC_NBR!=$curocc) call GP_OGF Ingo


    Author: istiller (i2stiller@gmx.de)
  2. Hi Heloise, Can you check what macro Gold Space ^NEXT ^OCC_WINDOW does ? And are you using contained forms, or does this already occur on a simple modal form ? Regards, Theo


    Author: Theo Neeskens (tneeskens@itblockz.nl)
  3. Thank you for your answers.

    Theo Neeskens said Hi Heloise, Can you check what macro Gold Space ^NEXT ^OCC_WINDOW does ? And are you using contained forms, or does this already occur on a simple modal form ? Regards, Theo  

    I tried macro "^NEXT^OCC_WINDOW" and I just get a message "last occurrence", but my cursor does not moveConfused I am using contained forms, but I just made a test on a simple modal form and the problem is the same.

    istiller said A dirty(?) solution: Hold in memory the current occurence number   Write a little procedure, doing the things necassary to switch over another occurence :  GP_OGF   In this procedure set $$LAST_OCC_NBR = $curocc()    ; (something like this) When ever a FGF is fired, check, if you still in the same occurence. If not, call GP_OGF    IF($$LAST_OCC_NBR!=$curocc) call GP_OGF

    Thank you for the suggestion. The problem is that when FGF is fired, $curocc has not changed yet, since it is updated in OGF... What happens is that the $prompt will first go on the default field, and then change the occurrence. Heloise


    Author: helbenmar (heloise.besseau@euralis.com)