?
Solved

Need a tweak in Column code (in Notes view)

Posted on 2013-10-24
5
Medium Priority
?
75 Views
Last Modified: 2015-10-01
Experts,

The code below is the defalut in column, in a view, in the TeamRoom database.  I want to tweak it to add an additional criteria:

I want to include a document in this view that doesn't have a duedate....so I want to leverage the docdate -- and there should be no value that appears in this "Status" column.  I would like it to simply be a null value or a "-"

The criteria would be: @If(DocType="Calendar Only") then add the null value or "-"

I've tried a few tweaks and nothing is working.  Thanks!
-----------------------------------------------------------------------

REM {variables to translate};
OpenTxt := "Open";
CompleteTxt:= "Completed";
LCDocType := @LowerCase(DocType);
Stat := @If(DueDateStatus = "0"; OpenTxt; CompleteTxt);
RevStat := @If(ReviewStatus = "1"; CompleteTxt; OpenTxt);

REM {if meeting then blank; if actionitem it depends on the DueDateStatus field; all others depend on the ReviewStatus field};
@If(LCDocType = @LowerCase(DefaultDocType3); ""; @IsNewDoc; OpenTxt;
LCDocType = @LowerCase(DefaultDocType2) ; Stat; RevStat )
0
Comment
Question by:AliciaVee
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 43

Accepted Solution

by:
Steve Knight earned 2000 total points
ID: 39599704
Sounds like you want something like this?

@If(LCDocType="";"-";LCDocType = @LowerCase(DefaultDocType3); ""; @IsNewDoc; OpenTxt;
LCDocType = @LowerCase(DefaultDocType2) ; Stat; RevStat )

What have you got in the view selection formula and do you need help with that?

To pick, say, the DocDate field if the DueDate is not a date value you could incorporate something like:

@If(!@IsTime(DueDate);DocDate;DueDate)

If you show us the specific column / view selection formula already used can help modify it.

Steve
0
 

Author Comment

by:AliciaVee
ID: 39612830
Strange, I thought I added a reply to this last post -- but its not showing?  Darn Wi-Fi...

Okay, so status comlumn has the code I included in my orginal post.  I am using the main document in a teamroom and I want to show both action items (that have  a due date) and also main document that has a "Calendar Only" doctype assigned in the field (instead of action item).  The Calendar Only doc type has a DocDate that will be the DueDate -- and this types of documents will not be actionalbe when the reminder agent runs (a reason we want an info only type of document).

Bottom like, one form, with two different DocTypes, one is Action Item, the other is Calendar Only.  No duedate for Calendar only, and so the status column (that is looking at DueDate) is showing OPEN -- and I want it to show "" or "-" (its not open and its not closed)

-------------
REM {variables to translate};
OpenTxt := "Open";
CompleteTxt:= "Completed";
LCDocType := @LowerCase(DocType);
Stat := @If(DueDateStatus = "0"; OpenTxt; CompleteTxt);
RevStat := @If(ReviewStatus = "1"; CompleteTxt; OpenTxt);

REM {if meeting then blank; if actionitem it depends on the DueDateStatus field; all others depend on the ReviewStatus field};
@If(LCDocType = @LowerCase(DefaultDocType3); ""; @IsNewDoc; OpenTxt;
LCDocType = @LowerCase(DefaultDocType2) ; Stat; RevStat )
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 39676891
Just a *bump* for Steve... I'm still incompatible with TeamRoom ;-)
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 39678855
Hmm, thanks Sjef I must have missed that reply comment before.

Will review from pc later or tomorrow.

steve
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 41020748
Hmmm that one obviously got missed this end... bit late for me to start replying after 2 years!

AliciaVee - if you are still here, always OK to remind people of your question by posting for feedback.
1

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

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…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month14 days, 16 hours left to enroll

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