How to create a calculated column in sharepoint
I created the custom list in share point. In that list i renamed the title as
Name.
I created the WindowsID as person or group column in share point list.
In the same list, I want to create a new calculated column as EmpName as hyperlink with the below formula
="<a href='"&WindowsID &"'>"&Name&"</a>"
But I am unable to create a new column by using above formula.
Could you please let me know what i missed in the above formula.
Please note that i am unable to see the WindowsID in the insert column.
Thanks for ur support.
Hello
Sorry for the delay replay.
Based on your guidance,i followed the below steps
1.created the loginname column of type person or group
2.Added the contentquery webpart
3.crated the custom xslt template
4.Please find the below template
<xsl:template name="ListingItem" match="Row[@Style='ListingItem']" mode="itemstyle">
<xsl:variable name="DisplayTitle">
<xsl:call-template name="OuterTemplate.GetTitle">
<xsl:with-param name="Title" select="@Title"/>
<xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="LoginID">
<xsl:value-of select="ddwrt:UserLookup(string(@DomainID) ,'User')" />
</xsl:variable>
<div id="membersdiv" class="members">
<!-- <xsl:value-of select="$LoginID" disable-output-escaping="yes"/>-->
<xsl:if test="$LoginID != ''">
<a href="{$LoginID}">
<xsl:value-of select="@Title" disable-output-escaping="yes"/>
</a>
</script>
</xsl:if>
</div>
</xsl:template>
if user is having the login id then i need display the title.on click of that title i need to redirect to user settings page like http://url/_layouts/15/userdisp.aspx?ID=1 .How can i redirect to
the sharepoint personal settings page based on person click
Similar Messages
-
How to create new calculated column based on filtered columns?
Dear All,
I'm using Oracle Analysis.
I have two column, each one have different formula.
My Formula based on filter.
Column1
FILTER("DW"."SUM_PLAN_MONTH_AMOUNT" USING ("DW"."PLAN_YEAR" BETWEEN YEAR(DATE'@{P_BEGIN_DATE}') and YEAR(DATE'@{P_END_DATE}')))Column2
FILTER("PAYMENTS"."SUM_PAY_AMOUNT" / 1000 USING ("PAYMENTS"."PAY_DATE_PAID" BETWEEN DATE'@{P_BEGIN_DATE}' AND DATE'@{P_END_DATE}'))How to add new calculated column based on those two column?
For example:
Column1 | Column2 | NewColumn
5 | 10 | 10 / 5 * 100
7 | 12 | 12 / 7 * 100
Regards,
Eba
Edited by: Erdenebayar on Apr 19, 2012 1:42 PM
Edited by: Erdenebayar on Apr 19, 2012 3:37 PMHello MK,
I have a tried following formula. It is working, but result is not filtered.
I filtered "PAYMENTS"."SUM_PAY_AMOUNT" and "DW"."SUM_PLAN_MONTH_AMOUNT" columns.
"PAYMENTS"."SUM_PAY_AMOUNT" / "DW"."SUM_PLAN_MONTH_AMOUNT" * 100Can you share me some tutorial?
BR,
Eba
Edited by: Erdenebayar on Apr 19, 2012 3:43 PM
Edited by: Erdenebayar on Apr 19, 2012 3:43 PM
Edited by: Erdenebayar on Apr 19, 2012 3:43 PM -
How to write the expression when create the calculated column?
Dear,
I want to create some calculated column in my attribute view, but I don't know how to write the code in the expression, is there any introduction about this part, how to use those function and how about the grammar in this expression code ? or is there any example about this calculated column?
Thanks for your sincerely answer.Hi Zongjie,
you can find some information about the creation of calculated columns in the HANA Modeling Guide (http://help.sap.com/hana/SAP_HANA_Modeling_Guide_for_SAP_HANA_Studio_en.pdf).
Within chapter 6.2.1 (Create Analytic Views) you can see under point 7 some basics and also a simple example. The same is also valid for Calculation Views.
Chapter 8.9 (Using Functions in Expressions) describes the different available functions.
You also can use the integrated search in the HANA Studio by clicking the "?" button in the button left corner. Then you get some links in the side panel with related information.
In general you can write your expression manually or you can just drag and drop the functions, elements, operators into the editor window. For example if you drag and drop the "if" function into the editor window you get "if(intarg,arg2,arg3)" inserted. The arguments can be replaced manually or also by drag and drop.
It is also worse to use the "Validate Syntax" button on top of the editor window. It gives you directly a feedback if your expression syntax is correct. If not you get some helpful information about the problem (ok, sometimes it is a little bit confusing because of the cryptic error message format ).
Best Regards,
Florian -
Problem when creating a calculated column "Item has already been added"
Hi,
I built an a set of lists and custom content types which are made available under http://moss/callcenter. When I want to create a new calculated column for one of my custom content types i get the following error
Item has already been added. Key in
dictionary: 'Strasse_Strasse' Key being added: 'Straße_Straße'
This is rather strange as I don't even get as far as creating that new column. The error occurs right when I select the type calculated column, even before I enter a name for the new column. How ever, when I want to create a calculated column in root site collection (http://moss/) this error does not occur and I can create the new column.
Any ideas anyone?
Thank you,
Christophhi,
you can try below thing
http://blogs.msdn.com/b/timquin/archive/2009/02/11/sharepoint-item-has-already-been-added-key-in-dictionary-484-key-being-added-484.aspx
Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer -
How to Create a new column from two different result sets
How to Create a new column from two different result sets, both the result set uses the different date dimensions.
i got solutions for this is apply filters in column formula it self, based on the requirement.
-
How to create a public view for sharepoint list A and deploy this view to specific user personal view? Is that possible OOTB?
Views cannot be exported or moved. Can you elaborate your requirement?
--Cheers -
Hi,
The requirement is to create ""Document Sets in Bulk" using JSOM. I am using the following posts:-
http://blogs.msdn.com/b/mittals/archive/2013/04/03/how-to-create-a-document-set-in-sharepoint-2013-using-javascript-client-side-object-model-jsom.aspx
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/1904cddb-850c-4425-8205-998bfaad07d7/create-document-set-using-ecma-script
But, when I am executing the code, I am getting error "Cannot read property 'DocumentSet' of undefined "..Please find
below my code. I am using Content editor web part and attached my JS file with that :-
<div>
<label>Enter the DocumentSet Name <input type="text" id="txtGetDocumentSetName" name="DocumentSetname"/> </label> </br>
<input type="button" id="btncreate" name="bcreateDocumentSet" value="Create Document Set" onclick="javascript:CreateDocumentSet()"/>
</div>
<script type="text/javascript" src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js"> </script>
<script type="text/javascript">
SP.SOD.executeFunc('sp.js','SP.ClientContext','SP.DocumentSet','SP.DocumentManagement.js',CreateDocumentSet);
// This function is called on click of the “Create Document Set” button.
var ctx;
var parentFolder;
var newDocSetName;
var docsetContentType;
function CreateDocumentSet() {
alert("In ClientContext");
var ctx = SP.ClientContext.get_current();
newDocSetName = $('#txtGetDocumentSetName').val();
var docSetContentTypeID = "0x0120D520";
alert("docSetContentTypeID:=" + docSetContentTypeID);
var web = ctx.get_web();
var list = web.get_lists().getByTitle('Current Documents');
ctx.load(list);
alert("List Loaded !!");
parentFolder = list.get_rootFolder();
ctx.load(parentFolder);
docsetContentType = web.get_contentTypes().getById(docSetContentTypeID);
ctx.load(docsetContentType);
alert("docsetContentType Loaded !!");
ctx.executeQueryAsync(onRequestSuccess, onRequestFail);
function onRequestSuccess() {
alert("In Success");
SP.DocumentSet.DocumentSet.create(ctx, parentFolder, newDocSetName, docsetContentType.get_id());
alert('Document Set creation successful');
// This function runs if the executeQueryAsync call fails.
function onRequestFail(sender, args) {
alert("Document Set creation failed" + + args.get_message());
Please help !!
Vipul JainHello,
I have already tried your solution, however in that case I get the error - "UncaughtSys.ArgumentNullException: Sys.ArgumentNullException:
Value cannot be null.Parameter name: context"...
Also, I tried removing SP.SOD.executeFunc
from my code, but no success :(
Kindly suggest !!!
Vipul Jain -
How to create Implicit Fact column ?and how to use it ?
Hi all,
How to create Implicit Fact column ?
and how to use it ?
Thanks in advanceWhen you create a request with only dimension columns, the Oracle BI engine has to choose a fact table to join the dimensions to each other. If you have multiple fact tables in your BMM layer, the Oracle BI engine will use the most economical fact table, depending on the number of dimensions of the fact table.
In some cases you do not want to use this fact table, but you want to force the Oracle BI engine to use the fact table you want.
In that case you should create a fact (or select an existing fact) of the fact table you want to use for the dimension only query. In the presentation catalog of the subject area you should select this fact as the implicit fact. This fact will always be used in the query, but it won't be visible in your report. An example of an implicit fact is the count of the primary key (id) of the fact table. -
How to create a calculated field
Hi. I'd like to know how to create a calculated field for a master- detail form. For example: having two db fields price and quantity, i created a the total item (price * quantity) as pl/sql function like this:
begin
:p13_item_total := :p13_price * :p13_quantity;
end;
However, the item is not calculated. It is not and instant calculation. I mean if i modify either price or quantity, how to recalculate item total immediatelyYou must submit the page to do it with PL/SQL. If you do not want to submit the page, you must do it with JavaScript.
Thanks,
Tyler -
How to create external content type in sharepoint for salesforce account
Can anybody help me on How to create external content type in sharepoint for salesforce account.
I wanto upload documents to a document library which should sync with accounts in saleforce.
thanks in advanceHi,
The following materials would be helpful:
Tutorial: Access Salesforce Leads in SharePoint through an External List
http://geekswithblogs.net/dataintegration/archive/2014/02/03/tutorial-access-salesforce-leads-in-sharepoint-through-an-external-list.aspx
Salesforce SharePoint Integration – Best Practices
http://rainforce.walkme.com/salesforce-sharepoint-integration-best-practices/#.VFxra3mKAeE
If you want to upload documents to SharePoint document library from the Saleforce, we can also customize your own web service using SharePont .Net Client Object Model or REST to achieve it.
Best Regards
Dennis Guo
TechNet Community Support -
How to create / edit a website using SharePoint Designer 2013
How to EDIT a website created by Frontpage using SharePoint Designer 2013 ?
How to CREATE a new website using SharePoint Designer 2013 ?You can edit any sharepoint site using designer not any other site.
To create a new website using designer follow below:
To create a new site, click the File tab, choose Sites, and perform one of the following:
Click New Blank Web Site to create a blank, empty SharePoint site.
Click Add Subsite to My Site to create a new site under your My Site.
Under Site Templates select a template to create a new site based on a SharePoint template.
http://office.microsoft.com/en-in/sharepoint-designer-help/get-started-with-sharepoint-designer-2010-HA010370548.aspx#BMopensites -
Im new to Sharepoint.
I need to know , how to fetch the x1 , x2 values from one form to another form x1, x2 fields, this wants to happen when 2 forms ID fields(Drop down field) are same.
ex:
first module I have 3 fields like, "Marketing ID" , "Company name" , "Vendor name".
second module I have the same related fields like "Marketing ID" , "Company name" , "Vendor name" and some more fields.
now i need to fetch the information from 1st module to 2nd module ( "Company name" , "Vendor name" ) when I select the Marketing Id(Drop down - field)
it should be want to show in Calculated columns.
Can someone make a suggestion on how I can do this.
Thank you so much for any help you may be able to provide.
Sincerely
Ahalya BabuCalculated Columns can only generate a value from fields of the current item. And only some types of fields (for example, it can't use a lookup column).
Consider using a workflow to accomplish your goal.
Scott Brickey
MCTS, MCPD, MCITP
www.sbrickey.com
Strategic Data Systems - for all your SharePoint needs -
How to create a quarterly view in SharePoint 2013
How do you create a 3 month view in SharePoint 2013, preferably without adding code?
Hi
you can create two additional calculated column to do.
http://blog.pentalogic.net/2009/11/howto-filter-items-current-calendar-month-view-sharepoint/
http://iwillsharemypoint.blogspot.in/2012/03/sharepoint-list-view-of-current-month.html
Rajendra Singh
Walking on water and developing software from a specification are easy if both are frozen
If a post answers your question, please click Mark As Answer on that post and Vote as Helpful -
How to create a monthly newsletter on SharePoint WCMS 2010
Hi
We are using SharePoint Web Content Management System 2010 for our public facing website. We want to introduce monthly newsletter to our customers. In each newsletter we will have 6/8 articles, and we want each article will have unique URL. Is there
any module or 3rd party plugin available for creating monthly newsletter with monthly archive?
Thanks in advance for anticipating a solution.
TariqHi Tariq,
For creating a monthly newsletter on SharePoint 2010, you can consider using Timer Job to send e-mails monthly. Here are some tips:
1.Create a list "Articles" to store your articles and add a Bool column to verify whether this article has sent to subscribers in newsletter, and add other columns you require for your newsletter (Article URL etc).
2.Create a list with the fields that you require for people who signed up for the newsletter (Name, E-mail address etc). Let's say we call it "Newsletter subscribers".
You can have a look at the blogs:
http://www.codeproject.com/Articles/403323/SharePoint-Create-Custom-Timer-Jobs
http://blogs.msdn.com/b/guruketepalli/archive/2012/01/23/sharepoint-2010-custom-timer-job-send-an-email.aspx
Reference:
https://social.technet.microsoft.com/Forums/en-US/bd604c63-3313-420d-b1cf-be01ce607dee/how-to-create-newsletters-with-sharepoint-2013?forum=sharepointdevelopment
Best Regards,
Eric
Eric Tao
TechNet Community Support -
How to create Ticket Booking Functionality in SharePoint 2013 App?
We have created a Ticket Booking site in Asp.Net.
In that in Ticket Booking page user can book the ticket and the booked seats will be stored in the database. If there are any booked seats it will be disabled for the user and from other user can book tickets.
Took reference from this site:
http://techbrij.com/online-ticket-booking-system-asp-net-sql-server
Now I want to do same functionality using SharePoint 2013 App Part with SharePoint Hosted App.
I don't know how to start
Anybody having Idea.
Thanks in Advance.Hi,
According to your post, my understanding is that you want to create a Ticket Booking solution as SharePoint Hosted App.
To build the similar solution in SharePoint, I would suggest you take a look at the links below about how to create ShrePoint Hosted App for a quick start:
Create Host App:
How to: Create a basic SharePoint-hosted app
Create App Part:
How to: Create app parts to install with your app for SharePoint
Then for the data storage, here is a documentation will provide more information:
App data storage:
Data storage options in apps for SharePoint
For the responsive UI, HTML plus JavaScript would be OK.
Feel free to reply if there are still any questions.
Best Regards,
Linda Li
Linda Li
TechNet Community Support
Maybe you are looking for
-
Laserjet 1020 install on windows 7 machine
I am trying to install a laserjet 1020 on a windows home machine. i get a message saying waiting for PnP to finish installing driver. This is where it hangs. thanks
-
If the iPad is slowly loosing space (not much) is there away of getting it back?
-
LiveCycle form error in Acrobat 8 "Invalid enumerated value: postSubmit"
I created a form in LiveCycle ES that has a submit button by email. When this form is opened in Acrobat 9, no error messages pop up. When it is opened in Acrobat 8 the error message pops up "Invalid enumerated value: postSubmit". I have seen other d
-
Does somebody has working example how retrieve ALL message ids from queue
hello, i'm having problems retrievieng all message id's from queue using APPQ_MIB. Point is that i can't get cursor variable work. Somebody possibly has working example or knows how it is done in qmadmin? I'm using Tuxedo 8.0.
-
Premiere Pro CC Problem With PNG MOV Quicktime Format
A While Back, i posted a problem with Premiere Pro CC that it would not open MOV with a PNG Type Format. the Error was always "There is No video or Audio Stream". Frustrated, i reverted back to Premiere Pro CS6 in which the files opened fine. i had F