<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.method.me/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Method:Classic General Q&amp;amp;A</title><link>http://forums.method.me/cs/forums/13.aspx</link><description>Ask technical support questions, how do I? Questions... Or anything else you want to know from the Method Team and other Method users.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 SP2 (Build: 31113.47)</generator><item><title>Re: Writing Script</title><link>http://forums.method.me/cs/forums/thread/20564.aspx</link><pubDate>Wed, 15 Jan 2014 15:45:09 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:20564</guid><dc:creator>Method_Greg</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/20564.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=20564</wfw:commentRss><description>&lt;p&gt;&lt;span style="overflow:hidden;" id="mce_0_start"&gt;H the texello,&lt;br /&gt;&amp;nbsp;&amp;nbsp; I found out how one can use values off of the screen.&amp;nbsp; It is using the Character Function and the Replace characters function.&amp;nbsp;&lt;span style="overflow:hidden;" id="mce_1_start"&gt;&lt;/span&gt; I&amp;#39;ll try to explain how it will work. &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; First, Take your SQL command and for the Screen.ClientName section, replace it with something you can identify.&amp;nbsp; Try the text&lt;span style="overflow:hidden;" id="mce_0_start"&gt;&lt;/span&gt; REPLACE.&amp;nbsp;&amp;nbsp; Second, have an Action Result the&lt;span style="overflow:hidden;" id="mce_5_start"&gt;at&lt;/span&gt; retrieves a&lt;span style="overflow:hidden;" id="mce_6_start"&gt;&lt;/span&gt; value from the screen.&amp;nbsp; Third, create a Character function&lt;span style="overflow:hidden;" id="mce_7_start"&gt; action&lt;/span&gt;.&amp;nbsp; In your Character Function, select your SQL Action Result and use Replace characters.&amp;nbsp; Use &lt;span style="overflow:hidden;" id="mce_2_start"&gt;&lt;/span&gt;&lt;span style="overflow:hidden;" id="mce_8_start"&gt;&amp;#39;&lt;/span&gt;Type In&amp;#39; selection and REPLACE for the replace characters and replace it with your Action Result that contains the screen value.&amp;nbsp; Lastly, save it back into your SQL action result.&lt;span style="overflow:hidden;" id="mce_4_start"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;" id="mce_3_start"&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; In essence, use a Character Function with an action result containing the screen value.&lt;/p&gt;
&lt;p&gt;- Greg&lt;/p&gt;</description></item><item><title>Re: Writing Script</title><link>http://forums.method.me/cs/forums/thread/20562.aspx</link><pubDate>Wed, 15 Jan 2014 14:33:02 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:20562</guid><dc:creator>Method_Greg</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/20562.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=20562</wfw:commentRss><description>&lt;p&gt;&lt;span style="overflow:hidden;" id="mce_0_start"&gt;Hello Ben,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;" id="mce_0_start"&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp; Can I confirm, you are using Retrieve Value From Table action with an Action Result that contains your search/SQL command?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I can look into getting values from screen as I am not sure myself.&amp;nbsp; I see you tried Screen.ClientName.&lt;span style="overflow:hidden;" id="mce_1_start"&gt; &amp;nbsp;&amp;nbsp; There is a webinar we have on &lt;span style="overflow:hidden;" id="mce_2_start"&gt;&lt;/span&gt;&lt;a href="http://www.youtube.com/watch?v=D1D6QWdXG0I&amp;amp;list=PLG5Qmoh21vN4Od1mRtrDoY6NyPabWApjx"&gt;SQL and Retrieve values &lt;span style="overflow:hidden;" id="mce_2_end"&gt;&lt;/span&gt;&lt;/a&gt; that may help.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;" id="mce_0_start"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;- Greg&lt;span style="overflow:hidden;" id="mce_5_start"&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: Writing Script</title><link>http://forums.method.me/cs/forums/thread/20558.aspx</link><pubDate>Wed, 15 Jan 2014 01:16:44 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:20558</guid><dc:creator>StuartKatz</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/20558.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=20558</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;Ben,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="mce_1_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;span id="mce_2_start" style="overflow:hidden;"&gt;Do I understand you are trying to retrieve a value from a table by writing a script so you can display a field in a grid that is not found in the table you have open in the Grid?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="mce_2_start" style="overflow:hidden;"&gt;&lt;/span&gt;If so I am very interested in what you are trying to do as it would help me solve a number of problems that I am chasing around.&lt;/p&gt;
&lt;p&gt;I am not comfortable with script but am willing to learn.&amp;nbsp; Would you be willing to share the script you have written to retrieve a value from a table.&amp;nbsp; If so would you have time for a quick phone call?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also any recommendations on a good source for wrting script?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Stuart&lt;/p&gt;</description></item><item><title>Writing Script</title><link>http://forums.method.me/cs/forums/thread/20549.aspx</link><pubDate>Tue, 14 Jan 2014 17:02:29 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:20549</guid><dc:creator>Ben Brower</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/20549.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=20549</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;I&amp;#39;m trying to write a script and assign it to an action result in order to retrieve a value from a table. &amp;nbsp;I have 4 criteria, and I&amp;#39;m not sure how to enter script that references a value on the screen. &amp;nbsp;This is what I have:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;&lt;/span&gt;(AssignedTo = &amp;#39;Users.UserName&amp;#39;) And (ActivityStatus=&amp;#39;Not Completed&amp;#39;) AND (ActivityType like &amp;#39;%Send Termination Letter%&amp;#39;)&lt;span id="mce_1_start" style="overflow:hidden;"&gt; AND&lt;/span&gt; (Entity = &amp;#39;Screen.Client Name:&amp;#39;)&lt;/p&gt;
&lt;p&gt;I want the Entity field in the table to equal a value on the screen, and apparently I don&amp;#39;t have it done correctly. &amp;nbsp;Can someone&lt;span id="mce_2_start" style="overflow:hidden;"&gt; review the script to make sure it&amp;#39;s done correclty and&amp;nbsp;&lt;/span&gt;&amp;nbsp;help me out&lt;span id="mce_3_start" style="overflow:hidden;"&gt; with the entity/screen value issue&lt;/span&gt;?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Ben&lt;/p&gt;</description></item></channel></rss>