Back Forward Function form
Completing the Java tab

  1. About 
  2. New 
  3. Parameters 
  4. Java 
  5. Alias 
  6. Imports & Exceptions 
  1. History 
  2. More... 

Enter the Java source code of the function in this tab.

Authoring

  1. Click(magnifying glass) to start your Java editor or IDE. (If you have not set up a Java editor, PRPC uses Windows Notepad as the editor. See How to set up a Java development environment.)
  2. Enter your Java code, which may call methods in the PublicAPI.
  3. Exit from the editor to upload the Java code into the rule form.
  4. Save the Function rule form.

Notes

Use this function to reference the activity passed in:

CallingActivity.getPage(...)

Two frequently used Java API methods are createPage() and getPage(). Consult the JavaDocs topics for the PublicAPI interface to learn more about the available methods and their parameters.

See More about Function rules and Examples — Using inline Java and PublicAPI facilities for additional guidance on Java code you can use here.

Access the Parameters tab to compile the library, including this function, when you are ready to test.

NoteUse the String.equals() Java method, not the == or != operators, to compare the value of a property to a literal string or to the value of another property.

CautionThe Java code in a function rule is restricted to computations and limited types of side effects. You can't perform stateful processing, use member variables or extend classes in a function.

Up About Function rules