Use custom library in mobile designer
I have developed a custom mobile app, and would now like to use the components in the mobile designer. How do I do this?
I see that I can upload a custom library in the designer, but that is a .js file. Some time ago I tried this with a library I wrote for Web, and that indeed added custom components to the designer interface. But does this mean that I have to write a 'mirror' library for web that has the same component interfaces as my custom mobile application? Is there an easy way to do that?
-
Hi Berend,
In order to implement custom mobile components you MUST write .NET components using the VertiGIS Studio Mobile SDK. Help documentation is here:
https://developers.vertigisstudio.com/docs/mobile/sdk-overviewAt this point, you are able to use those components in a layout.xml to describe your user interface, or in a Workflow that uses custom activities or custom form elements, or to use custom commands in your app.json. If you want to be able to use those custom components in App Designer to build your user interface, then yes, you need to write a companion 'mirror' javascript (.js) library that describes the components so that App Designer can understand them well enough to be able to present you the option to add those components to your layout. These 'mirror' components don't need to do anything - they just need to describe their existence so they can become available in App Designer. Without the mirror js library, you can still configure your app by hand using a text editor, but you won't be able to using App Designer.
I hope that helps.
Let me know if you have more questions.
Jeff
0 -
Hi Jeff,
That's more or less what I expected. It would be nice if there was some way to auto-generate the designer library from the .NET source code, though.
One more thing: I also added a service to my JavaScript library, and registered it with registry.registerService(), but don't see it anywhere in Mobile Designer. Are services supported? I'd like to have this, so that I can configure the service from within the designer.
0 -
Hi Berend,
We will take your suggestion to auto-generate the designer library from .NET source under consideration.
Custom services should be supported in Designer. In order to get it to show up you will need to implement the same DesignerSettings methods that are done for components. You can see an example of how to do that for components here:
Jeff
0 -
Hi Jeff,
Thanks for this. It looks like this sample uses components only, and I those are working fine. It's services that I can't seem to register properly. Should these show up in the Services tab in the designer?
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
4 kommentarer