• Guillaume Delhumeau
    Guillaume Delhumeau, 2015/05/06 14:33
    application.getItem

    We should also provide:
    application.getCurrentItem which would return item associated to the current document if the document is an item of the application.

  • Guillaume Delhumeau
    Guillaume Delhumeau, 2015/05/06 14:37
    offset: The offset from where to start fetching the items (pagination) limit: The number of items to be returned (pagination)

    I believe offset and limit should be mandatory.

    That is a proposition of Vincent that every XWiki API must be ready to scale well.

    Having a getItems() with no limit could be very costly if you have a lot of items.

  • Guillaume Delhumeau
    Guillaume Delhumeau, 2015/05/06 14:39
    $movie.name

    Why .data? Can't it be $movie.name?

  • Caleb James DeLisle
    Caleb James DeLisle, 2015/05/07 12:13

    Agreed, this came from the original from fabio, secondarily Ludovic mentioned that we should implement both xwql and hql in getItems()

  • Caleb James DeLisle
    Caleb James DeLisle, 2015/05/07 12:31

    We should also consider how to display data, aka $obj.display() (view) using this api, we should have the data necessary to do display() (edit), maybe this should be part of getSchema(). We should consider building todomvc.com application using this api so we know it works as we design it. The concern is that we have drop-down menus based on static lists and DBlists but we are not currently talking about display/edit of them. Refer to the Task Manager Application app.

  • Caleb James DeLisle
    Caleb James DeLisle, 2015/05/07 17:56

    Updated the document to replace $movie.data.name with $movie.name

Get Connected