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 protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
> 
> This email sent to [email protected]

-- 
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 protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to