Custom Tag : cf_duxi
Intended Use; Optimizing the code on form pages allows us to use it more efficiently.
Things to Consider When Using Duxi:
Creating a new cfc file under the cfc folder in the folder where the duxi page we will use is located.
Changing the file extension of our cfc file. in between '.' Go to the WO detail of our page and write it to the Data Cfc section, provided that it is marked.
After creating the main function we created in the cfc file, we return it by sending the id in the get function.
On the form page, we determine the main function we created in the cfc file in the data in the cf_duxi tag.
The value we wrote in the data is in our file. We can print it to the screen as data_(name of the cfc file).
The different functions we created in cfc on the form page
The id we gave to the cf_box we created in the form file must be unique.
Attirubutes | Description | [ 80]Type | Mandatory |
Onclick_ | List used in pages. We give page redirection to the word we specify as text. The page opens as a popup. | text | E |
name | Name the element determines | nvarchar | E |
type | Type of the element | text | E |
data_control | A name for the currency and date If it is not given, we cannot see it on the screen | numeric | E |
placeholder | Descriptive information of the input and textarea fields of the forms These are the fields we show. | text | E |
label | Creating descriptive labels for form controls provides. | text | H |
Input By connecting it to a modal, you can view the screen as a draggable box. | text | E | |
data | The value we extracted from our cfc file is displayed on the screen. suppresses. '#' sign when suppressing value, unlike Value we do not use it. | numeric | E |
gdpr | 1,2,3,4,5,6,7,8,9 We grant gdpr authorization with the values. If the user has gdpr authorization, the user can access the data, otherwise the data is masked and user access is not possible. is closed. | numeric | E |
asname | The function we called in our cfc file is created in a new form page. We define a name. | numeric | E |
function | Cfc We write the path of the functions we will call in our file and form We use it on the page. | numeric | E |
option | Listing the data we will select with the Selectbox. provides | nvarchar | E |
currencyname | When we use data_control, we use data name as currencname. | nvarchar | E |
currencyvalue | data_control in structures where we use id value with currencyvalue We can specify the width of the div columns in the form. Ex: div_col="9" | numeric | |
label_col | Label columns in the form We can specify the width. For example: label_col="3" | numeric | |
value | asname When taking data from the function, we write the id part, or if we want to print more than one data to the input, we use value to display more than one value on the screen. | numeric | E |
Example Usage
cf_box_data Usage:
cf_box_elements Usage:
Duxi Usages by Type:
Type=Hidden:
Type=Text:
Type=Upload:
Type=Image:
Type=selectbox:
data_control Usage:
datetime: < cf_duxi name="finish" type="text" data_control="datetime" data="data_project.target_finish" hint="Bitiş Tarihi " label="57700">
money
threepoint Usage:
< cf_duxi name="emp_name" type="text" label="1714" data="get_worknet.MANAGER" threepoint="#request.self#? fuseaction=objects.popup_list_positions&field_emp_id=form_upd_worknet.emp_id&field_name=
form_upd_worknet.emp_name&field_emp_mail=form_upd_worknet.emp_email&select_list=1">
Onclick_ and gdpr Usage: