Discussion:
Lists
L***@mercmarine.com
2004-10-19 14:13:43 UTC
Permalink
Two questions for the experienced Lotus Notes developer -

1). when you set up a dialog list, which is it better(relative term) to use
a formula to obtain the choices or use Lotus Script?
And could you list the Pro/Cons for each choice.

2). I am struggling with trying to create a norm/standard when developing
and am not sure which direction to jump. It would seem that you should pick
one or the other (Formula Language or Lotus Script) for your primary
development.

So, should the direction for development, be toward using Lotus Script as
much as possible? Or should you stay with the Formula Language, only using
the other language when there is no other choice.

What is the norm/standard being used in the real world? Lotus Script or
Formula Language?

Lyle Allen
Mercury Marine (MerCruiser)
405 743 6758
***@MercMarine.Com


This e-mail message may contain confidential or privileged information. If
you are not the intended recipient, please delete the message and any
attachments and notify the sender by return e-mail. You should not retain,
distribute, disclose, or use any of the information in this message.
Robert_Marshall/
2004-10-19 14:28:01 UTC
Permalink
1. I'm not familiar with how you could populate a dialog-list field with
LotusScript; I always use a formula. If it's possible (which I doubt), it
would probably be slower.

2. On the more general question of Formula vs. Script, here's the stock
answer: it depends. For simple things, formula can be faster to write, and
faster to execute. For complex agents or actions, Script has more
flexibility, and is easier to 'follow' when you later have to go back and
change or correct something. That is, it reads more like English; it's a
Basic language variant, actually. And it is the only choice when you want
to integrate another application, using COM, for instance. However,
LotusScript has limits in web applications; there, it can only be used in
agents that execute on the server, because a web client can't execute
LotusScript locally, as a Notes client can.

__________________________________________
Robert D. Marshall

Notation, Inc.
678.596.9095 - mobile, voice-mail, pager
404.377.5146 - fax
***@notation.net





***@mercmarine.com
Sent by: lnotes-***@ozzie.notesnic.net
10/19/2004 10:13 AM
Please respond to lnotes-l

To: Multiple recipients of list LNOTES-L
<lnotes-***@ozzie.notesnic.net>
cc:
Subject: Lists






Two questions for the experienced Lotus Notes developer -

1). when you set up a dialog list, which is it better(relative term) to
use
a formula to obtain the choices or use Lotus Script?
And could you list the Pro/Cons for each choice.

2). I am struggling with trying to create a norm/standard when developing
and am not sure which direction to jump. It would seem that you should
pick
one or the other (Formula Language or Lotus Script) for your primary
development.

So, should the direction for development, be toward using Lotus Script as
much as possible? Or should you stay with the Formula Language, only using
the other language when there is no other choice.

What is the norm/standard being used in the real world? Lotus Script or
Formula Language?

Lyle Allen
Mercury Marine (MerCruiser)
405 743 6758
***@MercMarine.Com


This e-mail message may contain confidential or privileged information. If
you are not the intended recipient, please delete the message and any
attachments and notify the sender by return e-mail. You should not
retain,
distribute, disclose, or use any of the information in this message.
E***@hmco.com
2004-10-19 14:38:04 UTC
Permalink
As far as populating a dialog list with LS, it's possible, although a
two-step process. You set up a hidden field, multivalue. In your postopen,
you set the field as a notesitem, then do appendtotextlist with the values
you want. Then your dialog's formula is set to the name of the field.

It is slower than formula, but useful in certain cases: if you don't have a
view set up with a column containing the values you want, or if your dialog
list needs to be based on the results of a documentcollection rather than a
view.
|------------------------------|
| E S T H E R S T R O M, CLPP |
| Notes Application Development|
| McDougal Littell |
| 909 Davis Street |
| Evanston, IL 60201 USA |
| w: 847.424.3209 |
| e: ***@hmco.com |
|------------------------------|






Robert_Marshall/N
***@notation.
net To
Sent by: Multiple recipients of list
lnotes-***@ozzie.no LNOTES-L
tesnic.net <lnotes-***@ozzie.notesnic.net>
cc

