Number of occurrences visibles by form is fixed at the developpment phase | 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
Number of occurrences visibles by form is fixed at the developpment phase
24 Nov 2017
3:14 pm
Avatar
cabero
Member
Forum Posts: 39
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Hi all

As far as we know, The number of records painted in a form is fixed at the moment when we develop a new form.

Our problem is taht our users have different sizes of screen.

If we paint too many records in our forms , the application has really a bad aspect on small screens.

So we have to reduce the number of records and it’s a pitty form the users who have big screens…

Anyone would have an idea how to change dynamicly this number of rows visible by form ?

Many thanks in advance

Daniel

25 Nov 2017
8:03 am
Avatar
ulrich-merkel
Frankfurt/Germany
Member
Forum Posts: 1710
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Hi Daniel,

what about using a grid widget with an “attached to window borders”?

AFAIK, this is the only one which can adjust the number of occurences.

If you want to fill only a part of the screen, you can use splitbars to limit the area.

Greetings from a wet Frankfurt/Germany morning,
Uli

27 Nov 2017
5:18 pm
Avatar
ulrich-merkel
Frankfurt/Germany
Member
Forum Posts: 1710
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Another option is to create some variations (included proc are pretty helpful) of the form
(xxx_small, xxx_medium, xxx_large) with different numbers of occurences painted .

Activate “the best fit” depending on the size of the application window
or depending on some $logical so the user can decide what he wants to see.

And there are a lot of other options I came across in my 25 uniface years on that matter,
Uli

30 Nov 2017
4:08 pm
Avatar
cabero
Member
Forum Posts: 39
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Thank you Uli for your answers.

For reasons of maintenance ,of courser We would prefer no to duplicate the forms in several versions.

In another way, we use $paintedfieldproperties to setup the aspect of our forms, … so splitbars doesn’t work.

I am afraid not to have a solution without big efforts of development … Cry

Thank you an anyway 

Daniel

30 Nov 2017
4:47 pm
Avatar
ulrich-merkel
Frankfurt/Germany
Member
Forum Posts: 1710
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Hi Daniel,

maintenance of a group of similar forms is easy if you outsource all the code in #include Procs.

So all the coding is done once and used many times.

04 Dec 2017
5:49 pm
Avatar
Theo Neeskens
Member
Forum Posts: 345
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

With the “new” attach properties that we have added over time (hmove, vmove, hsize, vsize), you often can use these instead of $paintedfieldproperties.

If that is possible in your case, then you can use an attached grid, with or without splitterbars.

If that is feasable for you, you need much less code and have much easier maintenance.

05 Dec 2017
10:30 am
Avatar
Iain Sharp
Member
Forum Posts: 623
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

If only those attach properties could be set in the widget properties, the world would be a good and happy place(ish)

05 Dec 2017
10:44 am
Avatar
Arjen van Vliet
Member
Forum Posts: 170
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

My Lecture on modernization covers the things that Theo mentions (on YouTube and on SlideShare)

06 Dec 2017
12:04 pm
Avatar
Theo Neeskens
Member
Forum Posts: 345
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

I agree Iain Sharp!

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 131

Currently Online: Amarildo Ribeiro, Henk van der Veer
9 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ulrich-merkel: 1710

Iain Sharp: 623

Theo Neeskens: 345

gianni: 264

rogerw: 232

istiller: 201

lalitpct: 197

Knut: 179

-GHAN-: 171

Arjen van Vliet: 170

Member Stats:

Guest Posters: 3

Members: 7038

Moderators: 0

Admins: 8

Forum Stats:

Groups: 1

Forums: 62

Topics: 2058

Posts: 8862

Newest Members:

Arabellaquife, ArthurEffit, RubenKip, MarinaGOVunse, Olpbtsj, Richardglums, Hellbladequife, RobertCab, Kcrdhlq, Kennethsherm

Administrators: admin: 23, Adrian Gosbell: 286, diseli: 836, Bob Maier: 3, Nico Peereboom: 65, Michael Rabone: 4, richiet: 406, JanCees: 28