kenyee | 1 Oct 2006 08:05

Lotus Notes/Domino Frequently Asked Questions (FAQ) Site - Oct 2006


This is an automated monthly reminder message for new users.
The Lotus Notes/Domino Frequently Asked Questions (FAQ) Site has
answers to the most commonly asked questions in this mailing list.
  http://www.keysolutions.com/NotesFAQ
Please check it before posting a question.  It is updated at least
once per month, includes how to unsubscribe from the mailing list, and
includes pointers to archives of this list so you can search for past
topics.
You should also check the online Lotus KnowledgeBase at
http://www.ibm.com/software/lotus/support

Mark Dowling | 1 Oct 2006 08:12

Mark Dowling is out of the office

This is an automated response to your message which is effective
30/09/2006 to 10/10/2006.

For assistance please contact Curtis Graber at 416-864-7203 or
curtis-graber <at> hicksmorley.com

Jean.Stachler | 2 Oct 2006 20:05
Picon
Favicon

Changing the color of a field


Is there a way of changing the color of a field programmatically using
Lotus Script?

This field is type "Color" field and editable.

I was hoping to use LotusScript so that it will allow me to change the
color depending on another value when
the document is saved.

Sub Click(Source As Button)

      Dim session As New NotesSession
      Dim ws As New NotesUIWorkspace
      Dim doc As NotesDocument
      Dim color As NotesColorObject
      Set doc = ws.CurrentDocument.Document
      Set color = session.CreateColorObject
      notesColor = color.SetRGB(255,0,0)
      Call doc.ReplaceItemValue("Cell1", notesColor)
End Sub

This is what I have so far.  How can I get the field color to "Red" which
would be (255, 0, 0)?

Another thought I had was to have another field with the color of "Red" and
than replace the "Cell1" field value
to the value of the new color "Red" field created.  Question is, how can I
create the newly created field
to the value of "Red".
(Continue reading)

bmoore | 2 Oct 2006 20:31

Re: Changing the color of a field

Jean -

I've not used these new fields, but I took a look at them. It looks the 
field value is stored as a text, and it's not the RGB colour. The value 
for 255,0,0 is "00E10000". Try running your script below with that. 

Brian

Jean.Stachler <at> crown.com 
Sent by: lnotes-l <at> ozzie.notesnic.net
10/02/2006 01:05 PM
Please respond to
lnotes-l <at> ozzie.notesnic.net

To
Multiple recipients of list LNOTES-L <lnotes-l <at> ozzie.notesnic.net>
cc

Subject
Changing the color of a field

Is there a way of changing the color of a field programmatically using
Lotus Script?

This field is type "Color" field and editable.

I was hoping to use LotusScript so that it will allow me to change the
color depending on another value when
the document is saved.

(Continue reading)

Jean.Stachler | 2 Oct 2006 21:37
Picon
Favicon

Re: Changing the color of a field


I tried changing the value, but there was an error in the script.

Where did you find the info at concerning this?  I have been looking
at a number of different places and haven't had any success yet.

Thanks,
Jean

                                                                           
             bmoore <at> averittexp                                             
             ress.com                                                      
             Sent by:                                                   To 
             lnotes-l <at> ozzie.no         Multiple recipients of list         
             tesnic.net                LNOTES-L                            
                                       <lnotes-l <at> ozzie.notesnic.net>       
                                                                        cc 
             10/02/2006 02:31                                              
             PM                                                    Subject 
                                       Re: Changing the color of a field   

             Please respond to                                             
             lnotes-l <at> ozzie.no                                             
                tesnic.net                                                 

Jean -

I've not used these new fields, but I took a look at them. It looks the
field value is stored as a text, and it's not the RGB colour. The value
for 255,0,0 is "00E10000". Try running your script below with that.
(Continue reading)

Esther_Strom | 2 Oct 2006 22:04

Re: Changing the color of a field

--0__=09BBFB68DFFE10F18f9e8a93df938690918c09BBFB68DFFE10F1
Content-type: multipart/alternative; 
	Boundary="1__=09BBFB68DFFE10F18f9e8a93df938690918c09BBFB68DFFE10F1"

