smallboy
27th November 2012, 17:41
Hi to all
I'm developing a new session and I would like to add an extra toolbar
So in the script of session I've add:

group.1:
init.group:
ret = create.extra.toolbar("create.warehouse.order", "pp_revisions")



but the toolbar is not displayed at all. I've debug the script and noticed that the ret is 0 after the call to create.extra.toolbar, that means "toolbar not allowed in this type of session". The session is maintain with window type list window.
What I'm doing wrong?
Thank you!
smallboy

BaanInOhio
27th November 2012, 18:40
Is "pp_revisions" a valid .gif file that you imported using "Addtional Files" (ttadv2570m000)? The .gif file must be imported into the same package and module as the session.

smallboy
28th November 2012, 09:32
Is "pp_revisions" a valid .gif file that you imported using "Addtional Files" (ttadv2570m000)? The .gif file must be imported into the same package and module as the session.

Hi BaanInOhio,
thank you for your reply!
that was the issue; if I use a gif present in ttadv2570m000 for package/module wh wmd, the toolbar is displayed correctly (my new session is in wh wmd).
pp_revision is present but for another package
So the gif images you can use are only the ones present for that particular package. Correct?
Looking at the code of various sessions I've noticed that sometimes the name of the gif is given with :
for example in tdsls1500m000 you can find

function create.toolbar.tdsls1600m000()
{
g.ret = create.extra.toolbar(
"to.lines" , "lines" ,
"" , "" ,
"global.confirm" , "globl_confrm" ,
"tdsls1200m000" , "proc_sls_quot" ,
"global.lost" , "quotation_lost" ,
"global.cancel" , "tdgen:cancel_ord_ln",
"" , "" ,
"recalc.pric.disc.ent.ord", "recalc_pri_dis",
"start.pegging" , "tdgen:pegging_relation",
"sales.quotation.margin" , "order_margin" ,
"" , "" ,
"tdsls1201m100" , "gen_bu_str_sq" ,
"tdsls1550m000" , "tdgen:history")
}


note tdgen:cancel_ord_ln for example.
What does it means?
Last question :
ttadv2570m000 is for Addtional Files; that means that there is also a list of standard icons that can be used?

Thank you very much!
Pier

vahdani
14th December 2012, 14:10
Hi,

1) A Prefix such as "tdgen:" means that the gif is in another module (here tdgen) than the module of your session (here tdsls). In you code example all gifs without module prefix should be available in the actual module "tdsls"

2) Yes you should be able to use all the gif-files in ttadv2570m000. The gif files themselves are stored like any other software component in pro package VRC(PVRC) and module (ppmmm) in a separate folder $BSE/application/PVRC/bppmmm.