Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Developing a Web Application with JDeveloper

  Asked By: Arland    Date: Mar 08    Category: Java    Views: 1177
  

I am developing a web application[JSP, Struts, ADF BC].
My Problem is that I want to set one of my database field's
programmatically. Hence, I create a generateKey function that
generates the field and does not let the user to manipulate it, but
whenever I try to insert a new row into my table the error rises that
the field is required. I do not know where to add my custom method and
where to inject the created key field. I mean in which class should I
inject the generated key? ApplicationModule Class?? ViewObject Class?
ViewRowObject Class? EntityObject Class??

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Kiet Jainukul     Answered On: Mar 08

I think you should generateKey
step one : add  new recordset with this key  that you generated.(other fields should be allowNull)
step two : you could after that update other fields with your data that come from view layer.

 
Didn't find what you were looking for? Find more on Developing a Web Application with JDeveloper Or get search suggestion and latest updates.




Tagged: