Q
Problem solve Get help with specific problems with your technologies, process and projects.

How do I handle computed fields or CWC on the Web?

How do I handle computed fields or CWC on the Web? I have a form and there is button that opens a pop-up window in which I fill in fields. When I close the window, the data goes to the form. It works fine with editable fields but not with C or CWC. I use JavaScript to take the data from the pop-up window. Do you have any examples of this working, or is it impossible?
It won't work if the fields are computed or computed when composed. The server will ignore the changes to those fields when they are re-submitted. The server only knows about the behavior of the form from what it can "see" in the design that's on the server.

There are a number of ways of overcoming this. One is by letting these fields be editable. Then add an attribute to the field that hides it when the browser users see it. You give it the attribute type='hidden'. In the Domino Designer, in the list where you also put the default value and the input translation etc., there is a box for HTML Attributes. Put "type="hidden"" in that box to hide the field in the browser, but leaving it accessible and able to be modified to JavaScript.

This was last published in October 2003

Dig Deeper on Web Development for Lotus Notes Domino

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close