Hi,
I've create a app with the App within Minutes;
The following class model is used:
- Name (name: String)
- E-mail (email: String)
- Subject (subject: String)
- Status (status: String)
- Question (question: TextArea)
- Answer (answer: TextArea)
- Published to Public (generalize: Static List)
So now when user click on 'Add' he/she is requested with document name and
then he/she can fill in the record
Now I would like to modify the behaviour?
1) Click on Add should not ask for new document name but for 'subject',
this should also show on the record prefilled
(I would like to generate a document name base on UserName + Subject)
2) Some fields should be defaulted by code
- name should be username, field should be hidden
- E-mail should be fetched from user record (XWiki.<username>.email)
- Subject (as stated under 1)
- Status should be defaulted to 'created'
- Published to Public should be defaulted to 'no'
How would you advise me to do this, i have modest velocity knowledge, but
no groovy, it looks like the code behind the 'add'-button is 'groovy'
Gerritjan