<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Is there a way to get which shape file column can be linked to or to which graph builder's Map Shape has been linked to? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-get-which-shape-file-column-can-be-linked-to/m-p/673200#M86081</link>
    <description>&lt;P&gt;Is there any way how I could get the information which shape file is being currently used in my graph builder / to which shape file my column is / could be linked to? In my example I think it is linked to&amp;nbsp;&lt;EM&gt;$MAPS/US-State-Name.jmp.&lt;/EM&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/CrimeData.jmp");

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(534, 456),
	Show Control Panel(0),
	Variables(Shape(:State)),
	Elements(Map Shapes(Legend(6)))
);

fbox = Report(gb)[FrameBox(1)];
For Each({gb_var}, gb &amp;lt;&amp;lt; get variables,
	gb_var = (gb &amp;lt;&amp;lt; get variables)[1];
	Extract Expr(gb_var, Role(Wild()));
	If(!IsEmpty(Extract Expr(gb_var, Role(Wild()))),
		Show(gb_var[1]);
	);
);

stop();

mapname_path = Convert File Path("$MAPS/US-State-Name.jmp");

dt_mapname = Open(mapname_path);
gb_mapfile = dt_mapname &amp;lt;&amp;lt; Graph Builder(
	Size(534, 456),
	Show Control Panel(0),
	Variables(Shape(:Name)),
	Elements(Map Shapes(Legend(2)))
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I'm trying to build a script in which I could dynamically perform some actions depending on which shape file is currently being used in Graph Builder and I'm considering the different options I have on how to determine the correct file.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Sep 2023 08:18:02 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2023-09-01T08:18:02Z</dc:date>
    <item>
      <title>Is there a way to get which shape file column can be linked to or to which graph builder's Map Shape has been linked to?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-get-which-shape-file-column-can-be-linked-to/m-p/673200#M86081</link>
      <description>&lt;P&gt;Is there any way how I could get the information which shape file is being currently used in my graph builder / to which shape file my column is / could be linked to? In my example I think it is linked to&amp;nbsp;&lt;EM&gt;$MAPS/US-State-Name.jmp.&lt;/EM&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/CrimeData.jmp");

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(534, 456),
	Show Control Panel(0),
	Variables(Shape(:State)),
	Elements(Map Shapes(Legend(6)))
);

fbox = Report(gb)[FrameBox(1)];
For Each({gb_var}, gb &amp;lt;&amp;lt; get variables,
	gb_var = (gb &amp;lt;&amp;lt; get variables)[1];
	Extract Expr(gb_var, Role(Wild()));
	If(!IsEmpty(Extract Expr(gb_var, Role(Wild()))),
		Show(gb_var[1]);
	);
);

stop();

mapname_path = Convert File Path("$MAPS/US-State-Name.jmp");

dt_mapname = Open(mapname_path);
gb_mapfile = dt_mapname &amp;lt;&amp;lt; Graph Builder(
	Size(534, 456),
	Show Control Panel(0),
	Variables(Shape(:Name)),
	Elements(Map Shapes(Legend(2)))
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I'm trying to build a script in which I could dynamically perform some actions depending on which shape file is currently being used in Graph Builder and I'm considering the different options I have on how to determine the correct file.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 08:18:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-get-which-shape-file-column-can-be-linked-to/m-p/673200#M86081</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-09-01T08:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get which shape file column can be linked to or to which graph builder's Map Shape has been linked to?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-get-which-shape-file-column-can-be-linked-to/m-p/674661#M86192</link>
      <description>&lt;P&gt;Got response from JMP support (TS-00052450) that this might not be currently possible. Going forward I will most likely either create a metadata file which I can use to perform the linking or name all the shape files in such a way, that it is easy to link to correct shape file by checking row values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 05:59:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-get-which-shape-file-column-can-be-linked-to/m-p/674661#M86192</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-09-06T05:59:49Z</dc:date>
    </item>
  </channel>
</rss>

