on 02-17-2006 2:24 PM
Have anyone of you tried to use checkboxes or radiobuttons within a web template on a infoobject that is filtred with hierarchy-nodes?
If I have filtred the query with several nodes, I would like to be able to choose one of the nodes within the report with a checkbox and press "filter".
If I just use the checkbox in the ordinary way, every costcenter that belongs to the nodes are listed. Not practical..
Dear Morgan,
this is possible with A Modify Table Class and WEB API Commando for Filtering.
Please ask if you need an example.
Regards
Marcus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok,
at first you have to create a new ABAP OO Class with transaction se24 this class has to inherit from class CL_RSR_WWW_MODIFY_CLASS (or sth. near to that).
redefine method Characteristic cell.
insert the following code:
concatenate '<input type="checkbox" name="' i_iobjnm '" value="' i_value '">' c_cell_content into c_cell_content.
save the class and add a parameter:
<param name="MODIFY_CLASS" value="YOUR_CLASS">
to the web table item.
but a <form name="filter"> before web table item and
a </form> after the web table item
If you now excute the template you should see the checkboxes.
Now you have to create a Javascript function in the web template which gets out which checkbox is activated (help is on http://www.selfhtml.org)
concatenate a url whith API Commands the following syntax (look in Web API Documentation, search for it in SDN):
FILTER_IOBJNM_1=0MATERIAL&FILER_VALUE=12345
If you finised that insert a send button in the web template which calls the javascript function.
Please ask if you need more advice.
Regards
Marcus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.