Solved

Working with Date/Time

Posted on 2006-06-17
5
262 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

770 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