× 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.



Thank you for the heads up about the forum Cheri. I'll check it out.




"Cheri Duchrow" <cduchrow@xxxxxxxxxxxxxx>
Sent by: wdsci-l-bounces@xxxxxxxxxxxx
06/19/2007 12:18 PM
Please respond to
Websphere Development Studio Client for iSeries <wdsci-l@xxxxxxxxxxxx>


To
wdsci-l@xxxxxxxxxxxx
cc

Subject
Re: [WDSCI-L] WebFacing, adding a hyperlink to the web settings of
a DDS file






John

Just wanted to let you know that Mike is right on with his suggestions and

that there is another newsgroup from IBM that has
WebFacing questions that you might be able to get some other answers for
other things you are looking for. I recognize Mike's
name from there and he is always very helpful to people posting questions
there.
Newsgroup Server is:
news.software.ibm.com
Newsgroup you are looking for is:
ibm.software.websphere.studio400

The other thing that helped me when trying to figure out what html to get
into the converted jsp was as Mike suggested to find the jsp that was
generated after you convert and look for the value being put out. If you
become familiar with jsp code you should be able to make the chance right
there in the converted jsp to test the change on your test server. Changes

to jsps will automatically force a re-compile of the jsp and you should be

able to test the changes without re-converting or restarting the test WAS
server. But Warning Warning.....If you manually change the converted jsp
for testing purposes you want to go back and put the code in the correct
WebFacing keyword. Otherwise when you re-convert the WebFacing project
you
will lose your changes.

So check out that other newsgroup for historical information on things you

might run into. I gained some good information from there when I first
started out.

HTH
Cheri

"Mike Hockings" <hockings@xxxxxxxxxx> wrote in
message
news:OFD956A2D1.20D8B67C-ON852572FF.0001CBFA-852572FF.0051A409@xxxxxxxxxxxx
.
I noticed that nobody else has responded to this so here are some
thoughts
from memory. Give it a whirl and if things don't exactly work out then
post back to the mailing list with your results and I'll think about
what
else you could try.

First, just to clarify things a bit, the &{MENUOPT.value} is just
something that is translated by the WF conversion into a Java scriptlet
in
the JSP to return the value for the field -- it is NOT JavaScript

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
the
JSP to see what it produces. I think it may be something like
<%=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
substitutions
in the above.

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}|func=ENTER

I want to be able to do something like this...

A*%%WB 12 FLD 4
fld=&{S0001CTL.OPTCODE}|value=&{MENUOPT.value.substr(0,3)
}+
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 thread ...

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.