Bug Report(?) - Product Save Next Prev Not Working

v1.7 b5765

When updating a group of products (eg in my case today, Vetmedin), I edit the product details then click Next or Prev. A pop-up screen appears and I'm asked to Save | Revert Changes | Cancel (SRC).

I click Save

In previous versions of OpenVPMS, the next (or previous) record would then be displayed, but now the SRC pop-up screen remains on screen.  Revert Changes works undoing the changes and closes the pop-up screen and Cancel closes the pop-up screen without undoing changes.  The only way to save changes is to click "ok" then select next record from filter list and edit it.

Yuri.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: Bug Report(?) - Product Save Next Prev Not Working

This is a bug. Its being triggered by the optional Type field not being set.

Raised as https://openvpms.atlassian.net/browse/OVPMS-1446

Thanks,

-Tim

Re: Bug Report(?) - Product Save Next Prev Not Working

Thanks, that worked.

On a (vaguely) related topic, is it possible to change the contents of the "Description" column in Products display from Name to Printed Name? At the moment, Description just displays the same data as the Name column.

Re: Bug Report(?) - Product Save Next Prev Not Working

Yuri - its all in the archetypes.  Here is the standard product.service

Here is the version we use:

Note that a) the Display Name has been changed to Description/Notes; b) it is no longer a field derived from /name

This means that we can now have notes that display as follows:

[I did this so that the system could accommodate the 'item notes' facility that RxWorks has.]

So to do what you want - PrintedName in the Description field, you can simply change the archetype so that the field from which the description comes is not /name but rather /details/printedName and you need to do this for all five product.* templates.

When you do this, the system will bring up  the 'update changed nodes' window (see http://www.openvpms.org/documentation/csh/1.7/admin/archetype ). If you click OK, the system will grind away updating the description node for every product - hence best to do this after hours.

If you want the Printed Name field to display so that you can do a quick check that the printed name is set where it should be, then the way we do this is with a report.  As you can see below (where I have run the report with its 'Display Explanation ?' box checked) we have a problem that some of the housecall items (which we prefix with CC - the initials of the housecall practice name) do not have a Printed Name that omits the CC- prefix - a problem that I am about to fix.

Hope this helps,  Tim G

Re: Bug Report(?) - Product Save Next Prev Not Working

Thanks, Tim, but you didn't have to stay up till dawn to reply <g!>.

I'll diest this and probably try this next weekend.  BTW, would these changes be lost with the next upgrade to OV?

Yuri.

Re: Bug Report(?) - Product Save Next Prev Not Working

Yuri - I do my best work before 6am - but am normally in bed by 8.30pm - you know its 'early to bed, early to rise ...' ;-)

Lose changed on next upgrade. If you don't allow for it, yes.  I have a folder containing all my modified archetypes (25 of them) and an archload-tAll.bat which loads them.  My upgrade script (amongst other things) runs the standard archload.bat and then archload-tAll.bat.  I use IDM Computer Solutions' Ultra Compare to check the standard ones against my versions to see whether there have been changes to the standard ones. During the 1.7 beta testing I was upgrading to new snapshots so often that I had to automate the upgrade.

Regards, Tim G

Syndicate content