<?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 Re: How do I Create a report header with JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-Create-a-report-header-with-JSL/m-p/259812#M50981</link>
    <description>Hi Jim&lt;BR /&gt;Thanks a lot, it looks like something I can use to build from&lt;BR /&gt;All the Best&lt;BR /&gt;Jakob</description>
    <pubDate>Wed, 22 Apr 2020 13:47:43 GMT</pubDate>
    <dc:creator>Jakob</dc:creator>
    <dc:date>2020-04-22T13:47:43Z</dc:date>
    <item>
      <title>How do I Create a report header with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-Create-a-report-header-with-JSL/m-p/259308#M50916</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I'm looking to create header for my JMP reports with information like this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jakob_0-1587464567015.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23231i11CF868CAC92CBA3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jakob_0-1587464567015.png" alt="Jakob_0-1587464567015.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have all the information in my data table, but can´t get it to any journal or report, please guide me to the code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is it possible to get user input during the script execution like typing user name in a dialog box ?&lt;/P&gt;&lt;P&gt;I managed to get accept limits into the table as variables, using this dialog&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jakob_1-1587464920434.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23232i2B87A36D48A1EFF0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jakob_1-1587464920434.png" alt="Jakob_1-1587464920434.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but can´t get them into the report&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jakob&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 10:31:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-Create-a-report-header-with-JSL/m-p/259308#M50916</guid>
      <dc:creator>Jakob</dc:creator>
      <dc:date>2020-04-21T10:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Create a report header with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-Create-a-report-header-with-JSL/m-p/259730#M50968</link>
      <description>&lt;P&gt;Please help&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 04:57:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-Create-a-report-header-with-JSL/m-p/259730#M50968</guid>
      <dc:creator>Jakob</dc:creator>
      <dc:date>2020-04-22T04:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Create a report header with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-Create-a-report-header-with-JSL/m-p/259793#M50979</link>
      <description>&lt;P&gt;Run the below script.&amp;nbsp; It has a simple input screen, it then creates a header and a simple report output.&amp;nbsp; Study the script and then you should be able to go develop your own version&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );

userInput = New Window( "Enter User Data",
	&amp;lt;&amp;lt;modal,
	V List Box(
		Text Box( "Insert Accept Limits" ),
		Spacer Box( size( 1, 15 ) ),
		H List Box(
			Text Box( "Enter Name for report: " ),
			nameTB = Text Edit Box( "????",
				&amp;lt;&amp;lt;set width( 200 ),
				&amp;lt;&amp;lt;set script( reportName = nameTB &amp;lt;&amp;lt; get text )
			), 

		),
		Spacer Box( size( 1, 15 ) ),
		H List Box(
			Text Box( "Enter Ppk Accept Limit: " ),
			ppkNum = Number Edit Box(
				0,
				8,
				&amp;lt;&amp;lt;SetFunction(
					Function( {this}, /* put my value into my sibling's display */
						(ppkValue = ppkNum &amp;lt;&amp;lt; get)
					)
				)
			)
		),
		Spacer Box( size( 1, 15 ) ),
		H List Box(
			Text Box( "Enter Cc Accept Limit: " ),
			ccNum = Number Edit Box(
				0,
				8,
				&amp;lt;&amp;lt;SetFunction(
					Function( {this}, /* put my value into my sibling's display */
						(ccValue = ccNum &amp;lt;&amp;lt; get)
					)
				)
			)
		)
	)
);

// Write to the log
Show( reportName, ppkValue, ccValue );

dNumber = "512-4447-AM";
rIDNumber = 18;
nameAndDate = Get Environment Variable( "USERNAME" ) || ", " || Format( Today(), "m/d/y" );

// Create the output with header
nw = New Window( "My Output", 
	
	Border Box( top( 10 ), Left( 10 ), Right( 10 ), bottom( 10 ), sides( 15 ),
		V List Box(
			Spacer Box( size( 1, 10 ) ),
			Text Box( "Drawing Number " || dNumber ),
			Spacer Box( size( 1, 10 ) ),
			Text Box( "Report ID Number " || Char( rIDNumber ) ),
			Spacer Box( size( 1, 10 ) ),
			Text Box( "Name &amp;amp; Date " || nameAndDate ), 
			
		)
	),
	bivariate( x( npn1 ), y( pnp1 ) )
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Apr 2020 12:48:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-Create-a-report-header-with-JSL/m-p/259793#M50979</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-04-22T12:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Create a report header with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-Create-a-report-header-with-JSL/m-p/259812#M50981</link>
      <description>Hi Jim&lt;BR /&gt;Thanks a lot, it looks like something I can use to build from&lt;BR /&gt;All the Best&lt;BR /&gt;Jakob</description>
      <pubDate>Wed, 22 Apr 2020 13:47:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-Create-a-report-header-with-JSL/m-p/259812#M50981</guid>
      <dc:creator>Jakob</dc:creator>
      <dc:date>2020-04-22T13:47:43Z</dc:date>
    </item>
  </channel>
</rss>

