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: 296
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: 366
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:
32 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ulrich-merkel: 1868

Iain Sharp: 674

Theo Neeskens: 366

gianni: 343

Adrian Gosbell: 318

istiller: 296

rogerw: 272

Knut: 224

lalitpct: 197

Arjen van Vliet: 184

Member Stats:

Guest Posters: 3

Members: 10311

Moderators: 0

Admins: 6

Forum Stats:

Groups: 1

Forums: 62

Topics: 2294

Posts: 9946

Newest Members:

glennarm2, Punsnxu, Kevinshamp, CliffInali, janicetupct88, murielfo3, paulpn16, KreditovichHaist, evangelinerr2, janicetupsh87

Administrators: admin: 23, diseli: 1028, Nico Peereboom: 84, richiet: 406, Mike Taylor: 35, JanCees: 38