hi Team,
scenario :after user logined to the application,there is an tab called
user management,in that click on
create user link.it will display New Create User Form with all the fields(username,firstname,lastname,email,etc..).i have added two new fields in this form
(one
text field and one
checkbox) .see the code below
userPropertiesContext.xml <entry key="org.olat.admin.user.NewUserForm">
<bean class="org.olat.user.propertyhandlers.UserPropertyUsageContext">
<property name="propertyHandlers">
<list>
<ref bean="userPropertyFirstName" />
<ref bean="userPropertyLastName" />
<ref bean="userPropertyEmail" />
.
.
<ref bean="userPropertyOrgName" />
<ref bean="userPropertyUserType" /> </list>
</property>
</bean>
userPropertiesHandlerContext.xml
<bean id="userPropertyOrgName" class="org.olat.user.propertyhandlers.Generic127CharTextPropertyHandler">
<property name="name" value="orgName" />
<property name="deletable" value="false" />
</bean>
<bean id="userPropertyUserType" class="de.bps.olat.user.propertyhandlers.GenericCheckboxPropertyHandler">
<property name="name" value="userType" />
<property name="deletable" value="true" />
</bean>
this is working fine.values are saved in table (o_userproperty)in the form of key-value pairs.
need help on the below
1) how to make UserType check box bydeafult checked.(i mean which property i have to supply.. ).and also instead of true/false i want to save External/internal in Database
.where i have to write logic for this
2) i want to save all these values in record format(single row)either in same table or new table.
Thanks in Advacne....