cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to move from signal modeling to system modeling at the first JMP Aerospace Analytics webinar. Register. June 18, 1 p.m. US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
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

Recommended Articles