Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 4991 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Does anyone know of a way to calculate the attribute of active field position (Top, right), without using objects name or having to do different objects name for each field.

Thanks

Caps

Posted

What's the goal?

Perhaps a trigger on each field that runs a script with GetActiveField ( )?

Posted

What's the goal?

Perhaps a trigger on each field that runs a script with GetActiveField ( )?

To open a new window or a plugin at the right position of that specific field. To do this, I need the current position of that field.

How the getactivefield can handle with this?

Posted

I assume you're looking to create a script that incorporates as much indirection (context independence) as possible.

Your answer, "to open a window at that field position or a plugin," doesn't make sense to me. Plugin? Also, what if the field is in the lower right-hand corner of the layout? Where should the new window appear? What's the purpose of the new window?

Again, what are you doing? Please walk me thru a scenario. I feel that what you envision might not be the best approach or even necessary in FM, and since you list yourself as "entry-level" perhaps I've been there and done that and can save you from repeating my past mistakes.

Posted

Try =

FieldBounds ( Get (FileName) ; Get(LayoutName) ; Get ( ActiveFieldName ) )

Note that this assumes you have only one instance of the field on the layout, and that the measurements are relative to the layout.

Posted

I assume you're looking to create a script that incorporates as much indirection (context independence) as possible.

Your answer, "to open a window at that field position or a plugin," doesn't make sense to me. Plugin? Also, what if the field is in the lower right-hand corner of the layout? Where should the new window appear? What's the purpose of the new window?

Again, what are you doing? Please walk me thru a scenario. I feel that what you envision might not be the best approach or even necessary in FM, and since you list yourself as "entry-level" perhaps I've been there and done that and can save you from repeating my past mistakes.

Please see this image.

I have one layout with a portal inside, and each field i perform an open trigger to run a script to run this plugin.

The same example could be with a new window.

I want that calculator next to that field (560), not in the middle of screen for example.

There is any calculation to do this (I use a portal).

Thanks, for the support

Try =

FieldBounds ( Get (FileName) ; Get(LayoutName) ; Get ( ActiveFieldName ) )

Note that this assumes you have only one instance of the field on the layout, and that the measurements are relative to the layout.

Hi Comment, thanks for your suggestion.

You give me the way, but also showed the problem.

I'm using a portal inside this layout, so i have multiple instances, because I can repeat that field over and over (one for each record).

Please see this image (previous post), how to get the position of each field?

Thanks

exemple.jpg

Posted

It looks like you have only 5 fields in the portal - why not give them object names?

This database have more fields, but i did that (oject names). The idea was to have just one script without scriptparameters.

Solution for others with same issue:

set variable: $right

GetAsText(GetAsNumber(

GetLayoutObjectAttribute ( Get ( ScriptParameter ) ; "right" ; 1 ; Get ( ActivePortalRowNumber ))

)+10)

set variable: $top

GetAsText(GetAsNumber(

GetLayoutObjectAttribute ( Get ( ScriptParameter ) ; "top" ; 1 ; Get ( ActivePortalRowNumber ))

)+50)

Thanks to all,

Caps

Posted

This is new to me. I've never seen the use of a calculator for data entry. Why would you do that, rather than have the user enter the required values and create a calculation field for the result?

This topic is 4991 days old. Please don't post here. Open a new topic instead.

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
×
×
  • Create New...

Important Information

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