rreichenbach
9th April 2010, 10:35
Hi, does anybody know how to realize showing a picture on a form in webtop. We reealized it with additional files and icon groups and it works in worktop but nothing is shown in webtop. Thanks in advance.

NPRao
10th April 2010, 02:30
You have to transfer the additional files from your ERP server path $BSE/application/<package><VRC>/b<package><module>/b<module><yourfilename>.gif to the Web Server /opt/web/tomcat/appserver/webapps/webtop/erp/images/<package>/<module>/b<module><yourfilename>.gif

Replace the Tomcat Installation path [/opt/web/tomcat/appserver/] based on your webserver's path.

You can write a program to do this regularly after code migrations.

rreichenbach
13th April 2010, 16:50
Thanks, but it still does not work, nothing is displayed, not even the box around the field?!

NPRao
13th April 2010, 18:44
Are you on the latest Webtop 8.5/8.5 build with ERP server on Porting Set 8.5x or 8.6x? If you are on older versions, then you have to regenerate the form cache.
Also add screenshots, and path info of the additional files and webserver's gifs.

sa_sch
4th May 2010, 09:51
Hi!
We transfered the files to our web server and inserted the path directly in the program script as third argument absolute.file of change.picture()
But nothing is displayed in webtop. New code:

if tc.is.thin.client() then
file = "/ssaln/ese/Webtop/web/erp/images/tc/bmm/bbmmpicture1.gif"
endif
ret = change.picture("f.picture", "", file)

(tc = package; bmm = module)

Have I missed anything?

Regards

NPRao
5th May 2010, 02:26
I am not sure why are you changing code to view the gif? You just had to copy the gifs from Baan Application Server to the Web Server as per my previous posting and the Webtop will start displaying the gifs in the secondary tool bars.

The change.picture() is deprecated. Refer to my posting #21, in the thread for more info - Photo display on form (http://www.baanboard.com/baanboard/showthread.php?t=5825&highlight=picture+dfe&page=2)

sa_sch
5th May 2010, 09:49
Oh, I should have described it better.
I want to show the picture on a dashboard. When you open the session, it should be a logo as default. When you mark one of the articles in the list below, the picture should show a photo of the article instead of the logo.
So I thought it should be handled with change.picture(). But I'm new in Baan...

Regards

NPRao
5th May 2010, 23:34
I am not sure if that can be done. You can only change the background, logo, fonts, skin etc.