Hi good people, i am developing an workshop application using a ontology object. the ontology object has a column name: notification_status which has currently one unique property which is “ongoing”. i created an action: create or modify (object) using the same ontology object, then use this action in a action button widget in the workshop. currently it is not working properly. i want the operation like this: when the user hit the button in the workshop and submit the action, then notification status should change from ongoing to completed. however, currently when i hit the action button, first i need to select the primary key( which should be notification_name column and should be auto populated when i select a row and click the action button) then after submit ongoing status is not changing. how can i solve this problem?
Hi Enamul16022!
Happy to help here. It sounds like there are two distinct issues here.
-
You want to have the primary key parameter in the action auto-populated based on the row you selected. To do this, you’ll want to configure a “Parameter Default” on the action type configuration in your workshop. Specifically, you’ll want to set the default on the “Inspection Based Notifications” parameter to be the active object variable (the object in the row you’ve selected). It’ll look similar to this:
-
You want the notification status to change when the action is submitted. It sounds like there is a bug in how the action type is configured. Can you post a screenshot of the “rules” and “parameters” section of your action type so I can help debug further?
In the Button Group configuration, once you’ve chosen the Action, you’ll need to make sure to set a default value for the primary key.
You may want to update your action so that it actually takes in an instance of the object rather than the primary key string, since this will make the setup a bit easier in Workshop.
Hi, thanks for the guidance. the ontology name is inspection_based_notification, which have a primary key, and some other columns, one of the column name is: notification_name. when i select a row and then hit the action button currently primary key box is coming and being auto populated which is good. But i want to have notification name box to be auto populated instead of primary key. one good news, currently ongoing status is changing to completed after submit the action button. here are some screen shots: