bpitman wrote:
I am not sure how we got ASP script here. The section names are available as standard lectora variables. CurrentSectionName. You can see all the variables by going to Tools menu > Manage variables. If you need the section name when you are NOT in the section, you just save it in a variable while you are in the section. Action: Modify VariableTarget: (your variable name) Ex. FirstSectionNameValue: var(CurrentSectionName)Type: SetYou have to use a different variable for each section you want to save it for. So if you have 10 sections, you will have 10 variables - maybe SectionName1, etc. I use a asp-script for saving all data to a database. The problem with adding a variable in each section is that you have to do that for every test. The thing is that it's not me that will be building the tests and all these guys should have to do is put a .asp-file in the testfolder and use "submit to cgi" in lectora and specify the adress to the asp-script. If you can get the section ID it should not be that hard to get the section name either. (Sorry for my crappy english byt the way :D)