Post mode=
Documenter
Post mode=
Get a list of workflow for a given file type.
function getClientFiles_example() {
$rm_options = get_option('ccb_option_name');
?>
<br><strong><a href="<?php echo $_GET['returnURL'];?>">Back</a></strong><p>
<?php
try {
$keys_ar = array(
"clientID" => "824" // some client id
);
$keys_json = json_encode($keys_ar);
$transData_ar = array(
"groupInd" => "1"
) ;
$transData_json = json_encode($transData_ar);
util_dump_var($keys_ar, "Key Parameters") ;
util_dump_var($transData_ar, "Transaction Data Parameters") ;
$response = wp_remote_post( $rm_options['webservice_url'], array(
'method' => 'POST',
'timeout' => 45,
'redirection' => 5,
'httpversion' => '1.0',
'blocking' => true,
'headers' => array(),
'body' => array(
"serviceName" => "content",
"function" => "ccb_getClientFiles",
"keys" => $keys_json,
"transData" => $transData_json
),
'cookies' => array()
)
);
if ( is_wp_error( $response ) ) {
$error_message = $response->get_error_message();
util_log("Web service error in:" . $postParameters["service"] . " " . $postParameters["function"] . " " . $error_message);
} else {
}
$obj = json_decode($response['body'], true);
$responseData = $obj["data"] ;
util_dump_var($responseData, "wp_remote_post response") ;
return $responseData ;
}
catch (Exception $e) {
return "<br>searchImportTables_example Error: " . $e->getMessage();
}
}
Get a list of a particular client’s files
function getClientFiles_example() {
$rm_options = get_option('ccb_option_name');
?>
<br><strong><a href="<?php echo $_GET['returnURL'];?>">Back</a></strong><p>
<?php
try {
$keys_ar = array(
"clientID" => "824" // some client id
);
$keys_json = json_encode($keys_ar);
$transData_ar = array(
"groupInd" => "1"
) ;
$transData_json = json_encode($transData_ar);
util_dump_var($keys_ar, "Key Parameters") ;
util_dump_var($transData_ar, "Transaction Data Parameters") ;
$response = wp_remote_post( $rm_options['webservice_url'], array(
'method' => 'POST',
'timeout' => 45,
'redirection' => 5,
'httpversion' => '1.0',
'blocking' => true,
'headers' => array(),
'body' => array(
"serviceName" => "content",
"function" => "ccb_getClientFiles",
"keys" => $keys_json,
"transData" => $transData_json
),
'cookies' => array()
)
);
if ( is_wp_error( $response ) ) {
$error_message = $response->get_error_message();
util_log("Web service error in:" . $postParameters["service"] . " " . $postParameters["function"] . " " . $error_message);
} else {
}
$obj = json_decode($response['body'], true);
$responseData = $obj["data"] ;
util_dump_var($responseData, "wp_remote_post response") ;
return $responseData ;
}
catch (Exception $e) {
return "<br>searchImportTables_example Error: " . $e->getMessage();
}
}
Example:
Welcome to WordPress. This is your first post. Edit or delete it, then start writing!
Updates the Form record
Click here for an example.
For a given scope defined by the Keys parameters, this service generates a page through multiple calls to the cdd_makeDataControl service to render all the forms from the resulting query.
When a form is 1 to 1 (ie: only one occurrence, for example Contact Info), the service renders a update-able form as defined in the configuration.
When a form is 1 to many (ie: repeating occurrences, for example Dependents), the service renders a read only sort-able table where any row can be expanded to an update-able detail form.
array)
Defines the scope of the query to the client data. For example, if only the ClientID key was provided, the query will return all the client’s active forms. If the ClientID and FileID’s were provided, only the active forms the client’s file will be returned. If the ClientID, FileID an ID was provided, only that single form will be returned.
Refer to the cdd_makeDataControl for the key value pairs of available UX Parameters but preface the parameter key with an ID and a “;” .
The following parameters are the most commonly used cdd_makeDataControl ux parameters .
Place the custom javascript functions in the plugin’s ajax.js file.
Place the custom css classes in the plugin’s style.css file.
To meet a given requirement, where there no ID on the default form, tell the back end developer where you want the span to start and to end, and refresh the form to get it’s ID.
Gets the process info for a given form.
Click here for an example.
Gets the UX information about the element on a particular form.
Generate the applicable data control for data element based on it’s content value from the CDD (ie: saved to the data base and not value on the web page) , dictionary settings and developer’s UX parameters.
Scope | Required Parameters | |
No content |
|
|
Client |
|
|
Specific Event |
|
Notes regarding Content Scope
Parameter Name | Purpose | Type | Default | Options | Purpose |
allow_update | Allows update | Boolean | False | True | Creates a control that allows user input. |
return_oldest_value | Override the CCB’s default to return the most recent value. | Boolean | False | True | To return the first value of the element. |
code_lookup_type | To set the type of HTML control when the dataelement isCodeLookup = True | String | text | option | Option list |
String | select | Select list | |||
String | radio | radio button group | |||
String | buttonarea | ||||
String | checkbox | ||||
num_cols | If the code_lookup_type is set to a radio or checkbox, controls are horizontal. | Number | 1 | 2,3,4,… | Arranges the control horizontally. |
add_zero_row | Boolean | ||||
js_function | javascript | String | null | Custom java script | |
css_class | String | ||||
css_label | css_label | String | label_1 | Custom CSS | |
css_data | CSS name for the data portion of the control | String | data_1 | Custom CSS | |
css_style | Style for the control | String | null | Custom style | |
bold_label_ind | Boolean | ||||
label_type | Override label/data left to right | String | none | No label | |
other_label | Override the default Label_Med value in the dictionary | String | Custom label | ||
textarea_cols | Number | ||||
textarea_rows | Number | ||||
textarea_nl2lf | Boolean | ||||
in_widget_ind | overrides the default 600ox width of a text area | Boolean | False | True | Width=350 |
img_height | Number | ||||
is_id_name_unique | Handles web pages with more than 1 dataset and possible name collisions with javascript and jquery references to it’s ID and Name | Boolean | False | True | Provide an optional id_name (below) |
id_name | Overrides the default unique ID name | String |
Click here for an example.