Portal Web Application & Components FAQ's
How to extract data from a HTML form?
Use CgiMapRequest or CgiLookup function to extract data submitted through a HTML form.
The functions are same whether the request type is GET or POST.
What is the difference between CgiMapRequest and CgiLookUp?
CgiMapRequest Function
- Accepts Type as parameter
- Automatically converts numeric and date data types from the incoming key-value pairs
CgiLookUp Function
- Accepts a string constant as parameter
- Data type conversion must be programmatically handled (using StrExtract function)
How to extract/receive the contents of a file that is uploaded from the browser?
Current version does not support this feature.
How to handle incoming data with single key - multiple values?
Use "CgiLookupNext" function
How to generate a request to another Web Server from Vaakya Proc?
Current version does not support this feature.
How is Concurrency managed in Vaakya Portal Server?
The requests are serialized and automatically taken care of for each application instance
"Premature end of script error" is returned by web server?
Ensure that web server user (Apache or IIS user) has sufficient directory rights to execute "VaakyaPortal.cgi"
What are the Error messages raised by Vaakya Portal Server?
"Unable to Load Application"
- Check if at least one Object is defined in the application.
"Template Loading (FAILED)"
- Check if the html file is placed in appropriate path.
- Verify the syntax of Vaakya Template Variables and Block Variables
"Loading Services (FAILED)"
- Check if a Proc is associated with the WebService name.
How and where to place the CSS, JavaScript and Images required within a HTML page?
HTML files and HTML Templates are served from Vaakya Portal Server. CSS, JavaScript and images are directly returned from the Web Server.
When using Trial Version of Portal server or Portal Server (Lite) commercial version,
Place the CSS, JavaScript and images under the path "WebserverRoot\CORPUS\APPNAME\".
When uploading to Vaakya Zone to test the SaaS deployment model, these files must be placed under the "STATIC" folder within the application.
Is it possible to call an external program (C, C++ dll)?
This feature is not supported in the current version
Does Vaakya support XML Web Services?
This feature is not supported in the current version.
What "data interchange formats" are supported?
Data interchange can be done in Character (comma, pipe etc) delimiter and key-value pair format.
Is it possible to register a template at runtime?
Yes. Please refer to "TemplateRegister" function in the Portal Tutorial.
Is it possible to load a HTML file at runtime (not defined in WebTemplates)?
Yes. Please refer to "LoadFile" function in the Portal Tutorial.
How to send binary data (send an executable or compressed file to browser for download)?
Please refer to "CgiIncludeFile" function in the Portal Tutorial
Is it possible to have more than one Vaakya Block within a HTML template?
Yes. Ensure that they are not nested (Block within a block is not supported).
Is it possible to have nested Vaakya blocks?
No. Nesting of Vaakya Blocks is not supported in this version.
In case of application failure, is there a log file (similar to web server log files) to identify requests?
Yes. All the request information is stored in a log file found under the application folder. This may be enabled or disabled through the application configuration file.
What is methodology to debug a portal application?
- Executing a FORM component in Preview Mode can do syntax check of Proc.
- Check the console window of Portal Server for any error messages
- Use "Trace" function to check the value of a specific variable at runtime
- Check the Web Server and Portal Server log files to identify the contents of a request
What database utilities are provided?
Backup, restore, compact and repost utilities are supported
- Trial Version: Use "Test Project" from IDE to execute DB utilities
- Commercial Version: Use Portal Manager to execute DB utilities
This version does not provide Unicode support.
How to store unstructured data?
Current version of Vaakya Database supports storing of unstructured data as a separate file.
Is it possible to have global variables in Vaakya Portal Server, which can be accessed across multiple requests?
No. You may use hidden fields in HTML pages to transfer information. Alternatively, use a data object to store data
Is it possible to have JavaScript, VBscript, Ajax or any scripting language in HTML template?
Yes. You can have inline script embedded within a HTML template.
For every change in the Vaakya Application, is it necessary to restart the Web Server?
No. Only Vaakya Portal Server must be re-started/launched again.
How to execute a Proc in a specific time period?
Use "Scheduler" to execute a Proc at specified time intervals.
What is the minimum time duration allowed for Schedulers and Listeners?
The resolution of timer is one minute.