Files: | c:\libraries -\mysample -\js\lib.js -\css\lis.css |
Properties: | No properties file. |
Steps: | 1. Open a command or terminal window and move to the MashZoneNG-install/prestocli/bin folder for the MashZone NextGen Server 2. Enter this command: c:\Presto3.5\prestocli\bin> padmin importLib -d c:\libraries\mysample -u Administrator -w manage |
Result: | Because the library has no configuration properties set, this library is automatically imported as a pluggable library with an ID of mysample. The two resource files found in the library are uploaded to MashZone NextGen as part of version 1 of this library: /mashzone/files/system/lib/mysample/1/js/lib.js /mashzone/files/system/lib/mysample/1/css/lib.css The library will be listed as a named library available for custom apps in the App Editor. It is also marked as both desktop- and mobile-compatible. It has no dependencies on other libraries. |
Files: | c:\libraries -\mysample -\js\lib.js -\css\lis.css |
Properties: | No properties file. |
Steps: | 1. Open a command or terminal window and move to the MashZoneNG-install/prestocli/bin folder for the MashZone NextGen Server 2. Enter this command: c:\Presto3.5\prestocli\bin> padmin importLib -d c:\libraries\mysample -c -o -v -u Administrator -w manage |
Result: | The overwrite or -o flag allows this import to overwrite an existing version of this library and version, if it exists in MashZone NextGen without failing. For examples and more information on version controls for pluggable libraries, see Managing Updates and Library Versions. The verbose or -v flag provides more information in the log about the import process. The continueOnError or -c flag allows the import process to continue if an exception or error is thrown during the import. This is generally useful if you are using Ant to import multiple or all libraries in build.xml or you are using a script to import multiple libraries with importLib. |
Files: | c:\libraries -\mylibrary -mylibrary.properties -\js\lib.js -\css\lib.css |
Properties: | #properties for mylibrary id=mylibrary name=My Common Library description=My common library for all views loadConfirmation=Sample.library.MyCommonLibrary |
Steps: | 1. Open a command or terminal window and move to the MashZoneNG-install/prestocli/bin folder for the MashZone NextGen Server 2. Enter this command: c:\Presto3.5\prestocli\bin> padmin importLib -d c:\libraries\mylibrary -u Administrator -w manage |
Result: | Based on this configuration, the library is registered as: A pluggable library with an ID of mylibrary and the specified description Version 1 Both desktop- and mobile-compatible With no dependencies Fully loaded only when an object named Sample.library.MyCommonLibrary is present in the window Visible in the App Editor for use in custom apps With three resources uploaded and hosted in the MashZone NextGen Server as: /system/lib/mylibrary/1/mylibrary.properties (only if imported with importLib) /system/lib/mylibrary/1/js/lib.js /system/lib/mylibrary/1/css/lib.css Owned by the Administrator account Note: Although you can access library files that are hosted in MashZone NextGen directly using the appropriate URL, for pluggable views or custom apps you only need to add configuration to identify the pluggable library as a dependency. MashZone NextGen handles all the requirements to load all the library’s resources for you. |
Files: | c:\libraries -\mychart -mychart.properties -\js\lib.js -\css\lib.css -\html\help.html |
Properties: | #properties for mychart id=mychart name=My Sample View description=Sample chart view loadConfirmation=Sample.view.MyChart type=view helpUrl=html/help.html |
Steps: | 1. Open a command or terminal window and move to the MashZoneNG-install/prestocli/bin folder for the MashZone NextGen Server 2. Enter this command: c:\Presto3.5\prestocli\bin> padmin importLib -d c:\libraries\mychart -u Administrator -w manage |
Result: | Based on this configuration, the library is registered as a pluggable view library. It will also be visible in the App Editor for use in custom apps. This pluggable view appears in the MashZone NextGen View Gallery in the Pluggable Views category with My Sample View as its name. It uses the default thumbnail image for pluggable views: If users click the ? button while they are configuring this view for a mashable or mashup, the mychart/html/help.html file opens in a smaller separate window in most browsers as user assistance for this pluggable view. |
Properties: | #properties for mychart id=mychart name=My Sample View description=Sample chart view loadConfirmation=Sample.view.MyChart type=view helpUrl=html/help.html mobile=false |
Result: | With mobile set to false, this view is generally not visible in mobile devices. See About Desktop Compatibility for Apps for more information. |
Files: | c:\libraries -\mychart -mychart.properties -\js\lib.js -\css\lis.css -\html\help.html -thumbnail\mychart.png |
Properties: | #properties for mychart id=mychart name=My Chart View description=Sample chart view loadConfirmation=Sample.view.MyChart type=view subtype=My Chart helpUrl=html/help.html thumbnailUrl=thumbnail/mychart.png |
Result: | Once you import this pluggable view library, it appears in the MashZone NextGen View Gallery in a new categoy using the specified thumbnail image, such as this: |
Files: | c:\libraries\d3 - d3.properties - \js - \d3.v2.js |
Properties: | #properties for D3 library id=d3 name=D3 Diagrams description=D3js - Data Driven Documents loadConfirmation=window.d3 |
Steps: | 1. Open a command or terminal window and move to the MashZoneNG-install/prestocli/bin folder for the MashZone NextGen Server 2. Enter this command: c:\Presto3.5\prestocli\bin> padmin importLib -d c:\libraries\d3 -u Administrator -w manage |
Result: | Based on this configuration, the library is registered as: A pluggable library with an ID of d3 and the specified description Version 1 Both desktop- and mobile-compatible With no dependencies Fully loaded only when an object named Sample.library.MyCommonLibrary is present in the window Visible in the App Editor for use in custom apps One resource uploaded and hosted in the MashZone NextGen Server as /system/lib/d3/1/d3.v2.js. Owned by the Administrator account |
Properties: | #properties for D3 pie chart view id=d3-pie name=D3 Pie Chart description=D3 pie chart view type=view helpUrl=html/d3pie.html loadConfirmation=Sample.d3.pie dependsOn=d3 |
Properties: | #properties for another sample view id=another name=Another View description=View that uses jQuery bundled library type=view loadConfirmation=Sample.Another dependsOn=jquery-plugin-fancyzoom |
Files: | c:\libraries\reportgrid - reportgrid.properties |
Properties: | #properties for reportgrid library id=reportgrid name=Report Grid description=Report Grid charts loadConfirmation=ReportGrid libPath=http://api.reportgrid.com/js js=reportgrid-charts.js |
Steps: | 1. Open a command or terminal window and move to the MashZoneNG-install/prestocli/bin folder for the MashZone NextGen Server 2. Enter this command: c:\Presto3.5\prestocli\bin> padmin importLib -d c:\libraries\reportgrid -u Administrator -w manage |
Result: | In this case, MashZone NextGen doesn’t actually upload any resources except the reportgrid.properties file if you use the importLib command. The library will be visible in the App Editor and can appear as a dependency for pluggable view libraries. |