Image not saving into SmartBox property field.


Badge +3

Hi

 

I might just be missing something silly here. I am trying to create a listview of my products table

so show the description and the cost and a image of the product.

 

I have Products table with property fields as below..

 

13251i70D0C2FF82B26E83.png

 

Is this possible what I am trying to do if so what am I doing wrong, please

 

Thanks

Charl


12 replies

Userlevel 5
Badge +16

Hi,

 

In the create method, make sure you are mapping the right property to the image field, try to map the SMO image property instead of the image control 

 

14205i6822BECB3200971E.png

Badge +3

Thanks Mustafa, found my issue the image field I added to the Smartbox is not available in the create method. I tried to recreate the View and update the Service Instance but the "image" field does not apprear in the methods. Not sure how to refresh the SmartBox.

 

14204iB5767A1FA649F726.png


12514iC64BC2870049C510.png
Userlevel 5
Badge +16

What version of K2 are you using?

Badge +3

Hi

 

K2 Blackpearl 4.6.9

 

Thanks

Charl

Userlevel 5
Badge +16

Hi,

 

If you go to K2 DB and check you table, do you see the image property?

Badge +3

Hi

 

I checked the K2DB but not sure were to check my smartbox details.

 

Thanks

Charl

Userlevel 5
Badge +16

Hi,

 

Look for the tables that starts with "dbo"

so your smartbox will be dbo.[smartboxname]

Badge +3

Hi 

 

No I don't see the image field in the DB table dbo.Products..

 

But I see it in the k2Designer 

 

Thanks

Charl

Userlevel 5
Badge +16

Hi,

 

Please try the following:

 

Go to the Smartobject tester utility

Right click on your smartobject 

To Sodx

Open K2 Studio

New Project

Import you Smartobject.Sodx(add existing project item)

Delete the image property then re-add it 

Deploy

Badge +3

Hi 

 

Thanks for the great help thusfar, I did as you said with previos note and I can see the SmartObject refresh with the "images" property but what I have noticed in the ServiceObject Explorer/SmartBox Service/Products table does not update it still does not have the "Images" field.

 

11600i598605F51308D781.png

 

Thanks

Charl

Userlevel 5
Badge +16

Hi,

 

 

to be honest, I'm not sure what's wrong here, can you open a support ticket with k2?

Badge +3

Hi

 

Thanks I will do that.

 

Regards

Charl

Reply