| iif expression...need to add another condition... |
|
 |
Index ‹ Information Technology ‹ SVCS
|
- Previous
- 1
- Crm >> Picklists in CRM 3.0Hey guys,
Im having a lot of issues with Picklists in CRM 3.0 and was wondering
if anybody could help me out.
I have a C# app that is populating a bunch of accounts into CRM 3.0.
In my c# app i have a dataview and am looping through the dataview
items and generating accounts in CRM using CRM's WebServices.
(example code)
.....begin loop.....
account theAccount= new account();
theAccount.name =
dvTheCompanies[x].Row[1].ToString();
theAccount.new_firstname =
dvTheCompanies[x].Row[2].ToString();
theAccount.new_lastname =
dvTheCompanies[x].Row[3].ToString();
theAccount.new_jobtitle =
dvTheCompanies[x].Row[4].ToString();
theAccount.new_tsgteamassignment.name =
dvTheCompanies[x].Row[5].ToString(); //this fails here
Guid theAccountID = crmService.Create(theAccount);
....end loop....
debugging through my code everything works fine except the picklist,
which errors out with "Object reference not set to an instance of an
object."
so i tried theAccount.new_tsgteamassignment.Value = 2 but i get the
same error. My question is how do i create an account enitity in CRM
3.0 and populate the picklists inside that enitity?
Thanks for your help!
- 2
- SBS >> Security and open portsHi all, I just rebuilt my SBS 2003 box. I've got two NICs, one to the
external network, one to the internal. I've enabled the firewall,
unchecked all boxes except for VPN. I just ran GFI LanGuard NSS 7, and
it shows these open ports.
25 [Description: SMTP => Simple Mail transfer Protocol / Service: SMTP
(Simple Mail Transfer Protocol)]
42 [Description: NameServer => WINS Host Name Server / Service:
Unknown]
53 [Description: Domain => Domain Name Server / Service: Unknown]
80 [Description: HTTP => World Wide Web, HTTP / Service: HTTP (Hyper
Text Transfer Protocol)]
119 [Description: News / Service: NNTP (Network News Transport
Protocol)]
200 NNTP Service 6.0.3790.1830 Version: 6.0.3790.1830 Posting Allowed
135 [Description: epmap => DCE endpoint resolution / Service: Unknown]
139 [Description: Netbios-ssn => NETBIOS Session Service / Service:
Unknown]
389 [Description: LDAP => Light Directory Access Protocol / Service:
Unknown]
443 [Description: HttpS => Secure HTTP / Service: Unknown]
445 [Description: Microsoft-Ds / Service: Unknown]
3389 [Description: Terminal Services / Service: Unknown]
Do you all see any problems with any of these? I know all the standard
ones, I'm just curious if others have done penetration testing on their
servers and run into any ports that should definitely be turned off. My
server is running on a 3rd-party network; my office rents space from an
office provider, so we have no control over the network, and I've
noticed on my personal comp that hackers use it as their playground,
I'm always getting SQL slammer attempts and other types of attacks.
Thanks for any advice/info.
P.S. Do you use any web services for penetration testing? Any other
software that is Windows friendly? I know about Nessus and all them,
but I am not ready to get into command-line level things yet, I just
want some basic testing.
- 3
- Crm >> Merging ntext fields removes carrage returns, additional spaces and line breaks CRM 3.0 and 4.0We have been dealing with this issue for a long time and are still
exhibiting the issue in CRM 4.0.
When merging some description fields (ntext) from our case records all the
line feeds, carriage returns, extra spaces (more than a single space in a
row) are removed and the field is merged as one paragraph of text.
Can anyone explain why this occurs and how to fix it?
--
Gary Herbstman
Byte Solutions, Inc.
http://bytesolutions.com
- 4
- Compact >> OnKeyDown - two events?I'm having a problem with my OnKeyDown method generating two events
when a hardware button is pressed. It's like the button is getting pressed
twice.
Has anyone experienced anything like this?
Any ideas?
Thanks,
Drew
- 5
- SBS >> sbs 2003, dns, wins reverse lookupsHello,
Have recently installed sbs 2003, dns and wins are all set up
correctly. I've enabled wins forward and reverse lookups for dns too.
It seems that trying to reverse lookup an IP address that has a STATIC
wins address assignment fails.
For example, "ahsfirewall" is a router with the correct static wins
address set up (172.18.9.30). A forward lookup using nslookup works
fine:
------------
Got answer (60 bytes):
HEADER:
opcode = QUERY, id = 2, rcode = NOERROR
header flags: response, auth. answer, want recursion,
recursion avail.
questions = 1, answers = 1, authority records = 0,
additional = 0
QUESTIONS:
ahsfirewall.aceshigh.local, type = A, class = IN
ANSWERS:
-> ahsfirewall.aceshigh.local
type = A, class = IN, dlen = 4
internet address = 172.18.9.30
ttl = 885 (14 mins 45 secs)
------------
But a reverse lookup doesn't:
------------
Got answer (135 bytes):
HEADER:
opcode = QUERY, id = 2, rcode = NXDOMAIN
header flags: response, auth. answer, want recursion,
recursion avail.
questions = 1, answers = 0, authority records = 1,
additional = 0
QUESTIONS:
30.9.18.172.in-addr.arpa, type = PTR, class = IN
AUTHORITY RECORDS:
-> 9.18.172.in-addr.arpa
type = SOA, class = IN, dlen = 60
ttl = 3600 (1 hour)
primary name server = ahsserver2.aceshigh.local
responsible mail addr = hostmaster.aceshigh.local
serial = 38
refresh = 900 (15 mins)
retry = 600 (10 mins)
expire = 86400 (1 day)
default TTL = 900 (15 mins)
------------
*** ahsserver2.aceshigh.local can't find 172.18.9.30: Non-existent
domain
Is this a known issue or have I set something up wrong?
Thanks,
Martyn
- 6
- SBS >> IP routing please help!Hi all, i really need to resolve a problem i have and did send another
posing but what i want to acheive is this and im not sure if given the setup
i have it can be done!
I have an SBS2003 on 192.168.16.2 and it is connected to the net with a
public ip address and a router with NO NAT. I also have a second server
win2k on 192.168.16.3 and have some special s/w that needs to talk to the
net. I can run my web interface on the second server internally but need to
access the web page from the outside world. I can set the IIS to look at a
specific port number but i cannot figure out how i can get to it as i do not
have NAT to do port forwarding. I also do not have ISA on sbs2003. Where do
i start from? I also need to keep a specific port open on the win2k server
for the s/w to work. Please help
Many thanks in advance
Paris
- 7
- Crm >> Reporting Services Returning Offset DatesI'm finding that every date being returned by Reporting Services (in VS
2003) from a date field (i.e. Opportunity.CreatedOn) is exactly 8 hours
beyond those being returned by reports ran from the CRM interface and
from Crystal Reports. I'm using MS SQL Server 2000 Reporting Services
against MS CRM1.2 (same user account). The regional setting on all
machines (server and development), including the VS 2003 international
setting, are set to English(United States) and the system dates/times
are all correct within the same time zone. Can anybody explain this?
Thanks in advance.
- 8
- SVCS >> Custom Security ExtensionsHi,
I am developing a Custom Security Extension to allow for Forms
Authentication on my company's Reporting Server (2000), which is
internet facing.
I have found a lot of conflicting reports as to what are the
differences between Standard and Enterprise.
I have developed the solution on my Developer Edition, which of course
mimics the Enterprise Edition, and I am in the process of testing it on
our Standard Edition, staging box.
What I want to know is, Is there a technical limitation from
Implementing Custom Security Extensions on Standard Edition, or is it
simply not recommended?
We are also on a upgrade path to SQL Server 2005 Standard - does that
allow the development of CSEs?
Look forward to some discussion on this topic, as I want to find out
all the angles.
Thanks,
Andrew.
- 9
- SVCS >> Multi-Value Parameters: Need 25 Distinct Product CodesHi
Looking to set up a parameter for 'Product Groups'
Code says:
WHERE
D.FISCAL_YEAR = '2006' AND
D.FISCAL_PERIOD = '12' AND
D.PRODUCT_GROUP IN (@ProdGroup ) AND etc etc
@ProdGroup set up using Layout/Report/Report Parameters. As a string
when I try to run it (as in other threads listed here) one value of
for example 170 it works ok.
If I enter into the parameter field: 110,130 it produces nothing.
('110','130') also fails.
I need the ability to enter 25 different product groups
per run of the program.
Is my SQL statement correct or not?
Am I entering the wrong syntax into the parameter field? If not what should
the syntax look like?
I'm new to Reporting Services & getting nowhere, even though I read all the
other threads appearing here.
Thanks for any help
- 10
- SBS >> Deploying Windows Mobile 5.0 with Windows Small Business Server 20For step-by-step instructions on how to deploy and manage Windows Mobile 5.0
devices in a Windows SBS environment, download the newly published white
paper "Deploying Windows Mobile 5.0 with Windows Small Business Server 2003"
at http://go.microsoft.com/fwlink/?LinkId=62797.
Enjoy!
--
Steve Holland
Windows Server Solutions Group UA
http://blogs.msdn.com/sbsdocsteam
This posting is provided "AS IS" with no warranties, and confers no rights.
------------------------------
- 11
- Crm >> Email Template Merge FieldsWe're running V 3.0.
When the email template subject pulls data in via a merge field, the special
characters (like "&") show up as "&" Is this a bug?
For example: "S&K Computers" should show up as, "S&K Computers"
- 12
- SBS >> Default keyboard languageHello, I have a computer im my SBS2003, where I can not change default
language. Even if I remove english and keep there only one language, the
english keyboard installs automatically after next logon and sets itself as
default. Do you have any idea what could be wrong? Is there any settings in
Group Policy which is taking care of this? I did not find it there.
Thanks a lot,
Petr
- 13
- SBS >> reposted: Email Internet domains?Nathan and Doug, thanks for your help regarding my last
post: 2 Email Internet domains.
I unchecked the "Automatically update e-mail addresses
based on recipient policy" in the users properties in
Active Directory Users and Computers and now i have
domain2.com as a primary email for that particular user
and deleted the domain1.com email, but strangly enough,
exchange still sends email using the deleted domain1.com
email address? How is this possible? domain1.com email
doesnt even exist for that user anymore. Maybe i should
restart the server?
and Nathan, i have to do it in the exchange, as the user
works from different workstations and i cant add new
outlook email account for all the computers.
Regards
Koosha
<anonymous@discussions.microsoft.com> wrote in message
news:0cad01c4a704$ad1db6d0$a301280a@phx.gbl...
Thats exactly what i did, and i can receive emails fine,
but when comes to sending emails, it always sends it from
the first domain name @domain1.com. I need to be able to
send emails using @domain2.com. You know like when outlook
gives you choice of account to use in FROM field, when
there are more than one Email account in Outlook stand
alone setup.
I changed the reipients policy and added domain2.com as
well,in the exchange setup, but still, all emails sent
through domain1.com
Any idea?
Regards
>-----Original Message-----
>if domain2.com is an external domain you could simply add
the accounts as
>additional accounts
>[in the pop3 connector manager add the accounts as "User
Mailbox" for "XXXX
>User"]
>
>no harm in letting them keep the email @domain1.com
aswell surely...
>
>hope i'm on the correct lines, and hope this helps,
>
>Nathan
>
>"Koosha" <anonymous@discussions.microsoft.com> wrote in
message
>news:0af401c4a6f3$dbada2f0$a301280a@phx.gbl...
>> Hi
>>
>> We have a SBS2003 with XP Pro clients,using the POP3
>> connector. All emails using the @domain1.com
>>
>> But 2 of the users email are on a different internet
>> domain and when i added them to the server as new users,
>> they keep getting the default email address which is
again
>> @domain1.com I want them to be able to use their own
>> domain (@domain2.com) when sending emails.
>>
>> I tried changing their primary email adress to the
>> @domain2.com, from the Users properties, but it switches
>> back to the domain.com everytime i exit the properties
>> page.
>>
>> Any idea?
>>
>> Regards
>> Koosha
>
>
- 14
- SBS >> SBS POP 3 issue... Users can't receive mailI just started using SBS small business server a few days
ago and all is well, EXCEPT when I setup the POP3 mgr on
the system to distribute msgs, the clients are able to
send msgs out but are not able to receive any msgs. They
are using the Outlook 2003 client and it configs fine on
the clients machine but no msgs get to them. I have sent
many test messages, but one have been rec'd. any ideas? I
havent found any info on the troubleshoot or kbase
regarding this.
- 15
- Compact >> Ad-hoc network using TCPHello;
I'm having some problems connecting two devices (a laptop and a pda)
via ad-hoc using TCP. What disturbs me more is that the same code works
if i use it in the same computer (via localhost). The client always
thinks he's connecting to the server and the server never assumes to be
connected to any client (just keeps waiting).
Here are both codes:
SERVER:
IPEndPoint localEndPoint=new IPEndPoint("192.168.0.20", 8001);
Socket newsock=new Socket(AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.TCP);
newsock.Bind(localEndPoint);
newsock.Listen(200);
Socket s=newsock.Accept(); // keeps waiting here
<rest of code>
also tried:
TcpListener myListener=new TcpListener(IPAddress.Parse("192.168.0.20",
8001);
myListener.Start();
Socket s=myListener.AcceptSocket(); // waits here
CLIENT:
TcpClient tcpclnt = new TcpClient();
tcpclnt.Connect("192.168.0.20", 8001); // jumps this code as if
connected, no notice on server
<rest of code>
the client's ip is 192.168.1.20. they work under UDP, but i can't get
them to work on TCP.
HELP!
tks
|
| Author |
Message |
KenRoot

|
Posted: Tue Aug 09 08:23:01 CDT 2005 |
Top |
SVCS >> iif expression...need to add another condition...
Ok,
This expression for the font color is great:
=IIf(Fields!Purchase.Value < 0, "Red", "CornflowerBlue")
It changes negatives to red, positives to CornflowerBlue.
However, I need 0 (zero values) to be White, so that there is the third
color.
Any help is appreciated.
Thanks,
Trint
Information Technology199
|
| |
|
| |
 |
MarekDziedzic

|
Posted: Tue Aug 09 08:23:01 CDT 2005 |
Top |
SVCS >> iif expression...need to add another condition...
My only suggestion is to have a nested "iff" I do this quite a bit.
=IIf(Fields!Purchase.Value < 0, "Red", IIF(Fields!Purchase.Value = 0,
"White","CornflowerBlue"))
Hope that works.
"trint" wrote:
> Ok,
> This expression for the font color is great:
> =IIf(Fields!Purchase.Value < 0, "Red", "CornflowerBlue")
> It changes negatives to red, positives to CornflowerBlue.
> However, I need 0 (zero values) to be White, so that there is the third
> color.
> Any help is appreciated.
> Thanks,
> Trint
>
>
|
| |
|
| |
 |
timseal

|
Posted: Tue Aug 09 08:54:07 CDT 2005 |
Top |
SVCS >> iif expression...need to add another condition...
You might find it easier to maintain with this kind of approach:
=getPurchaseColour(Fields!Purchase.Value)
... and have a function like this (pseudocode)..
friend function getPurchaseColour(value) as string
if value<0 return "Red"
if value=0 return "White"
return "CornflowerBlue"
end function
|
| |
|
| |
 |
| |
 |
Index ‹ Information Technology ‹ SVCS |
- Next
- 1
- SBS >> Can't get External NIC to pick up DHCP address from cable modemHi,
I am setting up SBS 2003 at a client site where they have broadband via
cable. With two NICs, I can't seem to get the external NIC to pick-up an IP
via DHCP through the cable modem--an error pops up that says it can't find
the DHCP server. If I disable the second NIC, and use a Linksys WRT54GS
instead of the second NIC, it picks up an IP no problem. I can use one NIC,
but I would prefer to use two.
Here's the IPCONFIG /ALL info:
Host Name . . . . . . . . . . . . : lah-server
Primary Dns Suffix . . . . . . . : legacy-custom-homes.local
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : Yes
WINS Proxy Enabled. . . . . . . . : Yes
DNS Suffix Search List. . . . . . : legacy-custom-homes.local
Ethernet adapter Server Local Area Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : HP NC7761 Gigabit Server Adapter
Physical Address. . . . . . . . . : 00-14-38-4E-25-62
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.3.200
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.3.2
DNS Servers . . . . . . . . . . . : 192.168.3.200
Primary WINS Server . . . . . . . : 192.168.3.200
Ethernet adapter Network Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Server Adapter
Physical Address. . . . . . . . . : 00-04-23-BB-75-E6
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Autoconfiguration IP Address. . . : 169.254.152.174
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
NetBIOS over Tcpip. . . . . . . . : Disabled
Any ideas are appreciated!
Jeff
- 2
- 3
- Money >> Allocation of shares different from FIFOIn Ms. Money-2006 deluxe, lately I cannot allocate shares sold to my liking,
since the software automatically allocates FIFO. I did turn off the check
mark in FIFO column in Investment setting.
Any sugesstions? Thanks.
Melrose
- 4
- Money >> Money 2006 Bank AccountsIs there any way to have 2 accounts from the same banking institution (in
this case 2 checking accounts from BoA)? I add one account, rename it and
then try to add another one for my wife and it simply keeps overwriting the
first account.
This seems like it would be basic functionality of any accounting program. I
have searched the user manual and the forums to no avail.
Can anyone confirm this can be done and how to do it? Thanks.
- 5
- SBS >> Hot to activate SBS 2003?I completed the installation of SBS 2003 standard, but I don't see
where to 'Activate Server' anywhere in the 'To Do' list. Am I missing
something? I downloaded all of the updates for it.
Thanks
-John-
- 6
- Crm >> Lookup based on customized entitiesHi again!
I added a new attribute to Account entity called "Vendor". I created a
many-to-one relation between one of my custom entities -XYZ- and Account. I
created a lookup field on the XYZ form that enables to search for Account
entities. What I want to do is, when the search form comes up and the user
hits the search button, only the Accounts with Vendor attribute set to
"true" show up.
How is this done?
Thank you.
- 7
- SVCS >> Rectangle/List Report Items Questions - Please help!!!How can I prevent the last listed record on page 1 from carrying over parts
of the record onto page 2 and the next column as well?
We are working on a 2 column mailing lists at this time.
Please help!!!
Last Record Example:
Page 1
Terry Ward
12345 S. Ashland Avenue
Page 2
Chicago, IL 60085
P.O. Box 456
Suite 602 N.
- 8
- Messanger >> languageI cannot get messenger (v6.2) to be in english. It uses
russian with a series of question marks. Downloading a
new copy did not help. Any ideas?
- 9
- 10
- SBS >> SBS Server 2003 - Assign Applications to Client ComputersHi!
I just setup a new domain with a 2003 SBS. I am trying to push out the
Shared Fax Client and Outlook 2003 to the workstations. I go through the
wizard and it tells me the next time they log on, the program will install.
I have gone through the wizard a few times and none of them installed the
applications. Is there something that needs to be setup first on the client
computers so they know to accept the install command?
Thanks!
--
Remove 'spam' from email address to contact me directly
- 11
- SVCS >> Stoping data display at a specific point.Hi,
I am wondering if it is possible to stop the data from being displayed
once the pharse "transaction complete" is read into my report table.
Once this field is read i want the remaining data to be displayed on
the next page of my report. Any ideas would be much appreciated.
Ivan
- 12
- Crm >> incident navigation barhi,
I can hide the left navigation bar items in the incident form. But the white
space of navigation area is still there. Is there a way to remove this white
space?
- 13
- 14
- SVCS >> Sorting the detailsWe are going to attempt to (1) omit sorting from the database query;
and (2) sort the detail section on any on several columns, determined
by a parameter to the report. We may also
change the sort order depending on which column is selected.
The assumption is that RS sorts data by the grouping levels, but not
neccessarily at the detail level.
Any thoughts on whether this will work? (Pointers appreciated as well)
Also in the mix is the possibility of limiting the detail section by
using the TOP N expression.
- 15
- Crm >> Renew ContractI have a contract and some contract lines that expired, and then i want to
renew the contract, but there is an error : Invalid Date Time (The date/time
format is not valid or the value is outside the supported range). Can someone
help me ?
The data is :
- Contract
Startdate : 11/05/2005
Enddate : 12/31/2010
Thx
|
|
|