10/19/2004 09:28 Subject
AM Re: Lists


Please respond to
lnotes-***@ozzie.no
tesnic.net






1. I'm not familiar with how you could populate a dialog-list field with
LotusScript; I always use a formula. If it's possible (which I doubt), it
would probably be slower.

2. On the more general question of Formula vs. Script, here's the stock
answer: it depends. For simple things, formula can be faster to write, and
faster to execute. For complex agents or actions, Script has more
flexibility, and is easier to 'follow' when you later have to go back and
change or correct something. That is, it reads more like English; it's a
Basic language variant, actually. And it is the only choice when you want
to integrate another application, using COM, for instance. However,
LotusScript has limits in web applications; there, it can only be used in
agents that execute on the server, because a web client can't execute
LotusScript locally, as a Notes client can.

__________________________________________
Robert D. Marshall

Notation, Inc.
678.596.9095 - mobile, voice-mail, pager
404.377.5146 - fax
***@notation.net





***@mercmarine.com
Sent by: lnotes-***@ozzie.notesnic.net
10/19/2004 10:13 AM
Please respond to lnotes-l

To: Multiple recipients of list LNOTES-L
<lnotes-***@ozzie.notesnic.net>
cc:
Subject: Lists






Two questions for the experienced Lotus Notes developer -

1). when you set up a dialog list, which is it better(relative term) to
use
a formula to obtain the choices or use Lotus Script?
And could you list the Pro/Cons for each choice.

2). I am struggling with trying to create a norm/standard when developing
and am not sure which direction to jump. It would seem that you should
pick
one or the other (Formula Language or Lotus Script) for your primary
development.

So, should the direction for development, be toward using Lotus Script as
much as possible? Or should you stay with the Formula Language, only using
the other language when there is no other choice.

What is the norm/standard being used in the real world? Lotus Script or
Formula Language?

Lyle Allen
Mercury Marine (MerCruiser)
405 743 6758
***@MercMarine.Com


This e-mail message may contain confidential or privileged information. If
you are not the intended recipient, please delete the message and any
attachments and notify the sender by return e-mail. You should not
retain,
distribute, disclose, or use any of the information in this message.
M***@ctimi.com
2004-10-19 14:38:26 UTC
Permalink
Post by L***@mercmarine.com
2). I am struggling with trying to create a norm/standard when developing
and am not sure which direction to jump. It would seem that you should
pick
Post by L***@mercmarine.com
one or the other (Formula Language or Lotus Script) for your primary
development.
Nope. You use both. Formulas are the only choice for some contexts, such
as hide-whens and view selections, and are rather easier to use for others,
such as field value computation and lists of values for checkboxes and the
like. However, LotusScript is superior for just about anything that
requires working with batches of documents. It's not a question of if you
should use one or the other, but rather when, and that's a question of art
as much as science.






NOTICE: This e-mail message and all attachments transmitted with it may
contain legally privileged and confidential information intended solely
for the use of the addressee. If the reader of this message is not the
intended recipient, you are hereby notified that any reading,
dissemination, distribution, copying, or other use of this message or
its attachments, hyperlinks, or any other files of any kind is strictly
prohibited. If you have received this message in error, please notify
the sender immediately by telephone (865-218-2000) or by a reply to this
electronic mail message and delete this message and all copies and
backups thereof.
John P M Dillon
2004-10-19 16:39:20 UTC
Permalink
This is a multipart message in MIME format.
--=_alternative 005A43CF88256F32_=
Content-Type: text/plain; charset="US-ASCII"

As others say, you need to know both, and when each is appropriate.

You can set up a dialog list (I assume you're referring to PickList or
Prompt) with either tool. Look at the Prompt and PickListStrings methods
of the uiworkspace object.

We build dynamic selection lists via Lotusscript all the time, without
intermediate fields. Instead, we load the values into an array.

For example, in workflow we may allow rerouting, but only to people in one
group, plus an accountant and an administrator. With script we can get
the group document from the NAB, extract the members of the group, then
open a profile document where we've stored the accountant and
administrator du jour, then build one big list for users to pick from. You
could do it with Formula too, I imagine.

