<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — How to make a link popup a window?]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=3801</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3801&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to make a link popup a window?.]]></description>
		<lastBuildDate>Fri, 24 May 2013 15:41:13 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to make a link popup a window?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=16727#p16727</link>
			<description><![CDATA[<p>Just to get confirmation. Was this feature build into the 2.3.16 or should I still do this manually. Would love it if the features was build in as is Customers and branches.</p>]]></description>
			<author><![CDATA[null@example.com (seahawk)]]></author>
			<pubDate>Fri, 24 May 2013 15:41:13 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=16727#p16727</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to make a link popup a window?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15390#p15390</link>
			<description><![CDATA[<p>Yes, I&#039;m loving it too....&nbsp; VERY handy!</p><p>Chris</p>]]></description>
			<author><![CDATA[null@example.com (chrison)]]></author>
			<pubDate>Thu, 31 Jan 2013 16:13:06 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15390#p15390</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to make a link popup a window?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15388#p15388</link>
			<description><![CDATA[<p>Hi</p><p>This is great. Each item is easily manageable and easy to create new item.</p><p>Thanks to developers.</p>]]></description>
			<author><![CDATA[null@example.com (dvarsani)]]></author>
			<pubDate>Thu, 31 Jan 2013 14:37:49 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15388#p15388</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to make a link popup a window?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15380#p15380</link>
			<description><![CDATA[<div class="quotebox"><cite>joe wrote:</cite><blockquote><p>You should not get an editfield here. Just press the F4 key and you should get the items popup form.<br />After you have edited the sales price in the items tab and go back to the general info, you should now have a Select box. This was the subject that was fixed.</p><p>I guess we got a little offside on the subject. Maybe my fault <img src="https://frontaccounting.com/punbb/img/smilies/sad.png" width="15" height="15" alt="sad" /></p></blockquote></div><p>Mea culpa!&nbsp; I probably should have created another thread for the editable-items-description-field issue, instead of mixing it in with this issue.&nbsp; Anyway, I&#039;m sorry for misunderstanding which &quot;other thing&quot; you were referring to!&nbsp; (BLUSH!)&nbsp; I just checked and, yes, the &quot;Select&quot; button <em>does</em> appear when you switch to another tab and then go back to the General Information tab.</p><p>Thanks for that!</p><div class="quotebox"><cite>joe wrote:</cite><blockquote><p>The other thing you mentioned will still be under consideration.</p></blockquote></div><p>Sounds good!&nbsp; Like I said, it&#039;s a &quot;minor&quot; annoyance but it would be great if it could be fixed, even if only for the sake of UI consistency between screens.&nbsp; Whenever someone has time/energy/interest in looking at it will be fine by me!</p><p>Thanks, again, for all the help!</p><p>Regards,</p><p>Chris</p>]]></description>
			<author><![CDATA[null@example.com (chrison)]]></author>
			<pubDate>Tue, 29 Jan 2013 19:03:46 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15380#p15380</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to make a link popup a window?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15379#p15379</link>
			<description><![CDATA[<div class="quotebox"><cite>chris wrote:</cite><blockquote><p>I made the changes as you stated but, unfortunately, there&#039;s no change on my system.&nbsp; The item description field on the Purchasing Direct Invoice screen still does not change from a drop down list to a text-entry field if the selected item has &quot;editable description&quot; checked and you tab over to the &quot;Qty&quot; field.&nbsp; I tried logging out and back in, and clearing my browser cache, but still no change.&nbsp; Btw, the item description field for the same item does change in the Sales Direct Invoice screen, so there&#039;s some sort of inconsistency going on here between how the two screens are coded.</p></blockquote></div><p>You should not get an editfield here. Just press the F4 key and you should get the items popup form.<br />After you have edited the sales price in the items tab and go back to the general info, you should now have a Select box. This was the subject that was fixed.</p><p>I guess we got a little offside on the subject. Maybe my fault <img src="https://frontaccounting.com/punbb/img/smilies/sad.png" width="15" height="15" alt="sad" /></p><p>The other thing you mentioned will still be under consideration.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Tue, 29 Jan 2013 18:20:09 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15379#p15379</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to make a link popup a window?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15378#p15378</link>
			<description><![CDATA[<div class="quotebox"><cite>joe wrote:</cite><blockquote><p>Well, it seems that I got the resources just now <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p></blockquote></div><p>Thanks, Joe, for taking the time to look into that other problem.&nbsp; I&#039;m sure you have <em>plenty</em> of other things to keep you busy, so I <em>really</em> appreciate you spending time on my issues.</p><p>I made the changes as you stated but, unfortunately, there&#039;s no change on my system.&nbsp; The item description field on the Purchasing Direct Invoice screen still does not change from a drop down list to a text-entry field if the selected item has &quot;editable description&quot; checked and you tab over to the &quot;Qty&quot; field.&nbsp; I tried logging out and back in, and clearing my browser cache, but still no change.&nbsp; Btw, the item description field for the same item <em>does</em> change in the Sales Direct Invoice screen, so there&#039;s some sort of inconsistency going on here between how the two screens are coded.</p><p>As you said, this is a <em>minor</em> issue so if you&#039;re busy with other things just put it on the &quot;To Do&quot; list for when you have some free time (yeah, right!).&nbsp; <img src="https://frontaccounting.com/punbb/img/smilies/wink.png" width="15" height="15" alt="wink" />&nbsp; I can live&nbsp; with the annoyance of having to save an item, go back and edit it, and then save it again as I&#039;m a small, one-man operation and I don&#039;t enter a huge amount of direct invoices.</p><p>One side comment, though, and this <em>isn&#039;t</em> meant as a criticism but, rather, it&#039;s just me pointing out how things work in the world...&nbsp; What may seem like a &quot;minor&quot; issue can be a <em>major</em> issue to someone who has to deal with the &quot;minor&quot; issue over and over, day in and day out.&nbsp; At first, a data entry clerk who spends all day repeatedly entering direct purchasing invoices into FA might not mind the one or two extra steps of having to save a line, edit it, and then save it again,&nbsp; but after having to do that the 10,000th time (and the 100th time <em>today</em>!) it can become downright infuriating!&nbsp; So, sometimes, it&#039;s all those &quot;little things&quot; that determine whether an application is &quot;really nice&quot; or &quot;just plain junk.&quot;</p><p>Anyway, thanks again <em>very</em> much for your help!&nbsp; Put this one on the &quot;To Do&quot; list if your busy with other things.&nbsp; Heck, now that I&#039;m a &quot;Master PHP Programmer&quot; (ahem! <img src="https://frontaccounting.com/punbb/img/smilies/wink.png" width="15" height="15" alt="wink" /> ) I might even go figure it out myself!&nbsp; LOL!</p><p>Regards,</p><p>Chris</p>]]></description>
			<author><![CDATA[null@example.com (chrison)]]></author>
			<pubDate>Tue, 29 Jan 2013 18:01:00 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15378#p15378</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to make a link popup a window?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15377#p15377</link>
			<description><![CDATA[<div class="quotebox"><cite>joe wrote:</cite><blockquote><p>I guess you should revert it again. Later when I get the resources, I will look at you minor item above.</p><p>/Joe</p></blockquote></div><p>I put everything back the way it was.</p><p>Thanks!</p><p>Regards,</p><p>Chris</p>]]></description>
			<author><![CDATA[null@example.com (chrison)]]></author>
			<pubDate>Tue, 29 Jan 2013 17:29:21 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15377#p15377</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to make a link popup a window?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15372#p15372</link>
			<description><![CDATA[<p>Well, it seems that I got the resources just now <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>In the files<br />/items/prices.php<br />/items/purchasing_data.php<br />/items/cost_update.php<br />/items/reorder_level.php</p><p>look up this:<br /></p><div class="codebox"><pre><code>if (@$_GET[&#039;popup&#039;])
    hidden(&#039;_tabs_sel&#039;, get_post(&#039;_tabs_sel&#039;));

and change to

if (@$_GET[&#039;popup&#039;])
{
    hidden(&#039;_tabs_sel&#039;, get_post(&#039;_tabs_sel&#039;));
    hidden(&#039;popup&#039;, @$_GET[&#039;popup&#039;]);
}</code></pre></div><p>This should do it.</p><p>HG repository updated.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Tue, 29 Jan 2013 09:11:39 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15372#p15372</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to make a link popup a window?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15371#p15371</link>
			<description><![CDATA[<p>I guess you should revert it again. Later when I get the resources, I will look at you minor item above.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Tue, 29 Jan 2013 08:50:03 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15371#p15371</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to make a link popup a window?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15367#p15367</link>
			<description><![CDATA[<p>Btw, Joe, does this mean that the changes I made in includes/ui/ui_lists.php aren&#039;t needed and should be removed?&nbsp; Or, should I leave them as is?</p><p>Thanks!</p><p>Regards,</p><p>Chris</p>]]></description>
			<author><![CDATA[null@example.com (chrison)]]></author>
			<pubDate>Tue, 29 Jan 2013 08:23:03 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15367#p15367</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to make a link popup a window?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15366#p15366</link>
			<description><![CDATA[<p>@Joe:</p><p>I manually made the changes you outlined and, yes, it now automatically populates the fields when you select an item in the pop-up window.</p><p>WOO HOO!!!!&nbsp; <img src="https://frontaccounting.com/punbb/img/smilies/cool.png" width="15" height="15" alt="cool" /> <img src="https://frontaccounting.com/punbb/img/smilies/cool.png" width="15" height="15" alt="cool" /> <img src="https://frontaccounting.com/punbb/img/smilies/cool.png" width="15" height="15" alt="cool" /></p><p>There&#039;s still a small problem that if I create a new item and then go to another tab (e.g. to Purchase Pricing to enter a purchase price), when I go back to the General Information tab the &quot;Select&quot; button is no longer at the bottom of the screen.&nbsp; So, I have to refresh the screen, reselect the item to get the &quot;Select&quot; button back, and then click the &quot;Select&quot; button.</p><p>This is NOT a big deal and I&#039;m REALLY happy just being able to use the pop-up window to create new items.&nbsp; I just mention this last little thing in case there&#039;s an easy fix for it.&nbsp; If not, don&#039;t worry about it.</p><p>Again, thank you VERY much for all your help!</p><p>Regards,</p><p>Chris</p>]]></description>
			<author><![CDATA[null@example.com (chrison)]]></author>
			<pubDate>Tue, 29 Jan 2013 08:19:25 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15366#p15366</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to make a link popup a window?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15365#p15365</link>
			<description><![CDATA[<p>I am terrible sorry guys, and especially you @chris.</p><p>It turns out to be a little glitch when changing the Item list box fill a year ago. A parameter was missing in the new one.</p><p>The function in ui_lists.inc, line 776:<br /></p><div class="codebox"><pre><code>function stock_items_list_cells($label, $name, $selected_id=null, $all_option=false, 
    $submit_on_change=false, $all=false, $editkey = false)</code></pre></div><p>indicates a final parameter $editkey. If this is true, a f4 key is available to call upp the items form in a popup window.</p><p>So in file /purchasing/includes/ui/po_ui.inc line 401:<br /></p><div class="codebox"><pre><code>        stock_items_list_cells(null, &#039;stock_id&#039;, null, false, true, false);
should have a last parameter set to true
        stock_items_list_cells(null, &#039;stock_id&#039;, null, false, true, false, true);</code></pre></div><p>And finally there was a little bug in /inventory/manage/items.php on line 22. Should be:<br /></p><div class="codebox"><pre><code>page(_($help_context = &quot;Items&quot;), @$_REQUEST[&#039;popup&#039;], false, &quot;&quot;, $js);</code></pre></div><p>Try to change theese lines and it will work with the f4 key. Some times you have to pres this key twice.</p><p>So F2 = customer/supplier, F3 = customer branches and F4 = items in forms where this is established.</p><p>This will be sent to the HG repository. First I will have a look into other scripts if it need changing.</p><p>You can also download the 2 files here. Rename the items.php1 to items.php and replace the files<br />/inventory/manage/items.php<br />/purchasing/includes/ui/po_ui.inc</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Tue, 29 Jan 2013 07:32:06 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15365#p15365</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to make a link popup a window?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15362#p15362</link>
			<description><![CDATA[<div class="quotebox"><cite>apmuthu wrote:</cite><blockquote><p>Did you mean:<br /></p><div class="codebox"><pre><code>    if ($editkey) {
        set_editor(&#039;customer&#039;, $name, $editkey);
        set_editor(&#039;item&#039;, $name, $editkey);
    }</code></pre></div></blockquote></div><p>The original code didn&#039;t have the braces so I didn&#039;t add them.&nbsp; That goes to show you how much I know about PHP programming!&nbsp; (BLUSH!)</p><p>Thanks for pointing that out!&nbsp; I fixed it.&nbsp; Now, if I could get it to automatically populate the Direct Invoice screen when I close he item pop-up screen I&#039;d be all set!&nbsp; (Hint!) <img src="https://frontaccounting.com/punbb/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>Thanks for your help!</p><p>Regards,</p><p>Chris</p>]]></description>
			<author><![CDATA[null@example.com (chrison)]]></author>
			<pubDate>Tue, 29 Jan 2013 04:19:52 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15362#p15362</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to make a link popup a window?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15356#p15356</link>
			<description><![CDATA[<p>Did you mean:<br /></p><div class="codebox"><pre><code>    if ($editkey) {
        set_editor(&#039;customer&#039;, $name, $editkey);
        set_editor(&#039;item&#039;, $name, $editkey);
    }</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 29 Jan 2013 01:36:25 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15356#p15356</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to make a link popup a window?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15354#p15354</link>
			<description><![CDATA[<p>Wait a second...&nbsp; it <em><strong>does</strong></em> work, although not quite how it works in the other modules.</p><p>As mentioned in my last post, when I click the &quot;Select&quot; button at the bottom of the inventory/manage/items.php pop-up window, the window closes but does not update the Direct Invoice screen with the stock_id and other data for the newly-created item.&nbsp; However,&nbsp; I can type the new item&#039;s stock_id into the &quot;Item Code&quot; field, or use the drop down list, and it&#039;s there!</p><p>Also, when I create a new item in the pop-up window, if I go to another tab (e.g. &quot;Sales Pricing&quot;) and make a change there, when I go back to the &quot;General Settings&quot; tab the &quot;Select&quot; button is no longer at the bottom of the screen.&nbsp; So, I have to refresh the screen and reselect the new item to get the &quot;Select&quot; button back.&nbsp; Then I can carry on with selecting the item and going back to the Direct Invoice screen.</p><p>So, I have accomplished what I set out to do...&nbsp; I&#039;m able to create new items from within the Direct Invoice screen.&nbsp; WOO HOO!&nbsp; However,&nbsp; it would be nice if I could get this to work just like it does with customers and branches...&nbsp; update the fields automatically, and not lose the &quot;Select&quot; button if I go to another tab.</p><p>Any tips/pointers on how to get it to do that?</p><p>Thanks, again, for any help provided!</p><p>Regards,</p><p>Chris</p>]]></description>
			<author><![CDATA[null@example.com (chrison)]]></author>
			<pubDate>Mon, 28 Jan 2013 20:34:14 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15354#p15354</guid>
		</item>
	</channel>
</rss>
