Jump to content
Sign in to follow this  
CCBtx

Access to Tab Control inside a Tab Control

Recommended Posts

I have Tab Control #1... and then I have Tab Control #2 embedded in the 4th tab of Tab Control #1

I have named the 4th tab of Control 1, WebTab4

On Tab Control #2 (embedded in Tab 4 of Tab Control #1), I have two tabs.

I call them WebTab4a and WebTab4b, respectively.

When I try to perform script step "Go To Object" to WebTab4, it works perfectly.

When I try to perform script step "Go To Object: to WebTab4b, it fails with and Error 116 which is "Layout Object Missing".

This happens regardless of whether or not I go to WebTab4 before, or not at all, prior to that script step.

Any ideas?

The environment is FM Server 12.

Thanks,

Share this post


Link to post
Share on other sites

check for leading/trailing spaces and quotes around the object name in the inspector window (they shouldn't be there)

Share this post


Link to post
Share on other sites

Thanks for the thought.... no spaces/quotes existed (leading or trailing)

Share this post


Link to post
Share on other sites

It has to be something like that. This is working all right in all my dbs. Inspect carefully the object names and the script steps

Share this post


Link to post
Share on other sites

Thanks for the encouragement. I am going to chalk this one up to one of those nice little undocumented features.

I corrected it by:

1. Moving the problem Tab Control out of the anchor tab control

2. Moving the fields out of the problem Tab Control

3. Deleting the problem Tab Control

4. Creating a new Tab Control

5. Moving the fields into the new Tab Control

6. Moving the new Tab Control back to the anchor Tab Control

Everything works just fine now.

I had originally created the problem tab control by copying the anchor and then changing the object names. Maybe that somehow was the problem.

Anyway.... sometimes, delete and start over seems to be the best solution :laugh2:

Share this post


Link to post
Share on other sites

This sounds to me like the child tab object wasn't "attached" to the parent tab object yet. In FM12, on Windows, I noticed that if you copy and paste any object into any parent object (like a tab control or portal), the child object isn't associated with the parent until I move it again after copying. So, I've gotten into the habit of copy, paste, position as you want, move with arrow keys one click left, then one click right (or up/down).

Share this post


Link to post
Share on other sites

Thats a really good observation. I think you are correct.

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.