smartk2boy
Novice

Button in list view

Hi guys 

 

I would like to ask , is it possible to add button or toolbar button in the list view

 

Thank you 

 

 

0 Kudos
Reply
4 Replies
AhmadAbdullah
Apprentice

Re: Button in list view

Dear ,

 

In the list view means ?

 

if u meant the header of the list view , then yes , u can add button/toolbar button .. 

but if u meant inside the ROW of the list view .. the row itself as a column control , then no , u cant have the button/toolbar button inside the row of a list view ..

 

Regards.

0 Kudos
Reply
K2Expert1
Apprentice

Re: Button in list view

You can add a button in the list view either or Top or button but you can not add the buttbutton in the view row/column to take any action becuase view contain only change event not click event .

 

you add a toolbarutton on top or botton then on select of row you can perform the click event .

 

Arvind

Reply
NathanBrown
Apprentice

Re: Button in list view

Remember that you can also use the DataLabel control to create html inside your table that can link to other forms.

We do this in many of our list controls, we create an expression that builds an anchor tag using the first from the List to build another page.

Typically our expressions look like:

 

<a href="[​SmartForms Runtime SSL]/Form/(form name here)/?formparameter=[some key from list]" target="blank">[some other list field]</a>

 

Our expressions are a series of string concatenations to build the above.  Where things in [] brakets are mapped.

So this isn't a button, but it is a link where you can perform other buttons.

 

A more advanced versio of this is to have this link call some javascript which can act just like a button, but is a much more complex and harder to support solutions.  If you're interested I'd be happy to share, but it is longer to type out ;-)

 

Nathan

Reply
Nagorskiy
Apprentice

Re: Button in list view

Nathan, we use same aproach with links in row, but this is not perfect user experience.
Can you share js method?
0 Kudos
Reply