Skip to main content

The VertiGIS Community has been moved to the VertiGIS Support Center >>

How do you auto start Inline so the user doesn't have to click a button?

Comments

17 comments

  • Tom Kasmer

    What viewer are you using Brian, is it GVH?

    0
  • Brian Bieber

    GVH

    0
  • Tom Kasmer

    Add Inline as a startup workflow in the Viewer Configuration under Workflow 5.

     

    Workflow Url: https://latitudegeo.maps.arcgis.com/home/item.html?id=62d19d3f4a194d88ba968d91f69d02f1

     

    Inputs: 

    {

      "inlineItems": [

        "https://pathtoview1",

        "https://pathtoview2"

      ]

    }

    0
  • Brian Bieber

    I don't remember "Add Start Up Workflow" being on that page. Pretty simple.

    Thanks.

    brian

    0
  • Andreas Broothaerts

    @... Hey Tom, looking ath the workflow URL there is a activity RegisterInlineFormElements. How does this one work? I'm trying to open a inline url with parameters coming from a geoprocessing tool within a GVH viewer. Would that be possible using that workflow? Thanks

    0
  • Tom Kasmer

    Hi Andreas, can you tell me what you are trying to do?  Inline accepts startup parameters so you may be able to use these:

    https://docs.vertigisstudio.com/inline/latest/help/Default.htm#gxi/help/setup.htm#configure-startup-parameters?TocPath=Setup%257CConfigure%2520Web%2520Map%2520Application%257C_____2

     If you are doing something more complex I'll ask one of the developers to answer.

    Tom

    0
  • Andreas Broothaerts

    @Tom Kasner Thanks for the reply. What I'm trying to achieve is that via a workflow wherein we use a geoprocessing tool a certain route with m-values is generated along a line after input from user. After that I want to show this route and it's elements in the GVH viewer with Inline. So in that same workflow after the generation of the route we use the Run command (RunWorkflowByUrlAndInputs) with command parameter:  

    ={
      "url": "https://latitudegeo.maps.arcgis.com/home/item.html?id=xxxxxxxxxxxxx",
      "inlineItems": ["https://domain/home/item.html?id=xxxxxxxxxxxxxxxx + "&routeId=Route&startMeasure=0&endMeasure=" + $maxLength.result + "#view=xxxxxxxxxxxxxxxxx" }

    But when we use these parameters Inline keeps on loading but never finishes loading.

    Yet whenever I just use ={
      "url": "https://latitudegeo.maps.arcgis.com/home/item.html?id=xxxxxxxxxxxxx",
      "inlineItems": ["https://domain/home/item.html?id=xxxxxxxxxxxxxxxx} It does open Inline and I can select the route manually but I like to have this on the fly. Is this possible?

    If you know if this is possible in Geocortex Web that would also be nice. 

    Hope it is clear what I'm trying to achieve. 

    Thanks.

     

    0
  • Tom Kasmer

    Andreas Broothaerts, the Inline startup parameters should be appended to the viewer url, rather than to the Inline view configuration in the site workflow.  And this works in Web as well.  Here are a couple of examples using 2 of our demo sites (GVH and Web):

    https://gedemo.geocortex.com/Html5Viewer/index.html?viewer=InlineEnergy&routeId={B528A503-C316-496E-8803-F5638D448EAF}&startMeasure=50000&endMeasure=200000

    https://portal-geocortex.apps.geocortex.com/webviewer/?app=59ca5be4146b4ae7a5023f2e72a6cab6&routeId={B528A503-C316-496E-8803-F5638D448EAF}&startMeasure=50000&endMeasure=200000

    You can try the other startup parameters referenced in the documentation to see if this will do the trick for you.  I am off the next couple of days, so I'll ask @michaelkowal to follow up with you as necessary.

    Tom

    0
  • Andreas Broothaerts

    @... @michaelkowal Hi thanks for the follow-up.

    So we are restricted to opening a new url with the parameters? The goal is to keep and stay in the GVH viewer and open inline with the parameters from the route in that same window. 

    As the following is stated in the documentation 

    You can either append these case-sensitive parameters to the site URL or add them to a Workflow inputs config. 

    Should we be able to do this without going through the new url? 

    Thanks

    0
  • Tom Kasmer

    Andreas Broothaerts, Michael Kowal says it is possible to do what you are asking.

    Yes that is possible. The workflow should accept all the same parameters as the url parameters.  They can be passed in alongside the “inlineitems” property in the gvh config. 

    Here is a workflow I created that includes startup params in it along with a description of how to use them.  It can be run in the workflow sandbox to see it working or it can be run in GVH, WAB or VSW as a workflow.  This is just a basic example that shows how they are provided, but users can get more creative with workflows to calculate the values provided to inline dynamically. 

    Workflow: https://latitudegeo.maps.arcgis.com/home/item.html?id=fae5d05c55fc469e8543da0bd42b7983

    Workflow designer link: https://apps.vertigisstudio.com/workflow/designer/#workflow=fae5d05c55fc469e8543da0bd42b7983

    Give this a try and let us know if this does the trick for you.

    Tom

    0
  • Andreas Broothaerts

    Hi @...

    Thanks for the input. I tried looking at the workflows but currently I am receiving the following error. 
    Could there be an issue with sharing? 

    0
  • Tom Kasmer

    Andreas Broothaerts, Michael Kowal Michael, do you have any ideas as to why Andreas can't access the workflow?

    1
  • Michael Kowal

    Andreas Broothaerts The workflow is only available on AGOL and not in portal.  The only work-around for that that I can think of is to copy this json into a new file called something like `Run Inline with startup params.json` and then import it into your portal version of workflow.

    {"_properties":{"isServerWorkflow":false},"components":[{"id":1,"steps":[{"id":2,"inputs":{},"position":"0,-30","purpose":"start","title":"Start","transitions":[{"id":13,"inputs":{},"position":"90,30 90,60","sourceConnector":"bottom","target":{"id":12},"targetConnector":"top"}]},{"action":"gcx:wf:core::RunWorkflow","id":5,"inputs":{"arguments":{"accessors":["$value1"],"annotations":[{"count":7,"index":93,"kind":"idref"}],"code":"{\n \"routeId\": \"{700B7CA4-9A55-4E76-AC94-C514875D0E18}\",\n \"startMeasure\": 0,\n \"endMeasure\": $value1.result,\n \"inlineItems\": [\"https://latitudegeo.maps.arcgis.com/home/item.html?id=9760a2a2ec3b43a2a7146698941fc752\"]\n}","source":"{\n \"routeId\": \"{700B7CA4-9A55-4E76-AC94-C514875D0E18}\",\n \"startMeasure\": 0,\n \"endMeasure\":$value1.result,\n \"inlineItems\": [\"https://latitudegeo.maps.arcgis.com/home/item.html?id=9760a2a2ec3b43a2a7146698941fc752\"]\n}"},"url":"https://apps.vertigisstudio.com/inline/runtime/workflow.json"},"name":"runWorkflow1","position":"-30,300","title":"Run Workflow"},{"action":"gcx:wf:core::CreateValue","id":7,"inputs":{"expression":{"accessors":[],"code":"10000","source":"10000"}},"name":"value1","position":"-30,190","title":"Create Value","transitions":[{"id":9,"inputs":{},"position":"90,260 90,300","sourceConnector":"bottom","target":{"id":5},"targetConnector":"top"}]},{"action":"gcx:wf:browser::InjectCss","description":"Css injected to make inline render nice in the sandbox.","id":12,"inputs":{"content":".ui.sidebar.vertical {\n width: 100%;\n bottom: 0 !important;\n height: 50% !important;\n top: auto;\n}\n\ndiv.item.form-content {\n padding: 0 !important;\n}\n\nh3.item.header.form-title {\n height: 0;\n margin: 0;\n padding: 0;\n}"},"position":"-30,60","title":"Inject CSS","transitions":[{"id":14,"inputs":{},"position":"90,150 90,190","sourceConnector":"bottom","target":{"id":7},"targetConnector":"top"}]},{"action":"gcx:wf:core::Annotation","description":"Run this workflow or one like it to inject startup options into inline. Alternatively you can add startup options to inline's `inputs` as siblings of the `inlineItems` parameter. The available startup parameters are:\n- routeId (string/number)\n- startMeasure / endMeasure (numbers)\n- xCoord / yCoord / buffer (numbers)\n- startInNewWindow (boolean)\n\nThe routeId is required if providing start/end measures or coordinates.\n\nCoordinates will be converted to a measure value using the map's spatialReference. The buffer will be applied in both directions along the route from the point defined by the coordinates. The buffer is required if provided coordinates.\n","id":15,"inputs":{},"position":"-500,-90","title":"Notes"}]}],"deploymentConfig":{"supportedApps":{"GWV":true}},"designerVersion":"5.27.1+8","start":{"id":2}}
    1
  • Andreas Broothaerts

    @... Michael Kowal Hi Michael, we are getting closer to the solution it seems. I do have one last question, it seems that the current way you proposed isn't working due to the fact that when we want to implement a portal version of this workflow I see the following error. 

    Is there a way we could be able to implement this activity into our portal instead of going through arcgis online? Or am I missing something here?

    Thanks in advance,

    Andreas

    0
  • Michael Kowal

    Andreas Broothaerts The workflow designer does not know how to discover the Run Inline activity, but it should work when it is run.  You can change the URL in the run workflow activity that I sent previously to:

    https://<your-portal>.apps.vertigisstudio.com/inline/runtime/workflow.json

    Inline should work in portal the same as it does in ArcGIS Online.  Copying and modifying the inline workflow can break some or all of the functionality of inline so it is best to run it as a sub-workflow and inject your inputs into it.

    2
  • Andreas Broothaerts

    Hey Michael Kowal & @...,

    I was  able to implement it this way after some other modifications.

    Thanks for all the input.

    0
  • Tom Kasmer

    Andreas Broothaerts glad you got it working.

    0