Hi Jayesh,

... and welcome to the mailing list.

I'm trying to envisage your application ... perhaps you could upload
screenshots to imgur.com or similar and reference them (note that
attachments are NOT allowed to Apache mailing lists).

Alternatively and even better, a simple app in github that we can run would
illustrate even better.

That said, let me just say that bulk actions (still) have a limitation that
they must be no-arg actions (with no parameters), so perhaps this is your
issue?

An alternative design you might want to consider is to use collection
parameters [2], [3]

You might also want to learn about view models [4].  We tend to use as
"manager" objects with a collection (or even several collections) of
objects; in general these are much more powerful than bulk actions (bulk
actions are not associated with any object, just with the list results of a
previous action).  So I think you'll find that using view models +
collection parameters may give you the tools that you need.

HTH
Dan


[2]
https://isis.apache.org/guides/ugfun/ugfun.html#__ugfun_programming-model_actions_collection-parameter-types
[3]
https://isis.apache.org/guides/ugfun/ugfun.html#_multi_select_action_parameters

[4]
https://isis.apache.org/guides/ugfun/ugfun.html#_ugfun_programming-model_view-models


On Mon, 10 Jul 2017 at 17:29 Jayesh Prajapati <[email protected]> wrote:

> Hi Support,
>
> This is Jayesh Prajapati and I am trying to make use of Apache Isis for
> building an application. One of the use case is similar to below example
> and I need some help here.
>
> Entities - Student, Class and School
> 1. On home page there is a button to create or add student
> 2. On click of this button a dialog prompt for student detail e.g. name,
> birthday, gender, etc.
> 3. On click of OK button it shows list of classes with checkboxes
> 4. User select check boxes for the classes where this student is studying
> e.g. Dance, Karate, etc.
> 5. Click on Next button where user get a message that student is
> successfully created and shows list of students with check boxes
> 6. A bulk action is required here where user is allowed to add selected
> students in a school i.e. after selecting desired student records on click
> of 'Add to school' button a dialog must popup with a school drop down
> field.
> >> This is not working and as per documentation [1] bulk action with
> parameter is not supported.
> >> How to achieve this behaviour ? Please help.
>
> There is one more use case where on the student's list view I want to show
> an action 'Search', which should show a dialog with search criteria like
> name, dob, class, etc. but its not working because it needs at least one
> record to be selected as it is marked for COLLECTION ONLY.
>
> [1] - https://isis.apache.org/pages/tg/tg.html#_bulk_actions
>
> Thank you,
> Jayesh
>

Reply via email to