From Clomosy Docs
(Created page with "<pre style="background-color:#E14D2A; color:white"> Only Premium accounts can be used. </pre> When a value is selected from each form, it moves the selected value to another page. We can make transactions on the values we carry. The parameters you can use are given in the table below.<br> {| class="wikitable" |+ Class TPSelectedInfo |- ! Template !! Parameter |- | Customers || :Rec_Customer_GUID :Rec_Customer_Code :Rec_Customer_Name |- | Employee || :Rec_Employe...") |
No edit summary |
||
| Line 1: | Line 1: | ||
< | <div class="alert alert-danger" role="alert" data-bs-theme="light"> | ||
Only Premium accounts can be used. | |||
</div> | |||
When a value is selected from each form, it moves the selected value to another page. We can make transactions on the values we carry. The parameters you can use are given in the table below.<br> | When a value is selected from each form, it moves the selected value to another page. We can make transactions on the values we carry. The parameters you can use are given in the table below.<br> | ||
{| class="wikitable" | <div class="table-responsive"> | ||
{| class="wikitable" style="border: 2px solid #c3d7e0" | |||
|+ Class TPSelectedInfo | |+ Class TPSelectedInfo | ||
|- | |- | ||
! Template !! Parameter | ! style="background-color: #c3d7e0"| Template !!style="background-color: #c3d7e0"| Parameter | ||
|- | |- | ||
| Customers || | | Customers || | ||
| Line 75: | Line 78: | ||
'''Example Description:'''<br> | '''Example Description:'''<br> | ||
<div class="alert alert-light" role="alert" data-bs-theme="light"> | |||
clTemplateValues.Rec_Product_GUID | |||
</div> | |||
'''Sample:'''<br> | '''Sample:'''<br> | ||
When the project is opened, the Product template will be entered and the GUID, id and name of each clicked data will be accessed on the transferred page.<br> | When the project is opened, the Product template will be entered and the GUID, id and name of each clicked data will be accessed on the transferred page.<br> | ||
When you enter the project, let's call the Product template the "Main Code" section.<br> | When you enter the project, let's call the Product template the "Main Code" section.<br> | ||
<pre> | |||
begin | |||
Clomosy.OpenForm(ftProducts,fdtSingle,froAddNew,ffoNoFilter); | |||
end; | |||
</pre> | |||
Now, let's show the information of the clicked data with ShowMessage as soon as it goes to the other page when clicked. For this, let's select the fields in the Management> Codes section as follows;<br> | Now, let's show the information of the clicked data with ShowMessage as soon as it goes to the other page when clicked. For this, let's select the fields in the Management> Codes section as follows;<br> | ||
:Forms: Products.Script | :Forms: Products.Script | ||
| Line 89: | Line 98: | ||
Let's write the following code in the selected field.<br> | Let's write the following code in the selected field.<br> | ||
<pre> | |||
ShowMessage('GUID: '+clTemplateValues.Rec_Product_GUID + ' Code: '+ clTemplateValues.Rec_Product_Code + ' Name: '+ clTemplateValues.Rec_Product_Name); | |||
</pre> | |||
Now the data has arrived on the next page. You can choose and use it according to where you want to use it in your project in the Management>Codes section.<br> | Now the data has arrived on the next page. You can choose and use it according to where you want to use it in your project in the Management>Codes section.<br> | ||
Revision as of 11:01, 25 September 2024
Only Premium accounts can be used.
When a value is selected from each form, it moves the selected value to another page. We can make transactions on the values we carry. The parameters you can use are given in the table below.
| Template | Parameter |
|---|---|
| Customers |
|
| Employee |
|
| Item |
|
| Product |
|
| Task |
|
| Group |
|
| Type |
|
| Member |
|
| Master |
|
| BaseCustom |
|
| Activity |
|
| Thread |
|
| Surexam |
|
Example Description:
clTemplateValues.Rec_Product_GUID
Sample:
When the project is opened, the Product template will be entered and the GUID, id and name of each clicked data will be accessed on the transferred page.
When you enter the project, let's call the Product template the "Main Code" section.
begin Clomosy.OpenForm(ftProducts,fdtSingle,froAddNew,ffoNoFilter); end;
Now, let's show the information of the clicked data with ShowMessage as soon as it goes to the other page when clicked. For this, let's select the fields in the Management> Codes section as follows;
- Forms: Products.Script
- User/Normal : Form
- Events : ListView.OnBeforeClick
Let's write the following code in the selected field.
ShowMessage('GUID: '+clTemplateValues.Rec_Product_GUID + ' Code: '+ clTemplateValues.Rec_Product_Code + ' Name: '+ clTemplateValues.Rec_Product_Name);
Now the data has arrived on the next page. You can choose and use it according to where you want to use it in your project in the Management>Codes section.