<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Replace text with ""</title><link>https://www.infopathdev.com:443/forums/thread/51633.aspx</link><pubDate>Wed, 10 Feb 2010 14:06:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51633</guid><dc:creator>mhoel</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51633.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=51633</wfw:commentRss><description>&lt;p&gt;IT WORKS PERFECTLY!! :)&lt;/p&gt;
&lt;p&gt;Thank you for the second time today, Qazi Anis!! :)&lt;/p&gt;</description></item><item><title>Re: Replace text with ""</title><link>https://www.infopathdev.com:443/forums/thread/51632.aspx</link><pubDate>Wed, 10 Feb 2010 13:07:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51632</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51632.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=51632</wfw:commentRss><description>&lt;p&gt;so as far as i get from this all that is pending is removing the username from the field on button click on button click write a rule and add the following action &lt;/p&gt;
&lt;p&gt;set the value of &amp;nbsp;text_a = concat(substring-before(text_a, userName()), substring-after(text_a, userName()))&lt;/p&gt;
&lt;p&gt;try it and let me know if it works properly&lt;/p&gt;</description></item><item><title>Re: Replace text with ""</title><link>https://www.infopathdev.com:443/forums/thread/51630.aspx</link><pubDate>Wed, 10 Feb 2010 12:36:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51630</guid><dc:creator>mhoel</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51630.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=51630</wfw:commentRss><description>&lt;p&gt;I should probably explain a bit better :).&lt;/p&gt;
&lt;p&gt;I have 7 drop down list boxes (lst_a, lst_b,.,.,.,., with&amp;nbsp;around 100&amp;nbsp;usernames.&amp;nbsp;These are needed to for approval purpose.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The approval button needs to be disabled for everyone else than&amp;nbsp;these 7 users, plus when they have clicked on&amp;nbsp;the approve button, it should be disabled for them too.&lt;/p&gt;
&lt;p&gt;So i have made 2 buttons (btn_a and btn_b). When they click on btn_a it puts all 7 usernames into a textbox (txt_a)&amp;nbsp;separeted by &amp;quot;;&amp;quot;. &lt;/p&gt;
&lt;p&gt;When the approver_a (lst_a)&amp;nbsp;are clicking on btn_b, it should remove&amp;nbsp;approver_a&amp;#39;s username in txt_a, so the button becomes disabled for&amp;nbsp;approver_a.&lt;/p&gt;
&lt;p&gt;btn_b is&amp;nbsp;only available for lst_A&amp;nbsp;if txt_a contains lst_a.&lt;/p&gt;
&lt;p&gt;Is there another way to do this or can i still use the translate function somehow?&lt;/p&gt;
&lt;p&gt;Thanks! :)&lt;/p&gt;</description></item><item><title>Re: Replace text with ""</title><link>https://www.infopathdev.com:443/forums/thread/51626.aspx</link><pubDate>Wed, 10 Feb 2010 11:26:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51626</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51626.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=51626</wfw:commentRss><description>&lt;p&gt;the simplest way to do it without even a button click will be to write a rule on the text field&lt;/p&gt;
&lt;p&gt;if text_field contains your_specific_word&lt;/p&gt;
&lt;p&gt;set text_field = concat(substring-before(., &amp;quot;your_specific_word&amp;quot;), substring-after(., &amp;quot;your_specific_word&amp;quot;))&lt;/p&gt;
&lt;p&gt;if you want this to be set on a button click then you will have to create another field say field_2&lt;/p&gt;
&lt;p&gt;set the default value of text_field to field_2&lt;/p&gt;
&lt;p&gt;set the above rule on field_2&lt;/p&gt;
&lt;p&gt;and on button click set teh value of field_2 to text_field&lt;/p&gt;</description></item><item><title>Replace text with ""</title><link>https://www.infopathdev.com:443/forums/thread/51621.aspx</link><pubDate>Wed, 10 Feb 2010 09:02:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51621</guid><dc:creator>mhoel</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51621.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=51621</wfw:commentRss><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I have a text field that contains word;anotherword;anotheranotherword and when I press a buttona have made an action that replaces this word with the translate function &lt;/p&gt;
&lt;p&gt;translate(field; textbox; &amp;quot;&amp;quot;)&lt;/p&gt;
&lt;p&gt;The textbox contains the word i want to remove, but it removes every character that matches, which there is nothing wrong with. But i want to remove the whole word, not every character that matches. &lt;/p&gt;
&lt;p&gt;Is there a&amp;nbsp;method to do this?&lt;/p&gt;</description></item></channel></rss>