Solved

Not able to bypass values in field

Posted on 2004-08-10
5
187 Views
Last Modified: 2013-12-18
Hi Guys

OK

Well I have a field client
When a document is created,  client is automatically updated by a hidden field that sets the Username. Client_1 also does many lookups and fills in several other fields

However there is occasion where Client is written to manually

The problem is client_1 keeps resetting the client field to it value

Client_1 is above the Client field and contains FIELD client := key;(Key is a value either input computed or pulls from User ID)
Client contains @If(@IsNewDoc & client = "";client_1;client != client_1;client;client)
0
Comment
Question by:imjamesw
  • 4
5 Comments
 
LVL 31

Accepted Solution

by:
qwaletee earned 500 total points
ID: 11766406
James, slow down!  Hard to understand you this time.

Sounds like you need several fields:

Client_1 to do the calculation
Client_Override for a user to enter a different value
Client to contain the actual current values -- calculated to @If(Client_Override = ""; Client_1; Client_Override)

This way, if user types something in, that value will be used, else, the default value will be used.

0
 

Author Comment

by:imjamesw
ID: 11767091
Hi there

Here is what I did

Added Client_Override field after Client_1 but before client
Added a button that sets Client_Override to new value,also sets new client field value
Added @If(Client_Override = ""; Client_1; Client_Override) to client field

Pushed button entered new name,the name changed until I left the field the it recalculated to original value(BAD)

Sub Click(Source As Button)
      Dim workspace As New NotesUIWorkspace
      Dim s As New NotesSession
      Dim db As NotesDatabase
      Dim Doc As notesdocument
      Dim UIDoc As NotesUIDocument
      Dim NewName As String
      Set db = s.CurrentDatabase
      Set UIDoc=workspace.CurrentDocument
      Set Doc = UIDoc.Document
      
      NewName =Inputbox$("Enter a new name for this Security Access request.")
      doc.client_overide = NewName
      doc.client =NewName
      Print doc.client_overide(0)
End Sub

0
 

Author Comment

by:imjamesw
ID: 11767112
I believe it is the FIELD client := key; in the client_1 that is the culprit
0
 

Author Comment

by:imjamesw
ID: 11767505
Got it
0
 

Author Comment

by:imjamesw
ID: 11767547
I modofied the FIELD client := key

FIELD client := @If(client_override = "" ; key; client_override);



THAnx
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question