Re: Recommendation modify EO
Re: Recommendation modify EO
- Subject: Re: Recommendation modify EO
- From: Chuck Hill <email@hidden>
- Date: Tue, 17 Jul 2012 14:27:55 -0700
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