Solved

Working with Date/Time

Posted on 2006-06-17
5
274 Views
Last Modified: 2013-12-18
Hello experts

I have two fields
ScheduledDaysAll - Date/Time, Computed, I'm doing a dblookup here to get multiple Dates from other documents. (e.g. 08/03/2006, 08/04/2006, 08/05/2006)

StartDate - Date/Time, @If(@IsMember(StartDate;@TextToTime(ScheduledDaysAll));@Failure("An existing modules is covering this day !");@Success)

When I select any date in StartDate, I get this message.. 'Incorrect data type for operator or @function: Text expected'

I'm trying to prevent users to select those dates/days which are already exists in ScheduledDaysAll
0
Comment
Question by:ninteen83
5 Comments
 
LVL 37

Expert Comment

by:Harisha M G
ID: 16928595
Hi, you are passing a date-time value to the functin @TextToTime(), which expects a string to be its parameter

http://www-12.lotus.com/ldd/doc/domino_notes/Rnext/help6_designer.nsf/f4b82fbb75e942a6852566ac0037f284/9ef4e6e6732021f885256c54004c1363?OpenDocument

---
Harish
0
 

Author Comment

by:ninteen83
ID: 16928604
Hi Harish

I've tried it without texttotime, but I get the same error

@If(@IsMember(StartDate;ScheduledDaysAll);@Failure("An existing modules is covering this day !");@Success)
0
 
LVL 43

Accepted Solution

by:
Steve Knight earned 100 total points
ID: 16928610
Try @Text(date) around both instead.

Steve
0
 
LVL 18

Assisted Solution

by:marilyng
marilyng earned 50 total points
ID: 16929829
You're getting the error on the lookup function, it needs to return text for the @Contains or @IsMember to work

Try this:
TextValue:=@If(EnterDate="";"";@Text(enterdate;"D0S0"));
ChkList:=@If(chkdate="";"";@Text(chkdate;"D0S0"));
@If(TextValue=""|ChkList="";@Return("");"");
Result:=@If(@Contains(ChkList;TextValue);"Is Member";"Not a Member");
@If(@IsError(Result);"Error";Result)

The dblookup:
List:=@DbColumn("":"";@DbName;"LookupDates";1);
@If(@IsError(List)|List="";"";@Unique(@Text(List;"D0S0")))
0
 
LVL 18

Expert Comment

by:marilyng
ID: 16931964
I'm sorry, did we not answer your question correctly?  I created a test environment before I posted?!  Could you tell us why the grade is a B?
0

Featured Post

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Modify The View Selection Criterion through a Button 10 36
Lotus notes email code 6 122
Text over two lines in VBA for email 26 168
Lotus notes Formula to trigger Lotusscript 1 1,071
For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

740 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