Jump to content
Sign in to follow this  
Rafita

Icons in global fields

Recommended Posts

Hi!

I would like to hear advices or recommendations about using global fields for the icons of a solution, instead of just pasting them in each layout. The database is intended also to be share in a network.

The idea is to change an icon in only one place, not in all around the database, and also to keep it in good size.

Tks.

Share this post


Link to post
Share on other sites

Well its a good idea in general - only problem is at least in my attempts to utilize it, the globals will "flash" when moving from record to record - maybe they've fixed it in 9 though, haven't tried.

Share this post


Link to post
Share on other sites

Is there any risk of loosing an icon? Does it worth it to store them in globals, instead of just pasting them as buttons in every layout?

Share this post


Link to post
Share on other sites

Not to nitpick, but the graphics aren't stored in the globals, they are stored in container fields, typically in a Prefs or Dev table. Then, in an Open script you either use Set Field to populate the globals, or define the globals as calcs that equal the container field.

If the table that stores the graphics has all its records deleted, (saving as a clone would do it), then you're in trouble. So, as a backup, I paste the graphic directly on the layout next to the field that stores it.

Share this post


Link to post
Share on other sites

Such icons are also lost when the file is saved as a clone. Such a file would require some "sysadmin" work to rebuild the icons before it could be used again.

Share this post


Link to post
Share on other sites

Vaughan, what do you mean "such icons" are lost when saving as a clone. I was talking about pasting graphics as layout objects, not in fields. Then, if they were lost by a record delete, someone can copy them from the layout and put them back in the preference table so that they can be set to globals again.

In fact, we usually build "Reset To Factory" scripts in our systems, that keep all the records we want populated at launch, and discard all others that were created during testing.

Share this post


Link to post
Share on other sites

If they were lost by a record delete, someone can copy them from the layout and put them back in the preference table so that they can be set to globals again.

The quality of most images greatly deteriorates when you do that...

Share this post


Link to post
Share on other sites

Deteriorates, how? I'm talking about colored rectangles for hilites (created using layout tools), maybe a "Go Related" button a la iTunes. Not jpegs.

Share this post


Link to post
Share on other sites

Well how was I meant to know that ;)

Share this post


Link to post
Share on other sites

Hi, Barbarita!

Could you crumble it for me please? Does it mean that you don't recommend other objects than those created with FM layout tools? I intend to use PNG icons.

Tnx.

Share this post


Link to post
Share on other sites

"Hi, Barbarita!

Could you crumble it for me please?"

Huh?

Share this post


Link to post
Share on other sites

I think Rafita means you know - "break it down for me hommie" ;)

Share this post


Link to post
Share on other sites

"... someone can copy them from the layout and put them back in the preference table so that they can be set to globals again."

That's exactly waht I mean: "somebody" with developer knoweldge of the system has to do it. A client or user just can't make a clone of the file, open it and expect it to work.

"In fact, we usually build "Reset To Factory" scripts in our systems..."

Me too, but these can't copy icons from layouts.

I occasionally store icons in fields, but avoid it bacause it creates a maintenance problem.

Share this post


Link to post
Share on other sites

I don't know now if it's worth or not using global fields for navigation buttons, and if it's better to limit oneself to FM layout tools.

Thank you.

Barbara: Sorry for the use of CostaRican language used when you feel greatful with someone.

Share this post


Link to post
Share on other sites

No problems, Rafita. As they say in NY, "we're cool." I don't know if there's a difference in performance btw using .png or fm-created graphics. I think that there used to be issues with the speed that they loaded from the server (and whether they were requested repeatedly from the server).

Vaughan: Yes, developer access necessary to go to the developer layout and paste the graphics back into the container fields. But this is hardly ever needed.

"Reset to Factory" is used during and after testing. I don't copy the icons from the layout, the reset script doesn't delete records in the pref table. I also have tables for value lists, activity types, etc. that I don't want cleared. I don't use Save As Clone very often.

It's a matter of opinion, but I like nav graphics in globals, because they are everywhere in the system and can be changed in one place. In fact, I find it less of a maintenance problem. Try changing the GTRR nav graphic in all portals when it's not a global graphic!

I am curious about the graphic deterioration that you mentioned, Genx. What have you seen? Is it specific to certain formats?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.