|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.dss.thin.beans.CaboUtils
CaboUtils is utility class that implements Cabo helper methods.
Method Summary | |
static java.lang.String |
createStringLiteral(java.lang.String inString) Given a Java String, this method creates a string literal from a Java String. |
static void |
createStringLiteral(java.lang.StringBuffer outBuffer, java.lang.String inString) Given a StringBuffer and a String, this routine writes the string literal of the string into the StringBuffer. |
static java.lang.String |
createSubmitFormScript(oracle.cabo.ui.RenderingContext context, java.lang.String formName, java.lang.String[][] params, boolean validate) This routine helps application programmers create the section of a javascript routine that submits a form with specific event parameters. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String createStringLiteral(java.lang.String inString)
inString
- the string to turn into a string literalpublic static void createStringLiteral(java.lang.StringBuffer outBuffer, java.lang.String inString)
outBuffer
- the StringBuffer that the string literal will be appended toinString
- the string to be turned into a string literal and appended to the outBufferpublic static java.lang.String createSubmitFormScript(oracle.cabo.ui.RenderingContext context, java.lang.String formName, java.lang.String[][] params, boolean validate)
If this javascript routine needs to be set on an OnClick handler of a link, then extra javascript needs to be placed around the method invokation, in order for the javascript to work correctly.
For example, the javascript for an OnClick handler that needs to send the form to a different form destination than was rendered with the form would be: "document.myForm.action='http:\\myServlet\myNewPage';submitForm('myForm',1,{param1,'param1Value'});return false".
The parameter values that are passed into this routine can either be string literals or javascript variables. If they are string literals, then they need to be single quoted and must be string literals as opposed to actual strings. In order to change a java string into a string literal, CaboUtils provides a createStringLiteral() method. If the parameter values are javascript variables, then they do not need to be single quoted and should not be changed into string literals. Note : The submitForm javascript routine is provided by the UIX core and is located in the MarlinCore.js javascript file.
context
- the RenderingContext, which is used to add the parameters to the formformName
- the name of the form to be submittedparams
- a 2D array of parameter names and values, the parameter values can either be references to other javascript variables (myValue) or string literals ('myValues').validate
- if validate is true, then the form be validated before it is submitted
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |