当前位置:网站首页>Skills of using Silverball Valley V Encyclopedia: cross component reference table and method

Skills of using Silverball Valley V Encyclopedia: cross component reference table and method

2020-12-08 11:09:53 osc_ ninety-nine million one hundred and twenty-eight thousand

Silver bullet Valley Low code V Encyclopedias | Using skills : Reference tables and methods across components

Cross member , seeing the name of a thing one thinks of its function , It's a component A You can reference components B Table of , Execution components B Methods .

After cross component implementation , Not to use this table or method at all , And each component is added once , It not only simplifies the operation , It also makes the components more coherent .

 

Cross component reference table

In order to let everybody have a clearer understanding of , Here small V Two components are used as examples to explain .

 

artifacts A(demo) Call component B(studentcj).

Simply speaking , It's a component B Output , artifacts A quote .

 

1、 Output Settings

In the component B Select component output from . Check the required output table and confirm .

After setting, the corresponding table appears in the output directory .

 

2、 Deployment artifacts

There are two ways to deploy here :

One is to deploy to the private library , If you have your own private library, you can select the component and right-click , Select deploy to private library .

The second is to deploy locally , A deployment package will be generated .

 

3、 Reference settings

Add the component B After the table output of , We're going to start with components A reference .

Open the component A, Select the reference and right-click to select “ Add quotes ”.

As we output, deployment is divided into deployment to private library and deployment to local , The same is true of citations .

 

One is to use private library reference , Select the private library just deployed in the component library , Click on “ Query component ”, Check the component B(studentcj), Click on “ Add to reference ”, determine .

Second, local quotation , Click on “ Choose... Locally ”, Find the deployment package just now .

The reference is added successfully , The referenced table will appear under the referenced directory .

 

4、 Reference tables use

After the reference is successful, we can use the component A Use the reference table just now .

Open a form , Switch to the entities page to add entities , And then click “ Select from the table ” Button , Select the reference table in the pop-up box . The reference table operation is complete .

notes : Cannot add, delete or modify the referenced table , To operate , Please set the rule in the component of the output table , Output method , It can be referenced by other components .

 

Cross component execution methods

Method output 、 Deploy 、 quote , In the same way as a table .

You can output client and server methods .

 

Let's first distinguish between the client-side method and the server-side method

Server side method unique maintenance address , It's in the component method menu “ Server side method ”, Commonly known as backstage method .

The rest belongs to client methods , Commonly known as the front desk method .

1、 Execution method

Form rules 【 Execution method 】, Can execute referenced client and server methods .

Server side method rules in component methods 【 Execution method 】, Only referenced server-side methods can be executed .

 

Focus on : artifacts A And components B, Must be deployed to the same execution system environment , Otherwise, the table or method will not be found when using it .

 

What about? , Have you all learned ? This little trick can be said to save time and effort , It is very convenient , I believe that people who master this will be much more relaxed in their future work , Official account “ Silver bullet Valley ” Learn more !

 

So this week V That's the end of the encyclopedia , Let's see you next week ~

版权声明
本文为[osc_ ninety-nine million one hundred and twenty-eight thousand ]所创,转载请带上原文链接,感谢
https://chowdera.com/2020/12/202012081107492754.html