cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
Get the free JMP Student Edition for qualified students and instructors at degree granting institutions.
Choose Language Hide Translation Bar
View Original Published Thread

Hyperlinks to Table box rows

Jackie_
Level VI

Hi,

 

Is there a way to add hyperlinks to the table box rows?

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Cities.jmp", invisible );

New Window( "", dtb = Data Table Box( dt ) );

:Latitude << Set Property(
	"Event Handler",
	Event Handler(
		Click(JSL Quote(
Function( {thisTable, thisColumn, iRow},
	Web(
		"https://www.google.com/maps/@" || Char( thisTable:latitude[irow] ) || "," ||
		Char( thisTable:longitude[irow] ) || ",12z"
	)
))		,
			Tip( JSL Quote(Function( {thisTable, thisColumn, iRow}, "Open " || Char ( thisTable:iMVInumber[ iRow ] )  || " in your browswer."; ); ) ),
			Color( JSL Quote( Function( {thisTable, thisColumn, iRow}, 5;); ) )
		)
	)
);
dtb << set selectable rows( 1 );
3 REPLIES 3
jthi
Super User


Re: Hyperlinks to Table box rows

I think you might have to use Col Box with Button Boxes

Names Default To Here(1);
New Window("Example",
	Table Box(
		String Col Box("strings", {"x", "y", "z"}),
		Col Box(
			"boxes",
			Button Box("JMP", Web("www.jmp.com"), << Underline Style(1)),
			Button Box("Google", Web("www.google.com"), << Underline Style(1)),
		)
	);
);
-Jarmo
Jackie_
Level VI


Re: Hyperlinks to Table box rows

Thanks @jthi.

 

I am unable to get the row values in the web link. Can you share an example to get the row values in the web() function?

jthi
Super User


Re: Hyperlinks to Table box rows

You wish to know how to build Table Box with hyperlinks using same example as in your first post? Should the table box contain all the columns from data table or only the coordinates / name of the city?

-Jarmo

Recommended Articles