Next occurrence via an entity scroll bar | Uniface 9 | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

—  Results per page  —








— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters
For a group of consecutive words like 'end of support' use Match phrase

sp_Feed Topic RSS sp_TopicIcon
Next occurrence via an entity scroll bar
12 Jan 2018
4:36 pm
Avatar
helbenmar
Member
Forum Posts: 5
Member Since:
09 Aug 2017
sp_UserOfflineSmall Offline

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

15 Jan 2018
2:22 pm
Avatar
istiller
Member
Forum Posts: 233
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

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

15 Jan 2018
5:51 pm
Avatar
Theo Neeskens
Member
Forum Posts: 353
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

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

16 Jan 2018
11:42 am
Avatar
helbenmar
Member
Forum Posts: 5
Member Since:
09 Aug 2017
sp_UserOfflineSmall Offline

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

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 131

Currently Online: Arjen van Vliet
13 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ulrich-merkel: 1756

Iain Sharp: 644

Theo Neeskens: 353

gianni: 297

rogerw: 249

istiller: 233

lalitpct: 197

Knut: 190

Arjen van Vliet: 175

sochaz: 173

Member Stats:

Guest Posters: 3

Members: 8180

Moderators: 0

Admins: 8

Forum Stats:

Groups: 1

Forums: 62

Topics: 2147

Posts: 9289

Newest Members:

Coironquife, acshvwtrf, Agalasquife, HujloS, Brajindquife, kathrinezy1, Balakquife, StevenZoosy, MiguelBeade, Jamesaccop

Administrators: admin: 23, Adrian Gosbell: 302, diseli: 927, Bob Maier: 3, Nico Peereboom: 74, Michael Rabone: 4, richiet: 406, JanCees: 28