|
I noticed that nobody else has responded to this so here are somethoughts
from memory. Give it a whirl and if things don't exactly work out thenwhat
post back to the mailing list with your results and I'll think about
else you could try.in
First, just to clarify things a bit, the &{MENUOPT.value} is just
something that is translated by the WF conversion into a Java scriptlet
the JSP to return the value for the field -- it is NOT JavaScriptthe
If you are playing in JavaScript only then something like
&{MENUOPT.ref}.value.substr(whatever) might be similar to what you want
but in this case I suspect you will want to compose a Java scriptlet.
To figure out the Java scriptlet what you can do is first to the
conversion with the original &{MENUOPT.value} that you had and look in
JSP to see what it produces. I think it may be something likesubstitutions
<%=RECORD.getFieldValueWithTransform("MENUOPT", some-transform)%>. So
then use that as the value in place of the &{MENUOPT.value} in the Web
Settings GUI and add a substring call to it much like
<%=record-of-menuopt.getFieldValueWithTransform("MENUOPT",
some-transform).substring(whatever) %>
I'm sure you were quick to notice that there are some pseudo
in the above.fld=&{S0001CTL.OPTCODE}|value=&{MENUOPT.value}|func=ENTER
Mike
Mike Hockings, P.Eng.
System i Application Development Tools - CODE/Designer & WebFacing !
IBM Canada Ltd. Laboratory
hockings@xxxxxxxxxx
voice 905 413 3199
jwallroff@xxxxxxxxxxxxxxx
Sent by: wdsci-l-bounces@xxxxxxxxxxxx
06/18/2007 06:11 PM
Please respond to
Websphere Development Studio Client for iSeries
<wdsci-l@xxxxxxxxxxxx>
To
Websphere Development Studio Client for iSeries
<wdsci-l@xxxxxxxxxxxx>
cc
Subject
[WDSCI-L] Webfacing, adding a hyperlink to the web settings of a dds
file
Hello,
I'm trying to make a simple hyperlink in a dds file in my new Webfacing
project. This is the way WDSCi will make the Hyperlink
A*%%WB 12 FLD 4
fld=&{S0001CTL.OPTCODE}|value=&{MENUOPT.value.substr(0,3)
I want to be able to do something like this...
A*%%WB 12 FLD 4
}+
A*%%WB +|func=ENTER
because the menuopt field in the display file has an edit word
A MENUOPT R O 6 2EDTWRD(' 0.')
and the "." is making the OPTCODE invalid in my application.
Does anyone have any suggestions???
--
This is the Websphere Development Studio Client for iSeries (WDSCI-L)
mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/wdsci-l.
--
This is the Websphere Development Studio Client for iSeries (WDSCI-L)
mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/wdsci-l.
As an Amazon Associate we earn from qualifying purchases.
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.