You have an excellent tutorial which directs us how to use a backoffice page for Collections to control data within the collection here:
I am trying to do the same thing: Show a summarized reporting view with the option to Add/Edit or Delete using the Control widget (as there in your example above), but without using a RMP collection and instead by using a RMP array only.
My question: Does anyone have a working sample for this already, which I can refer to?
Thanks!
--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/001fc736-0683-4bcf-b512-ff8ae38739c2%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/groups/opt_out.
Yep - That's it.
I do not need the data captured in a collection because the scope of the data is only the process instance.
Apologies for not being able to articulate the need properly.
"Compared to the BackOffice tutorial, you would like to keep the top section "Detail Item" and replace the collection report by an array ? Is that it ?"
--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/e199e406-cbaf-48bb-b69d-9a33dff24f26%40runmyprocess.com.
Let me try to create an example use case to describe the functionality: Let's assume that we have a web page, where a manager can come in and add the professional history of an employee, for evaluation. Hence, the manager needs to be able to add as many professional history entries he wants to, using an "add" option.
Now, the reporting view (array list view) would only display a summarized view of the details the manager has entered and hide the unwanted columns. For example, let's say that the manager entered the previous company name, start year, end year, position, remuneration, title, responsibility and job description (let's assume this is a text area), while "add"ing the detail, the reporting view would only show the company, start year and end year in the list view.
Now, on click of edit, the full details should show up.
Also, there are certain fields like "job description" which is difficult to fill up from the array grid text box and should be available for add/update only in the full detail view.
I presume I would just stick with Collections, unless you can suggest some easier and feasible way using arrays.
Certain functions on the RMP Array widget like getRowsCount()/insertRow() helped me facilitate adding rows to an existing array but the pushing and refresh of data needs more client side JS coding.
I presume I would just stick with Collections, unless you can suggest some easier and feasible way using arrays.
--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/0c51f5ba-b9de-468a-afa7-37cbfac2df0c%40runmyprocess.com.
--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/2f9fa742-1315-4ecb-b96e-0848b0306d50%40runmyprocess.com.
I will try this out, design my use case and let you know.
Apologies for not being able to circle back earlier in the day. I was able to follow the tutorial above and design my use case successfully.
Included the following snippet within the JS functions add_item and delete_item by using a common JS function:
for(var i=0;i<id_array_employees.getRowsCount();i++){
id_array_employees.id_links[i].setHtml("<a href=\"#\" onClick=\"javascript:load_item("+i+");\"><img src=\"https://rmp-public.s3.amazonaws.com/public/icons/n_edit.png\"></a> <a href=\"#\" onClick=\"javascript:delete_item("+i+");\"><img src=\"https://rmp-public.s3.amazonaws.com/public/icons/n_delete.png\"></a>");
}
Appreciate your help in this regard.
Thanks!
--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/3e78b086-9d56-4ef5-ba9b-c529cd6fecc4%40runmyprocess.com.
Another question, though unrelated to the original question (if you want I can convert this to a different post)
In the Backoffice - Employee - CW, if I want to do some field validations on save and update (For example, let's assume that I want to make the Company Name, Start Year and End Year mandatory), how should I go about it? Even if I set these fields on the Backoffice - Employee - CW as required, the validation would never trigger.
Should I make these field as required on the RMP rule and then fire the widgetID.isValid() within the add_item and update_item JS methods to enforce the validation check against each field I want to?
Another related question: I have noticed that the field level error messages are default displayed inline (beside the respective field). Is there a easy way to turn this off and group all the error messages in separate location (let's say on the top of the page?)
Thanks again for your help!
--
Dimitri MELCHIOR
--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/a29e1caf-ca0d-4b35-b4b4-e827b352c0c7%40runmyprocess.com.