on 01-26-2015 1:49 PM
Hallo Experts and Colleagues,
I have been experimenting to implement QuickView Thing using FPM just now.
E.g. my table has field "QV_DETAILS", and I want to implement the Quickview on this "QV_DETAILS" field.
As far as I understand up to now, the iv_key parameter in if_fpm_guibb_qv_thing~get_data is the value of the field, on which the mouse hover to.
But QV_DETAILS value is not unique (static text), therefore I could not query an entry in DB based on this field value.
KEY1 | KEY2 | QV_DETAILS |
---|---|---|
KEY001 | ABC | show_detail |
How do you solve this situation? My table keys are in other fields (KEY1 and KEY2).
What I can think of:
Is there may be possible to catch mouse hover event on the FPM List (I'm using ATS List)?
Therefore I could saved table row data, and then to be transferd it to quickview thing?
Thank you and best regards,
Steve
PS: Thanks to Dhivya Baskaran for the SCN post of Quickview Thing (http://scn.sap.com/docs/DOC-61212)
Hi Steve,
if the hover field value is not a key, the underlying feeder class (list, form,...) should implement IF_FPM_QUICKVIEW_SOURCE, and in method GET_QUICKVIEW_KEY it should provide a valid key.
Regards, Jens
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jens, thank for the answer.
get_quickview_key does contain the full information
Now I'm facing the difficulty to send an event to the quickview feeder class.
Since I need to transfer the keys to the quickview.
Usually I call cl_fpm_factory=>get_instance( )->open_dialog_box and pass informations to another dialog box, but quickview is not dialog box.
Can you assists?
Thank you and best regards,
Steve
Hi Steve,
if GET_QUICKVIEW_KEY provides the necessary information, you should get this in method GET_DATA as IV_KEY which is a string.
In fact the usage is a little cumbersome: I would serialize the key structure in IF_FPM_QUICKVIEW_SOURCE->GET_QUICKVIEW_KEY like this:
CREATE DATA er_key TYPE string.
ASSIGN er_key->* TO FIELD-SYMBOL(<lv_string>).
CALL TRANSFORMATION id SOURCE key = <ls_key> RESULT XML <lv_string>.
and in GET_DATA of the quickview feeder, I would deserialize like this:
CALL TRANSFORMATION id SOURCE XML iv_key RESULT key = <ls_key>.
The field symbols <ls_key> carry the key structure.
Best regards
Jens
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.