on 08-30-2007 11:34 AM
how to retrieve date of submission of comments automatically from any specific user with or without the help of any ui elelmnts.and this date should'nt be static.it should be changed from time to time.please help me
Hi Nisha,
Just a small correction what has been written above:
1. Create a <b>value attribute</b>
2. Set its type to Date (By Default it would be String).
3. write this code in the event or method as per your requirement
java.util.Date dt1 = new java.util.Date(dt.getTime());
wdContext.currentContextElement().setCtx_text(dt1.toString());
4. If you want to display this value bind the value attribute to the UI element else
you can access this context whenever you want to retrieve its value.
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nisha,
Can you elaborate your problem because your requirement is not yet clear.
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i have to prepare a screen in which a specific officer like underwriter have to check the comments given by different project team members on some underwriter paper prepared. For each officer checkboxexs are given which is cleared by underwriter.this tells the status of the paper .<b>now there is option where date should be specified as when these officers approved it and gave their comments.this date has to be retried some how by some source.This my querry as how can we do it so that these date should come auto matically</b>
Hi Nisha,
1) Create a node attribute of type date
2) create a column for storing "last updated date" in the back end
java.util.Date dt = new java.util.Date();
java.sql.Date sqlDate = new
java.sql.Date(dt.getTime());
the above code will help you to get the current date
3) a) if you want to display the last modified date
Place a Lable on the screen and bind the lable to the date attribute
set the value of the date to the sqlDate
3) b) if you don want to display the date ,then you can directly send the <b>sqlDate</b> to your back end system
Regards
Chaitanya.A
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.