Re: Recommendation modify EO
Re: Recommendation modify EO
- Subject: Re: Recommendation modify EO
- From: Ramsey Gurley <email@hidden>
- Date: Tue, 17 Jul 2012 15:16:21 -0700
Hi Hugo,
Alternately, you could go with a typical master-detail interface. At the top, you have your list of objects, each with a select button. When you select the object from the list, you see the inspect interface for the object below it. In the inspect interface you have an edit/modify button. You click edit, make your changes, then save. Saving switches it back to inspect mode.
This way, you don't have to have every attribute you want to edit in the table. You can lay out the data in a clearly labeled accessible form. You can edit things that would be clumsy to edit in the table. If your entity uses inheritance, you can edit all the attributes for the specific entity instead of only attributes that are available to the superclass in the table.
This should be fairly straightforward to accomplish in D2W. You can see most of this in the Dashboard example project I did for WOWODC 2011 presentation on embedded D2W.
Ramsey
On Jul 17, 2012, at 2:27 PM, Chuck Hill wrote:
> Hi Hugo,
>
> WebObjects is focused on component use and re-use. If you can modify your requirements to "when a user clicks on a piece of data it should become editable", you can replace the WOStrings (wo:str) with wo:AjaxInPlaceEditor from the Ajax.framework.
>
> If you really must have it work the way that you describe below, you will have to do a lot more work (write your own component).
>
>
> Chuck
>
> On 2012-07-17, at 10:23 AM, Hugo Cambero wrote:
>
>> Hi Everybody
>>
>> I'm Hugo, I've been developing using WebObjects and Wonder Frameworks.
>>
>> I have a problem and I hope you can help me. I'm developing a test application, I want to display a list of ERXGenericRecord, but, in the last column,
>> I want to display a picture that can delete the selected row and a picture that can modify the selected row.
>>
>> Time ago, you gave me advice about how to create the delete action, I learned about 'action', 'direct Action', 'delete EO', 'save changes in EC' and more.
>>
>> Well, the process that I want to develop is:
>> 1) The AdminPage shows all rows ---I can do it
>> 2) The user clicks the modify button ---I can do it
>> 3) In the selected row, all cell change the value to Input type="text", that the user can change the value ----I can do it, but using JavaScripts
>> 4) The user click again in the Modify button ---I can do it
>> 5) The EO save in the data base ---I can do it
>>
>> Example:
>>
>> ID NAME LASTNAME USERNAME ACTIONS
>> 120 Hugo Perez sun13 delete, modify
>> 160 Aaron Anthony aaron12 delete, modify
>>
>> I can do the three step using JavaScripts, but:
>>
>> What is the best way to do the application test?
>>
>> What topic I have to learn?
>>
>>
>>
>> <table>
>> <tr>
>> <td>ID</TD>
>> <td>Name</td>
>> <td>Lastname</td>
>> <td>Username</td>
>> <td>Actions</td>
>> </tr>
>> <wo:loop list="$allUsers" item="$entryItem">
>> <tr id="row_<wo:str value="$entryItem.primaryKey" />" >
>> <td>
>> <wo:str value="$entryItem.primaryKey" />
>> </td>
>> <td>
>> <wo:str value="$entryItem.name" />
>> </td>
>> <td>
>> <wo:str value="$entryItem.lastname" />
>> </td>
>> <td>
>> <wo:str value="$entryItem.username" />
>> </td>
>> <td>
>> <webobject name = "DeleteRecordLink" >
>> <webobject name = "DeleteImage"/>
>> </webobject>
>> <webobject name = "ModifyRecordLink" >
>> <webobject name = "ModifyImage"/>
>> </webobject>
>> </td>
>> </tr>
>> </wo:loop>
>> </table>
>>
>> ---------------------------
>>
>> DeleteRecordLink : WOHyperlink {
>> action = deleteRecord;
>> }
>>
>> ModifyRecordLink : WOHyperlink {
>> action = modifyRecord;
>> }
>>
>> ModifyImage : WOImage {
>> filename = "css/img/boton/show.png";
>> mimeType="image/png";
>> }
>>
>> DeleteImage : WOImage {
>> filename = "css/img/boton/delete.png";
>> mimeType="image/png";
>> }
>> -------------------------------------------------------------------------------------
>>
>> Thanks! _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
> --
> Chuck Hill Senior Consultant / VP Development
>
> Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
> http://www.global-village.net/gvc/practical_webobjects
>
>
>
>
>
>
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden