Wednesday, April 30, 2014

HTTP POST code works on an online compiler but not on a pc

Hmmm....on second thought, I guess this post has more to do with networking and little to do with C#. I will transfer this post to the appropriate forum.

Lookup value not getting populated...

I am using following xml code (copy.asmx > method CopyIntoItems). Per Microsoft http://ift.tt/1iKTXtR I should be able to update lookup fields value as well because Lookup list is on the same subsite and both source and target libraries are on the same sub-site as well. Any idea? Item gets copies and all the columns get populated except the lookup column. I verified that the ID and value matches for the lookup value.



<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://ift.tt/Atvu06; xmlns:soap="http://ift.tt/1hg4FE6; xmlns:m="http://ift.tt/1aeOdzg;>
<soap:Header>
</soap:Header>
<soap:Body>
<m:CopyIntoItems>
<m:SourceUrl>http://http://ift.tt/R2yGkA</m:SourceUrl>
<m:DestinationUrls>
<m:string>http://http://ift.tt/1hg4FEa</m:string>
</m:DestinationUrls>
<m:Fields>
<m:FieldInformation Type="Text" DisplayName="Sales Code" InternalName="SalesID" Value="99999"></m:FieldInformation>
<m:FieldInformation Type="Text" DisplayName="Sales Person Name" InternalName="FullName" Value="TEST, John S."></m:FieldInformation>
<m:FieldInformation Type="Choice" DisplayName="FileSection" InternalName="PersonnelFileSection" Value="1- New Hire Paperwork, ECA, Termination, LOA"></m:FieldInformation>
<m:FieldInformation Type="Choice" DisplayName="FileCategory" InternalName="PersonnelFileCategory" Value="Termination Paperwork"></m:FieldInformation>
<m:FieldInformation Type="Text" DisplayName="Year" InternalName="Record_x0020_Year" Value="2014"></m:FieldInformation>
<m:FieldInformation Type="DateTime" DisplayName="Effective Date" InternalName="Anniversary" Value="04/22/2014 00:00:00"> </m:FieldInformation>
<m:FieldInformation Type="Choice" DisplayName="Status" InternalName="Current_x0020_Status" Value="Terminated"></m:FieldInformation>
<m:FieldInformation Type="Lookup" DisplayName="AreaCode" InternalName="AreaCode" Id="cdae6ca0-d49c-4971-a580-2adcd7a282f1" Value="4;#1795004"></m:FieldInformation>
<m:FieldInformation Type="Text" DisplayName="Title" InternalName="Title" Value="TEST"></m:FieldInformation>
</m:Fields>
<m:Stream>base64Binary</m:Stream>
</m:CopyIntoItems>
</soap:Body>
</soap:Envelope>



Lookup value not getting populated...

How many values are pulled in the lookup column?


Also thourgh UI are you able to see values for the lookup column.




Please ensure that you mark a question as Answered once you receive a satisfactory response.


MDI parent and child help

HI, to say i am new to programming is an understatement, but i am clicking and trying various possibilities to get my MDIparent form to work correctly (or as i need).


So far i have managed to build the MDIparent with a ToolStrip and a few child forms. I have even managed to get the child forms to display within the parent. My problem is that i only require 1 child at any one time. If i hit the same button again it creates a new instance of the same form and if i hit another button it will open the new form.


If anyone knows how i can get a button to check and close other forms before opening the new one it would be a great help. Also preventing multiple instance of the same form would help to.


I have gone over a multitude of code examples and snippets and my brain is starting to get clogged up with info.


Please try and explain as basically as possible.


Thanks in advance



Any Simplest example of Abstraction in C#?

error in pivot statement in sqlserver

Thank you very much dear friend.it's working fine now

Traffic Data Report

Hello All


I have a question about displaying multiple Values within ONE bar (horizontal preferred).


The requirement is as followed:


We have a timeline (horizontal) which measures 24 houres.


We have data (values: 1 green,2 yellow,3 red) which correspond with the traffic load, also as horizontal bar.


Now the problem is, what diagram covers this report?


At the end the should be a horizontal bar showing from 00:00 o'click to 23;59 o'Clock, ever minute, the status of traffic load. green, yellow, or red.


As far as i have seen, there is no bar in the report server builder. am i right? and when yes, were to find such like this?


regards


Vienna