How to get attendies count for a calendar list in sharepoint 2013?
Hi everybody,
I am using calendar list in SharePoint 2013 for my project.
Could please tell me how to get the count of attendees using SP Designer or OOTB calculated field.
Because I want to display the fields like
TOTAL SEATS =20
Attendees= Need count
Avail seats= total - Attendees count.
In that way I want to show information about availability seats for training session.
Regards,
Dhayanand
Hi Dhaya
Please refer the links.Hope it helps :-)
http://social.msdn.microsoft.com/Forums/en-US/b8677dc5-3eb1-4bdc-92f2-f57201bfabb1/field-that-counts-attendees?forum=sharepointcustomizationprevious
http://sharepoint.stackexchange.com/questions/54253/use-count-related-column-value-as-int-in-a-sp-designer-workflow
Similar Messages
-
How to enable Gant view for migrated Task Lists in SharePoint 2013
We recently migrated several Task type Lists from an old SharePoint environment (WSS on SP 2003) to SharePoint Enterprise 2013. I do not see the Timeline, Calendar and Gant View options available for the migrated Views of the migrated lists like
I see for newly created Task Lists in SP2013. Is there a way to enable this feature for these migrated Task Lists?Hi,
For this issue, I'm trying to involve someone familiar with this topic to further look at it.
Thanks,
Wendy
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback
for TechNet Subscriber Support, contact [email protected]
Wendy Li
TechNet Community Support -
Qry:How to get different price for each price list (variable area) in order
1-How to get different price for each price list (variable area) in order for sale. for the opportunity to display and select multiple prices.
2- I add a location store from a table in line item and I want to see this area in order,.
I 'm created 2 field location(item line and order), 1 table location
I tried this for exemple : select $ [userfieldlocation.OITW]Thanks Suda for your answer,
the Formatted Search for prices is OK, but for the Item locations in warehouse this is not so simple,
I must have several (at least 2) locations for the item in the Warehouse and a track of this location and search possibilities.
read carefully and imagine how (Management warehouse locations)
I added a user table '@Location' who linked to a user field 'U_Location in Item master data --> lnventory data line and an ather user field 'U_Location' in sales order
I met the value of location in the table (list of locations for any warehouse), I select the location of each item while receiving merchandise in the user field of inventory data line (Item M data) and this value appears in the sales order 'U_Location' user field ( only the location value in the default warehouse for this Item)
or
create an user field 'location' in Good receipt PO to fill it while receiving merchandise that appears in the sales order to give possibility to find/select the location of the item at this order and in Item master data
I think we will use all these tables
@LOCATION
PDN1
OITM
OITW
OWHS
RDR1
Juste a another question : where you found this and What is: ' 38.1.0 '
Is it in document (System information):Item=38 Pane=1 ??
Thanks,
Ouchen -
How go generate Popularity Trends report for a custom list in SharePoint 2013
Hi,
I want to generate Popularity Trends report for a custom list in SharePoint 2013, is it possible?
Thanks
khadar pashaAccording to
this link you should be able to access this option from the Items tab. for this to work, the Analytics Processing Component needs to be running.
Steven Andrews
SharePoint Business Analyst: LiveNation Entertainment
Blog: baron72.wordpress.com
Twitter: Follow @backpackerd00d
My Wiki Articles:
CodePlex Corner Series
Please remember to mark your question as "answered" if this solves (or helps) your problem. -
How to get row count(*) for each table that matches a pattern
I have the following query that returns all tables that match a pattern (tablename_ and then 4 digits). I also want to return the row counts for these tables.
Currently a single column is returned: tablename. I want to add the column RowCount.
DECLARE @SQLCommand nvarchar(4000)
DECLARE @TableName varchar(128)
SET @TableName = 'ods_TTstat_master' --<<<<<< change this to a table name
SET @SQLCommand = 'SELECT [name] as zhistTables FROM dbo.sysobjects WHERE name like ''%' + @TableName + '%'' and objectproperty(id,N''IsUserTable'')=1 ORDER BY name DESC'
EXEC sp_executesql @SQLCommandThe like operator requires a string operand.
http://msdn.microsoft.com/en-us/library/ms179859.aspx
Example:
DECLARE @Like varchar(50) = '%frame%';
SELECT * FROM Production.Product WHERE Name like @Like;
-- (79 row(s) affected)
For variable use, apply dynamic SQL:
http://www.sqlusa.com/bestpractices/datetimeconversion/
Rows count all tables:
http://www.sqlusa.com/bestpractices2005/alltablesrowcount/
Kalman Toth Database & OLAP Architect
SQL Server 2014 Design & Programming
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
How scheduling the data refresh for a published Excel workbook - SharePoint 2013
Hi,
I've implemented an Excel workbook that connects to a SSAS Tabular data source and I've published it on SharePoint.
Now, how can I implement a scheduled data refresh if it is possible?
ThanksHi pscorca,
If my understanding is correct , you want to implement a scheduled data refresh on SharePoint 2013 and the data is from a SSAS Tabular data source.
Below are some articles for you to take a look:
Data Sources Supported (SSAS Tabular)
http://technet.microsoft.com/en-us/library/gg492165.aspx
Get data from Analysis Services
http://office.microsoft.com/en-in/excel-help/get-data-from-analysis-services-HA102837073.aspx
PowerPivot Data Refresh with SharePoint 2013 and SQL Server 2012 SP1 (Analysis Services)
http://technet.microsoft.com/en-us/library/jj879294.aspx
Refreshing PowerPivot Data in SharePoint 2013
http://blogs.msdn.com/b/analysisservices/archive/2012/12/21/refreshing-powerpivot-data-in-sharepoint-2013.aspx
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support -
Setting up records management for a custom list in SharePoint 2013
In a workflow 2013, I am planing to 'declare a record' on a custom list. I am doing this since I do not want users to be able to change the custom list once the record is submitted to workflow 2013.
There are options in record declarations settings that I am not certain what to set like what values are appropriate in 'declaration of records can be performed by'.
Since I am my own administrator on my test SharePoint 2013 website, would you tell me what I can do at the administrator's site level to enable the 'mark a record and/or declare a record feature? Basically I would like to know what options to set for a custom
list so the records can not be modified once the custom list has been submitted to the workflow.Hi Wendy,
There are 2 ways either in place records or records archive it will depend on your requirments.
check this article it will guide you about how to configure each way
https://support.office.com/en-nz/article/Implement-Records-Management-0bfe419e-eb1d-421a-becd-5be9fed1e479?ui=en-US&rs=en-NZ&ad=NZ
To decide which one you will choose check the comparison in this link
https://technet.microsoft.com/en-us/library/ee424394.aspx
Kind Regards,
John Naguib
Senior Consultant
John Naguib Blog
John Naguib Twitter
Please remember to mark this as answered if it helped you -
How to get an count for a fields in fields
Hai All
I have created a table and the table contains three fields code,date,time and now i need to count that how many times the time come for a day
for example in this table is calculated for daily attendance
Code Date Time
001 01-02-10 0815
001 01-02-10 1115
001 01-02-10 1145
001 01-02-10 1645
002 01-02-10 0815
002 01-02-10 1200
002 01-02-10 1230
002 01-02-10 1715
003 01-02-10 0815
003 01-02-10 1655
here the example table is there so now i need to count that no times the time count is there for a day
for eg code 001 has 4, and 002 has 4 and 003 has 2
I have tried
select count(*) as ct,barcode from temp_attendance
group by barcode
order by barcode
Like this and works fine with only barcode field and while we give other fields in group by function and it calculate for each time.
while i using this in cursor i need to all the variable displayed and i need the count the count that code has
no of time.
Thanks & Regards
Srikkanth.MNikhil seems to be correct
WITH T AS
( SELECT '001' barcode, '01-02-10' bar_date, '0815' Systime FROM dual
UNION
SELECT '001' barcode, '01-02-10' bar_date, '1145' Systime FROM dual
UNION
SELECT '002' barcode, '01-02-10' bar_date, '0815' Systime FROM dual
SELECT barcode,systime,
COUNT(*) over (partition by barcode,bar_date order by barcode)
from t;Thanks and regards
Sen
Edited by: Oracle beginner on Feb 18, 2010 2:37 PM -
How to get the Count for no.of.errors
HI
BELOW IS MY CODE
LOOP AT I_RETURN INTO WA_RETURN.
IF WA_RETURN-TYPE ='E'.
CONCATENATE SOURCE-AUFNR '|' SOURCE-VORNR '|'WA_RETURN-MESSAGE
INTO TEXT.
WRITE:/ TEXT.
COUNTER = COUNTER + 1.
ENDIF.
IM GETTING BELOW O/P
000090001366 0020 Enter another operation number
000090001366 0020 Error during processing of BAPI methods
000090001366 0050 Item categories in agreement and requisition incompatible
000090001366 0050 Error during processing of BAPI methods
NO.Of records In Error 4
My Requirement is if AUFNR and VORNR value is same then the count should be 1 , Like the o/p should be
NO.Of records In Error 2
because AUFNR and VORNR is same for 2 records , can any one tel me the logic to do this,
AUFNR and VORNR value is there in Internal TableHi All,
Thanks for the replies.
AUFNR and VORNR are in different tables so im putting them in one internal table
loop at itab into wtab.
wtab-aufnr = wa_methods-objectkey.
wtab-vornr = wa_operation-activity.
endloop.
now
IF WA_RETURN-TYPE ='E'.
now if aufnr and VORNR is same then i should get error message as said above
can any one tel me the logic -
How to get the count for every 30 mins
Hi,
Following is the table format:
Time ******************** logged in users
9/5/2006 8:38:22 PM**** 2
9/5/2006 8:38:44 PM**** 4
9/5/2006 8:40:22 PM**** 1
9/5/2006 8:41:22 PM**** 3
9/5/2006 8:52:22 PM**** 6
9/5/2006 9:02:22 PM**** 5
9/5/2006 9:04:24 PM**** 3
9/5/2006 9:08:26 PM**** 4
9/5/2006 9:10:28 PM**** 6
What I need is number of users logged in for every 30 min
like 9/5/2006 9:00:00(8:30 to 9:00) is 16
9/5/2006 9:30:00(9:00 to 9:30) is 18
Can any one help me in this regard?
-RajThe trick is to group your times to every 30 min.
Unfortunatly there is no way to TRUNC(30 min).
But you can build this function yourself using some mathematical logic and trunc to build the groups.
Look at this code piece:
select trunc(sysdate) + trunc((sysdate - trunc(sysdate))*24*2)/24/2
from dualInstead of sysdate use your date column and group by the expression.
Added example using Dave's test data
WITH t AS
SELECT TO_DATE ('9/5/2006 8:38:22 PM', 'fmdd/mm/yyyy hh:mi:ss pm') tm,
2 num
FROM DUAL
UNION
SELECT TO_DATE ('9/5/2006 8:38:44 PM', 'fmdd/mm/yyyy hh:mi:ss pm') tm,
4 num
FROM DUAL
UNION
SELECT TO_DATE ('9/5/2006 8:40:22 PM', 'fmdd/mm/yyyy hh:mi:ss pm') tm,
1 num
FROM DUAL
UNION
SELECT TO_DATE ('9/5/2006 8:41:22 PM', 'fmdd/mm/yyyy hh:mi:ss pm') tm,
3 num
FROM DUAL
UNION
SELECT TO_DATE ('9/5/2006 8:52:22 PM', 'fmdd/mm/yyyy hh:mi:ss pm') tm,
6 num
FROM DUAL
UNION
SELECT TO_DATE ('9/5/2006 9:02:22 PM', 'fmdd/mm/yyyy hh:mi:ss pm') tm,
5 num
FROM DUAL
UNION
SELECT TO_DATE ('9/5/2006 9:04:24 PM', 'fmdd/mm/yyyy hh:mi:ss pm') tm,
3 num
FROM DUAL
UNION
SELECT TO_DATE ('9/5/2006 9:08:26 PM', 'fmdd/mm/yyyy hh:mi:ss pm') tm,
4 num
FROM DUAL
UNION
SELECT TO_DATE ('9/5/2006 9:10:28 PM', 'fmdd/mm/yyyy hh:mi:ss pm') tm,
6 num
FROM DUAL)
SELECT SUM (num), trunc(tm) + trunc((tm - trunc(tm))*24*2)/24/2 halfhours
FROM t
GROUP BY trunc(tm) + trunc((tm - trunc(tm))*24*2)/24/2;
Row# SUM(NUM) HALFHOURS
1 16 09.05.2006 20:30:00
2 18 09.05.2006 21:00:00Message was edited by:
Sven Weller -
How to Get Missing Dates for Each Support Ticket In My Query?
Hello -
I'm really baffled as to how to get missing dates for each support ticket in my query. I did a search for this and found several CTE's however they only provide ways to find missing dates in a date table rather than missing dates for another column
in a table. Let me explain a bit further here -
I have a query which has a list of support tickets for the month of January. Each support ticket is supposed to be updated daily by a support rep, however that isn't happening so the business wants to know for each ticket which dates have NOT been
updated. So, for example, I might have support ticket 44BS which was updated on 2014-01-01, 2014-01-05, 2014-01-07. Each time the ticket is updated a new row is inserted into the table. I need a query which will return the missing dates per
each support ticket.
I should also add that I DO NOT have any sort of admin nor write permissions to the database...none at all. My team has tried and they won't give 'em. So proposing a function or storable solution will not work. I'm stuck with doing everything
in a query.
I'll try and provide some sample data as an example -
CREATE TABLE #Tickets
TicketNo VARCHAR(4)
,DateUpdated DATE
INSERT INTO #Tickets VALUES ('44BS', '2014-01-01')
INSERT INTO #Tickets VALUES ('44BS', '2014-01-05')
INSERT INTO #Tickets VALUES ('44BS', '2014-01-07')
INSERT INTO #Tickets VALUES ('32VT', '2014-01-03')
INSERT INTO #Tickets VALUES ('32VT', '2014-01-09')
INSERT INTO #Tickets VALUES ('32VT', '2014-01-11')
So for ticket 44BS, I need to return the missing dates between January 1st and January 5th, again between January 5th and January 7th. A set-based solution would be best.
I'm sure this is easier than i'm making it. However, after playing around for a couple of hours my head hurts and I need sleep. If anyone can help, you'd be a job-saver :)
Thanks!!CREATE TABLE #Tickets (
TicketNo VARCHAR(4)
,DateUpdated DATETIME
GO
INSERT INTO #Tickets
VALUES (
'44BS'
,'2014-01-01'
INSERT INTO #Tickets
VALUES (
'44BS'
,'2014-01-05'
INSERT INTO #Tickets
VALUES (
'44BS'
,'2014-01-07'
INSERT INTO #Tickets
VALUES (
'32VT'
,'2014-01-03'
INSERT INTO #Tickets
VALUES (
'32VT'
,'2014-01-09'
INSERT INTO #Tickets
VALUES (
'32VT'
,'2014-01-11'
GO
GO
SELECT *
FROM #Tickets
GO
GO
CREATE TABLE #tempDist (
NRow INT
,TicketNo VARCHAR(4)
,MinDate DATETIME
,MaxDate DATETIME
GO
CREATE TABLE #tempUnUserdDate (
TicketNo VARCHAR(4)
,MissDate DATETIME
GO
INSERT INTO #tempDist
SELECT Row_Number() OVER (
ORDER BY TicketNo
) AS NROw
,TicketNo
,Min(DateUpdated) AS MinDate
,MAx(DateUpdated) AS MaxDate
FROM #Tickets
GROUP BY TicketNo
SELECT *
FROM #tempDist
GO
-- Get the number of rows in the looping table
DECLARE @RowCount INT
SET @RowCount = (
SELECT COUNT(TicketNo)
FROM #tempDist
-- Declare an iterator
DECLARE @I INT
-- Initialize the iterator
SET @I = 1
-- Loop through the rows of a table @myTable
WHILE (@I <= @RowCount)
BEGIN
-- Declare variables to hold the data which we get after looping each record
DECLARE @MyDate DATETIME
DECLARE @TicketNo VARCHAR(50)
,@MinDate DATETIME
,@MaxDate DATETIME
-- Get the data from table and set to variables
SELECT @TicketNo = TicketNo
,@MinDate = MinDate
,@MaxDate = MaxDate
FROM #tempDist
WHERE NRow = @I
SET @MyDate = @MinDate
WHILE @MaxDate > @MyDate
BEGIN
IF NOT EXISTS (
SELECT *
FROM #Tickets
WHERE TicketNo = @TicketNo
AND DateUpdated = @MyDate
BEGIN
INSERT INTO #tempUnUserdDate
VALUES (
@TicketNo
,@MyDate
END
SET @MyDate = dateadd(d, 1, @MyDate)
END
SET @I = @I + 1
END
GO
SELECT *
FROM #tempUnUserdDate
GO
GO
DROP TABLE #tickets
GO
DROP TABLE #tempDist
GO
DROP TABLE #tempUnUserdDate
Thanks,
Shridhar J Joshi
<If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'> -
I'm trying to get the count for each row to total count for each month
Something like this
Hardware | Jan
Monitors | 5
Processors | 137
Printers | 57
etc........
How can I write a query for this. I can get the Hardware column but don't know how to get the next column.If you can provide more data like sample input DML statements it would have been wonderful..
Assuming is , you need a pivot. Here is an article on basic Pivot..
http://sqlsaga.com/sql-server/how-to-use-pivot-to-transform-rows-into-columns-in-sql-server/
something like this may be..
DECLARE @Input TABLE
Hardware VARCHAR(20),
[Date] VARCHAR(20)
INSERT INTO @Input VALUES('Monitor', '01/01/2014'), ('CPU', '01/01/2014'), ('Monitor', '01/03/2014')
, ('ABC', '01/01/2014'),('Monitor', '02/01/2014')
;WITH CTE AS
SELECT Hardware, LEFT(DATENAME(M, [Date]),3) AS [MonthName] FROM @Input
SELECT *
FROM
SELECT Hardware, [MonthName], COUNT(Hardware) AS Count FROM CTE GROUP BY Hardware, [MonthName]) a
PIVOT (MAX([Count]) FOR [MonthName] IN ([Jan], [Feb])) pvt
Please mark as answer, if this has helped you solve the issue.
Good Luck :) .. visit www.sqlsaga.com for more t-sql code snippets and BI related how to articles. -
Multi Mapping : How to get Message count after splitting
Hi all,
I am following below blog.
/people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi
Can any body please tell me how to get the count of messages generated after splitting in the message mapping.. I have created the message data type but not aware what is needed to be done.
Thanks and best regards,
Kulwant SinghMulti mappings r done in order to split the messages to the number of messages required by the user. So for 1:N mapping, the details about "N" is based on ur requirement. So its not like - when u split, any number of message could get created. The count would be dependent on u.
Regards,
Prateek -
How to get wage type for every time record
Hi Pros,
I am using DS 0CA_TS_IS_1, it includes report time type (0REPTT), but not have wage type. in CATSDB, I fied fields for attendance/absence type and wage type. but not every time record has wage type. can you please tell me how to get wage type for every time record? what is relation between reporting time type, attendance/absence type and wage typs?Hello,
Can you talk to your HR/T&E functional consultant if they populate these values in CATSDB table using standard way or if there are custom fields that are in CATSDB OR any other table which can be used to meed the requirements
Thanks
Abhishek Shanbhigue -
How to get file count in variable?
dear all,
how to get file count in variable?
regards
NaseerHi Nazeer ,
It wont take much time .. so simple :- )
Create one os comand step
( for unix) Use
wc -l filename.txt > someoutputfile.txt
Now the number of lines in your file will be there in the output file ( someoutputfile.txt )
Step2 :-
Now use Cezar's logic to fetch the variable value ( file count ) from the output file .. ( select value for a variable from a file )
This will not take eeven a second to finish the job.
Regards,
Rathish A M
Maybe you are looking for
-
Is there a way to do without Floppy Drive ?
Hi: To put it simple: I had to disconnect my Floppy Drive because randomly the system tried to read from it and all ended in a freezing status and a reboot.- This happened with or without a floppy in it and never asked by the user. After disconnectin
-
Idoc xml message in JMS adapter
Hi All, Question 1: My scenario is MQ series(JMS adaptr) to SAP(IDOC adptr) . In my mapping both source and target structure is same IDOC structure.Where MQ series will send IDOC xml. In such case shall i need to do content conversion at JMS adap
-
Nexus 7000 Switch Fabric Redundancy with Fab-2 ?
Hi all, I know that N7K did not have N+1 Switch Fabric redundancy. It is required to have all five SF modules to provide full throughput. Does this change with FAB-2 modules ? I mean with new modules, does N7K have N+1 SF redundancy ? Thanks in advan
-
[Edit] Never mind... should have waited just a few minutes more before posting. I solved the problem... Hi, all! I recently became a very happy person when I came into ownership of a Thinkpad T420. However, I just last night became a very unhappy per
-
Changing DATE as a Characteristic value of batch with BAPI_OBJCL_CHANGE
Hello, Could you give advice for using BAPI_OBJCL_CHANGE? I decided to use BAPI_OBJCL_CHANGE to update Batch characteristic value. I could update CHAR field but could not DATE. I set like below : - Characteristic name (e.g. Z10001) to CHARACT of AL