--1__=09BBFB68DFFE10F18f9e8a93df938690918c09BBFB68DFFE10F1
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: quoted-printable

What was the error message? What line did it occur on?

 Esther Strom, PCLP                   
 Notes Application Development        
 McDougal Littell                     
 A Houghton Mifflin Company           

 p: 847.424.3209                      
 e: esther_strom <at> hmco.com             

                                                                       =

             Jean.Stachler <at> cro                                         =

             wn.com                                                    =

             Sent by:                                                  =
 To 
             lnotes-l <at> ozzie.no         Multiple recipients of list     =

             tesnic.net                LNOTES-L                        =

(Continue reading)

bmoore | 2 Oct 2006 22:10

Re: Changing the color of a field

I put a colour field on a form in my dev database, put a colour in, saved 
it then right-clicked to see the properties of the document from the view. 
That gave them the value. As I change the colour, the value changes. I 
recognize the strings as colour-codes, but I don't know the format they 
are attached to. You can also create a computed field that is 
 <at> Text(NewColour) (if NewColour is  your colour field) - it will show you 
the value you select. As I look, the NotesColor property is part of the 
NotesRichTextStyle, and since you weren't manulipiting that, I'm guessing 
that's where your error came in. 

I took your code and having it change the text value of NewColour seems to 
work:

        Sub Click(Source As Button)
        Dim session As New NotesSession
        Dim ws As New NotesUIWorkspace
        Dim doc As NotesDocument
        Dim color As NotesColorObject
        Set doc = ws.CurrentDocument.Document
        Call doc.ReplaceItemValue("NewColour", "00E10000")
        End Sub

Brian

Jean.Stachler | 2 Oct 2006 22:39
Picon
Favicon

Re: Changing the color of a field

I don't know if the field name messed things up or what, but I changed the
name of the field, and
tried again, and it worked.

I have the field type as "Color" and it changed to the appropriate color,
but the field shows as if it were a
dialog list in the computed field.  Is there a way of having the field only
show the color without the extra detail
of that field?

I am sorry to be bugging everyone with this, but I haven't worked much with
color except in the
rich text table area, and since this is going to the company president, I
need to get everything
in the best manner possible.

Thanks again everyone for your help with this.

Jean

                                                                           
             bmoore <at> averittexp                                             
             ress.com                                                      
             Sent by:                                                   To 
             lnotes-l <at> ozzie.no         Multiple recipients of list         
             tesnic.net                LNOTES-L                            
                                       <lnotes-l <at> ozzie.notesnic.net>       
                                                                        cc 
             10/02/2006 04:10                                              
             PM                                                    Subject 
(Continue reading)

John_Davidson | 3 Oct 2006 11:17
Picon

Release of EasySync Pro 4.2.4


Does any have a copy they can send me or tell me where to download from?

John Davidson
Systems Research (Pvt) Ltd
P O Box MP366, Mount Pleasant, Harare, Zimbabwe
Tel/Fax +263 (4) 744331, Mobile +263 (11) 201501

Jean.Stachler | 3 Oct 2006 14:40
Picon
Favicon

Re: Changing the color of a field


Late yesterday afternoon I had submitted that I had finally gotten things
to work.

I have the field type as "Color" and it changes to the appropriate color.
With the field as this type, it appears as if it were a selection field
with
the arrow appearing in the field.  Is there a way of having the field
only show the color without appearing with the selection?

Again, thanks all for your comments.
Jean

                                                                           
             bmoore <at> averittexp                                             
             ress.com                                                      
             Sent by:                                                   To 
             lnotes-l <at> ozzie.no         Multiple recipients of list         
             tesnic.net                LNOTES-L                            
                                       <lnotes-l <at> ozzie.notesnic.net>       
                                                                        cc 
             10/02/2006 04:10                                              
             PM                                                    Subject 
                                       Re: Changing the color of a field   

             Please respond to                                             
             lnotes-l <at> ozzie.no                                             
                tesnic.net                                                 

I put a colour field on a form in my dev database, put a colour in, saved
(Continue reading)


Gmane