Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Development

User login

Frontpage Sponsor

Main

Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
18%
200 - 500 GB
29%
500 - 800 GB
3%
800 - 1200 GB
8%
1200 - 1500 GB
8%
1500 - 2000 GB
12%
> 2000 GB
23%
Total votes: 77

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 5th November 2019, 07:06
tmannais's Avatar
tmannais tmannais is offline
Senior Member
 
Join Date: Jul 2017
Location: Thailand, Bangkok
Posts: 220
tmannais is on a distinguished road
Baan: LN 10.5, 10.6, 10.7 - DB: MSSQL - OS: Windows
How to display item image in a session without main table and access to script?
Baan: Infor ERP 10.6
C/S: Both

I have a requirement to display an image in a session that has no main table.
The image is item image from tcibd001 where it can be attached to individual image by session tcibd0501m000 without using ODM.
I can duplicate the session to edit the Dynamic Form but I do not have access to standard program script so bind.image function will not work because it has to be used in after.form.read: (I tried). However, I can write some codes using Extensibility.
What I have tried is to create an image field in to Dynamic Form of the session and assign a field to it. The field is declared in Session Extension.
I tried giving it the value of
- tcibd001.imag
- uuid.format$(tcibd001.imag)
in When Field Changes of Item field but none of them work. The field just does not display any image.
I am using LNUI. The images are PNG. (Yes, I saw the GIF utility but haven't tried since it specifically points out that the image has to be GIF)
Any help is appreciated.
Reply With Quote
  #2  
Old 11th November 2019, 06:15
tmannais's Avatar
tmannais tmannais is offline
Senior Member
 
Join Date: Jul 2017
Location: Thailand, Bangkok
Posts: 220
tmannais is on a distinguished road
Baan: LN 10.5, 10.6, 10.7 - DB: MSSQL - OS: Windows
Since that very tight requirements make it almost impossible to achieve the desired goal, it is now changed to a fully customized session where I can write my own script to make it work.
So the way it works now is just as the following:

Code:
declaration:
	table   ttcibd001
	extern domain	ttdyf.picture	item.image

after.form.read:
	bind.image("item.image", "tcibd001.imag")
plus, of course, the image field in the DFE. I am amazed it's that simple.

Last edited by tmannais : 11th November 2019 at 12:37. Reason: extern
Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ue.before.after.destroy.object pralash Tools Development 8 6th August 2018 14:37
access external table from baan session nokopi Tools Development 5 5th March 2010 18:26
copy records c_siek Tools Development 9 18th June 2004 16:43


All times are GMT +2. The time now is 06:16.


©2001-2018 - Baanboard.com - Baanforums.com