Hexagon Geospatial

Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Posts: 29
Registered: ‎05-30-2016

Comand to refresh CashedOnDemand tile from workflowaction

We have labels at cached on demand features which are based on alpha numeric information of the feature (diameter, length, material).

We need to refresh the tile when saving the workflowform. So the changed alpha numeric information is represented correctely in the label.

We assume it is done with a javascrip command. A regular save action in the form doesn't do it.

What javascript command is used to initiate the refresh of the tile?


(We saw that if also geometry is change the new alpha numeric data is appearing)

Technical Evangelist
Posts: 908
Registered: ‎09-11-2015

Re: Comand to refresh CashedOnDemand tile from workflowaction

Hi Gideon,


Can you check if the sample at the very bottom of this page would help you?



Particularly the FormAction:

<FormAction name="SaveReload" action="SCRIPT[IG.saveBuildingExtension('Building Extensions')]" />

Where the IG.saveBuildingExtension('..') would be defined as:

IG.saveBuildingExtension = function(nodeid, feature){
 IG.urlSettings.params.nodeid = nodeid;
 var url = IG.getWorkflowUrl('saveData').setParams(IG.urlSettings.params, true).toString();
    var options = {
        url: url,
        type: 'POST',
        data: IG.form ? IG.form.serialize() : {},
        success: function (data) {
            if (data.Success) {
                var id = data.Data['ID'];
            else {
                if (data.Exception) {
                    IG.alertDialog('Data are not correct: <br /><code>' + data.Exception + '</code>', { title: 'Error' });
                else {
                    IG.alertDialog('Unknown Error', { title: 'Error' });

I haven't tried this personally but it sounds like it should be similar to your case...

Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial

Posts: 29
Registered: ‎05-30-2016

Re: Comand to refresh CashedOnDemand tile from workflowaction

[ Edited ]

HI Jan,

this is using the IG.ReloadFeature and the zoom command, that is not helping us.

The problem is, that only the context of the label is changed and not the geometry of the line and of the label. So the software thinks nothing has changed and it is not recreating the tile. Therefore we would need to have a command that would initiate the recreation of that specific tile.



Do you need immediate support?
Please submit a Ticket through our
Development Ticket Portal.