on 06-12-2010 8:31 AM
hi experts,
i have one webdynpro page ,which contains these 3 fields
The fields contained int the section are:
- "Manual SPI" - number field up to 2 decimal. Should be editable if user click on "modify" button. otherwise read-only.
- "Manual CPI" -- number field up to 2 decimal. Should be editable if user click on "modify" button. otherwise read-only.
- "Last updated" - Date field. Should always be read-only. once user click on the "save" button, this field should be automatically set to the current date (user or system).
can anybody give the logic for modify action and save action....
regards,.
praveena..
hai Praveena....
Check out the following steps.
1) Take two attributes of type WDY_BOOLEAN. One for SPI and CPI.
2) Set these attributes to the Read Only property of the Input Fields ( SCI and CPI ).and set Read Only property of Last_Updated field get checked.( default) ( in layout section )
3) In intialise Method
set these attributes with abap_true.
4) In the OnAction_Modify Method( )
Set these attributes to the abap_false. (for SCI and CPI)
5) In OnAction_Save Method( )
update the "last Updated " fields with system time &
Set the two attributes to abap_true.
this will works
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.