View Full Version : [CLOSED]Help Text
GordS
03-20-2010, 04:51 PM
Does Valence have the ability to add Help text for the options we create within it? This would be helpful for the end users. I could not find anyhing in the manual except informtion about Valence help.
robert.swanson
03-22-2010, 08:25 AM
This is on our list for Valence 2.2 - to add a "Help Text" checkbox option in AutoCode which, when checked, will automatically include a placeholder for help text.
In the meantime, take a look at the source behind any of the Administration programs, all of which include a "Help" button. You can copy that logic into your program. The Settings app is a good example.
GordS
03-22-2010, 07:42 PM
Robert
That worked thanks for your help.
GordS
04-24-2010, 05:33 PM
I currently need to have my help files in the same place as Valence help files. Here is what I have changed in my code to get it to work based on the previous posts.
I added this to define vlit which I needed to get help to work.
var vlit = parent.Valence.lang.lit;
I added this to tbar definition.
, {
xtype: 'tbfill'
},{
text: vlit.help,
tooltip: vlit.help,
iconCls: 'help',
handler: function() {
parent.showHelp('/vvresources/help/apsablthelp.html')
}
}
I want my help files to be in the following directory as I defined in Valence web server configuration.
# Help directives
Alias /Help /www/smsserver/HTML/Help
<Directory /www/smsserver/HTML/Help>
Order Allow,Deny
allow from all
</Directory>
But when I change the location of my file it just says loading. What do I need to change to make it work as I require. I think long term it is not a good idea to have these help files in a Valence directory.
richard.milone
04-24-2010, 05:53 PM
That's a great move to keep your help files out of the Valence folders. It will give you a lot less headache when you upgrade. Your problem is likely an authority issue either on the folder or the file. Just because you have authorized the path in the Apache server does not mean the i will allow access. Do a WRKAUT on the /www/smsserver/HTML/Help path and the file and make sure you have the proper authority to access. If that's not it there should be a message in the joblog of one of the VALENCE21 server instance jobs (one of the non-CGI jobs) telling you what the problem is.
GordS
04-24-2010, 06:55 PM
Richard You are correct that it is an authority issue. Firebug is reporting it. But I am not sure what is wrong. Here is my changed HTML code.
text: vlit.help,
tooltip: vlit.help,
iconCls: 'help',
handler: function() {
parent.showHelp('/Help/apmcusthelp.html')
When I do WRKAUT OBJ('/www/smsserver/HTML/Help'), I get the following:
*PUBLIC *X
GORD *RWX
QTMHHTP1 *RWX
QTMHHTTP *R
Here is the security on my help file WRKAUT OBJ('/www/smsserver/HTML/Help/apmcusthelp.html')
*PUBLIC *RWX
GORD *RWX
QTMHHTP1 *RWX
QTMHHTTP *RWX
I am not sure why it is forbidden. What I am missing? It must be some little detail.
richard.milone
04-24-2010, 07:13 PM
Those authorities should be good enough. I'm sure you probably did but I feel like I should ask anyway: did you restart the VALENCE21 server instance after you changed the configuration to allow access to the Help folder? Nothing else is coming to mind on what the problem could be. If you still don't have it working by Monday morning I'll get online with you and help you debug it.
GordS
04-25-2010, 12:10 PM
Richard I have done this type of stuff before,so it does have me baffled. It must a little thing. Here is what Forebug is reporting.
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>403 Forbidden</TITLE>
</HEAD><BODY>
<H1>Forbidden</H1>
<P>You do not have permission to access /Help/apmcusthelp.html
on this server.</P>
</body></html>
Call me Monday morning at 8 a.m. my time. Thanks
GordS
04-26-2010, 12:49 PM
Richard Thanks for you help in getting this problem resolved. We needed to make sure that the user profile QTMHHTTP had *RWX writes throughout our path to get it to work.
vBulletin® v3.7.1, Copyright ©2000-2010, Jelsoft Enterprises Ltd.