Hi Dimuthu,
I literally just mailed you and Bhargav before reading this... we must have
been writing our mails at the same time.

Good to hear that the Android viewer is basically complete; from that I'm
inferring that the Isis RO viewer is basically also working (good to know).

With respect to doing updates to the RO viewer, glad you've decided to go
this route.  the latest version of the RO spec is on github [1].  This
isn't yet formally v1.1, but there should be enough in there to describe
how the autoComplete link might look.

Familiiarise yourself with that, and then have a look at how the RO viewer
currently renders the action representation (eg rendering the invoke link).
 I suspect that most of the change we need to make will be limited to that
part of the viewer.

Cheers
Dan

[1] https://github.com/danhaywood/restfulobjects-spec




On 18 August 2013 13:41, DImuthu Upeksha <[email protected]> wrote:

> 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