Most often we pick LotusScript if we need to do other scripty things
afterwards, such as manipulate a collection of documents.

We don't have any web apps here, but if we did, we'd rely more heavily on
Formula.
Post by L***@mercmarine.com
Two questions for the experienced Lotus Notes developer -
1). when you set up a dialog list, which is it
better(relative term) to use
a formula to obtain the choices or use Lotus Script?
And could you list the Pro/Cons for each choice.
2). I am struggling with trying to create a norm/standard
when developing
and am not sure which direction to jump. It would seem
that you should pick
one or the other (Formula Language or Lotus Script) for
your primary
development.
So, should the direction for development, be toward using
Lotus Script as
much as possible? Or should you stay with the Formula
Language, only using
the other language when there is no other choice.
What is the norm/standard being used in the real world?
Lotus Script or Formula Language?
Lyle Allen
Mercury Marine (MerCruiser)
405 743 6758
--=_alternative 005A43CF88256F32_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2><tt>As others say, you need to know both, and when each
is appropriate.</tt></font>
<br>
<br><font size=2><tt>You can set up a dialog list (I assume you're referring
to PickList or Prompt) with either tool. &nbsp;Look at the</tt></font><font size=1><tt>
Prompt and PickListStrings</tt></font><font size=2><tt> methods of the
</tt></font><font size=1><tt>uiworkspace</tt></font><font size=2><tt> object.</tt></font>
<br>
<br><font size=2><tt>We build dynamic selection lists via Lotusscript all
the time, without intermediate fields. &nbsp;Instead, we load the values
into an array. &nbsp;</tt></font>
<br>
<br><font size=2><tt>For example, in workflow we may allow rerouting, but
only to people in one group, plus an accountant and an administrator. &nbsp;With
script we can get the group document from the NAB, extract the members
of the group, then open a profile document where we've stored the accountant
and administrator du jour, then build one big list for users to pick from.
&nbsp;You could do it with Formula too, I imagine.</tt></font>
<br>
<br><font size=2><tt>Most often we pick LotusScript if we need to do other
scripty things afterwards, such as manipulate a collection of documents.</tt></font>
<br>
<br><font size=2><tt>We don't have any web apps here, but if we did, we'd
rely more heavily on Formula.</tt></font> <br> <br><font size=2><tt>&gt;&gt; Two questions for the experienced Lotus Notes
developer -<br>
&gt;&gt; <br>
&gt;&gt; 1). when you set up a dialog list, which is it <br>
&gt;&gt; better(relative term) to use<br>
&gt;&gt; a formula to obtain the choices or use Lotus Script?<br>
&gt;&gt; And could you list the Pro/Cons for each choice.<br>
&gt;&gt; <br>
&gt;&gt; 2). I am struggling with trying to create a norm/standard<br>
&gt;&gt; when developing<br>
&gt;&gt; and am not sure which direction to jump. It would seem <br>
&gt;&gt; that you should pick<br>
&gt;&gt; one or the other (Formula Language or Lotus Script) for <br>
&gt;&gt; your primary<br>
&gt;&gt; development.<br>
&gt;&gt; <br>
&gt;&gt; So, should the direction for development, be toward using<br>
&gt;&gt; Lotus Script as<br>
&gt;&gt; much as possible? Or should you stay with the Formula <br>
&gt;&gt; Language, only using<br>
&gt;&gt; the other language when there is no other choice.<br>
&gt;&gt; <br>
&gt;&gt; What is the norm/standard being used in the real world? <br>
&gt;&gt; Lotus Script or Formula Language?<br>
&gt;&gt; <br>
&gt;&gt; Lyle Allen<br>
&gt;&gt; Mercury Marine (MerCruiser)<br>
&gt;&gt; 405 743 6758<br>
&gt;&gt; ***@MercMarine.Com<br>
&gt;&gt; <br>
</tt></font>
--=_alternative 005A43CF88256F32_=--

Loading...