Domino 9 und frühere Versionen > Entwicklung

Farbe der Maske ändern

(1/5) > >>

Micha-BRLN:
Hi @ all,

Ich suche eine Formel, um die Farbe der Maske in Abhängikeit von einem Feld zu ändern, gleiches versuche ich mit der Farbe einer Zeile in der Ansicht.
Allerdings finde ich nichts entsprechendes. Hat jemand einen Hinweis für mich parat?

Selbst wenn nicht - schon mal vielen Dank im Voraus für die Antworten.

Besten Gruß,

Micha

Axel:
Hi,

geht meines Wissens nicht.


Axel

Glombi:
Es geht so:

How to Dynamically Choose the Background Color of a Form in Notes 4.x

Problem:

How can you dynamically change the background color of documents that use a specific form in Notes 4.x?

Solution:

It is possible to set this up, but the color change will appear only after you save and then reopen the document again (for example, F9 will not update the background color), and the background color changes only for that document.  The color does not change in the actual form that the document uses.

In order to test this, do the following:

1.   Create a field on a form called "ColorName".  Set the field Type to be Keywords, Editable.  Under the Choices box, enter the desired colors.  This can be done in a few ways.  In Step 2 below is a list of all the colors names corresponding to those on the background tab colors in the properties of a form.  You can select "Enter choices - one per line" in the Choices box and add the desired colors in the box under Choices (without quotes).  You could also select "Use formula for choices" in the Choices box and add all or a portion of the colors in the syntax listed in Step 2 below (for example, "ice blue":"powder blue":"arctic blue":"lilac mist":"purple wash").

Note:  In order for this to work the color spellings must match those in the formula below.  You do not have to enter all the colors below; enter only the ones you want as a background option.  All colors are listed below for completeness.

2.   Create another field called $PaperColor make it Number, Computed.  Enter the following formula:

@Member(ColorName;
"black":"white":"red":"green":"blue":"magenta":"yellow":"cyan":"dark red":
"dark green":"dark blue":"dark magenta":"dark yellow":"dark cyan":"gray":
"light gray":"white":"vanilla":"parchment":"ivory":"pale green":"sea mist":
"ice blue":"powder blue":"arctic blue":"lilac mist":"purple wash":"violet frost":
"seashell":"rose pearl":"pale cherry":"white":"blush":"sand":"light yellow":
"honeydew":"celery":"pale aqua":"pale blue":"crystal blue":"light cornflower":
"pale lavender":"grape fizz":"pale plum":"pale pink":"pale rose":"rose quartz":
"5% gray":"red sand":"buff":"lemon":"pale lemon lime":"mint green":"pastel green":
"pastel blue":"sapphire":"cornflower":"light lavender":"pale purple":"light orchid":"pink orchid":
"apple blossom":"pink coral":"10% gray":"light salmon":"light peach":"yellow":"avocado":
"leaf green":"light aqua":"light turquoise":"light cerulean":"azure":"lavender":"light purple":
"dusty violet":"pink":"pastel pink":"pastel red":"15% gray":"salmon":"peach":"mustard":
"lemon lime":"neon green":"aqua":"turquoise":"cerulean":"wedgewood":"heather":
"purple haze":"orchid":"flamingo":"cherry pink":"red coral":"20% gray":"dark salmon":"dark peach":
"gold":"yellow green":"light green":"caribbean":"dark pastel blue":"dark cerulean":"manganese blue":"lilac":"purple":"light red violet":"light magenta":"rose":"carnation pink":"25% gray":"watermelon":
"tangerine":"orange":"chartreuse":"green":"teal":"dark turquoise":"light slate blue":
"medium blue":"dark lilac":"royal purple":"fuchsia":"confetti pink":"pale burgundy":"strawberry":
"30% gray":"rouge":"burnt orange":"dark orange":"light olive":"kelly green":"sea green":"aztec blue":
"dusty blue":"blueberry":"violet":"deep purple":"red violet":"hot pink":"dark rose":"poppy red":
"35% gray":"crimson":"red":"light brown":"olive":"dark green":"dark teal":"spruce":
"slate blue":"navy blue":"blue violet":"amethyst":"dark red violet":"magenta":"light burgundy":
"cherry red":"40% gray":"dark crimson":"dark red":"hazelnut":"dark olive":"emerald":
"malachite":"dark spruce":"steel blue":"blue":"iris":"grape":"plum":"dark magenta":
"burgundy":"cranberry":"50% gray":"mahogany":"brick":"dark brown":"deep olive":"dark emerald":
"evergreen":"baltic blue":"blue denim":"cobalt blue":"dark iris":"midnight":"dark plum":"plum red":"dark burgundy":
"scarlet":"60% gray":"chestnut":"terra cotta":"umber":"amazon":"peacock green":"pine":"seal blue":"dark slate blue":
"royal blue":"lapis":"dark grape":"aubergine":"dark plum red":"raspberry":"deep scarlet":"70% gray":"red gray":
"tan":"khaki":"putty":"bamboo green":"green gray":"baltic gray":"blue gray":"rain cloud":"lilac gray":
"light purple gray":"light mauve":"light plum gray":"light burgundy gray":"rose gray":"80% gray":"dark red gray":"dark tan":"safari":"olive gray":"jade":"dark green gray":"spruce gray":"dark blue gray":
"atlantic gray":"dark lilac gray":"purple gray":"mauve":"plum gray":"burgundy gray":"dark rose gray":"black") - 1

3.    Save the form.
4.   Create a document with this form.
5.   In the ColorName keyword field, select the desired color for the document background.
6.   Save the document.  The background color will not be changed at this point.
7.   Close and reopen the document.  The document's background color will now be the color you selected in Step 5.


Andreas

koehlerbv:
$PaperColor überschreibt die vorgegebene Maskenfarbe.

In Ansichten lässt sich hingegen gar nichts drehen.

Bernhard

Glombi:
Übrigens, jeder stinknormale Anwender kann die Hintergrundfarbe im Bearbeitenmodus über die Dokumenteigenschaften ändern sofern der Programmierer diese Vorgabeeinstellung nicht deaktiviert hat.
Damit kann man lustige Effekte erzielen und noch größerere Verwirrung bei den Kollegen.  ;D

Navigation

[0] Themen-Index

[#] Nächste Seite

Zur normalen Ansicht wechseln