Some Inquiry on Database Records
"jdgazer" <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.newbies |
|---|---|
| Message-ID | <[email protected]> |
Following rentz 15 minutes guide in webobjects leads me to concluding
question, cause actually i have to do some manual calculation before
i store a data into its corresponding table.
Ive followed this set of code for adding. ex:
-----------------------------------------------------------
EOEditingContext ec = session().defaultEditingContext();
EOEnterpriseObject ne = EOUtilities.createAndInsertInstance
(ec, "UserInfo");
ne.takeValueForKey(u_nme, "usr_name");
ne.takeValueForKey(u_pwd, "usr_pass");
u_nme = u_pwd = null ;
ec.saveChanges();
return null;
-----------------------------------------------------------
and based on the guide, it uses WORepetion with these code:
-----------------------------------------------------------
/** @TypeInfo NwsCategory */
public NSArray catEntries(){
return EOUtilities.objectsForEntityNamed(session
().defaultEditingContext(), "UserInfo");
}
-----------------------------------------------------------
now with these approach, im planning to display let say for example
the unique id given as it displays the username and password in a
link form, so that when clicked. it can edit or delete the said data.
im stuck with this idea, dont know where to continue.
-----------------------------------------------------------
Any help from you guys would be greatly appreciated, since im still
learning on using Webobjects.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/webobjects-newbies/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/