Hi,
I'm not an Oracle expert, and I have some trouble doing what I want.
I have a webreport listing forms (SQL table revision mechanism). I added a checkbox for each row, and user can check some of them, choose a form field and its new value in order to update it for all forms.
This html form calls the following livereport :
%1 = InsertString : the dataid list, something like (7868, 98876, 98756, 89768)
%2 = InsertString : the form field that has to be modified
%3 = String : the new value for that field.
SQL : update Z_DP_SPEC set %2=%3 where dataid in %1
(Z_DP_SPEC is the database table associated to the form template of all my forms)
This works, but I'd like this operation to update only the last version of each form. The report should be performing something like
"For each dataid in %1, update update Z_DP_SPEC set %2=%3 where dataid=dataid and versionnum = max(versionnum)"
Does anybody have an idea of how to do this ?
Thanks for your help,
Guillaume