Column Value in Title
Guys,
I have a query in Which I have used a calendar date as a prompt. I can add this via a variable to the report title. This is not my problem. When I select a date it returns (in my query) the financial week it is associated with. So in my current query it (by default) returns yesterdays date and the financial week column in the table is 26. (As in financial week 26) In the table view this is colum 9. I have tried adding @9 to the title and I have also tried @{9} but neither of these works. Can you only pull back column values in narratives? Is this the only workaround available?
Many thanks,
Jim.
Hi,
I have added a narative and @9 works. For some reason when I add "Position at Close of Financial Week @9" I am getting:
Position at Close of Financial Week 26Position at Close of Financial Week 26
I'm guessing this is because my results table has 2 rows. The week is the same in both. IS there a way around this?
Thanks,
Jim.
Similar Messages
-
Hyperlink Column Value plus Title
It is possible (and if so how) to set the hyperlink column's value to something like this:
\\directorylocation\[name]
where the [name] would take the actual name of the entry? I'm trying to figure out a way to have images have default links to their higher resolution files.
ie: if the image name is image001.jpg, the above link would be
\\directorylocation\image001.jpgHi,
According to your description, you have a Hyperlink column, you want to populate a relative path of a image into it, then when clicking the column, users will be able
to redirect to the image.
If this is the case, you can achieve it by uploading the image to a Library firstly, then get the path(which contains the image name) of it in this Library through
the fly-out menu in the yellow-highlighted area:
Then copy and paste the relative path to the Hyperlink column will give you what you want.
Feel free to reply if this is not what you really want or if there any questions about the operations above.
Best regards,
Patrick
Patrick Liang
TechNet Community Support -
Column value on a title ?
Gurus,
How does one produce a report with one of the column value shown on the title ?
example:
Funding report for year - 2010 ( 2010 is a column value )
I can get a report using the wizard but am scratching my head on how to put that year up on the title. Can you help or point me to an example ? appreciate your time.
wanwaWhat is your definition of title? Looks like you want a group above report. Something like the other current thread:
title or header query -
Hi
This question is related to table component implementation.
I want to display the column values inside the small round image with different colors and value should appear in the middle.Hi,
>>1. how can i align Title(DCS Clinical Report-Technician wise) center of pdf report with image named:logo5.png immediately coming to it's right?.
2. how do i add the given below row and it's data to my top my table in pdf report from c# windows forms using itextsharp?
3.how to make my column headers in bold?<<
I’m sorry for the issue that you are hitting now.
This itextsharp is third party control, for this issue, I recommended to consult the control provider directly, I think they can give more precise troubleshooting.
http://sourceforge.net/projects/itextsharp/
Thanks for your understanding.
Regards,
Marvin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Updating a managed metadata column from choice column value
I am trying loop through
all lists in a web, and for each list,
1. create a managed metadata column->Working
2.
Pull value from choice column->Working
3. Move
choice column value to managed metadata column->Not Working
Point number 3 is not working. Please advise
Here is the code:
static void Main(string[] args)
//Pulling the rootweb of the Site
const string SPLocationListColumn = "CHECK6";
SPSite site = new SPSite("http://sp2010:8080");
SPWeb rootweb = site.RootWeb;
//Setting up the taxonomy terstore, termset and term
Microsoft.SharePoint.Taxonomy.TaxonomySession taxonomySession = new Microsoft.SharePoint.Taxonomy.TaxonomySession(site);
TermStore termStore = taxonomySession.TermStores["Managed Metadata Service"];
Console.WriteLine(termStore.Name);
Group group = termStore.Groups["KM Metatags"];
Console.WriteLine(group.Name);
TermSet termSet = group.TermSets["Document Classification"];
Guid termsetid = termSet.Id;
Console.WriteLine(termSet.Name);
Term term = termSet.Terms["Document subclassification"];
TermCollection terms = termSet.Terms;
Console.WriteLine(term.Name);//Looping through all webs of the input website
SPWebCollection collWebsite = site.AllWebs;
for (int i = 0; i < collWebsite.Count; i++)
using (SPWeb oWebsite = collWebsite[i])
//Looping through all lists in web
SPListCollection collList = oWebsite.GetListsOfType(SPBaseType.DocumentLibrary); ;
for (int j = 0; j < collList.Count; j++)
SPList list = collList[j];//if the list name is Documents, create a new field of MMS type
if (list.Title == "Documents")
Console.WriteLine(list.Title);
TaxonomyField field = list.Fields.CreateNewField("TaxonomyFieldType", SPLocationListColumn) as TaxonomyField;
field.SspId = termSet.TermStore.Id;
Console.WriteLine(termSet.TermStore.Id);
field.TermSetId = termSet.Id;
Console.WriteLine(termSet.Id);
field.AnchorId = Guid.Empty;
try
{//Add the newly added MMS field to default view
Console.WriteLine("Entering");
Console.WriteLine("Entering");
list.Fields.Add(field);
Console.WriteLine("Entering");
Console.WriteLine("Entering1");
SPView view = list.DefaultView;
Console.WriteLine("Entering2");
list.Update();
SPViewFieldCollection collViewFields = view.ViewFields;
collViewFields.Add("CHECK6");
Console.WriteLine("Entering3");
view.Update();
Console.WriteLine("Entering4");
catch (Exception e1)
Console.WriteLine(e1.Message);
}//Capture a choice field by name subclass and move it to the newly added MMS field
for (int f = 1; f < list.ItemCount; f++)
if (list.Title == "Documents")
Console.WriteLine(list.Title);
SPListItem item = list.Items[f];
if (item.Fields.ContainsField("subclass"))
SPField field9 = item.Fields["subclass"];
String subclassvalue = field9.GetFieldValueAsText(item["subclass"]);
Console.WriteLine(subclassvalue);
TaxonomyField taxonomyField = item.Fields["CHECK6"] as TaxonomyField;
TaxonomyFieldValue taxonomyFieldValue = new TaxonomyFieldValue(taxonomyField);
taxonomyFieldValue.TermGuid = term.Id.ToString();
taxonomyFieldValue.Label = subclassvalue;
taxonomyField.Update();
item.Update();
list.Update();From here:
http://www.c-sharpcorner.com/uploadfile/anavijai/programmatically-set-value-to-the-taxonomy-field-in-sharepoint-2010/
taxonomyFieldValue.TermGuid = term.Id.ToString();
taxonomyFieldValue.Label = term.Name;
SPListItem item = list.Items.Add();
# item["Title"] ="Sample";
item["TaxonomyField"] = taxonomyFieldValue;
item.Update();
list.Update();
it appears you're missing the point where you assign that taxonomyFieldValue to the item's taxonomy field in question. -
Update tabular report column value using AJAX
Hi,
I'm developing an online store application whereby I would like the user to be able browse a list of products (tabluar report), enter an order quantity against a product and click a 'Buy' button (column link). This should then update a collection with the selected product id and order quantity. However, I'm struggling with how to update the order qty column value.
See http://apex.oracle.com/pls/otn/f?p=33248:1 for an example
The report displays the products from demo_product_info table. I have an additional column in the report SQL for the order quantity (set to '1').
I'm using a column link on the product_id column that sets
P1_TEMP_PRODUCT_ID = #PRODUCT_ID#
P1_TEMP_QTY = #QTY_ORDERED#
then re-renders the page.
I have a page rendering process that takes the values from the temp items and updates a collection.
When the user changes the order quantity, how do I update session state so the new value is picked up by the column link?
Thanks,
Andrew.To update session state you might check out this article titled, "ApEx: Setting session state from within a PL/SQL Package/Procedure/Function" at http://atulley.wordpress.com/2007/05/17/apex-setting-session-state-from-within-a-plsql-packageprocedurefunction/
It says:
The answer lies in the set_sesssion_state procedure found in the APEX_UTIL package. E.g.
APEX_UTIL.set_session_state(
p_name => ‘PX_MY_ITEM’
, p_value => ‘wibble’);
Now, I have a question for you. Once you set the value of the column in session state, how will you make that value be put in the database?
Thanks, Maggie -
Find hidden column value in a dynamacally bind html table with Sharepoint list - Javascript
I have following code. Now I want to get the hidden column value based on user selected row. I also want to highlight the entire row, not only the e.target.
Can someone please help me.
function getTermdetailsQuerySuccsess(sender, args) {
var listEnumerator = Termsitems.getEnumerator();
var datatable = document.getElementById("TermList");
while (listEnumerator.moveNext()) {
var oListItem = listEnumerator.get_current();
//var firstName = listEnumerator.get_current().get_item('Title');
//var secondName = listEnumerator.get_current().get_item('LastName');
var termID = listEnumerator.get_current().get_item('ID');
var startdate = listEnumerator.get_current().get_item('startdate');
var enddate = listEnumerator.get_current().get_item('Enddate');
var termtype = listEnumerator.get_current().get_item('TermType');
var Hours = listEnumerator.get_current().get_item('Hours');
var EdNone = listEnumerator.get_current().get_item('EdNoned');
var Specialty = listEnumerator.get_current().get_item('Specialty');
var Subspecialty = listEnumerator.get_current().get_item('Subspecialty');
var Hospital = listEnumerator.get_current().get_item('Hospital');
var DEMT = listEnumerator.get_current().get_item('DEMT');
var Supervisor = listEnumerator.get_current().get_item('Supervisor');
rowcount = rowcount + 1;
$("#TermList").append("<tr style='border-bottom:1px silver solid' align='middle' class='gradeA'>" +
"<td align='left' style='display:none'>" + termID + "</td>" +
"<td align='left'>" + startdate + "</td>" +
"<td align='left'>" + enddate + "</td>" +
"<td align='left'>" + termtype + "</td>" +
"<td align='left'>" + Hours + "</td>" +
"<td align='left'>" + EdNone + "</td>" +
"<td align='left'>" + Specialty + "</td>" +
"<td align='left'>" + Subspecialty + "</td>" +
"<td align='left'>" + Hospital + "</td>" +
"<td align='left'>" + DEMT + "</td>" +
"<td align='left'>" + Supervisor + "</td>" +
"</tr>");
$('#TermList').click(function (e) {
var tr = $(e.target).parent().index() ;
alert(tr);
alert($(e.target).text()); // using jQuery
// var Cells = tr.e.getElementsByTagName("td");
$(e.target).addClass('row-highlight');
var confirmationM = confirm("Do you want to edit this term deatils ?");
if (confirmationM == true) {
confirmation = "You pressed OK!";
else {
confirmation = "You pressed Cancel!";
$(e.target).removeClass('row-highlight');
$('#TermList').click(function (e) {
var tr = $(e.target).parent().index() ;
alert(tr);
alert($(e.target).text()); // using jQuery
// var Cells = tr.e.getElementsByTagName("td");
$(e.target).addClass('row-highlight');
var table = $("#TermList")[0];
var cell = table.rows[tr].cells[1];
alert(cell);
var confirmationM = confirm("Do you want to edit this term deatils ?");
if (confirmationM == true) {
confirmation = "You pressed OK!";
else {
confirmation = "You pressed Cancel!";
$(e.target).removeClass('row-highlight');
d.n weerasingheHi,
According to your post, my understanding is that you want to customize a table to display the list items.
We can write CSS to customize the table style(background color, highlight, hover).
The following is an example for your reference:
Code:
<style>
#TermList table {
border-collapse: collapse;
margin-bottom: 2em;
width: 100%;
background: #fff;
#TermList td, th {
padding: 0.75em 1.5em;
text-align: left;
#TermList th {
background-color: #31bc86;
font-weight: bold;
color: #fff;
white-space: nowrap;
#TermList tbody tr:nth-child(2n-1) {
background-color: #f5f5f5;
transition: all .125s ease-in-out;
#TermList tbody tr:hover {
background-color: rgba(129,208,177,.3);
#TermList .HiddenColumn {
display:none;
</style>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
ExecuteOrDelayUntilScriptLoaded(getAllListItems, "sp.js");
$("#TermList tbody").click(function(e){
//get hidden column value
var hiddenColumn=$(e.target).parent().find(".HiddenColumn").text();
alert(hiddenColumn);
function getAllListItems(){
var listName="CustomList01";
var context = new SP.ClientContext.get_current();
var web = context.get_web();
var list = web.get_lists().getByTitle(listName);
var query = SP.CamlQuery.createAllItemsQuery();
allItems = list.getItems(query);
context.load(allItems);
context.executeQueryAsync(Function.createDelegate(this, this.getSuccess), Function.createDelegate(this, this.failed));
function getSuccess() {
var ListEnumerator = this.allItems.getEnumerator();
while (ListEnumerator.moveNext()) {
var currentItem = ListEnumerator.get_current();
var itemID=currentItem.get_item("ID");
var name=currentItem.get_item("Title");
var email=currentItem.get_item("Email");
$("#TermList tbody").append('<tr><td class="HiddenColumn">'+itemID+'</td><td>'+name+'</td><td>'+email+'</td></tr>');
function failed(sender, args) {
alert("failed. Message:" + args.get_message());
</script>
<table id="TermList">
<thead>
<tr>
<th>Name</th>
<th>Email</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
Result:
Best Regards
Dennis Guo
TechNet Community Support -
I want to change 'Modified By' column value of a file that is being uploaded using Client Object Model in SharePoint 2013. The problem is that the version of the file is changing. Kindly help me. The code that I am using is:
using (System.IO.Stream fileStream = System.IO.File.OpenRead(m_strFilePath))
Microsoft.SharePoint.Client.File.SaveBinaryDirect(m_clientContext, str_URLOfFile, fileStream, true);
Microsoft.SharePoint.Client.File fileUploaded = m_List.RootFolder.Files.GetByUrl(str_URLOfFile);
m_clientContext.Load(fileUploaded);
m_clientContext.ExecuteQuery();
User user1 = m_Web.EnsureUser("User1");
User user2 = m_Web.EnsureUser("User2");
ListItem item = fileUploaded.ListItemAllFields;
fileUploaded.CheckOut();
item["UserDefinedColumn"] = "UserDefinedValue1";
item["Title"] = "UserDefinedValue2";
item["Editor"] = user1;
item["Author"] = user2;
item.Update();
fileUploaded.CheckIn(string.Empty, CheckinType.OverwriteCheckIn);
m_clientContext.ExecuteQuery();Hi talib2608,
Chris is correct for this issue, when calling update using ListItem.update method, it will increase item versions, using SystemUpdate and UpdateOverwriteVersion will update the list item overwrite version.
these two methods are not available in CSOM/REST, only server object model is available for this.
Thanks,
Qiao Wei
TechNet Community Support -
I've found an error in the italian translation file f4000_it.sql. At the 1137413th row is needed a point after *&SESSION.* in fact the original version is:
c1:=c1||'<a href="javascript:popUp2(''f?p=4000:411:&SESSION::::P411_CALLING_FIELD:#CURRENT_ITEM_NAME#'',320,400);" tabindex="999" title="Scegli colonna" class="itemlink">[Insert column value]</a>';
I've modified in:
c1:=c1||'<a href="javascript:popUp2(''f?p=4000:411:&SESSION.::::P411_CALLING_FIELD:#CURRENT_ITEM_NAME#'',320,400);" tabindex="999" title="Scegli colonna" class="itemlink">[Insert column value]</a>';
Now I can show in Column Formatting correctly when I search fields in Insert column valueHi,
Thank you for bringing this issue to our attention. Bug 9888444 has been logged to track this issue. Please note that this issue impacts users running in French, Italian, Japanese and Korean. When you edit a Classic Report column in the Application Builder, the Column Formatting region holds an item "HTML Expression" with an associated shortcut [Insert column value]. When running in French, Italian, Japanese or Korean, when the user clicks on the shortcut link, the popup displays an error "Bad Request". The popup works for all other languages.
We do not recommend that users modify the APEX internal application files. Instead, you can workaround this issue by directly entering column values into the "HTML Expression" text area in the Column Formatting region on the Column Attributes page, similar to the following:
*#EMPNO#*
where EMPNO is a column on your report.
Regards,
Hilary -
On deleting an item, "Name" column of recycle bin is updating with data in one of the custom column instead of title field in SP 2013 Custom list.
Thanks, ChinnuHi,
According to your post, my understanding is that you want to update title field in recycle bin with other field value of the item.
We can use the ItemDeleting Event Receiver to achieve it.
While item is deleting, replace title field value with other field value using ItemDeleting event receiver, then in the recycle bin, the title value will replace with other field value.
However, there is an issue while restore the item from the recycle bin, the item title would be replaced.
As an workaround, we can create a helper field in the list to store the title field value while deleting, then replace back while restoring using
ItemAdded Event Receiver.
I have made a simple code demo below to achieve this scenario, it works like a charm(the
Test2 field is the helper field, you can hide it in the list), you can refer to it.
public override void ItemDeleting(SPItemEventProperties properties)
properties.ListItem["Test2"]=properties.ListItem["Title"];
properties.ListItem["Title"]=properties.ListItem["Test1"];
properties.ListItem.Update();
base.ItemDeleting(properties);
/// <summary>
/// An item was added.
/// </summary>
public override void ItemAdded(SPItemEventProperties properties)
base.ItemAdded(properties);
properties.ListItem["Title"] = properties.ListItem["Test2"];
properties.ListItem.Update();
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
Infopath display lookup column value
Hi
I have a Infopath 2010 form with which displays an employee record. Some of the columns are lookup from a sharepoint list.
How can I display the value of the lookup column instead of Id in the form.
The form has the main connection and the secondary connection for the lookup sharepoint lists.
The sharepoint lookup column is set to "Title" in additional column settings. Add a column to show each of the additional fields are all unchecked.
I searched google, but couldnt find an answer.
I tried to do the way described in http://sharepointsolutions.com/sharepoint-help/blog/2011/11/get-infopath-to-display-lookup-column-value-not-id/
But get error , since it works for repeated table.
Any Ideas?
Thanks
VenkyHi Venky,
How did you create your look up column? Which column type is the column which your look up column looks for?
By my test, it is default behavior that the InfoPath form display the value of the lookup column.
Thanks,
Eric
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]
Eric Tao
TechNet Community Support -
Get column values from list of values programmatically
hi all
how i get column values from list of values programmatically in the
returnPopupDataListener methodIf this answers your question , please close this thread by marking it as answered.
Thanks -
SSRS - Expression to color column value dynamically in Matrix
Hi ,
I have a matrix which looks like :
The <<Expr>> value can be 1 /0 /"-" .
The Expr value is being calculated dynamically.
The data set query I am using has a column called due_days.
In the color expression of the <<Exp>> box I am using the expression as :
=IIf(Fields!Due_Days.Value>14 and Fields!Notes_Count.Value>0,"Blue",(Iif(Sum(Fields!Notes_Count.Value)=0 ,"Red","Black")))
My requirement is if the Due_Days column value is >14 then I need to highlight the value as blue else black and if value is 0 then red. When I use the above query it is just highlighting the color blue for 1st column only. Eg: 4th row . Due days for month
of Oct and Nov is > 14 but it shows blue only for month of oct.
How can i resolve the issue?In select query i have 5 columns:
Due days(Which is difference between 2 dates) ,
Notes count (Which is just a count of notes entered or not having value 0/1 and value '-' if another column CRD is greater than the matrix month and year.)Eg: below date 11/12/2014 is greater than Oct 2014 hence Oct 2014 should have "-"
Month Name , Year , Month Nbr (last 6 months which I cross joined with the table to get counts for each month)
The matrix has year and last 6 month as column groups
Color coding should be if notes count is 0 then red ,if notes count is 1 and due_days> 14 then blue else black . When i try to use expression for color as i mentioned above, it colors only 1st colum.eg: 2nd row
Nov 2014 is blue but for jan 2014 also it should show blue as due days>14 .
Is there any way i can do that ??
Eg: data set returns value as :
Due Days CRD Month
Month_Nbr Year Notes _Count
5 2014-11-28 00:00:00.000 December 12 2014
0
5 2014-11-28 00:00:00.000 February 2 2015
0
5 2014-11-28 00:00:00.000 January 1 2015
0
5 2014-11-28 00:00:00.000 November 11 2014 1
5 2014-11-28 00:00:00.000 October 10 2014 0
5 2014-11-28 00:00:00.000 September 9 2014 0
Matrix is of the form :
YEAR
MONTH
CRD Notes_count -
How To Concatenate Column Values from Multiple Rows into a Single Column?
How do I create a SQL query that will concatenate column values from multiple rows into a single column?
Last First Code
Lesand Danny 1
Lesand Danny 2
Lesand Danny 3
Benedi Eric 7
Benedi Eric 14
Result should look like:
Last First Codes
Lesand Danny 1,2,3
Benedi Eric 7,14
Thanks,
David JohnsonStarting with Oracle 9i
select last, first, substr(max(sys_connect_by_path(code,',')),2) codes
from
(select last, first, code, row_number() over(partition by last, first order by code) rn
from a)
connect by last = prior last and first = prior first and prior rn = rn -1
start with rn = 1
group by last, first
LAST FIRST CODES
Lesand Danny 1,2,3
Benedi Eric 7,14Regards
Dmytro -
How to tell if column value has changed for use in workflow actions
Hello,
I am using Sharepoint 2010 and for one of my Lists, I am using a general list workflow. What I need to be able to do is determine if a column value has change (say an "Assigned To" field) because I only want to take some action if that particular
value has changed. I want to be able to have a workflow action that would be something like:
If Current Item: Assigned To not equals [OLD VALUE]
I have found some web searches that talk about creating a duplicate list or duplicate (but hidden) column but that doesn't seem to be the way to go. I have document versioning set but don't if that can be used to help with this. One possible
thought (although I haven't tried it to see if it works) is to create local variables and have the values in the variables be the "old value". Just not sure if there is a best practices for doing this.
Thanks for any thoughts - PeterHelen,
Not sure I fully understand your goal. We don't use "tasks" at all but if you are looking to have your workflow check certain valus and be able to send email messages to people based on whatever, then you can certainly do that (as long as your Sharepoint
has the email setup. We do this for alot of workflow tasks.
So, in the workflow you can have a blanket statement like what I previously listed:
if Current Item:hiddenStatus not equals Current Item:Status
.... do something
or you can do something like:
if Current Item:hiddenStatus equals "In-Progress"
.... do something
Else if Current Item:hiddenStatus equals "Completed"
.... do something
or combine the two and do nested "if" statements. Then you add an email statement wherever you need it like:
if Current Item:hiddenStatus equals "Completed"
then email "these users"
To add the email part, just type in "email" on the line where you want to add a statment. There is only one option to choose from. That will display the line "then email these users". The "these users" will be a link. When you
click it you will get a popup to add the email info. We typically will send the email to a user (or users) that are already listed in one of the PeoplePicker fields. On the email form, you can type in your own text, designate that a value is based
on a column value (like our PeoplePicker), designate that a value is based on a workflow variable, add a link to the current item, etc. To get to these options you will click the button to the right of the fields or use the "Add or Change Lookup" button
in the bottom-left for the text area. There is alot you can set in the mail.
Does this help answer your question?
- Peter
Maybe you are looking for
-
Recently my iMac has started to have problems with videos because it never used to buffer but now all it does is take it's time buffering videos, does anyone know how to fix this problem?
-
Wait event "virtual circuit wait" in wait class "Network" was consuming sig
Hello, We are facing this problem when there are 2 queries try to run at the same time. The first query takes longer to finish so 2nd has to wait for 1st to be finished and then only 2nd starts. It seems the jam is at netowork instead of server. I wa
-
Assertion Error when an action is invoked
We have a form which has multiple input fields as well as some dropdowns. Example Dropdown 1, Dropdown 2 When you click the value in Dropdown 1, based on it Dropdown 2 is dynamically populated. It was working fine for us previously. Somehow now when
-
Private static SearchTree empty = empty();
hi i have a problem understanding why modifying a particular line of code from its original form to another form does not compile. Original Statement: private static SearchTree empty = empty(); The way I Modified it to: private static SearchTree empt
-
I have been trying to export a iPhoto slide show to my Apple TV or any form of export. But I keep on getting and error message as \OSStatus error -9459. Please can anyone help