Jump to content
Sign in to follow this  
stefangs

nav buttons in interface file

Recommended Posts

in pre-separation versions, i had some calculated nav-icons for go-to-last/prev/next'etc. record. they took their images from source fields, depending on where you were. for example, if you're on the first record, the go to first record button appeared dimmed.

with separation, this is not so easy, because the buttons and images now should belong in the interface file, but the logic which button to display is dependent on the data file whose table happens to be displayed on the interface layout.

is there an easy way to know in the interface file which record of the target table is active? hope i made myself clear.

Share this post


Link to post
Share on other sites

This shouldnt really be an issue. If a layout is created in the UI file that displays the info reflecting a TO of a table in the DATA file, then it should work as if it was local.

What is your calc logic for displaying the different buttons?

Share this post


Link to post
Share on other sites

hmm.. you're right it does work perfectly. but if i do that, graphic interface items are pulled from the data file, because only the data file 'knows' which record is currently viewed.

i thought that such graphic images should be in the interface file only. but how does the interface file know which record i'm navigating?

Share this post


Link to post
Share on other sites

It should. There are a few different ways to go about this.

1. If you have a fully locked down navigation where everything is scripted, then you could tie setting some globals with your navigation scripting. However, if one performs a manual find then it will not work. If the find is scripted, then it could work.

2. You could reference the UI global images in your data calc.

3. You can use relationships based off your data.

I have attached a sample file that displays all 3 methods.

Seperation_Navigation.zip

Share this post


Link to post
Share on other sites

john,

this is way more than i could have asked for. thanks a bunch for the template! i think i'll go with the scripted method, but it's great to also see the alternate way of doing things.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Who Viewed the Topic

    1 member has viewed this topic:
    Matt Cudmore 
×
×
  • Create New...

Important Information

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