dogu_00
20th March 2007, 13:45
Hello,

I am trying to open a session's help with help viewer. I succeeded to open the help viewer object (ottstphelp) but I can not start this object with the help text that I want.

My code is so far is as follows:

function zoom.help()
{
zoom.to$ ("ttstphelp",z.session,"","",0)

}


Do you know if I can import some variables to this session ? what can be the variable names that I can use ?

Any help, clue will be appriciated :)

Thanks,

Dogu

mark_h
20th March 2007, 14:12
Can I ask why you are trying to zoom to the help session? Can't the user just click help about session. This may or may not help, but try bic_info on the session and see if it helps.

dogu_00
20th March 2007, 14:48
Hello Mark,

The main reason is that I want to open the help viewer when a user logs into BAAN automatically (I have already a 3gl script that runs in BMS_MASK in background for password aging)

So this help session will have links to other help sessions for our customized sessions,

But now you questioned it..., may be I can do a simple session instead that opens automatically and has this help that I want. The user just needs to open the help of this session.

george7a
20th March 2007, 14:54
Another way is to write your help in a file and use the display.file() function that is in ottdlldisplay DLL. Check this link for the syntax:
http://www.baanboard.com/baanboard/showthread.php?t=6823&highlight=display.file

I hope it helps,

- George

mark_h
20th March 2007, 15:11
Sorry George - I undeleted this thread because this is an option I think is valid.

george7a
20th March 2007, 15:20
That's OK Mark.

I think a better solution is to build a 3GL session. It can include links.

- George

mark_h
20th March 2007, 15:22
Yeah - but with your solution he can force them to view the help.

mark_h
20th March 2007, 15:28
Oops - I meant to say view some text.

dogu_00
20th March 2007, 16:22
Thanks for the replies, display.file is a good function. Can be useful in other things also...

What I like about the help viewer (ottstphelp) object is that it is possible to use hypertexts, by this way linking session execution and running other helps are very easy... Ex: %SEtiitm0101m000 etc.

But of course eventhough it is very cumbersome to produce graphical screens, 3GL is the most complete solution I guess. If no other suggestions comes for tt stphelp ...

mark_h
20th March 2007, 18:09
Have you thought about a 4GL session with start option 60?

goooch
2nd March 2010, 15:35
So, three years... maybe somebody will be interested in

long old.mwindow,new.mwindow,child.pid
old.mwindow = current.mwindow()
new.mwindow = create.mwindow( "Help", DSCHARBASED, DSMENUOFF)
change.mwindow(new.mwindow)
child.pid = act.and.sleep("ottstphelp","tdpur041","6")
if child.pid then
set.pgrp( child.pid, child.pid )
grab.mwindow( new.mwindow, child.pid )
reactivate( child.pid )
endif
change.mwindow ( old.mwindow )
destroy.mwindow( new.mwindow)

"tdpur041","6" - it's the art of programming I think

george7a
2nd March 2010, 15:49
Nice one Goooch! I haven't tried yet but it looks promising!

It is another one of those undocumented features (http://www.baanboard.com/baanboard/showthread.php?t=36550) of Baan.


P.S. Can you add it to the thread of undocumented features (http://www.baanboard.com/baanboard/showthread.php?t=36550) or shall I?

goooch
2nd March 2010, 16:02
Hi George!
I'll appreciate your posting

gooooch

george7a
3rd March 2010, 08:43
If you want me to document this, I'll need to know a bit more about the object. Do you have the full documentation of how does it work? for example, how can I view the "how to use" the session? or a specific field help?

In your code, what is the 3rd argument that the object takes ("6" in your example)

goooch
3rd March 2010, 10:00
Dear George, I think I can not help a lot. But maybe my story helps.
Yesterday I wanted to add in my special program a function that opens help on any table in baan. I found no information about how to do it on the BaanBoard but this thread was found. "So zoom does not work" I thougth. If I were a tools programmer I prefer parameters to be passed as arguments. With bic_info and simple function get.indexed.var I found "help.argument" array that had some interesting information: session code and 5. When I opened tdpur041 table help there were tdpur041 and 6.
Then started a ottstphelp script from menu with these arguments I got the same help. So it was enough for me. Some troubles with starting as a child were solved with standard algorithm of creating a mwindow and a new process.
At this moment I guess only that the first parameter is an object code and the second is a number - 5 for session and 6 for tables.


gooooch