'Display Only' grayed out in table column control properties

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

EDekker
Ebase User
Posts: 8
Joined: Tue Jun 04, 2013 8:13 am

'Display Only' grayed out in table column control properties

#1

Postby EDekker » Mon Jul 29, 2013 9:36 am

Hi all,

One of our table column controls has the Display Only option grayed out. Also, setting the property from code has no effect. What could be the reason for this? The only explanation I can come up with is that the actual database column is a computed column (identity).

Screenshot to further illustrate my question: http://eddekker.nl/eBase/eBase_FLDCOL.png

Any help is greatly appreciated.

Edwin
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Mon Jul 29, 2013 1:16 pm

Edwin,

It's because you've got the hyperlink option checked, so display only doesn't mean anything because the opposite - editable - can't exist.

Regards
Jon
0 x

EDekker
Ebase User
Posts: 8
Joined: Tue Jun 04, 2013 8:13 am

#3

Postby EDekker » Mon Jul 29, 2013 2:00 pm

Hi Jon,

Thanks for your reply. Is there any way I can prevent the user from clicking the links?

Ed
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#4

Postby Jon » Mon Jul 29, 2013 3:00 pm

If it's an external hyperlink, you can disable it but removing the href i.e.

controls.HYPERLINK1.setHref(null);

If it's internal, it will be harder. There are various jquery techniques - the best seems to be replacing the hyperlink with text.
0 x

EDekker
Ebase User
Posts: 8
Joined: Tue Jun 04, 2013 8:13 am

#5

Postby EDekker » Tue Jul 30, 2013 7:51 am

Jon wrote:If it's an external hyperlink, you can disable it but removing the href i.e.

controls.HYPERLINK1.setHref(null);

If it's internal, it will be harder. There are various jquery techniques - the best seems to be replacing the hyperlink with text.
It's an internal link. I really wish there was a way to temporarily disable them.

Thanks again for your help!

Ed
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#6

Postby Jon » Tue Jul 30, 2013 4:34 pm

Edwin,

You can "disable" an internal hyperlink with some jQuery Javascript like this. It replaces the link with the hyperlink's text.

Code: Select all

$('#hlink').each(function () {
    $(this).replaceWith($(this).text());
});
In this example, I have a hyperlink control which has an id of "hlink" assigned in HTML element properties. Then to disable it, add the code above to the appropriate event handler e.g. click, also using HTML element properties.

Regards
Jon
0 x


Who is online

Users browsing this forum: No registered users and 20 guests