Skip to main content
Solved

Toggle Button

  • December 19, 2023
  • 4 replies
  • 428 views

Forum|alt.badge.img+3

Hello everyone,

I created a Toggle Button within an entity called “ManufPartAttribute” and another Toggle Button in another entity called “ShopOrd”. So now I want both to be in sync.  In other words, when the first Toggle Button is active the second one moved to active status also and visa versa. We use IFS Cloud.

Is there any way to do this?

Regards,

Best answer by Charith Epitawatta

Hi @akrageb,

From what I understand, what you should be doing is something similar to following.

  1. Create a custom attribute on ShopOrd(Cf_TOGGLE).
  2. Create a custom attribute on ManufPartAttribute(Cf_MPA).
  3. Create an event on ShopOrd which would fire when Cf_TOGGLE field is modified. Here, you should select SHOP_ORD_CFT as the table, which is the custom field table for Shop Order. You would find your custom attribute “Cf_TOGGLE” in this table, but not on the standard SHOP_ORD_TAB table. Under “Select attributes available when creating event actions” section, you can select the NEW value of Cf_TOGGLE.
  4. Create an Execute Online SQL type action for the above event on ShopOrd that would update Cf_MPA attibute on ManufPartAttribute. 
  5. Follow step 3 and 4 for ManufPartAttribute as well. Make sure to select the respective CFT table when creating the event. 

     

Hope this helps! 

View original
Did this topic help you find an answer to your question?

4 replies

Marcel.Ausan
Ultimate Hero (Partner)
Forum|alt.badge.img+22
  • Ultimate Hero (Partner)
  • 1142 replies
  • December 19, 2023

@akrageb since the toggle buttons are Persisted Custom Attributes, they can get a value from users → true or false.

However, I would imagine that when you create a Shop Order you would like the value of the toggle button to be inherited from masterdata Inventory Part. In order to do that you would need a custom event action to be triggered when Shop Order is created and fetch the value from Inventory Part and update the value in the Shop Order by using the method: Shop_Order_CFP.Modify


Forum|alt.badge.img+3
  • Author
  • Sidekick
  • 7 replies
  • December 19, 2023

@Marcel.Ausan 

You're right.

However, my problem always is to identify the field in ShopOrder on which the event action should be created!


Charith Epitawatta
Ultimate Hero (Employee)
Forum|alt.badge.img+31

Hi @akrageb,

From what I understand, what you should be doing is something similar to following.

  1. Create a custom attribute on ShopOrd(Cf_TOGGLE).
  2. Create a custom attribute on ManufPartAttribute(Cf_MPA).
  3. Create an event on ShopOrd which would fire when Cf_TOGGLE field is modified. Here, you should select SHOP_ORD_CFT as the table, which is the custom field table for Shop Order. You would find your custom attribute “Cf_TOGGLE” in this table, but not on the standard SHOP_ORD_TAB table. Under “Select attributes available when creating event actions” section, you can select the NEW value of Cf_TOGGLE.
  4. Create an Execute Online SQL type action for the above event on ShopOrd that would update Cf_MPA attibute on ManufPartAttribute. 
  5. Follow step 3 and 4 for ManufPartAttribute as well. Make sure to select the respective CFT table when creating the event. 

     

Hope this helps! 


Forum|alt.badge.img+3
  • Author
  • Sidekick
  • 7 replies
  • December 21, 2023

@Charith Epitawatta 

Many thanks, done.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings