16. Managing and Deploying Applications : How You Can Import and Export Applications and Components : Import an Individual Component : Examples: ImportComp Utility
 
Share this page                  
Examples: ImportComp Utility
The following example imports a frame, TestFrame, from the file “testframe.frm” into the “myapp” application, and prompts the user if the frame already exists in the application:
w4gldev backupapp in mydatabase myapp testframe.frm -ctestframe -nprompt
The following example imports the backup version of the “myapp” application and merges all the components into the “bigapp” application. If any components in bigapp have the same names as those in myapp, it replaces them with the components from myapp:
w4gldev backupapp in mydatabase bigapp myapp.bck -m –nreplace
The following example imports a component, “comp1” from application “myapp,” from the export file “myapp.bck.” This command also forces the application component to be compiled before being loaded into the database:
w4gldev backupapp in mydatabase myapp myapp.bck -ccomp1 -f
The following example imports a component, “comp2” from application “myapp” in “mydatabase,” from the export file “mycomp.xml”:
w4gldev backupapp in mydatabase myapp mycomp.xml -ccomp2 -xml
The following example imports the component source files and comma-separated component name and component source file pairings in the file “comps.lst”:
w4gldev backupapp in mydatabase myapp comps.lst -l
The file “comps.lst” contains the following content:
top.exp
proc1, proc1.exp
HelloWorld, hw.exp