Kelalek

Absent Member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2011-03-30
10:41
662 views
How to call fill function by pressing enter key?
Dear gurus,
I'm trying to implement following trick to SD.open.interaction form for SM 9.21.
1) Service Desk people writes for Contact field (techically callback.contact) *searchkey* (yeah, asterisks are the wildcards, not typos)
2) Next: Help Desk people presses enter and voila, the fill function should be called and if there are many hits, QBE list should be shown and if there is a single hit, callback.contact should contain the name of that user which matches the search.
The problem is how to call fill function. There seems to be no way to implement JavaSciprt events on Service Manager fields, so there must be another and unintuitive way to do this!?
Thanks!
I'm trying to implement following trick to SD.open.interaction form for SM 9.21.
1) Service Desk people writes for Contact field (techically callback.contact) *searchkey* (yeah, asterisks are the wildcards, not typos)
2) Next: Help Desk people presses enter and voila, the fill function should be called and if there are many hits, QBE list should be shown and if there is a single hit, callback.contact should contain the name of that user which matches the search.
The problem is how to call fill function. There seems to be no way to implement JavaSciprt events on Service Manager fields, so there must be another and unintuitive way to do this!?
Thanks!
4 Replies


Absent Member..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2011-08-30
21:09
Hello,
Were you ever able to figure this out? I am also trying to do something similar.
Thanks


Absent Member..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2011-08-31
01:37
The pressing of the Enter key is associated with displayoption 0.
So simply create a copy of displayoption Fill (9) for that displayscreen and change the option from 9 to 0.
Now fill will work for F9 and Enter.
Thanks,
Michael


Absent Member..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2012-07-31
21:06
Michael
I cant get this to work on SM 9.3
I copied the displayoption for cc.first_fill (option 9) to cc.first_fill_0 and option 0 .. no luck
Am I doing something wrong?
Piku

Absent Member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2012-08-07
13:52
Hi,
For the search screen you have to change the "Fill Button ID" property of each field from 9 to 0.
hth,
For the search screen you have to change the "Fill Button ID" property of each field from 9 to 0.
hth,
____________________________________
Assign Kudo, if found post useful and mark it accepted if solves the issue.
Assign Kudo, if found post useful and mark it accepted if solves the issue.