Hello,
My SmartGWT version is 3.0 (power version), I use IE6.
I Have a user from that is binding with a datasource.
As you see in my datasource, the password and the USER_ID are hidden.
You don't see these items in the user form.
Now, I want to save my data in database.
I do this:
But I want that USER_ID is filled with this value <FIRSTNAME>.<LASTNAME>
and fill PASSWORD with a String.
I have try to modifiy the datasource, setField ... But we do a userDetailForm.saveData so the datasource must be filled with userDetailForm and we shouldn't add a password and userId field in the From.
Any idea ?
Thanks.
My SmartGWT version is 3.0 (power version), I use IE6.
I Have a user from that is binding with a datasource.
Code:
<field name="LASTNAME" type="text" length="150" title="Last Name"/>
<field name="FIRSTNAME" type="text" length="90" title="First Name"/>
<field name="FIRME_UID" type="text" length="90" title="FIRME UID" primaryKey="true"/>
<field name="DISPLAYNAME" type="text" length="240" title="Display Name" detail="true"/>
<field name="USER_ID" type="text" length="90" hidden="true"/>
<field name="PASSWORD" type="text" length="90" hidden="true"/>
....
Code:
private class UserForm extends DynamicForm {
public UserForm() {
this.setPadding(5);
this.setDataSource(userDataSource);
this.setShowDetailFields(true);
this.setNumCols(4);
}
}
.....
You don't see these items in the user form.
Now, I want to save my data in database.
I do this:
Code:
userDetailForm.saveData(new DSCallback() {
public void execute(DSResponse response, Object rawData, DSRequest request) {
SC.say("Modifications saved...");
}
});
and fill PASSWORD with a String.
I have try to modifiy the datasource, setField ... But we do a userDetailForm.saveData so the datasource must be filled with userDetailForm and we shouldn't add a password and userId field in the From.
Any idea ?
Thanks.