skgupta
22nd December 2005, 10:33
Dear
I have customized Item Code with description table with two fields item (8)and desc (60), because BaaN Standard description is only 30 characters in tiitm001 table.
Also made maintain and display customize session for this table.
Now I have a problem, when I use this customize display session on maintain sales order session or other maintain session with zoom, When input Item code the find option is not working at this session
Please Help me
The script is below:
|************************************************
declaration:
table tticus002 | Item Description (Customized)
table ttdpur041
table ttdsls041
table ttibom010
extern domain tcitem item
extern domain tcmcs.str16 sess.name
|********************** Zoom section ****************
zoom.from.all:
on.entry:
import("prog.name$",sess.name)
import("tdpur041.item",item)
import("tdsls041.item",item)
on.exit:
item = ticus002.item
if sess.name = "tdpur4105s000" then
tdpur041.item = item
export("tdpur041.item",item)
else
if sess.name = "tdsls4105s000" then
tdsls041.item = item
export("tdsls041.item",item)
else
if sess.name = "tibom1110m000" then
tibom010.mitm = item
export("tibom010.mitm",item)
else
endif
endif
endif
thanks and regads,
richard
22nd December 2005, 11:46
Hello,
The second import replaces the first one, so I can't work.
Furthermore, I think it's not a good idea to customize itm001 for a longer description, it's better to use the general text or add a different field.
regards
sachin03
22nd December 2005, 20:15
Check if the item field on the customized session is a input field. also check if the find option has been enabled on the form.
skgupta
26th December 2005, 09:26
Dear All
Any other option I can use in the script. Because without find option I can not search the item in customize table (11500 records) and without import and export the item on maintain session not return the value.
Waiting with positive response
Rita Kotecha
26th December 2005, 10:13
Hi,
Not very clear what you want to achieve. The variable you are trying to export to sales order/purchase order should to imported in Sales Order / Purchase order session....
If you say it is not working - means : is it that you want to filter the display or you want the sales / Purch. orders sessions to be filtered ?
Please explain.
sharma
26th December 2005, 10:26
at the end of the above line try to use as
execute(find.data)
thanks
skgupta
26th December 2005, 11:19
Dear Rita
I have customized Item Code with description table with two fields item (16) and desc (60), because BaaN Standard description is only 30 characters in tiitm001 table.
Also made maintain and display customize session for this table.
Now I have a problem, when I use this customize display session on maintain sales order session (on lines) or other maintain session (Purchase order or production order) with zoom, and want to search the item from customize table, at that time find option did not work. (Script already attached)
Any other option I can use in the script. Because without import and export the item value can not return, given error Item not found
Waiting with positive response
beginer
26th December 2005, 13:20
Assign directly to the table variable..... ticus002.item.
As you have done for export u need to do it for import also (Session wise) and use execute(find.data) at the last.
zoom.from.all:
on.entry:
import("prog.name$",sess.name)
if sess.name = "tdpur4105s000" then
import("tdpur041.item",ticus002.item)
else
if sess.name = "tdsls4105s000" then
import("tdsls041.item",ticus002.item)
else
if sess.name = "tibom1110m000" then
import("tibom010.mitm",ticus002.item)
endif
endif
endif
execute(find.data)
skgupta
26th December 2005, 14:09
dear Beginer
execute(find.data) command also not working, please help me
regards,
csecgn
27th December 2005, 01:48
I'm not shure which Baan/SSA Version you are using. If it is Baan IV (looks like), what is the start option of the session you are zoomig to? To make beginers suggestion work, it has to be 7 - find data. Another way to enable the execute(find.data) is to disable the first command (you need a predefined var to do this. Actually I don't know the name, take a look at the manual).
HTH
Regards
csecgn
darpan
27th December 2005, 11:29
Dear Friend
Please check the start option of the display session it might be "ttadv2100m000" just find your session and check the start option and make it 7 (Refresh) then everything will go fine
It will work
Darpan Bhansali
New Delhi
darpan13@gmail.com
Rita Kotecha
27th December 2005, 12:56
Hi,
Again a few more questions, sorry
Is this script a part of your Customized display session
zoom.from.all:
on.entry:
import("prog.name$",sess.name)
if sess.name = "tdpur4105s000" then
import("tdpur041.item",ticus002.item)
else
if sess.name = "tdsls4105s000" then
import("tdsls041.item",ticus002.item)
else
if sess.name = "tibom1110m000" then
import("tibom010.mitm",ticus002.item)
endif
endif
endif
execute(find.data)
1. If yes - Do you want to only zoom to the item marked in Sales Order Line, Purchase Order Line.... ? If yes, Please check the zoom session of the fields in the sales order and purchase order lines...
darpan
9th January 2006, 14:27
You should use this option in your
field.tdsls040.orno (or whichever the field is )
before.zoom :
procesinfo$ = "automate"
and then assighn the field a value whuich u want to zoom
Hope it works
Darpan
sharma
23rd January 2006, 14:12
try it as :
zoom.from.all:
on.entry:
import("prog.name$",sess.name)
if sess.name = "tdpur4105s000" then
import("tdpur041.item",cus.item)
else
if sess.name = "tdsls4105s000" then
import("tdsls041.item",cus.item)
else
if sess.name = "tibom1110m000" then
import("tibom010.mitm",cus.item)
endif
endif
endif
ticus002.item = cus.item
execute(find.data)
Thanks