Hexagon Geospatial
MENU

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
Contributor
Posts: 68
Registered: ‎11-20-2015
Accepted Solution

How to use a custom icon for an action in a list?

When I try to use y custom icon for a FormAction (see http://smartclient.intergraph.at/documentation/Using_a_custom_icon_for_workflow_actions_%28How_To%29... ) it works for a FormAction in a form and also for a FormAction used in a list with type="form".

 

.ig-action  .lag-icon-locked
{
    background-image: url(images/lock_closed.png);
}

 

<FormAction name="WJ" label="WJ" visible="list" type="form" image="lag-icon-locked" action="SCRIPT[alert('todo')]" />

is working.

 

<FormAction name="UNLOCK" label="Entsperren" type="row" visible="list" image="lag-icon-locked" action="SCRIPT[alert('todo')]" />

is NOT working :-(

 

Any ideas on how to get it running?

 

regards

Wolfgang

Highlighted
New Contributor
Posts: 4
Registered: ‎11-04-2015

Re: How to use a custom icon for an action in a list?

Hi Wolfgang,

 

please try the following for a customized list icon. This worked fine:

 

.Komponenten-icon{
    background-image: url('img/k.png') !important;
}

 

 <FormAction name="KOMPONENTS" label="Komponenten" visible="list" type="row" image="Komponenten-icon" action=.....

 

Regards

 

Robert

Contributor
Posts: 68
Registered: ‎11-20-2015

Re: How to use a custom icon for an action in a list?

Just talked to the developers.

 

In case you need the action with type="row" it has to be:

.ig-action.ig-rowaction.k-icon.lag-icon-locked
{
    background-image: url(images/lock_closed.png);
}

 

!Important: No spaces in the first line.

 

regards

Wolfgang

Polls
Please register to vote
Do you need immediate support?
Please submit a Ticket through our
Development Ticket Portal.