Hi Dan,
I would like to try the method (b) you described. But where is the draft
you have mentioned? From where should I begin? Most of the basic
functionalities of the Android viewer is finished except some small unclear
areas about attachment(Bolb) processing and error handling (I'll mention
them with another mail). So I will be able to find some time to work with
RO viewer.

Thanx
Dimuthu


On Mon, Aug 12, 2013 at 2:40 PM, Dan Haywood
<[email protected]>wrote:

>
>
> On 11 August 2013 04:37, DImuthu Upeksha <[email protected]>wrote:
>
>> Hi Dan,
>> I'm having some issues in rendering actions like [1]
>>
>> It requires toDoItem object as an argument. But the problem is how can I
>> fetch a toDoItem list from the ROviewer? In wicket viewer it dynamically
>> loads when we type the title of the objects[2]
>>
>>
> In the wicket viewer, the ability to just type in a string and provide a
> lookup of the entity is because of the autoComplete functionality.
>  However, this isn't part of the RO spec (v1.0), and so there is no hint in
> the JSON representations for you to leverage.
>
> I can think of two options:
>
> a. the hacky way ... you search through the metadata of each of the
> services (of course, there are only a couple to search through for the ToDo
> app), looking for an action called "autoComplete", which takes a string and
> which returns a list of the required type.
>
> b. the correct way ... I have a draft of v1.1. of the spec that introduces
> the concept of autoComplete.  So either you or I (I'd prefer you) could
> have a go at updating our RO viewer impl in line with this draft spec.  I
> don't think it'd be that difficult to do.
>
>
>
>> As well in Category domain type [3] there should be three categories
>> (Professional,Domestic and Other). But in ROViewer I couldn't find a way to
>> fetch those details. In fact, If I want to edit Category field of  a
>> ToDOItem, how can I get information that there are three categories.
>>
>
> In the property representation of the object, eg [5], there is a "choices"
> list.
>
>
>
>
>>
>> Link [4] is not working
>>
>
> Thanks.  Could you create a JIRA ticket for this?
>
> Dan
>
>
>
>>
>> [1]http://localhost:8080/restful/objects/TODO/L_11/actions/add
>>
>> [2]
>> http://localhost:8080/wicket/wicket/bookmarkable/org.apache.isis.viewer.wicket.ui.pages.action.ActionPage?pageType=ACTION&actionSingleResultsMode=REDIRECT&objectOid=TODO:L_11&actionType=USER&actionOwningSpec=dom.todo.ToDoItem&actionId=add%28dom.todo.ToDoItem%29&pageTitle=Add&actionMode=PARAMETERS
>>
>> [3] http://localhost:8080/restful/domain-types/dom.todo.ToDoItem.Category
>>
>> [4]
>> http://localhost:8080/restful/domain-types/dom.todo.ToDoItem.Category/actions/id
>>
>
> [5] http://localhost:8080/restful/objects/TODO/L_11/properties/category
>
>
>
>>
>> --
>> Regards
>>
>> W.Dimuthu Upeksha
>> Undergraduate
>> Department of Computer Science And Engineering
>>
>> University of Moratuwa, Sri Lanka
>>
>
>


-- 
Regards

W.Dimuthu Upeksha
Undergraduate
Department of Computer Science And Engineering

University of Moratuwa, Sri Lanka

Reply via email to