× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Mike,

I have had some success using you recommendations. The first one yields
the question mark in the field but does not force the (Enter) key:

A*%%WB 7 FLD <A href=# ondblClick="this.value='?';"></A placed in the
HtmlInside

Your second recommendation is a little unclear to me. I imagine this
will do what I want which is to place the '?' in the field and force the
enter key.

A*%%WB 7 FLD <A href=# onDblClick="<wf:js
function="setFieldValueAndSubmit"/>('this','?', 'SCREEN')

The parms are the id of the field, the field value and the form id.

I'm working with Display file S#DP507, Record format SN50B and field
where I want to put the '?' is S50MF. So if you would, please elaborate
on the parms you reference above.

Thank you,
Gilbert Victor Urias
Ruan Transport Management Systems
Where Safety Is First!
515-245-2458 - Work
515-875-5000 - Fax


-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx]
On Behalf Of Mike Hockings
Sent: Tuesday, January 13, 2009 5:19 PM
To: Websphere Development Studio Client for iSeries
Subject: Re: [WDSCI-L] WebFacing onDblClick inserting a '?' in a field

Hi Gilbert,

You might get more success with something like
ondblclick="this.value='?';" placed in the HtmlInside Web Setting for
the
field. Maybe even something like onDblClick="<wf:js function=
"setFieldValueAndSubmit"/>('this','?', 'SCREEN'). The parms are the id
of
the field, the field value and the form id. For Web only apps it will
be
SCREEN, if you are using Portal then it would have to be determined
first.

IMHO, I don't think that a double click is the best UI mechanism as some

people have trouble clicking quickly or holding the mouse still. It
would
probably be better for your users to simply put a ? graphic to the right

of the field that they can click on normally to initiate the action.
However, this could be a comment about my sloppy hand-eye coordination
that causes me to double click things unnecessarily because I thought I
missed the first time :-).

Mike

Mike Hockings, P.Eng.
System i Application Development Tools
IBM Canada Ltd. Laboratory
hockings@xxxxxxxxxx
voice 1-905-413-3199 T/L 313-3199 ITN 23133199

wdsci-l-bounces@xxxxxxxxxxxx wrote on 01/13/2009 04:26:51 PM:

Our application uses a ? in a field to launch another program for
Search
and Inquiry functions. Most of the time the '?' follows the field
description on the screen to signify that this is a searchable field.
However, on occasion the '?' will be on the heading for a column of
subfile records.



Has anyone done anything with javascript that will place a character
inside a fields When double clicking in that field occurs. I've done
something similar with 'CF04' and have tried to adapt the following
websetting without success:



A*%%WB 7 FLD <A href=# ondblClick="validateAndSubmit('CF04');"></A



Thank you,

Gilbert Victor Urias
Ruan Transport Management Systems

Where Safety Is First!

515-245-2458 - Work
515-875-5000 - Fax

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.