Page 1 of 1

Inventory Image Set or Not

PostPosted: Sun Jul 29, 2018 11:18 pm
by SBarnes
Is there a way to tell whether or not an inventory items image has been set?

Re: Inventory Image Set or Not

PostPosted: Mon Jul 30, 2018 9:17 am
by Ernst
This works for me.. I pick up the StaticPicture Variable in Save end, and export the image to a png file.

AddHandler inventoryForm.Inventory.PropertyChanged, AddressOf Inventory_PropertyChanged

Private Sub Inventory_PropertyChanged(sender As Object, e As System.ComponentModel.PropertyChangedEventArgs)
' Dim inventory As JiwaInventory.Inventory = sender

If e.PropertyName = "Picture" Then
StaticPicture = "P"
End If
End Sub

Re: Inventory Image Set or Not  Topic is solved

PostPosted: Mon Jul 30, 2018 10:15 am
by Mike.Sheen
SBarnes wrote:Is there a way to tell whether or not an inventory items image has been set?


Hi Stuart,

In 7.1 and onwards the picture will be null in both the business logic property and the table IN_Main if it has not been set. If it is null, the UI will display a default picture which comes from the SystemSettings.DefaultPicture property of the inventory business logic.

Prior to 7.1 (07.00.175.00 and earlier) I'm not sure if you could tell if it had been set, as we used to set the picture to be the default inside the business logic - so it transparently always got set to a value even if never set. We realised that was pretty silly, especially when integrating with other systems like web stores, hence the change to leave it as null if never set.

Mike