On occassion, it may not be workable to use a Template to output the HTML that is required; some pages may need to be so variable, depending on the data being output, or depending on the user, that the only workable solution is to output the HTML from custom code.
To tell Freedombase to ignore the Template itself, and to only return to the browser whatever was returned by the custom code, pass the HTML to be returned to be browser in the Response parameter, and make the last six characters of the data returned in Response RETURN.
Freedombase will check if the last six characters of Response are RETURN, and if so, will remove those last six characters, and will return the remaining contents of Response to the browser, bypassing the Template, and bypassing any Template After Code.
Sample code is:
SUBROUTINE Login_HTM_BEFORE(Command,User,DatabaseeClassList,KeyList,InstanceList,ErrorMessageList,SequenceList,NoUpdateFlagList,SearchFlag,Response,Error,MetaErrorFlag)
$INSERT FREEDOMBASE_DEFINITION
Response = 'The HTML to be output on the page, instead of the HTML that would normally come from the Template'
Response := 'RETURN'
RETURN
END
| previous | next |
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |

