on 09-03-2013 10:01 AM
Hello all,
I'm building a web dynpro where a user puts in a range of values, and when he clicks a button I present him a table with the table records which a certain field is in the given range.
Here's the button event code so far:
method ONACTIONSEARCH_PATS.
DATA: lt_pat TYPE TABLE OF npat,
lv_min_pat TYPE I,
lv_max_pat TYPE I.
*** In this section something should be added, I need you help for it, and then: ***
SELECT * FROM npat INTO TABLE lt_pat
WHERE patnr BETWEEN lv_min_pat AND lv_max_pat.
node_pat = wd_context->get_child_node( name = 'PATIENTS' ). "that's the table node
node_pat->bind_table( lt_pat ).
endmethod.
My question is: How do I get the values of the range? (I have two inputfields in the layout, one for minimun and one for maximum)
Thanks in advance.
Hi Daniel
If we use two input fields and use them for LOW and HIGH values then we need manually do certain standard validations like if the low values is less then the HIGH value or not.
Instead you can create SELECT-OPTIONS in webdynpro.
You can refer to the following link for detailed explanation about how to implement
There several options in select options like obligatory, no extension, no intervals etc.
These options can be found in following link
Hope this is helpful
Points please if helpful
Regards
Subhash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you can use standard Web Dynpro component WDR_SELECT_OPTIONS.
Refer below step-by-step guide on how to use it.
Regards,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.