As you know, the metric rapid development platform, integrated login to other BS systems, is already providing a good integration interface. can refer to the "Measure third-party web system integration login implementation"this article. What if you are using a unit that also wants to integrate with client programs that log in to an existing organization? Metric rapid development platform, provides a way to open a local file:
Examples of use:
OpenFile ("C:\Windows\notepad.exe")
if you want to integrate the third-party CS program, the installed directory is in the same location, directly to the OpenFile inside the file path for the OK. It is well known that client files have a large feature, that is, the client files installed on each computer may be in different directories. such as QQ program, I can install on my machine to the C drive, other people may install to D, e disk and so on. So openfile inside the path, different people open, it is necessary to set the location of each computer's own installation program, that is, everyone in the measurement of rapid development platform, click on the "Open XX program" when the call to OpenFile this method, all need to open the different.
Therefore, we may need to create a computer-corresponding program Address table. For example:
Computer name
Program Address
Delit. CN01
C:\Program Files\qq\bin\qq.exe
Delit. CN02
D:\Program Files\qq\bin\qq.exe
Delit. CN03
C:\Tencent\QQ.exe
Delit. CN04
E:\Program Files\qq\bin\qq.exe
Well, we can open the file under which address, by using the person who is the computer.
Dim computer_name = System.Environment.MachineNamedim Program_path=executescalar ("Select Program_path from table where Computer_name= ' "+computer_name+" ' ") if program_path<>" then OpenFile (program_path) End If
How to pass the required data to the integrated CS program?
you can follow the specified parameters directly behind the path.
For example:
OpenFile ("D:\Program files\qq\bin\qq.exe parameter 1 parameter 2 parameter 3")
of course, if you really want to integrate other client programs, do not have to log in, directly into the other side of the system. Also need to measure the login user name of the development platform and the integrated system has an account corresponding relationship, by measuring the rapid development platform opened by the integrated program, automatic transfer of information about the log in the past, the integration process needs to be based on the passing of information, to do the corresponding processing.
Original address: http://plat.delit.cn/thread-185-1-1.html
Reprint please indicate the source;
Author: metric Technology http://www.delit.cn
Thinking on measuring integrated login CS program in rapid development platform