<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — How to make a link popup a window?]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3801&amp;type=atom" />
	<updated>2013-05-24T15:41:13Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=3801</id>
		<entry>
			<title type="html"><![CDATA[Re: How to make a link popup a window?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16727#p16727" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[seahawk]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=544</uri>
			</author>
			<updated>2013-05-24T15:41:13Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16727#p16727</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to make a link popup a window?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15390#p15390" />
			<content type="html"><![CDATA[<p>Yes, I&#039;m loving it too....&nbsp; VERY handy!</p><p>Chris</p>]]></content>
			<author>
				<name><![CDATA[chrison]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17070</uri>
			</author>
			<updated>2013-01-31T16:13:06Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15390#p15390</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to make a link popup a window?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15388#p15388" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[dvarsani]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=16332</uri>
			</author>
			<updated>2013-01-31T14:37:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15388#p15388</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to make a link popup a window?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15380#p15380" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[chrison]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17070</uri>
			</author>
			<updated>2013-01-29T19:03:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15380#p15380</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to make a link popup a window?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15379#p15379" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2013-01-29T18:20:09Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15379#p15379</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to make a link popup a window?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15378#p15378" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[chrison]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17070</uri>
			</author>
			<updated>2013-01-29T18:01:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15378#p15378</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to make a link popup a window?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15377#p15377" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[chrison]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17070</uri>
			</author>
			<updated>2013-01-29T17:29:21Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15377#p15377</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to make a link popup a window?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15372#p15372" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2013-01-29T09:11:39Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15372#p15372</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to make a link popup a window?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15371#p15371" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2013-01-29T08:50:03Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15371#p15371</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to make a link popup a window?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15367#p15367" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[chrison]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17070</uri>
			</author>
			<updated>2013-01-29T08:23:03Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15367#p15367</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to make a link popup a window?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15366#p15366" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[chrison]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17070</uri>
			</author>
			<updated>2013-01-29T08:19:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15366#p15366</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to make a link popup a window?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15365#p15365" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2013-01-29T07:32:06Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15365#p15365</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to make a link popup a window?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15362#p15362" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[chrison]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17070</uri>
			</author>
			<updated>2013-01-29T04:19:52Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15362#p15362</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to make a link popup a window?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15356#p15356" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-01-29T01:36:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15356#p15356</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to make a link popup a window?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15354#p15354" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[chrison]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17070</uri>
			</author>
			<updated>2013-01-28T20:34:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15354#p15354</id>
		</entry>
</feed>
