on 2011 May 16 6:20 AM
Hi Experts,
We have an WD ABAP application in which a check box is present which when checked stored some value 'CART' in the data base when unchecked store 'SLIP' in the data base.
Now we have to default the checkbox as checked on loading the view so now no manula checking of checkbox.
I have setted the node attribute binded with of checkbox checked event as 'X', now on loading the ckeckbox shows checked but the value in database is of unchecked value that is 'SLIP'
When we are again unchecking and checking it manually it is saving correct value in database that is 'CART'
Please let me know how to default the checked parameter of checkbox so that it is equal to manual checking.
Thanks!
Piyush
Request clarification before answering.
Hi Piyush,
Please check before update in database what is the value in the check box.
Corresponding to the check box value update the database.
If it does not solves the issue, please post your database update code corresponding to check box value.
Regards,
Meera
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi piyush,
I guess because you may be doing the update in the database in ontoggle event.
and by default it wont be triggered.
so you either have to manually to do it for the first time or you need to call the eventhandler in the init menthod.
to update the database.
thanks
sarbjeet singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for reply!
There is nothing on toggle event, there is a button 'SAVE' which is in FPM when pressed SAVE the saving part done in data base.
So in this case what is the dofference between setting the value of checkbox as 'X" programatically and manualy checked the checkbox.
Thanks!
Piyush
Hi,
Nothing has changed in the logic, the only difference is, previously user manually checked the checkbox and table entry was correct, now I programatically defaulted the checkbox checked but the table entry is not correct.
I manually set he context node attribute associated with the checkbox is 'X' so that on page the checkbox is coming checked but the value is not updated in database.
Thanks!
Piyush
Edited by: srivastavapk on May 18, 2011 6:36 AM
User | Count |
---|---|
76 | |
30 | |
10 | |
8 | |
7 | |
7 | |
6 | |
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.