Oh my God, that was the solution! I note that it is not in intake service
documents. :-)
thank you for your help.
at 2003. március 1. 20:45 wrote:
> > and I don't know do I have to use setQueryKey in velocity form, or it
> > automatic.
>
> the difference between calling the insert und update methods is :
> IntakeTool intake = (IntakeTool) context.get("intake");
> Group group = intake.get(intakeTable,
> data.getParameters().getString("id"));
> when you call the update, so your html should be usr55umail if your usr PK
> is 55.
> in your case the getQueryKey is returning null instead of the PK.
> looking at your code, it seems to me that you implemented the Retrievable
> interface manually, if it is generated to you by Torque,
> you should have it in the abstract base class and it should look like that:
> public String getQueryKey()
> {
> if (getPrimaryKey() == null)
> {
> return "";
> }
> else
> {
> return getPrimaryKey().toString();
> }
> }
> /**
> * set an id that differentiates this object from others
> * of its class.
> */
> public void setQueryKey(String key) throws TorqueException
> {
> setPrimaryKey(key);
> }
> hope that helps
Absolutely, many thanks to you.
--
bye,
----------------------------------------------------
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]