To fetch the sections present in a Creator app
- try {
- // your code goes here
- ZCApplication firstApp = appList.get(0);
- List<ZCSection> sections =
- ZOHOCreatorUtil.getApplicationDetails(firstApp);
- } catch (ZCException e) {
- e.printStackTrace();
- // Handle Error
- }
To fetch a form's meta information
In the below snippet, Orders is the target form's link name:- try {
- ... // your code goes here
- ZCSection firstSection = sections.get(0);
- ZCComponent firstComponent =
- firstSection.getComponents().get(0);
- if(firstComponent.getType().equals(ZCComponentType.FORM)){
- ZCForm form = FormUtil.getForm(firstComponent);
- }
- } catch (ZCException e) {
- e.printStackTrace();
- // Handle Error
- }
To fetch a report's meta information
In the below snippet, All_Orders is the target report's report name:- try {
- ... // your code goes here
- ZCSection firstSection = sections.get(0);
- ZCComponent firstComponent =
- firstSection.getComponents().get(0);
- if(firstComponent.getType().equals(ZCComponentType.REPORT)){
- ZCReport report = ReportUtil.getReport(firstComponent);
- }
- } catch (ZCException e) {
- e.printStackTrace();
- // Handle Error
- } catch (CloneNotSupportedException e) {
- e.printStackTrace();
- }