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 
Reply
SMC
Contributor
Posts: 51
Registered: ‎04-11-2016
Accepted Solution

GMSC FormTabs not displaying automatically

Hi All,

 

I have 2 tabs in my workflow form. 

When the form opens the tabs are not visible and I have to hit the tab icon to show them.

Is there a way to automatically show them?

 

Regards,

Simon

Staff
Posts: 1,036
Registered: ‎10-18-2015

Re: GMSC FormTabs not displaying automatically

[ Edited ]

Hi Simon,

 

I guess this is related to the responsive design of the form. Does the 2nd tab get visible if you expand the form window? Can you please attach a screenshot?

 

Regards,

Stefano

Stefano Turcato
Presale Engineer
Hexagon Geospatial
SMC
Contributor
Posts: 51
Registered: ‎04-11-2016

Re: GMSC FormTabs not displaying automatically

Hi Stefao,

 

When the form appears I see this:

 

http://www.locationpublisher.ie/WhenFormOpens.png

 

I can then click on the Tab icon to see my tabs i.e.

 

http://www.locationpublisher.ie/AfterIClickOnTheTabIcon.png

 

Simon

Staff
Posts: 1,036
Registered: ‎10-18-2015

Re: GMSC FormTabs not displaying automatically

a partial solution might be this one:

 

http://community.hexagongeospatial.com/t5/Developer-Discussions/Default-workflow-design-behavior-in-...

 

HTH,

Stefano

Stefano Turcato
Presale Engineer
Hexagon Geospatial
SMC
Contributor
Posts: 51
Registered: ‎04-11-2016

Re: GMSC FormTabs not displaying automatically

Hi Stefano,

 

Is there a way to get at the tab icon via Javascript and call its on click event? That way I would get it sorted without the css change (note I tried it an didnt work as expected).

 

Javascript would be a quick win.

 

Simon

Staff
Posts: 1,036
Registered: ‎10-18-2015

Re: GMSC FormTabs not displaying automatically

Hi Simon,

 

by default all the tabs should be visible. This behavior is just because of the responsive design. Please try to enlarge the window and you will see the layout changing completely and the 2nd tab getting visible.

 

So even using a custom script I'm afraid it would not help, BTW this is a script to do something similar:

 

IG.vent.on('form:ready', function(form){
		IG.getItemById('FORMTABNAME').show();
	});

Regards,

Stefano

Stefano Turcato
Presale Engineer
Hexagon Geospatial
SMC
Contributor
Posts: 51
Registered: ‎04-11-2016

Re: GMSC FormTabs not displaying automatically

Hi Stefano,

 

I got it to work via Javascript. The code is as follows incase anyone else wants it.

 

IG.vent.on('form:ready', function ()
{
try
{
var oToggleBTN = $('#ig-tabs-toggle');
if (oToggleBTN != undefined)
{
if (oToggleBTN != null)
{
if (oToggleBTN.length > 0 )
{
var oToggleInnerCtrl = oToggleBTN[0];
if (typeof oToggleInnerCtrl.click == "function")
{
oToggleInnerCtrl.click();
}

}
}
}
}
catch(e)
{

}
finally
{

}
});

 

Regards,

Simon

Highlighted
Staff
Posts: 1,036
Registered: ‎10-18-2015

Re: GMSC FormTabs not displaying automatically

Hi Simon,

 

very good approach! Thanks for sharing your solution!

 

ciao,

Stefano

Stefano Turcato
Presale Engineer
Hexagon Geospatial