<?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 to Embed Calendar Box in JMP App Builder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-Embed-Calendar-Box-in-JMP-App-Builder/m-p/321376#M57143</link>
    <description>&lt;P&gt;Application Builder does not directly support the CalendarBox, but you can add JSL scripts to your application to add additional content.&amp;nbsp; If you have a PanelBox named Panel1, you can add something like the following to the Module script to add a CalendarBox to the panel:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Panel1 &amp;lt;&amp;lt; Append(scal1 = Calendar Box(, SetFunction(Function({this}, sd1=scal1&amp;lt;&amp;lt; Get Date) )));
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another option when working in Application Builder is to use the NumberEditBox, which can display numbers in many different formats (Date/Time, Geographic, etc).&amp;nbsp; When a Date/Time format is used, the NumberEditBox will include a popup calendar option, which would make your window look something like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/27369i36C0B88BE237B1DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;This application also adds JSL to the Module script, in order to initialize the number fields to a value of Today().&amp;nbsp; See the full Application in the attached file FromToCalendar.zip.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Oct 2020 20:35:36 GMT</pubDate>
    <dc:creator>danschikore</dc:creator>
    <dc:date>2020-10-13T20:35:36Z</dc:date>
    <item>
      <title>How to Embed Calendar Box in JMP App Builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Embed-Calendar-Box-in-JMP-App-Builder/m-p/320693#M57128</link>
      <description>&lt;P&gt;I have written JSL scripts that pull machine data for individual pieces of equipment for a given time range. Instead of having a series of JSL scripts floating around I am now looking at the JMP application builder as a better solution. I could have buttons for each piece of equipment and the scripts then tied to those buttons.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have figured out this much but wanted to tidy things up by adding the calendar selection into the application. Is there a way to embed the calendar prompt into the application to add date ranges that are then picked up in a JSL sql query? Below is the prompt I have at the start of each data pull script that I would like to have embedded in the application.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also any suggestions on tutorials on JMP App Building would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;sd=Today();
ed=Today();
New Window( "Query Date", &amp;lt;&amp;lt;Modal,
 HListBox(
    PanelBox( "From Time",
      scal = Calendar Box(, SetFunction(Function({this}, sd=scal&amp;lt;&amp;lt; Get Date) ))
    ),
    spacerbox(Size(20,20)),
    PanelBox( "To Time",
    ecal = Calendar Box(, SetFunction(Function({this}, ed=ecal&amp;lt;&amp;lt; Get Date) ))
    )
));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 20:40:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Embed-Calendar-Box-in-JMP-App-Builder/m-p/320693#M57128</guid>
      <dc:creator>pickerins</dc:creator>
      <dc:date>2023-06-10T20:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to Embed Calendar Box in JMP App Builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Embed-Calendar-Box-in-JMP-App-Builder/m-p/321376#M57143</link>
      <description>&lt;P&gt;Application Builder does not directly support the CalendarBox, but you can add JSL scripts to your application to add additional content.&amp;nbsp; If you have a PanelBox named Panel1, you can add something like the following to the Module script to add a CalendarBox to the panel:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Panel1 &amp;lt;&amp;lt; Append(scal1 = Calendar Box(, SetFunction(Function({this}, sd1=scal1&amp;lt;&amp;lt; Get Date) )));
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another option when working in Application Builder is to use the NumberEditBox, which can display numbers in many different formats (Date/Time, Geographic, etc).&amp;nbsp; When a Date/Time format is used, the NumberEditBox will include a popup calendar option, which would make your window look something like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/27369i36C0B88BE237B1DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;This application also adds JSL to the Module script, in order to initialize the number fields to a value of Today().&amp;nbsp; See the full Application in the attached file FromToCalendar.zip.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 20:35:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Embed-Calendar-Box-in-JMP-App-Builder/m-p/321376#M57143</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2020-10-13T20:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to Embed Calendar Box in JMP App Builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Embed-Calendar-Box-in-JMP-App-Builder/m-p/321523#M57155</link>
      <description>&lt;P&gt;FWIW I tend to use Dan's approach when prompting for dates.&amp;nbsp; Less clutter on the screen, and you get a nice calendar when you click on the icon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I dug out an old Application Builder presentation I gave at a JMP version 11 (yes 11!) roadshow.&amp;nbsp; Might be some nuggets in there for you.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 13:50:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Embed-Calendar-Box-in-JMP-App-Builder/m-p/321523#M57155</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2020-10-14T13:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to Embed Calendar Box in JMP App Builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Embed-Calendar-Box-in-JMP-App-Builder/m-p/326498#M57580</link>
      <description>&lt;P&gt;Dan thank you very much for this! It worked very nicely, and it made me realize I need to improve my JMP scripting abilities and my dashboard/app scripting knowledge as I now use these resulting variables applied in my scripts.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 14:00:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Embed-Calendar-Box-in-JMP-App-Builder/m-p/326498#M57580</guid>
      <dc:creator>pickerins</dc:creator>
      <dc:date>2020-10-26T14:00:52Z</dc:date>
    </item>
  </channel>
</rss>

