I am trying to add sublist "amount" field multiple value in the "total amount" field how can i get "expence" sublist "amount" field multiple selected value and total set in the "total amount" field
I need script code for my problem
Related
We have created a search where we compare the amount of an invoice and item fulfillment by showing the 'created from' (sales orders #) and the amount gross of both the IF and INV. Now, we would like to have only the INV & IF of the sales order visible when there is a difference between the amount. So, when 'created from INV' and 'created from IF' = equal and amount IF and INV is not equal, show the records. See the image below for the search.
Search to compare invoice and item fulfillment
I've created a search that shows current inventory on hand, their purchase price, and a formula that multiplies the two to have current value.
In the results field I want to have a column that shows the last time an item was on a sales order. but i am coming up short. Is there a way to do this?
Filter Criteria
Results Criteria
Criteria -
Inactive - FALS
Type - Inventory Item
Transaction Field: Type - Sales Order
Available - Is greater than 0
RESULTS -
Name - (Summary Type Group)
Description - (Summary Type Group)
Available - (Summary Type Count)
Transaction Fields - Date (Summary Type Maximum)
Did you create the saved search from the Item Record or Transaction Record?
If you created it from the Transaction Record then you will want to make sure to use the Date Field and Summary Type (Results tab) as Maximum.
Field = Date
Summary Type = Maximum
If you created the saved search from the Item Record you will need to use the Transaction Fields... table join to bring in the Transaction Date field.
I have 3 free-text custom fields on inventory item record. they contain different information based on location so my fields names are "XXXX Location1", "XXXX Location2" and "XXXX Location3". Across all transactions in the system we need to populate the information in a custom column field of these 3 fields based on the main location we choose on that transaction.
For example if on an Invoice the Main location is Location1 then our line custom column field should show information from "XXXX Location1" when user choose that item on the line; if Main location is Location2 on that Invoice then the line custom column field should show information from "XXXX Location2" when select that item on the line.
I understand this needs to be done thru scripts but i don't know how to write the script, could someone help?
Appreciate!!!
You don't need a script for that.
On the colmn field, set the field to be a formula.
In the formula, write the followin statement(change to real location names and real item custom field ids):
Case {location}
When "location1 name" then {item.custitem... }
When "location2 name" then {item.custitem.. }
When "location3 name" then {item.custitem...}
End
I'm using IBM Cognos Framework Manager/Report Author 10.2.1
The Data looks like the following for two rows:
**Case ID Activity Date Updated**
11111 Bill Paid 09/25/2015
11111 Received Bill 08/01/2015
On my report, I need to show the following for the same exact Case:
**Case ID LAST Activity LATEST ACTIVITY Date Updated**
11111 Received Bill Bill Paid 09/25/2015
Received Paid needs to show in the same Row showing the latest
information with the 09/25/2015 Date.
Not sure how to do this in the report or even Framework Model?
This is tricky but a worthy question as you come across this type of data modeling regularly. I can give you a solution in the report.
The two bits you need to figure out is the maximum 'Date Updated' for each ID and the next to maximum 'Date Updated' for each ID.
Create a new data item called 'Max Date' with the following expression:
maximum([Date Updated] for [Case ID])
Create another new data item called 'Next Max Date' with the following expression:
maximum(
CASE
WHEN [Date Updated] <> [Max Date] THEN [Date Updated]
ELSE null
END
for [Case ID])
Create another data item called 'Latest Activity' with the following expression:
CASE
WHEN [Date Updated] = [Max Date] THEN [Activity]
ELSE null
END
Create yet another data item called 'LAST Activity' with the following expression:
CASE
WHEN [Date Update] = [Next Max Date] THEN [Activity]
ELSE null
END
Set the 'Aggregate Function' property of both 'Latest Activity' and 'LAST Activity' to 'Maximum'.
Summary
We calculate the maximum date for each Case ID. Next we use a CASE statement to exclude the rows that correspond to the max date and then get a maximum for each Case ID of all other rows. We create a new data item that will spit out the Activity if the date matches the max date otherwise null is emitted. We create a second data item that outputs the Activity if the date matches the next to max date otherwise spits out null. We set the aggregate function for both to 'Maximum' which has the effect of getting rid of any null values in those columns through the auto-group and summarize process. This leaves us with two new columns on each row showing the activity of the latest and the one before that.
Alright, here's my scenario :
I have 2 custom lists : Orders and Items. The Items list contains a field Description (text) and a Amount Per Item field (calculated). The Orders list contains a Total amount field and a Items field (lookup on the description field in items which allows multiple values selection).
Here's a more visual explanation :
Orders
Total amount
Items (lookup on the description field in items which allows multiple values selection)
Items
Description (text)
Amount per Item
I would like to do the sum of the Amount per Item field of the selected items from the Items lookup field from Orders and put the value of the sum in the total amount field in Orders
Any suggestions? Is it possible to do this in SharePoint 2010 without code? If not, could you show what the code would look like?
Thanks.
You could try
OrderList.Total = OrderList.Items.Sum(item => item.AmountPerItem);