CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.

YesSoftware Forums -> CodeCharge Studio -> Java

 on button click perform my own insert?

Print topic Send  topic

Author Message

Posts: 11
Posted: 04/01/2008, 7:49 AM

in a record form, I need a button to perform an insert.
In php I just take the global Object i.e. myRecord and
write $myRecord->insertRow();
That's all.

I found a way to do this in java, too.
But perhaps there is an easier way to do it.
If you have any idea I would be happy.


Here is my solution:
KALENDER is the name of the record
WERK is the name of a textfield

Record model = e.getPage().getRecord("KALENDER");
Page page = e.getPage();
KALENDERDataObject ds = new KALENDERDataObject(page);
ds.setComponent( model );
KALENDERRow row = new KALENDERRow();
row.setWERK(Utils.convertToString(((com.codecharge.components.TextBox) model.getControl( "WERK" )).getValue()));
row.setWERKEmpty(( (com.codecharge.components.TextBox) model.getControl( "WERK" )).isEmpty() );

View profile  Send private message

Posts: 7
Posted: 04/02/2008, 1:58 PM


Maybe use Custom Insert on the Data tab of your record
Unidad de TI
Sistemas Administrativos y Financieros
Direccion Nacional de Informática
View profile  Send private message

Posts: 11
Posted: 04/02/2008, 9:58 PM


thanks, but that would not work, because I need the insert button
in the edit/update mode.
In some cases I need to insert a replica of the actual row instead
of an update.
And in the edit/update node the "normal" insert button is hidden.
So, I need to perform my own insert.

View profile  Send private message

Add new topic Subscribe to topic   

These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

Web Database

Join thousands of Web developers who build Web applications with minimal coding.

Home   |    Search   |    Members   |    Register   |    Login

Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by  and YesSoftware, Inc.