<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://springboardsolutions.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Using_Prompts_in_Case_Expressions</id>
		<title>Using Prompts in Case Expressions - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://springboardsolutions.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Using_Prompts_in_Case_Expressions"/>
		<link rel="alternate" type="text/html" href="http://springboardsolutions.com/wiki/index.php?title=Using_Prompts_in_Case_Expressions&amp;action=history"/>
		<updated>2026-10-17T04:09:04Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.25.2</generator>

	<entry>
		<id>http://springboardsolutions.com/wiki/index.php?title=Using_Prompts_in_Case_Expressions&amp;diff=205&amp;oldid=prev</id>
		<title>WikiSysop: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://springboardsolutions.com/wiki/index.php?title=Using_Prompts_in_Case_Expressions&amp;diff=205&amp;oldid=prev"/>
				<updated>2016-03-25T08:51:07Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 08:51, 25 March 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>WikiSysop</name></author>	</entry>

	<entry>
		<id>http://springboardsolutions.com/wiki/index.php?title=Using_Prompts_in_Case_Expressions&amp;diff=203&amp;oldid=prev</id>
		<title>WikiSysop at 19:23, 24 November 2015</title>
		<link rel="alternate" type="text/html" href="http://springboardsolutions.com/wiki/index.php?title=Using_Prompts_in_Case_Expressions&amp;diff=203&amp;oldid=prev"/>
				<updated>2015-11-24T19:23:44Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== [[PeopleSoft Query]] ==&lt;br /&gt;
===Issue using a Prompt in Case Expression at [[PeopleTools]] 8.49 ===&lt;br /&gt;
&lt;br /&gt;
(ED: Does this happen on other PeopleTools versions?)&lt;br /&gt;
&lt;br /&gt;
The following case statement in [[PeopleSoft Query]] would not give a correct value:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
case &lt;br /&gt;
    when DEPTID like :1 then FTE&lt;br /&gt;
else&lt;br /&gt;
    0&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The problem was that the entered prompt value was padded with spaces to the length of the prompt. So the solution was using rtrim (Oracle):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
case &lt;br /&gt;
    when DEPTID like rtrim(:1) then FTE&lt;br /&gt;
else&lt;br /&gt;
    0&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In SQL Server, rtrim(:1,' ') would resolve the issue (provided there were no leading spaces).&lt;br /&gt;
&lt;br /&gt;
==More About Functions==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|[[File:UsingFunctionsInPeopleSoftQuerySmall.jpg|90px|link=http://www.amazon.co.uk/gp/product/B013ZRND0I/ref=as_li_tl?ie=UTF8&amp;amp;camp=1634&amp;amp;creative=6738&amp;amp;creativeASIN=B013ZRND0I&amp;amp;linkCode=as2&amp;amp;tag=springboardso-21]]&lt;br /&gt;
&lt;br /&gt;
|For more information about functions in [[PeopleSoft Query]] and some other interesting stuff too, read our eBook:&lt;br /&gt;
&lt;br /&gt;
[http://www.amazon.co.uk/gp/product/B013ZRND0I/ref=as_li_tl?ie=UTF8&amp;amp;camp=1634&amp;amp;creative=6738&amp;amp;creativeASIN=B013ZRND0I&amp;amp;linkCode=as2&amp;amp;tag=springboardso-21 Using Functions in PeopleSoft Query]&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>	</entry>

	</feed>