Updating a form with an agent or some automated activity??

My company has an intranet WELCOME page, in that welcome page, there is a picture and in that picture there are hotspot links that take you to different places.In this page they post the birthdays of a few people just to notify employees when they open notes client's home tab.But this people that are posted on the page need to change every week or two weeks so they modify the jpg image in photoshop and then manually update the jpg file and replace it in the designer.

What I want to achieve is;

I want to make for instance 24 pictures with each picture having the current birthdays of employees and then write an agent or whatever and  tell it that take this image and replace it with the image in the welcome form and refresh...

is it possible if so can you help me with the coding part?

Attachment has the welcome picture which is in the welcome form you can see the birthday's of people instead of manully changing the picture and updating I can make all combinations of pictures with diff. ppl in the picture and tell the agent take picture 1 in week 1, take picture 2 in week 3,take picture 3 in week 5 etc....so i dont need to do anything. Also even if I just have a button to call the agent and it goes and replaces it for me this would even be acceptable. Thank you for your help.
Who is Participating?
doninjaConnect With a Mentor Commented:
Hi, my second suggestion is same/similar to Sjef's previously posted suggestion. I just added some element to make it more dynamic in the code.

To OP.
The way you are creating the image and hotspots is possibly not the best way to make system dynamic.

If you just want one picture to appear between two dates then just do following.
Create a table where the pictures are to appear and make all borders 0 to hide them.
Add all of your pictures as image resources in database and add them below each other in the table.
Then on each picture edit the Hide when formula and add code with dates for when to start and stop displaying image.
Date format should be numerical and 4 digit year

(@TODAY < @DATE(yyyy;mm;dd)) | (@TODAY > @DATE(yyyy;mm;dd))

Open in new window

fatihdiAuthor Commented:
By the way the birthday information in the picture is provided with;  

Nevin Zongor     20
Filiz Memisoglu  20
Mehmet Aslan   20
20 means 20th of this month
Just to clarify a couple of things
Is the web page just a standard Lotus Form with display as html text
What version of Domino are you using.
What is your experince level of Lotus Views, agents and Forms

Some simple suggestions would be to create a birthday form that has the name, date to start and stop displaying the date and either attached image file or text field with the correct link to image file.
These can all be created in advance and data filled out for each person in advance of the actual display date.

Then on the web display form have a computed for display field that looks up the relevant information from a view and builds the correct html.
Instead of a single image, each of the images link in the birthday document could be pout into a small table on the web page. Certainly more dynamic that way.

The document view can work in a couple of ways depending on how much traffic this page gets.
For simplicity but at expense of small lookup delay, the view can show only forms where the display date is >= today and the finish date <= today
If this web page is heavily used then an agent can run at local midnight to toggle a field in the form if the above is true or not true. Then the view just displays documents where displaynow=1.
Normally I would go with an agent if the required accuracy of when to include a document is not as important as speed. Any Date/Time formula in a view is always slower than static data lookups.

If this is the sort of design your looking at then depending on your design familiarity there are a number of ways to continue and get help on this site.

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

fatihdiAuthor Commented:
first it is not a web page.it is just a form. we have lotus domino v8.5.2.. i am a newbie

we have a image on a form. this image has hotspot links to local applications and birtday information.
Thanks for info, always helpful :)

Even for a form displayed in the notes client you can still use HTML code to display formatted text. First extra question is if the display of names and dates can be made into html text using font and styling rather than an image as initally that would be a lot easier to integrate.

To put text into a form that is computed and gathered from the local database.
Create a computed text area and mark as pass thru HTML
In the computed text area add the following code as a starting point.
You can add extra formatting to the text or extend to be two column, right align etc as per normal html rules.

This code can also link to external website but would rely on the machine having personal web navigator database setup for inline images.

Just add a view called Birthday_Names that has name of person to display for that week.

Open in new window

For image resources in a form it is possible to make them computed. Although not the number of images to display.

So if you know you wish to support up to 7 birthday images from the database you can create the 7 images on the form using any stored image. Then select image properties and on the first tab next to image name there is an @ symbol.

In the formula window add the following code

On each picture just increment picnum

Although not as dynamic as the pure text version you just need to add the pictures for each name and decide on how the view is going to calculate which to display.


Open in new window

fatihdiAuthor Commented:
Hi I am confused or not sure if you understood me correctly let me explain what I need..

think of it this way there are 24 pictures( they have hotspot links on them) and there is one form.

In the current method I have to go to the form and change the picture every two weeks,instead of for instance image1 I need to replace with image2 and two weeks later again I need to change the picture on the form to image3

What I want to achieve is I have the 24 pictures and make an agent and when I run the agent it can pick the next image which I know it in advance from the image resources and replace it with the current . and two more weeks later i can again run the agent it can replace the image on the form again with for instance image3.

How achiavable is that? if you know how to can you post the lotusscript,javascript, code for this?

Thank you !!!!
Sjef BosmanGroupware ConsultantCommented:
Seems there is a duplicate question here:

Here's what I posted there earlier:

I wouldn't do it like that.

Two other ways for you to think about:
- put all images in the form, each in its own paragraph or table-cell, and use hide-when formulas to allow only one image to be seen
- use a computed resource

Do this for the computed resource:
- store all images in the resources of the database,
- in the form, click Create/Insert Resource, pick any, then open the Picture Properties, click the @ and set a formula for the image you want.
You could also use one image resource, design your stuff using that, and use an agent to change the image in the image resource. If people then op en the form, the new image is used.  Makes form design a lot simpler.
All Courses

From novice to tech pro — start learning today.