How do i write more complex code in Lotus Notes views - lotus-notes

i currently work on a project where i have to write a programm which processes raw data from a
Notes Database into an excel file using Lotus Script. The Database contains time information about how long different devices have been lend out. The output from my script looks like this:
June
Device
Counter
Times(Minutes)
Times(Hours)
--------
--------------
--------------
--------------
TestDevice1
3
270
4,5
TestDevice2
2
210
3,5
I am finished with the programm itself, now i need to have the same Output inside a Lotus notes View. I am very new to lotus notes and i have no idea how to do this. I know that it is possible to use Lotus Formula to programm. But i cant find anything about the language and how to use it. Maybe someone here can help.

You can look at the online documentation provided by HCL "About Designing Views"
Pay particular attention to "Selecting which documents display in a view" and "Creating columns in a view" (and its subsection "
Adding programming to columns").
That should give you a few ideas of how to progress.

You can get close.
Make a view to display the Device, Counter, Times, and Times columns, unsorted.
Once you figure that out, create a new column that displays the month. (Hint: See #Text formula.)
Now change it to subcategorized by month by changing the month column to be the first column, and then edit the column properties to give it a width of 1 or 2, not resizable, and make it a category column with twisties shown.
This will get you close. Instead of the month followed by column titles followed by the data, you will get column titles followed by the month followed by the data per month.

Related

How to 'feed' data from data tab in other tabs based on criteria?

Ideally this file will take an Order number and based on certain column aspects feed it into the respective tab. (For Reference we will be taking data from a car repair shop to determine if the car being worked on has been scheduled for drop off, at the shop, or completed and left the shop.
For Example we will have an Order number for every Car we work on, this car will have a Date Started & date Completed. Based on these criteria it will take the Order Number and drop it into the correct Tab and the rest of the data will populate with xlookup (or up for something better to try). So as the life of the product is updated it flows to the appropriate tabs.
Data Tab --> Comprehensive List of all Cars(including cars not scheduled) --> Cars being worked on --> Completed Cars
I figured 90% of this can be solved using xlookup and IF statements but where I get stumped is how do I pull the specific Order Numbers into the respective tabs from the Data tab.
I am aware that I need to create a formula to check if a car has been scheduled for drop off vs it being finish so it doesn't find it's way into the complete tab but that should be easy once I am able to pull Order number's into the file.
Not Necessarily looking for an answer but some topics/videos to point me in the right direction:)
I have tried just pasting the data and xlookup the details from the Order Number but that just brings back the manual aspect of the workbook.
the way i am thinking about this is java terms would be:
If(order # = In Shop)
RO# Populates into "cars being Worked on" Tab
but for each tab
Am I going to need to use VBA/Macro to get the desired result or is there something simpler I am missing?
Not Necessarily looking for an answer but some topics/videos to point me in the right direction:)
If you don't want to build a VBA implementation, I'd look into using Power Query. I find Power Query to be a pretty low barrier tool as it has quite an intuitive UI and loads of material on the web.
This implementation would most likely have an input table on one tab and then the other tabs (WIP, Completed, etc.) would be connected to this input table.

Modify SharePoint view of lookup field that can have multiple values

I am trying SharePoint for first time. So please be nice to me. Here is what I am trying to do.
Lets say I have a List where I have values as shown below
Lesson Days
----------------------
Tennis Monday,Wednesday
Swim Saturday
Golf Sunday,Saturday.
Above Days is lookup field that can take multiple values.
How can I modify the view to look as below
Lesson Days
----------------------
Tennis Monday
Wednesday
Swim Saturday
Golf Monday
Sunday
Saturday
Looks like we can code, but I have no idea how to do this.
Also it would be awsome if we have sequence number for multiple values. Something like this
Lesson Days
----------------------
Tennis 1.Monday
2.Wednesday
Swim 1.Saturday
Golf 1.Monday
2.Sunday
3.Saturday
Edit: Based on further search looks like I need to do Client side rendering. I found this link
SharePoint 2013 Client Side Rendering: List Views
I am still struggling to understand this. Need much simple example on how to do this. Will appreciate any hint/help on getting this started.
To start this might help. Using Sample 1, changing the field name and the render function you can easily get the view version without sequence.
If you want a custom order on the days you have to change the EditForm for your days field to change the way the user inserts the days. That will be the hard part since if you do so, you have to either get the values for the lookup field by urself (using the javascript client api or rest calls) or use the default sharepoint lookupfield and customize it (I would not recommend this). To save the custom values back to the days field this example will help (using the registerGetValueCallback function)
You can include your script with a script webpart on the view page/edit page or use the jslink property on the webpart property section miscellaneous to include a javascript file containing the csr code.

How to create a List Price Sheet filtered with Last Date Modified column in Dynamics-NAV

I'm trying to generate a List Price Sheet report using the Dynamic NAV gui, which is located under Departments > Sales & Marketing > Inventory & Pricing.
Under the Reports and Analysis there is an option called List Price Sheet, which we use to create the price lists as Excel Files.
What I would like to do is to return only items that has been created or modified during an specific year, instead of having a list of all Items in the ItemCard.
When I add the Last Date Modified as a filter, it does not matter what value I enter, it keeps giving me a warning saying...
One or more filters are not valid and will be ignored. Do you want to continue?
Is there's a way I can accomplish that using the GUI or this is something that needs to be done with a custom function?
this "List Price Sheet" is not a standard report (NAV has a standard set of reports for every modules) therefore we can't help. You should contact your (=your company's) NAV partner for help.
Maybe if you can share the warning/error what you getting when entering the date I can help. Here is a link which maybe helps : Entering Dates and Times in Dynamics NAV
Cheers!
Sorry I did not provided more depth information, the problem was, that I was trying to search as string the value "2015", which is not a valid parameter to pass when searching a DateTime column. I have to search using a Date range, cause I wanted to get the result for the specific year 2015, in my case, the value I should've pass was:
01/01/2015..12/31/2015
Which return all items that has been modified during this specific year. After doing that I found out that every time NAV developers updated the production site with the test site, all items were marked as modified the date the update occurred. So was not of use for me any way.

How do you Calculate Multiple Pages to a Grand Total in LiveCycle?

I am not a programmer but I have to create an expense form for traveling. It has to be in PDF format (preferably Adobe Acrobat editable). I created the form with Excel and exported it to Adobe but, of course, the formulas do not transfer.
I have 3 pages that are identical for calculating travel expenses with the only difference being there is one extra cell on the first page that calculates totals from each page to a grand total. Sounds easy. All the pages calculate individually with no problem but I cannot reference the totals from the individual pages to the first page where the grand total is.
I am using Adobe LiveCycle because it "simplifies" the programming process for people like me. It has worked great so far but this is the only thing problem I am having and the only thing holding me from using the form.
All three pages are in the same document. When I use FormCalc for the totals within each page, it works great:
topmostSubform.Page1.P1TotalGrand::calculate - (FormCalc, client)
$=P1MileageTotal+P1TransAirTotal+P1CarRenTotal+P1HotelTotal+P1AllowTotal+P1PhoneTotal+P1MIETotal+P1BusMealTotal+P1OtherTotal
If I go to the next page, it looks like this:
topmostSubform.Page2.P1TotalGrand::calculate - (FormCalc, client)
$=P1MileageTotal+P1TransAirTotal+P1CarRenTotal+P1HotelTotal+P1AllowTotal+P1PhoneTotal+P1MIETotal+P1BusMealTotal+P1OtherTotal
I just want to be able to add them together. When I try, it doesn't recognize the 2nd page and I don't know why. The form is pretty basic and I would really appreciate any help. If you need any additional information, I'll be glad to oblige.
I believe you can do it. There should be many ways and I am a newbie too so here are two ways...
If you want grand total of 2 pages - does not matter on which page you want it, the formula should be like
topmostSubform.Page1.P1GREATTotalGrand::calculate - (FormCalc, client)
$=P1TotalGrand+P2TotalGrand
The trick is to select both by press and hold Ctrl Key, then select the field you want to select rather then type in. this should solve the problem.
If you want the total to be at page one.
Make the P2GreatTotalGrand to be a global data and create the same data field on page one and add this new one and one already on page one to get the grand total on page one.

Filling rows of a repeating table on opening the form

In my Infopath form I use a repeating table. On opening this form on sharepoint I would like to have some rows of the repeating table filled out using information from an other list. I use content types.
What i am working on is a Timesheet system where the user can register how many hours a week he worked on different projects.
I would like that by creation of a timesheet some predefined projects will be already inserted, meaning that the repeating table will have for example 5 rows already with 5 favourite or most used projects selected based on a separate PetProject list.
When I looked at the workflow in the list where the timesheet is being created I couldn’t find the column projectname in the dropdown so I cant give it a value. When I went to look in the Form settings of TimeSheets I saw that projectname cant be selected/edited, its in plain black whereas the other columns are blue and clickable. I thought its probably because the value of projectname is merged from the different rows in the repeating table.
Is there any way I can work around this problem and assign a value to projectname by creation of the timesheet?
Thank you so much!
I think that you will need to write some code to query the data that you are after and add the data to new rows in the repeating table.
There is a loading event that you can hook into to then query a secondary data source and then
add the row to the repeating table.
Will this run with in infopath as a thick client or will it run as a browser based form using infopath form service?

Resources