Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-09-2008, 06:19 PM
Member
 
Join Date: Jun 2008
Posts: 1
wagnerbarbos is on a distinguished road
Java Studio Creator - Bd Alterar
Hello galera am with the following problem, I develop a system using the tool Studio Creator 2.1 and has been a problem for users to seek information on bank for change, created a Drop List to list all the information and to register in the fields respecitovos text area , So a user change orders amending it normally, but the next change orders that it be pulling information from the user that changed previously. And in the table that controls the data shows the name of another person that means we have to ta changing the person who shows naum and the person who changed anteriomente.Caso someone will help ... I will post here the init code and the session bean. vlw

Codigo INIT "Tela de Cadastrar informacoes:

private void _init() throws Exception {
idadefertilDataProvider.setCachedRowSet((javax.sql .rowset.CachedRowSet)getValue("#{SessionBean1.idad efertilRowSet}"));

CachedRowSet idadefertilRowSet=idadefertilDataProvider.getCache dRowSet();

RowKey rowKey = getSessionBean1().getRowkey();
if(rowKey==null) rowKey = idadefertilDataProvider.appendRow();
idadefertilDataProvider.setCursorRow(rowKey);
idadefertilDataProvider.setCachedRowSet((javax.sql .rowset.CachedRowSet)getValue("#{SessionBean1.idad efertilRowSet}"));
pessoasDataProvider.setCachedRowSet((javax.sql.row set.CachedRowSet)getValue("#{SessionBean1.listarPe ssoasRowSet}"));

}


Codigo Session BEAN BD :

SELECT ALL dbo.IdadeFertil.pessoa,
dbo.IdadeFertil.dataNascimento,
dbo.IdadeFertil.removido,
dbo.Pessoas.nome,
dbo.IdadeFertil.hemoglobina,
dbo.IdadeFertil.altura,
dbo.IdadeFertil.peso
FROM dbo.IdadeFertil, dbo.Pessoas
WHERE dbo.Pessoas.nome LIKE ?
AND dbo.IdadeFertil.removido = 0
AND dbo.IdadeFertil.pessoa = dbo.Pessoas.idPessoa


Codigo Gestao: " Controla a tabela para alterar e remover.."

private void _init() throws Exception {

try {

idadefertilDataProvider.setCachedRowSet((javax.sql .rowset.CachedRowSet)getValue("#{SessionBean1.idad efertilRowSet}"));
CachedRowSet idadefertilRowSet = idadefertilDataProvider.getCachedRowSet();
idadefertilRowSet.setObject(1,"%");

idadefertilRowSet.execute();
}catch(Exception e){
}
idadefertilDataProvider.setCachedRowSet((javax.sql .rowset.CachedRowSet)getValue("#{SessionBean1.idad efertilRowSet}"));
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Talend Open Studio 2.4.0M2 Java Tip Java Announcements 0 04-24-2008 07:39 PM
Talend Open Studio 2.4.0M1 Java Tip Java Announcements 0 04-10-2008 05:21 PM
Talend Open Studio 2.3.2 Java Tip Java Announcements 0 04-01-2008 05:15 PM
Talend Open Studio 2.1.0 JavaBean Java Announcements 0 07-13-2007 06:24 PM
Talend Open Studio 2.1.0M2 JavaBean Java Announcements 0 06-28-2007 02:29 PM


All times are GMT +3. The time now is 04:20 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org