on 01-20-2017 4:28 AM
Hello Persona Experts,
I have a requirement to put a script at onF4 event on tabstrip cell in SAP SCREEN PERSONA 3.0.. is it possible ?
Regards,
Navneet
I guess you mean a table cell, correct?
Since there is no F4 event associated with a table cell, no... or at least not without some pretty awful hack.
Perhaps it would be possible to use the onBeforeRefresh screen event, intercept the F4 keypress and do an RFC... but there are a lot of unknowns and it may not even be registered that you pressed F4 on the table cell.
Provided you could recognize the F4 key press on the cell, perhaps the best way would be having a hidden field and in your script, activate the desired search help associated with that field, by hitting F4 with your script there. Then, once the value is selected and the hidden field is populated, you could take that with your script and write it into the target cell.
In any case, you'd have to know which table cell was the cursor on, so that you can supply the selected value back into that field. Additionally, even if this worked, you'd not get the usual dropdown icon for the field in focus which the search help assignment produces.
I haven't tried any of this yet, and there are too many things that may go wrong, making this not possible. It's an interesting challenge though 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, this KB article explains the usage of the onF4 event. Does this help?
Hello Tamas,
Thanks for your reply but i am afraid this article will not be helpful for me.
in my case..i want to put some script on the onF4 event on GuiTableControl cell...
for normal cases like a normal input field...SAP Persona provided the option as it is mentioned in the above article.....
but when you click on a GuiTableControl cell and then check for a event in persona toolbar...it's disabled.
but when i see in the script edtior..i can see that there is a event onF4 for it...but i don't know how to put a event handler for that event.
any help in this scenario ?
Regards,
Navneet
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.