Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

How can I trigger a script in calculation field?

Please help me!

You cannot trigger a script in a calculation field.

When posting a question, please describe why you feel you need this technique. I cannot offer an alternative solution since I have no information about what you are trying to achieve.

Plug-ins like EventScript can be triggered by calculations. (Before FM10 that was the only way to trigger scripts.)

Yes, Vaughan, that's true. I doubt that is what is needed here.

  • Author

I attached a simple file that contains my problem

My_File.zip

Graph disorganized. Wrong field used for relation. Existing Archive::CustomerCode field seems to serve no purpose. See attached.

My_File.fp7.zip

  • Author

Thanks for the arrangements but I see only details of the payment

Still sales details absent

Can you offer me some alternatives?

You'll need to explain clearly what you are trying to do. It is far from clear.

One basic problem is that you have an unstored customercode in Archive but that doesn't work, it should be a standard indexed field and not a calculaton.

  • Author

I want to carry the data of the calculation field(Customer Code in Archive) to an idexed field. So I can see whole customer actions in the table of Selected_Archive.

I want to carry the data of the calculation field(Customer Code in Archive) to an idexed field. So I can see whole customer actions in the table of Selected_Archive.

What is the point of the calc? It doesn't belong there. The field CustomerCode must be a standard indexed field.

How is the archive record created? That's the process where you must set the CustomerCode field.

  • Author

If I can trigger a script in any calculation field in Archive

It will cary CustomerCode data to the any standart indexed field.

So I can do relation

Sorry for my English

Perhaps you can, but generally if something like this needs to be done it means there is a problem with the data structure.

Generally there is a way of constructing relationships so that they work without having to resort to scripts.

It might be time to explain in detail what you went to achieve.

If I can trigger a script in any calculation field in Archive

It will cary CustomerCode data to the any standart indexed field.

So I can do relation

Sorry for my English

It's not the English; it's the programming logic.

It should not be a calculation field.

It should be a standard indexed field that is set as part of the archive record creation process.

It would be helpful to answer Vaughan's question.

Edited by Guest

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.