on 10-11-2013 1:48 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.