Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The code snippet below prints the name of all forms in the '''appEntry''' applicationthe appEntry application:

Code Block
    ApplicationEntry appEntry = ...;
    FormTypeFeed ftFeed = appEntry.getFormTypeFeed();
    for(FormTypeEntry ftEntry: ftFeed.getEntries()){
        System.out.println("Form Name: " + ftEntry.getTitle().getPlainText());
    }

...

The code snippet below prints the name of all schemas in the '''appEntry''' applicationthe appEntry application:

Code Block
    ApplicationEntry appEntry = ...;
    SchemaFeed themeFeed = appEntry.getSchemaFeed();
    for(SchemaEntry schemaEntry: schemaFeed.getEntries()){
        System.out.println("Schema Name: " + schemaEntry.getTitle().getPlainText());
    }

...

First get a hold of the corresponding '''FormTypeEntry''', then get the form url as shown in the snipped below:

...