cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
Jackie_
Level VI

Hyperlinks to Table box rows

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