Form Related Methods - ZCUISDKUtil | Zoho Creator Help

Form related methods

The ZCUISDKUtil of Zoho Creator's Android SDK lets you manage the interface of the components of your Zoho Creator applications.

Note: You'll need extend your activity from ZCBaseActivity to embed the UI component in your Android app.

static void startFormActivity(Activity activity, String appOwnerName, String appLinkName, String formLinkName, String formDisplayName, String queryParam)
This method will launch the FormActivity with the specified form loaded in it.

Parameters:

activityCurrent activity instance to launch the next activity.
appOwnerNameThe owner name of the application as String.
appLinkNameThe link name of the application as String.
formLinkNameThe link name of the required form in the application as Strin.
formDisplayNameDisplay name of the form as String.
queryParam
Value for the fields in the form as queryParams. Format:
fieldLinkName1=value1&fieldLinkName2=value as String

 

static Fragment getFragmentForForm(String appOwnerName, String appLinkName, String formLinkName, String queryString, SubmitHandler submitHandler)

This method will return the Fragment with the specified form loaded in it. If shubmitHandler param is not null, it will throw a call back to SubmitHandler.onSuccess() method.

Parameters:

appOwnerNameThe owner name of the application as String.
appLinkNameThe link name of the application as String.
formLinkNameThe link name of the required form in the application as Strin.
queryString
Value for the fields in the form as queryParams. Format:
fieldLinkName1=value1&fieldLinkName2=value as String
submitHandlerInstance of SubmitHandler interface. If no call back required keep it as null.

fun startFormActivity(activity: Activity, appOwnerName: String, appLinkName: String, formLinkName: String, formDisplayName: String, queryParam: String)

Launches the FormActivity with the specified form loaded in it.

Parameters:

activityCurrent activity instance to launch the next activity.
appOwnerNameThe Zoho username of the required Creator application's owner.
appLinkNameThe link name of the Creator application that contains the specified form.
formLinkNameThe link name of the required form.
formDisplayNameThe display name of the required form.
queryParam
Specifies values for the required fields in the required form. Format:
fieldLinkName1=value1&fieldLinkName2=value2

 

fun getFragmentForForm(appOwnerName: String, appLinkName: String, formLinkName: String, queryString: String, submitHandler: SubmitHandler?): Fragment?

Returns the Fragment with the specified form loaded in it. If the submitHandler parameter is not null, it will throw callback to SubmitHandler onSuccess().

Parameters:

appOwnerNameThe Zoho username of the required Creator application's owner.
appLinkNameThe link name of the Creator application that contains the specified form.
formLinkNameThe link name of the required form.
queryString
Specifies values for the required fields in the required form. Format:
fieldLinkName1=value1&fieldLinkName2=value2
submitHandlerThe instance of the SubmitHandler interface. Keep it as null if no callback is required.