cancel
Showing results for 
Search instead for 
Did you mean: 

Agentry editor - Button to add string to list

Former Member
0 Kudos

Hello,

I have one string field and one button. After pressing button I need to add new object (object Worker with one property - ID) to collection of workers and update screen to show this worker in list . Here are the screens:

Plese can you advice, how to create action which creates new object with one property, this object is added to collection (Workers collection) and then screen is updated?

Thank you for every answer

M.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I take it you are talking about adding an action to the checkmark button. You can add an action to that button that can call an ADD transaction. The ADD transaction (containing the property you need) will be on your crew member object but the action's target will be the parent collection. Because the action will have an Apply, that should cause your detail screen to refresh and show you the changes.

Former Member
0 Kudos

Thank you very much for your answer. I need exactly this:

:

I dont know exactly how to pass the string value from string field to the action/transaction.

I know how to assign action to button . And also I know how to assign transaction to action. But I have problems to understand, how to after pressing button (image) create object SampleWorker with ID property which value would be taken from "Add crew member" string field.

And please, I'll be glad, if you can check my action/transaction setting:

I gave Object SampleWorker with ID key property and object WorkOrders (parent object , which has as property collection SampleWorkers)

Action settings:

Transaction Settings:

Action Steps:

Step AddSampleWorkerTr Settings:

Thank you very much for your answer

Former Member
0 Kudos

In your transaction create a String / Integral Number property with the an initial value. In the initial value of this property use the Browse option to the refer to the previous Screen Set -> Screen -> Field Name ("Add crew member" by name.

When the transaction runs it will look at the field value in that screen and populate your transaction property.

Hope this helps.

Shahid

Answers (0)