Controlling Z-order of (date input-boxes)?

I have several <cfinput> controls placed vertically (using an HTML table).  They are "date" fields with the nice drop-down calendar.
Trouble is ... when the calendar drops down, it drops down behind the calendar-control below it.  This obscures the month-name bar and almost prevents access to the previous/next month buttons.
I was therefore wondering:  is it easily and conveniently possible to control the z-order of the drop down calendar, so that it appears in front of everything?
(P.S.  As usual, "it works fine in FireFox, and breaks in IE."  No surprise there...)

This work-around should fix the problem (though its annoying that we even need a work-around for this):
<table cellpadding="6" cellspacing="0" border="0">
<tr>
  <td><b>Date 1</b></td>
  <td>
  <div style="clear:both;position:relative;z-index:3;">
     <cfinput name="Date1" id="Date1" type="DateField" value="" mask="M/D/YYYY" validate="USDate" required="yes" message="Please enter Date 1.">
  </div>
  </td>
  </tr>
  <tr>
  <td><b>Date 2</b></td>
  <td>
  <div style="clear:both;position:relative;z-index:2;">
    <cfinput name="Date2" id="Date2" type="DateField" value="" mask="M/D/YYYY" validate="USDate" required="yes" message="Please enter Date 2." >
  </div>
  </td>
  </tr>
  <tr>
  <td><b>Date 3</b></td>
  <td>
  <div style="clear:both;position:relative;z-index:1;">
    <cfinput name="Date3" id="Date3" type="DateField" value="" mask="M/D/YYYY" validate="USDate" required="yes" message="Please enter Date 3." >
  </div>
  </td>
  </tr>
</table>

Similar Messages

  • Control Sales order Pricing Date with Delivery GI Date

    Is it possible to have a control that ensures the Actual GI date in a delivery is not more than a number of days from the sales order pricing date?

    Hi,
    To have restriction in actual GI date in transaction VL01N . Please find the user exit for VL01N , you can use one which are marked as bold . Kindly take the help of abaper to put the validation or logic as required.
    V02V0001   - Sales area determination for stock transport order 
    V02V0002   - User exit for storage location determination 
    V02V0003   - User exit for gate + matl staging area determination 
    V02V0004   - User Exit for Staging Area Determination (Item) 
    V50PSTAT  - Delivery: Item Status Calculation 
    V50Q0001   - Delivery Monitor: User Exits for Filling Display Fields
    V50R0001    -  Collective processing for delivery creation 
    V50R0002    - Collective processing for delivery creation 
    V50R0004    - Calculation of Stock for POs for Shipping Due Date List
    V50S0001    - User Exits for Delivery Processing 
    V53C0001    - Rough workload calculation in time per item 
    V53C0002    - W&S: RWE enhancement - shipping material type/time slot
    V53W0001   - User exits for creating picking waves 
    VMDE0001  - Shipping Interface: Error Handling - Inbound IDoc 
    VMDE0002  - Shipping Interface: Message PICKSD (Picking, Outbound) 
    VMDE0003  - Shipping Interface: Message SDPICK (Picking, Inbound) 
    VMDE0004  - Shipping Interface: Message SDPACK (Packing, Inbound) 
    Hope this will help you to resolve your issue!!!!
    Regards,
    Krishna O

  • How to Cancel restrictions of Dates input box must input?

    when I Create  a activity , On tab Dates , I must Input "From to" "End to", This Type date is Configurated use SPRO. If I do not Input ,It will gives Error messages.
    How can i cancel this restrictions?

    One way ,   i) Figure out what is the Transaction Type for your 'Activity'
    ii) Then Check the Date Profile associated with your Transaction type
    iii) From the Date Profile remove the Date type if you don't need it
    If the Date Profile is Standard , I would suggest create a Copy of the Standard and Remove the one you don't need. Then Specify the Custom date Profile in your Transaction type
    I am not sure if this is something you were looking for..
    Edited by: SKP on Mar 24, 2009 4:50 AM

  • Calendar Control Date Input Field

    Hi All,
    1) Is there any (easy) way to place a calendar control next to a date input field for date entry help (just like in JS)?
    2) If yes, how could we make the calendar help popup language-dependent ?
    Thanks for all the help...
    H2

    From the help menu in your Developer studio choose:
    SAP Web AS Documentation,
    SAP Web Dynpro applications
    Then go to
    Core development tasks,
    View, programming UI
    UI elements guide.
    Alternatively, on the left hand side you can search for any Web Dynpro class (e.g. IWDContextNode) and acces the Web Dynpro API.
    Good luck, Roelof

  • Allow the user to control the width of the edit forum post input box

    I would like to control the width of of the edit-forum post input box.  This could be:
    automatically adjust the width of the box so that the box doesn't run off the right edge of the window.
    have a user global preference to set the preferred width
    at least, allow the user to change the width via the change size icon.  The three horizontal bars at the lower left of the input box. You can adjust the vertical dimension, but not the horizontal. TenFourFox 4.0.1. This is probably being blocked for some obscure reason.
    Here is an example of an over extended right margin:
    Curiously enough, the "software" let's me adjust the width & height of the add reason to edit text, but not adjust the width of the more important edit text box.
    Robert

    Testing
    Standard Reply box can be height adjusted but not width.
    Same with Advanced Editor
    No Adjustment at all in HTL Editor
    Edit.
    The Edit uses the Advanced Editor
    Only Height Adjustment again.
    I do seem to remember someone posting about the width and saying they could drag it over the edge of the right hand edge (Into the grey surround)
    This may have been a post in the lounge.
    It didn't actually try it at the time but have played with it since and have not seen it.
    Maybe it is something they "Fixed" in both senses of the word.
    Second edit.
    I can't alter the box that currently reads "Message Edited by:- ..."
    I also can't get this box to accept New lines  (they appear in the box but don't post that way)
    Corrected Spelling
    9:51 PM      Wednesday; May 11, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.7)
     Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously
    Message was edited by: Ralph Johns (UK)
    Message was edited by: Ralph Johns (UK)
    and new line with a line space as well

  • Tree-control for data input?

    Hi,
    I need to program an input screen for values that have hierarchical dependencies (e.g. sums). I feel, the most adequate user-interface would be a tree control, because of the data dependencies and also because the users asked for a possibility to collapse/expand parts of the data during input.
    I had a look at CL_GUI_COLUMN_TREE, but I'm not sure, if it can be used for data input. Has anyone done something like this before or can anybody direct me to some additional sample coding? (the sample coding in the reuse library didn't do it...)
    Thanks for your help, greetings, Kathrin!

    Hello Kathrin,
    Since you say that the user's input is hierarchical in nature, it is nice to have a tree-control for input. But, the choice of using a custom-control-version of the tree is a cause for some concern. I cannot recollect any of the SAP screens where the input can be given through such a tree framework (please do let me know if you have come across one). The problem with such a tree would be in the areas of even-handling. Filling the tree with appropriate data at the right times would be another challenge.
    However, there's one alternative that I would like to direct your attention to. You must have observed another kind of tree, when you select an application component from the APPLICATION HIERARCHY, which is just like a list. Also, the <i>Transport Organizer (SE09)</i>, <i>Menu Painter (SE41)</i> etc., have this kind of a tree. You can use this if you (or rather your users) are very particular on having a tree display. For more information, you can see the Function Group <b>SEUT</b>, which has the required function modules to accomplish the same. The Function Group is well documented, and you might have to work a little on the function modules themselves.
    Please do let me know if this is a suitable option to meet your requirement. All the best,
    Regards,
    Anand Mandalika.

  • I wish to generate reports from the database an out put it but i need to enter a date from and to ina  html input box

    i wish to generate reports from the database an out put it
    but i need to enter a date from and to ina html input box
    in the input box a data of range will be input from a start
    to latest
    latest being the default as today's date.
    any help tips snipplets, concepts , turot=rails.
    thanks

    easycfm.com has tutorials for people who are brand new.
    If you don't know much about sql, I have heard good things
    about the book, Teach Yourself SQL in 10 Minutes by Ben
    Forta.

  • How to remove timestamp,when i select calendar date(input Controls)

    Hi everyone
    I am using webi 4.0
    My problem is when i select calendar date(input Controls) i am able to display time stamp along with date in input Controls(MM/dd/yyyy 12:00:00 AM)
    i want to change (MM/dd/yyyy 12:00:00 AM) to (yyyy-MM-dd ), when i select calendar date(input Controls)
    where is the calendar date(input Controls)' format setting??
    i dont want to show the time stamp in calendar date(input Controls) as my users dislike to see that timestamp .
    Thanks & regards

    Hello,
    Can you show us the declaration of the internal table rec?
    Vikranth

  • Help with date validation on input boxes.

    I need some help with date validation on input boxes.
    What I�m trying to create is a form where a user inputs dates and then the rest of the form calculates the other dates for them.
    i.e. � A user inputs 2 dates (A & B) and then a 3rd date which is 11 weeks before date B is calculated automatically.
    Is this possible and if so how do I do it ???
    Thanks

    Hi,
    to get third date try this:
    java.util.Date bDate = ...;
    Calendar yourCalendar = new GregorianCalendar();
    yourCalendar.setTime(bDate);
    yourCalendar.roll(Calendar.WEEK_OF_YEAR, -11);
    java.util.Date cDate = yourCalendar.getTime();Regards
    Ldinka

  • Date Field Input Box in data  table does not provide date picker???

    hello everybody,
    In my JSF page i have a data table in which i have a input text field of date type. my problem is for the input box date picker is not available. though i can have date picker for a date filed outside the datatable. another problem is for the date filed validation in the browser is not available too. so how can i get the helper calender and browser validation? plz help. ASAP
    with regards,
    sailajoy
    Edited by: sailajoy on Jan 7, 2009 12:42 PM

    You are absolutely correct Sir.
    I am using IBM Websphere for developing JSF and the component is
    <h:inputText id="txtBirthDt" size="11">
    <f:convertDateTime pattern="dd/MM/yyyy" /><hx:inputHelperDatePicker />          
    <hx:inputHelperAssist validation="true" errorClass="inputText_Error" errorAction="selected"/>
    <hx:validateDateTimeRange maximum="#{now}" /></h:inputText>
    Both the helper calender and the validation part for the date field is not working if it is included in data table. Please Help.

  • How to properly order form data?

    I have a form to collect data for a price quote (printing & direct mail).  When I convert the collected data to a .CSV file, the data is not in the same order.  How do i tell my form to postback data in the same order?
    Here is the code (this site would not allow me to attach the files, for whatever reason)
    quote.html . . . the quote form
    <script language=JavaScript>
    function checkform(what){
        if (what.Company_Name.value==''){ alert('You must provide your company name.'); return false;}
        else if (what.Contact_Name.value==''){ alert('You must provide your contact name.'); return false;}
        else if (what.Contact_Email.value==''){ alert('You must provide your e-mail address.'); return false;}
        else{ return true; }
    </script>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML>
    <SCRIPT language=JavaScript src="file:///C|/Documents and Settings/michael/Desktop/images/franklin_java.js"></SCRIPT>
    <META http-equiv=Content-Type content="text/html; charset=iso-8859-1" />
    <META content=2.0 name=Version />
    <META content="MSHTML 6.00.2600.0" name=GENERATOR />
    <script type="text/JavaScript">
    <!--
    </HEAD>
    <BODY bgColor=#3c4676 text=#000000 link=#000000 vLink=#000000 aLink=#000000
    leftMargin=0 topMargin=0
    marginwidth="0" >
    <!-- InstanceBeginEditable name="EditRegion5" --><script language=JavaScript>
    function checkform(what){
        if (what.Company_Name.value==''){ alert('You must provide your company name.'); return false;}
        else if (what.Contact_Name.value==''){ alert('You must provide your contact name.'); return false;}
        else if (what.Contact_Email.value==''){ alert('You must provide your e-mail address.'); return false;}
        else{ return true; }
    </script>
    <style type="text/css">
    <!--
    .style3 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; }
    .style4 {font-size: small}
    .style7 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; font-weight: bold; }
    .style12 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; color: #000000; }
    body {
        background-color: #006666;
    .style13 {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-weight: bold;
        font-size: 14px;
    body,td,th {
        font-size: 10px;
    .style15 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; }
    .style16 {
        color: #000000
    -->
    </style>
    <form method="post" onSubmit="return checkform(this)" action="aspform.asp">
    <INPUT TYPE=HIDDEN NAME="to" VALUE="[email protected]">
    <INPUT TYPE=HIDDEN NAME="subject" VALUE="Franklin Request a Quote Form">
    <INPUT TYPE=HIDDEN NAME="print_blank_fields" VALUE="1"><br><br>
    <table width = "800" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#FFFFFF">
    <tr>
    </tr>
    <tr>
    <td width="125" align="right" ><span class="style12">Company Name:</span></td>
    <td><INPUT NAME="Company_Name" TYPE="text" VALUE="" SIZE=30 MAXLENGTH=50></td>
    </tr>
    <tr>
    <td width="125" align="right" ><span class="style12">Contact Name:</span></td>
    <td><INPUT NAME="Contact_Name" TYPE="text" VALUE="" SIZE=30 MAXLENGTH=50></td>
    </tr>
    <tr>
    <td width="125" align="right" ><span class="style12">Contact Email:</span></td>
    <td><INPUT NAME="Contact_Email" TYPE="text" VALUE="" SIZE=30 MAXLENGTH=50></td>
    </tr>
    </table>
    <table width = "800" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#FFFFFF">
    <tr>
    <td width  = "125" align="right"><span class="style3">Date estimate needed:</span></td>
    <td width="112"><select name="Date_estimate_needed" size="1">
    <option value="">:: Month ::</option>
    <option value="JAN">JAN</option>
    <option value="FEB">FEB</option>
    <option value="MARCH">MARCH</option>
    <option value="APRIL">APRIL</option>
    <option value="MAY">MAY</option>
    <option value="JUNE">JUNE</option>
    <option value="JULY">JULY</option>
    <option value="AUG">AUG</option>
    <option value="SEPT">SEPT</option>
    <option value="OCT">OCT</option>
    <option value="NOV">NOV</option>
    <option value="DEC">DEC</option>
    </select></td>
    <td width="95"><select name="Date_estimate_needed" size="1">
    <option value="">:: Date ::</option>
    <option value="01">01</option>
    <option value="02">02</option>
    <option value="03">03</option>
    <option value="04">04</option>
    <option value="05">05</option>
    <option value="06">06</option>
    <option value="07">07</option>
    <option value="08">08</option>
    <option value="09">09</option>
    <option value="10">10</option>
    <option value="11">11</option>
    <option value="12">12</option>
    <option value="13">13</option>
    <option value="14">14</option>
    <option value="15">15</option>
    <option value="16">16</option>
    <option value="17">17</option>
    <option value="18">18</option>
    <option value="19">19</option>
    <option value="20">20</option>
    <option value="21">21</option>
    <option value="22">22</option>
    <option value="23">23</option>
    <option value="24">24</option>
    <option value="25">25</option>
    <option value="26">26</option>
    <option value="27">27</option>
    <option value="28">28</option>
    <option value="29">29</option>
    <option value="30">30</option>
    <option value="31">31</option>
    </select></td>
    <td width="447"><select name="Date_estimate_needed" size="1">
    <option value="">:: Year ::</option>
    <option value="2009">2009</option>
    <option value="2010">2010</option>
    </select></td>
    </tr>
    </table>
    <table width="800" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#FFFFFF">
      <tr>
        <td width = "162" align="right" valign="top"><span class="style4"></span></td>
        <td width="525"> </td>
      </tr>
      <tr>
        <td align="right" valign="top"><span class="style4"></span><span class="style3">Please Select Product Type(s):</span></td>
        <td><span class="style3">
          <input type="checkbox" name="Self Mailer" id="Self Mailer">
          <label for="Self Mailer">Self Mailer</label>
          <label>
          <input type="checkbox" name="Postcard" id="Postcard">
    Postcard</label>
          <label>
          <input type="checkbox" name="Booklet" id="Booklet">
    Booklet</label>
        </span>
          <p class="style3">
            <label></label>
            <label>
    <input type="checkbox" name="Envelope" id="Envelope">
    Envelope</label>
            <label>
    <input type="checkbox" name="Invitation" id="Invtiation">
    Invitation</label>
    <label>
    <input type="checkbox" name="Other" id="Other">
    Other</label>
    </p>
          <p class="style3">
            <label></label>
          </p>      </td>
      </tr>
      <tr>
        <td align="right" valign="top"><span class="style3">Number of Versions</span></td>
        <td><table width="507">
          <tr>
            <td width="499"><label>
              <span class="style15">
              <input type="radio" name="RadioGroup1" value="1" id="RadioGroup1_0">
              1
              <input type="radio" name="RadioGroup1" value="2" id="RadioGroup1_1">
    2
    <input type="radio" name="RadioGroup1" value="3" id="RadioGroup1_2">
    3
    <input type="radio" name="RadioGroup1" value="4" id="RadioGroup1_3">
    4
    <input type="radio" name="RadioGroup1" value="5" id="RadioGroup1_4">
    5
    <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_5">
              </span><span class="style3">Other
    - Specify</span>
    <input name="Specify" type="text" id="Specify" size="5" maxlength="3">
    </label></td>
          </tr>
        </table>     
          <p class="style3">Are the version Quantities the same?
            <label>
            <input type="radio" name="RadioGroup3" value="Yes" id="RadioGroup3_0">
    Yes</label>
            <input type="radio" name="RadioGroup3" value="No" id="RadioGroup3_1">
            No<br>
            <label></label>
    </p>
          <p>
            <label></label>
            <br>
          </p></td>
      </tr>
      <tr>
        <td width="162" align="right" ><span class="style3">Total Quantity:</span></td>
        <td><input name="Quantity" type="text" value="" size=30 maxlength=50></td>
      </tr>
      <tr>
        <td width="162" align="right" -><span class="style3">Flat Size:</span></td>
        <td><input name="Flat_Size" type="text" value="" size=30 maxlength=50></td>
      </tr>
      <tr>
        <td width="162" align="right" -><span class="style3">Finished/Folded Size:</span></td>
        <td><input name="Finished/Folded_Size:" type="text" value="" size=30 maxlength=50></td>
      </tr>
      <tr>
        <td width="162" align="right" -><span class="style3">Number of Pages:</span></td>
        <td><INPUT NAME="Number_of_Pages" TYPE="text" VALUE="" SIZE=30 MAXLENGTH=50></td>
    </tr>
    <tr>
    <td><div align="right"><span class="style3">Envelope Size #1:</span></div></td>
    <td><label>
      <input type="text" name="textfield" id="textfield">
    </label></td>
    </tr>
    <tr>
      <td><div align="right"><span class="style3">Envelope Size #2:</span></div></td>
      <td><input type="text" name="textfield2" id="textfield2"></td>
    </tr>
    <tr>
      <td><div align="right"><span class="style3">If Booklet</span></div></td>
      <td><table width="351">
        <tr>
          <td valign="middle"><label>
            <span class="style3">
            <input type="radio" name="RadioGroup2" value="Self-Cover" id="RadioGroup2_0">
            Self-Cover</span></label>        <span class="style3">
            <label>
            <input type="radio" name="RadioGroup2" value="Plus Cover" id="RadioGroup2_1">
            Plus Cover</label>
            </span>        <label></label></td>
        </tr>
      </table>  </td>
    </tr>
    </table>
    <table width = "800" border = "0" align="center" cellpadding="2" cellspacing="1" bgcolor="#FFFFFF">
    <tr>
    <td width = "125" align="right" valign="top"><span class="style3">Size Notes:</span></td>
    <td><TEXTAREA cols=23 name="Size_Notes" rows=4 wrap=virtual></TEXTAREA></td>
    </tr>
    </table>
    <table width = "800" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#FFFFFF">
    <tr>
    <td width = "125" align="right" ><span class="style3">Proof Required:</span></td>
    <td colspan="4"><select name="Proof_Required" size="1">
    <option value="">:: Select One ::</option>
    <option value="Laser">Laser</option>
    <option value="Color_Laser">Color Laser</option>
    <option value="Epson_(relative color match)">Epson (relative color match)</option>
    <option value="Digital_Matchprint_(exact color match)">Digital Matchprint (exact color match)</option>
    <option value="PDF">PDF</option>
    </select></td>
    </tr>
    <tr>
      <td colspan="5" align="right" ><div align="left">
        <blockquote>
          <p><span class="style7">Paper Specs:</span></p>
        </blockquote>
      </div></td>
      </tr>
    </table>
    <table width = "800" border = "0" align="center" cellpadding = "2" cellspacing="2" bgcolor="#FFFFFF">
      <tr>
        <td width = "125" align="right"><span class="style3">Paper:</span></td>
        <td width="88" align="center"><span class="style3">Color</span></td>
        <td width="84" align="center"><span class="style3">Weight</span></td>
        <td width="84" align="center"><span class="style3">Type</span></td>
        <td width="556" align="center"><div align="left"><span class="style3">Finish</span></div></td>
      </tr>
      <tr>
        <td align="right" class="style3">Self Mailer:</td>
        <td align="center"><div align="left">
          <input name="Postcard Color2" type="text" id="Self Mailer" size="10" maxlength="10">
        </div></td>
        <td align="center"><div align="left">
          <input name="Postcard Weight2" type="text" id="Self Mailer Weight" size="10" maxlength="10">
        </div></td>
        <td align="center"><div align="left">
          <input name="Postcard Type" type="text" id="Self Mailer Type" size="10" maxlength="10">
        </div></td>
        <td align="center"><div align="left">
          <input name="Postcard Finish2" type="text" id="Self Mailer Finish" size="10" maxlength="10">
        </div></td>
      </tr>
      <tr>
        <td align="right" class="style3">Postcard:</td>
        <td align="center"><div align="left">
            <input name="Postcard Color" type="text" id="Postcard Color" size="10" maxlength="10">
        </div></td>
        <td align="center"><div align="left">
            <input name="Postcard Weight" type="text" id="Postcard Weight" size="10" maxlength="10">
        </div></td>
        <td align="center"><div align="left">
            <input name="Postcard Type Weight" type="text" id="Postcard Type" size="10" maxlength="10">
        </div></td>
        <td align="center"><div align="left">
            <input name="Postcard Finish" type="text" id="Postcard Finish" size="10" maxlength="10">
        </div></td>
      </tr>
      <tr>
        <td align="right" class="style3">Invitation:</td>
        <td align="center"><div align="left">
            <input name="Invitation Color" type="text" id="Invitation Color" size="10" maxlength="10">
        </div></td>
        <td align="center"><div align="left">
            <input name="Invitation Weight" type="text" id="Invitation Weight" size="10" maxlength="10">
        </div></td>
        <td align="center"><div align="left">
            <input name="Invitation Type" type="text" id="Invitation Type" size="10" maxlength="10">
        </div></td>
        <td align="center"><div align="left">
            <input name="Self Mailer Finish2" type="text" id="Self Mailer Finish" size="10" maxlength="10">
        </div></td>
      </tr>
      <tr>
        <td align="right"><span class="style3">Envelope #1</span></td>
        <td><span class="style4">
          <input name="Cover_Color" type="text" value="" size=10 maxlength=50>
        </span></td>
        <td><input name="Cover_Color" type="text" value="" size=10 maxlength=50></td>
        <td><input name="Cover_Color" type="text" value="" size=10 maxlength=50></td>
        <td><input name="Cover_Color" type="text" value="" size=10 maxlength=50></td>
      </tr>
      <tr>
        <td align="right"><span class="style3">Envelope #2</span></td>
      </tr>
      <tr>
        <td width = "125" align="right"><span class="style3">Cover (If booklet):</span></td>
        <td><input name="Cover_Color" type="text" value="" size=10 maxlength=50></td>
        <td><input name="Cover_Weight" type="text" value="" size=10 maxlength=50></td>
        <td><input name="Cover_Brand" type="text" value="" size=10 maxlength=50></td>
        <td><input name="Cover_Finish" type="text" value="" size=10 maxlength=50></td>
      </tr>
      <tr>
        <td width = "125" align="right"><span class="style3">Inside Pages:</span></td>
        <td><input name="Inside_Pages_Color" type="text" value="" size=10 maxlength=50></td>
        <td><input name="Inside_Pages_Weight" type="text" value="" size=10 maxlength=50></td>
        <td><input name="Inside_Pages_Brand" type="text" value="" size=10 maxlength=50></td>
        <td><input name="Inside_Pages_Finish" type="text" value="" size=10 maxlength=50></td>
      </tr>
      <tr>
        <td align="right" class="style3">Other:</td>
        <td colspan="4"><label>
          <textarea name="Other2" id="Other2" cols="45" rows="5"></textarea>
        </label></td>
      </tr>
      <tr>
        <td width = "125" align="right" valign="top"><span class="style3">Paper Notes:</span></td>
        <td colspan="4"><span class="style3">
          <textarea cols=23 name="Paper_Notes" rows=4 wrap=virtual></textarea>
        </span></td>
      </tr>
      <tr>
        <td colspan="3" align="right" ><div align="left">
            <blockquote>
              <p><span class="style7">Ink Specs:</span></p>
            </blockquote>
        </div></td>
      </tr>
      <tr>
        <td width = "125" align="right" ><span class="style3">Ink:</span></td>
        <td align="center" valign="bottom"><span class="style3">Front</span></td>
        <td align="center" valign="bottom"><span class="style3">Back</span></td>
      </tr>
      <tr>
        <td align="right" ><span class="style3">Self Mailer</span></td>
        <td align="center" valign="bottom"><label>
          <div align="left">
            <input name="Self Mailer Ink Front" type="text" id="Self Mailer Ink Front" value="4" size="10" maxlength="10">
            </div>
        </label></td>
        <td align="center" valign="bottom"><div align="left">
          <input name="Self Mailer Ink Front2" type="text" id="Self Mailer Ink Back" value="4" size="10" maxlength="10">
        </div></td>
      </tr>
      <tr>
        <td align="right" class="style3" >Postcard</td>
        <td align="center" valign="bottom"><div align="left">
          <input name="Self Mailer Ink Front3" type="text" id="Postcard Ink Front" value="4" size="10" maxlength="10">
        </div></td>
        <td align="center" valign="bottom"><div align="left">
          <input name="Self Mailer Ink Front4" type="text" id="Postcard Ink Back" value="4" size="10" maxlength="10">
        </div></td>
      </tr>
      <tr>
        <td align="right" class="style3" >Invitation</td>
        <td align="center" valign="bottom"><div align="left">
          <input name="Self Mailer Ink Front5" type="text" id="Invitation Ink Front" value="4" size="10" maxlength="10">
        </div></td>
        <td align="center" valign="bottom"><div align="left">
          <input name="Self Mailer Ink Front6" type="text" id="Invitation Ink Back" value=" " size="10" maxlength="10">
        </div></td>
      </tr>
      <tr>
        <td align="right" class="style3" >Envelope #1</td>
        <td align="center" valign="bottom"><div align="left">
          <input name="Self Mailer Ink Front7" type="text" id="Envelope #1 Ink Front" value="4" size="10" maxlength="10">
        </div></td>
        <td align="center" valign="bottom"><div align="left">
          <input name="Self Mailer Ink Front8" type="text" id="Envelope #1 Ink Back" value=" " size="10" maxlength="10">
        </div></td>
      </tr>
      <tr>
        <td align="right" class="style3" >Envelope #2</td>
        <td align="center" valign="bottom"><div align="left">
          <input name="Self Mailer Ink Front9" type="text" id="Envelope #2 Ink Front" value="4" size="10" maxlength="10">
        </div></td>
        <td align="center" valign="bottom"><div align="left">
          <input name="Self Mailer Ink Front10" type="text" id="Envelope #2 Ink Front" value=" " size="10" maxlength="10">
        </div></td>
      </tr>
      <tr>
        <td width = "125" align="right"><span class="style3">Cover (If booklet):</span></td>
        <td><input name="Ink_Cover_Front" type="text" value="" size=10 maxlength=50></td>
        <td><input name="Ink_Cover_Back" type="text" value="" size=10 maxlength=50></td>
      </tr>
      <tr>
        <td width = "125" align="right"><span class="style3">Inside Pages:</span></td>
        <td><input name="Ink_Inside_Pages_Front" type="text" value="" size=10 maxlength=50></td>
        <td><input name="Ink_Inside_Pages_Back" type="text" value="" size=10 maxlength=50></td>
      </tr>
      <tr>
        <td width = "125" align="right" valign="top"><span class="style3">Ink notes: <br>
          (note if heavy coverage)</span></td>
        <td colspan="4"><span class="style3">
          <textarea cols=23 name="Ink_Notes" rows=4 wrap=virtual></textarea>
        </span></td>
      </tr>
      <tr>
        <td colspan="5" align="right"><div align="left" class="style7">
            <blockquote>
              <p>Bindery &amp; Mailing Specs:</p>
            </blockquote>
        </div></td>
      </tr>
      <tr>
        <td width = "125" align="right"><span class="style3">Bindery:</span></td>
        <td colspan="4"><span class="style3">
          <select name="Binary" size="1">
            <option value="">:: Select One ::</option>
            <option value="Trim">Trim</option>
            <option value="Fold">Fold</option>
            <option value="Score">Score</option>
            <option value="Perforate">Perforate</option>
            <option value="Saddle-Stitch">Saddle-Stitch</option>
            <option value="Perfect Bind">Perfect Bind</option>
            <option value="Drill">Drill</option>
            <option value="Die Cut">Die Cut</option>
            <option value="Glue">Glue</option>
            <option value="Other">Other</option>
          </select>
        </span></td>
      </tr>
      <tr>
        <td  align="right"><span class="style3">Personalization: </span></td>
        <td colspan="4"><label><span class="style3">
          <input type="checkbox" name="Simplex Laser" id="Simplex Laser">
          Simplex Laser
          <input type="checkbox" name="Duplex Laser" id="Duplex Laser">
          Duplex Laser
          <input type="checkbox" name="Inkjet" id="Inkjet">
          Inkjet
          <input type="checkbox" name="Indigo" id="Indigo">
          Color Variable</span></label></td>
      </tr>
      <tr>
        <td width = "125" align="right" valign="top"><span class="style3">Mailing Notes:</span></td>
        <td colspan="4"><span class="style3">
          <textarea cols=23 name="Mailing_Notes" rows=4 wrap=virtual></textarea>
        </span></td>
      </tr>
      <tr>
        <td align="right" class="style3">Inserting:</td>
        <td colspan="4"><label class="style3">
          <input type="checkbox" name="Machine Insert (Matched)" id="Machine Insert (Matched)">
          Machine Insert (Non-Match)
          <input type="checkbox" name="Machine Insert (Matched)2" id="Machine Insert (Matched)2">
          Machine Insert (Match) <br>
          <input type="checkbox" name="Hand Insert (Generic)" id="Hand Insert (Generic)">
          Hand Insert (Generic)
          <input type="checkbox" name="Hand Insert (Matched)" id="Hand Insert (Matched)">
          Hand Insert (Matched)</label></td>
      </tr>
      <tr>
        <td width = "125" align="right"><span class="style3">Tabbing:</span></td>
        <td colspan="4"><span class="style3">
          <select name="Tab" size="1">
            <option value="">:: Select One ::</option>
            <option value="1">1</option>
            <option value="2">2</option>
            <option value="3">2</option>
            <option value="4">2</option>
          </select>
        </span></td>
      </tr>
      <tr>
        <td align="right" class="style3">Flats:</td>
        <td colspan="4"><label>
          <input type="checkbox" name="Sort &amp; Bundle" id="Sort &amp; Bundle">
          <span class="style3"> Sort & Bundle</span></label></td>
      </tr>
      <tr>
        <td align="right" class="style3">Postage:</td>
        <td colspan="4"><label class="style3">
          <input type="checkbox" name="Indicia" id="Indicia">
          Indicia
          <input type="checkbox" name="Hand Stamp" id="Hand Stamp">
          Hand Stamp
          <input type="checkbox" name="Machine Stamp" id="Machine Stamp">
          Machine Stamp
          <input type="checkbox" name="Meter Inline" id="Meter Inline">
          Meter Inline
          <input type="checkbox" name="Meter Offline" id="Meter Offline">
          Meter Offline</label></td>
      </tr>
    <tr>
    </table>
    <table width = "800" border = "0" align="center" cellpadding="2" cellspacing="2" bgcolor="#FFFFFF">
    <tr>
    <td width = "106" align="right" ><span class="style3">Shipping: </span></td>
    <td width="82" align="Left"><span class="style3"> Zip:</span></td>
    <td width="592"><INPUT NAME="Zip" TYPE="text" VALUE="" SIZE=5 MAXLENGTH=10></td>
    </tr>
    <tr>
    <td><span class="style4"></span></td>
    <td align="left"><span class="style3"> City:</span></td>
    <td><INPUT NAME="City" TYPE="text" VALUE="" SIZE=20 MAXLENGTH=50></td>
    </tr>
    <tr><td><span class="style4"></span></td>
    <td align="left"><span class="style3"> State:</span></td>
    <td><span class="style3">
      <select name="state">
        <option value="null">:: Select State ::</option>
        <option value="AL">Alabama</option>
        <option value="AK">Alaska</option>
        <option value="AZ">Arizona</option>
        <option value="AR">Arkansas</option>
        <option value="CA">California</option>
        <option value="CO">Colorado</option>
        <option value="CT">Connecticut</option>
        <option value="DE">Delaware</option>
        <option value="FL">Florida</option>
        <option value="GA">Georgia</option>
        <option value="HI">Hawaii</option>
        <option value="ID">Idaho</option>
        <option value="IL">Illinois</option>
        <option value="IN">Indiana</option>
        <option value="IA">Iowa</option>
        <option value="KS">Kansas</option>
        <option value="KY">Kentucky</option>
        <option value="LA">Louisiana</option>
        <option value="ME">Maine</option>
        <option value="MD">Maryland</option>
        <option value="MA">Massachusetts</option>
        <option value="MI">Michigan</option>
        <option value="MN">Minnesota</option>
        <option value="MS">Mississippi</option>
        <option value="MO">Missouri</option>
        <option value="MT">Montana</option>
        <option value="NE">Nebraska</option>
        <option value="NV">Nevada</option>
        <option value="NH">New Hampshire</option>
        <option value="NJ">New Jersey</option>
        <option value="NM">New Mexico</option>
        <option value="NY">New York</option>
        <option value="NC">North Carolina</option>
        <option value="ND">North Dakota</option>
        <option value="OH">Ohio</option>
        <option value="OK">Oklahoma</option>
        <option value="OR">Oregon</option>
        <option value="PA">Pennsylvania</option>
        <option value="RI">Rhode Island</option>
        <option value="SC">South Carolina</option>
        <option value="SD">South Dakota</option>
        <option value="TN">Tennessee</option>
        <option value="TX">Texas</option>
        <option value="UT">Utah</option>
        <option value="VT">Vermont</option>
        <option value="VA">Virginia</option>
        <option value="WA">Washington</option>
        <option value="WV">West Virginia</option>
        <option value="WI">Wisconsin</option>
        <option value="WY">Wyoming</option>
      </select>
    </span></td>
    </tr>
    <tr>
    <td><span class="style4"></span></td>
    <td colspan="2"><span class="style3">(If not specified will be FOB our dock.)</span></td>
    </tr>
    </table>
    <table width = "800" border = "0" align="center" cellpadding="2" cellspacing="2" bgcolor="#FFFFFF">
    <tr>
    <td width = "125" align="right" valign="top"><span class="style3">Special instructions:</span></td>
    <td colspan="4"><TEXTAREA cols=23 name="Special_Instructions" rows=4 wrap=virtual></TEXTAREA></td>
    </tr>
    <tr>
    <td></td>
    <td><input type="submit" name="Submit" value="Submit">
    <input type="reset" name="Reset" value="Reset"></td>
    </tr>
    </table>
    </form>
    <TR><TD vAlign=top> </TD>
    </TR>
    </TBODY>
    </TABLE>
    </TD>
    </TR>
    </TBODY>
    </TABLE>
    </BODY><!-- InstanceEnd --></HTML>
    aspform.asp . . . the form that processes the data and dumps it into a .csv file
    <%
    'ASP Form Processor
    Dim datafile, redirectpage
    datafile=Request.Form("filesave")
    redirectpage=Request.Form("redirpage")
    Dim fso, f
    Set fso=Server.CreateObject("Scripting.FileSystemObject")
    Set f=fso.OpenTextFile(Server.MapPath ("response.csv"), 8, True)
    f.WriteBlankLines(1)
    f.WriteLine "Date : " & CStr(Date)
    For Each field in Request.Form
    If field<>"filesave" And field<>"redirpage" Then
    f.WriteLine field & " : " & Request.Form(field)
    End If
    Next
    f.WriteBlankLines(1)
    f.Close
    Set f=Nothing
    Set fso=Nothing
    Response.Redirect "thankyou.asp"
    %>
    response.csv . . . the data collected from the form which is out of order
    Date : 11/10/2009
    to :   [email protected]
    Flat_Size :   18x6
    Finished/Folded_Size:   : 9x6
    Ink_Notes :   heavy
    City :
    Submit :   Submit
    subject :   Franklin Request a Quote Form
    Quantity :   100000
    Size_Notes :
    Other2 :
    Ink_Inside_Pages_Front :
    Ink_Inside_Pages_Back :
    Duplex   Laser : on
    print_blank_fields   : 1
    Contact_Name   : MM
    Contact_Email   : [email protected]
    Proof_Required   : PDF
    Cover_Weight :
    Inside_Pages_Color :
    Inside_Pages_Weight :
    Inside_Pages_Brand :
    Inside_Pages_Finish :
    Binary :   Fold
    Company_Name   : FP
    Number_of_Pages   : 1
    textfield :
    textfield2 :
    Paper_Notes :
    Indicia :   on
    Date_estimate_needed : NOV
    10
    RadioGroup1   : 2
    RadioGroup3   : Yes
    Cover_Color   :
    Special_Instructions :
    Self Mailer   : on
    Self Mailer Finish2 :
    Cover_Brand :
    Self Mailer   Ink Front : 4
    Self Mailer   Ink Front2 : 4
    Self Mailer   Ink Front3 : 4
    Self Mailer   Ink Front4 : 4
    Self Mailer   Ink Front5 : 4
    Self Mailer Ink Front6 :
    Self Mailer   Ink Front7 : 4
    Self Mailer Ink Front8 :
    Self Mailer   Ink Front9 : 4
    Self Mailer Ink Front10 :
    Ink_Cover_Front :
    Ink_Cover_Back :
    state :   null
    Specify :
    Postcard   Color2 : white
    Postcard   Weight2 : 100
    Postcard   Type : cover
    Postcard   Finish2 : gloss
    Postcard Color :
    Postcard Weight :
    Postcard Type Weight :
    Postcard Finish :
    Mailing_Notes :
    Invitation Color :
    Invitation Weight :
    Invitation Type :
    Tab : 2
    Zip :
    Cover_Finish :
    Any response would be greatly appreciated.

    The order that fields appear in the request object is somewhat arbitrary. If you want to control the order, then you can reference each field by name rather than iterating through the collection. Or, you can try this method:
    http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=64

  • How do I create an input box with a cancel button that will end a loop in my script?

    I have been working on a script for my client and I am having trouble getting it to work properly. I stole most of the code from the PowerShell Tip of the Week "Creating a Custom Input Box". I also took someone's code for the Show-MessageBox function.
    I have slightly modified the original code with two parameters and an additional text box. The first field is for an e-mail address and the second is for an employee number.
    I need to know how I can get a Do Until loop to recognize when the cancel button is pushed and break the loop and effectively end the script. The work happens at the end but perhaps I need something added/modified in the InputBox function.
    I want the script to check to see if anything has been entered in the second text box. If empty it displays a message and calls the InputBox function again. Then if there is something I use elseif to check to see if it matches my RegEx (digits only). If
    it doesn't match it will loop and call the InputBox function again.
    This all works fine. The problem I am having is that I cannot cancel out of the form. I'd like the loop to continue until the second box matches my RegEx or Cancel is clicked. Clicking cancel doesn't break the loop. I need to know how I can stop the loop
    when cancel is pressed. I've seen Stack "Overflow: PowerShell Cancel Button Stop Script" but I don't think this will work in a loop.
    Any help would be awesome. As a note, I DO NOT want to use the VB Interaction stuff.
    function InputBox {
    param ($Name,$EN)
    [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
    [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
    $objForm = New-Object System.Windows.Forms.Form
    $objForm.Text = "Data Entry Form"
    $objForm.Size = New-Object System.Drawing.Size(300,200)
    $objForm.StartPosition = "CenterScreen"
    $objForm.KeyPreview = $True
    $objForm.Add_KeyDown({if ($_.KeyCode -eq "Enter")
    {$x=$objTextBox.Text;$objForm.Close()}})
    $objForm.Add_KeyDown({if ($_.KeyCode -eq "Escape")
    {$objForm.Close()}})
    $OKButton = New-Object System.Windows.Forms.Button
    $OKButton.Location = New-Object System.Drawing.Size(75,120)
    $OKButton.Size = New-Object System.Drawing.Size(75,23)
    $OKButton.Text = "OK"
    $OKButton.Add_Click({$objForm.Close()})
    $objForm.Controls.Add($OKButton)
    $CancelButton = New-Object System.Windows.Forms.Button
    $CancelButton.Location = New-Object System.Drawing.Size(150,120)
    $CancelButton.Size = New-Object System.Drawing.Size(75,23)
    $CancelButton.Text = "Cancel"
    $CancelButton.Add_Click({$objForm.Close()})
    $objForm.Controls.Add($CancelButton)
    $objLabel = New-Object System.Windows.Forms.Label
    $objLabel.Location = New-Object System.Drawing.Size(10,20)
    $objLabel.Size = New-Object System.Drawing.Size(280,20)
    $objLabel.Text = "Employee Email Address:"
    $objForm.Controls.Add($objLabel)
    $objTextBox = New-Object System.Windows.Forms.TextBox
    $objTextBox.Location = New-Object System.Drawing.Size(10,40)
    $objTextBox.Size = New-Object System.Drawing.Size(260,20)
    if ($Name) {
    $objTextBox.Text = $Name
    else {
    $objTextBox.Text = "@domain.com"
    $objLabel2 = New-Object System.Windows.Forms.Label
    $objLabel2.Location = New-Object System.Drawing.Size(10,70)
    $objLabel2.Size = New-Object System.Drawing.Size(280,20)
    $objLabel2.Text = "Employee Number:"
    $objForm.Controls.Add($objLabel2)
    $objTextBox2 = New-Object System.Windows.Forms.TextBox
    $objTextBox2.Location = New-Object System.Drawing.Size(10,90)
    $objTextBox2.Size = New-Object System.Drawing.Size(260,20)
    $objForm.Controls.Add($objTextBox)
    $objForm.Controls.Add($objTextBox2)
    $objForm.Topmost = $True
    $objForm.Add_Shown({$objForm.Activate()})
    [void] $objForm.ShowDialog()
    $Script:ButtonName = $objTextBox.Text
    $script:ButtonEN =$objTextBox2.Text
    $ButtonName; $ButtonEN
    Function Show-MessageBox{
    Param(
    [Parameter(Mandatory=$True)][Alias('M')][String]$Msg,
    [Parameter(Mandatory=$False)][Alias('T')][String]$Title = "",
    [Parameter(Mandatory=$False)][Alias('OC')][Switch]$OkCancel,
    [Parameter(Mandatory=$False)][Alias('OCI')][Switch]$AbortRetryIgnore,
    [Parameter(Mandatory=$False)][Alias('YNC')][Switch]$YesNoCancel,
    [Parameter(Mandatory=$False)][Alias('YN')][Switch]$YesNo,
    [Parameter(Mandatory=$False)][Alias('RC')][Switch]$RetryCancel,
    [Parameter(Mandatory=$False)][Alias('C')][Switch]$Critical,
    [Parameter(Mandatory=$False)][Alias('Q')][Switch]$Question,
    [Parameter(Mandatory=$False)][Alias('W')][Switch]$Warning,
    [Parameter(Mandatory=$False)][Alias('I')][Switch]$Informational)
    #Set Message Box Style
    IF($OkCancel){$Type = 1}
    Elseif($AbortRetryIgnore){$Type = 2}
    Elseif($YesNoCancel){$Type = 3}
    Elseif($YesNo){$Type = 4}
    Elseif($RetryCancel){$Type = 5}
    Else{$Type = 0}
    #Set Message box Icon
    If($Critical){$Icon = 16}
    ElseIf($Question){$Icon = 32}
    Elseif($Warning){$Icon = 48}
    Elseif($Informational){$Icon = 64}
    Else{$Icon = 0}
    #Loads the WinForm Assembly, Out-Null hides the message while loading.
    [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null
    #Display the message with input
    $Answer = [System.Windows.Forms.MessageBox]::Show($MSG , $TITLE, $Type, $Icon)
    #Return Answer
    Return $Answer
    $num = "^\d+$"
    do {
    if (!($ButtonEN)) {
    Show-MessageBox -Msg "You must enter a numeric value for the employee number." -Title "Employee Number Missing" -Critical
    InputBox -Name $ButtonName
    elseif ($ButtonEN -notmatch $num) {
    Show-MessageBox -Msg "The employee number must contain numbers only!" -Title "Non-numerical characters found" -Critical
    InputBox -Name $ButtonName
    until ( ($ButtonEN -match $num) -or (<this is where I want to be able to use the cancel button>)

    Here is a simple validation method.
    function New-InputBox{
    param(
    $EmailAddress='',
    $EmployeeNumber=''
    Add-Type -AssemblyName System.Windows.Forms
    $Form=New-Object System.Windows.Forms.Form
    $Form.Text='Data Entry Form'
    $Form.Size='300,200'
    $Form.StartPosition='CenterScreen'
    $OKButton=New-Object System.Windows.Forms.Button
    $OKButton.Location='75,120'
    $OKButton.Size='75,23'
    $OKButton.Text='OK'
    $OKButton.DialogResult='Ok'
    $OKButton.CausesValidation=$true
    $Form.Controls.Add($OKButton)
    $CancelButton = New-Object System.Windows.Forms.Button
    $CancelButton.Location = New-Object System.Drawing.Size(150,120)
    $CancelButton.Size = New-Object System.Drawing.Size(75,23)
    $CancelButton.Text ='Cancel'
    $CancelButton.DialogResult='Cancel'
    $CancelButton.CausesValidation=$false
    $Form.Controls.Add($CancelButton)
    $Label1=New-Object System.Windows.Forms.Label
    $Label1.Location='10,20'
    $Label1.Size='280,20'
    $Label1.Text='Employee Email Address:'
    $Form.Controls.Add($Label1)
    $TextBox1=New-Object System.Windows.Forms.TextBox
    $TextBox1.Location='10,40'
    $TextBox1.Size='260,20'
    $textbox1.Name='EmailAddress'
    $textbox1.Text=$EmailAddress
    $Form.Controls.Add($textbox1)
    $Label2=New-Object System.Windows.Forms.Label
    $Label2.Location='10,70'
    $Label2.Size='280,20'
    $Label2.Text='Employee Number:'
    $Form.Controls.Add($Label2)
    $TextBox2=New-Object System.Windows.Forms.TextBox
    $TextBox2.Location='10,90'
    $TextBox2.Size='260,20'
    $TextBox2.Name='EmployeeNumber'
    $TextBox2.Text=$EmployeeNumber
    $Form.Controls.Add($TextBox2)
    $Form.AcceptButton=$OKButton
    $Form.CancelButton=$CancelButton
    $Form.Topmost = $True
    $form1_FormClosing=[System.Windows.Forms.FormClosingEventHandler]{
    if($Form.DialogResult -eq 'OK'){
    if($textbox1.Text -eq ''){
    [void][System.Windows.Forms.MessageBox]::Show('please enter an email address','Validation Error')
    $_.Cancel=$true
    }else{
    # Check empno is all digits
    if("$($TextBox2.Text)" -notmatch '^\d+$'){
    [void][System.Windows.Forms.MessageBox]::Show('please enter a number "999999"','Validation Error')
    $_.Cancel=$true
    $form.add_FormClosing($form1_FormClosing)
    $Form.Add_Shown({$Form.Activate()})
    if($Form.ShowDialog() -eq 'Ok'){
    # return the form contents
    $Form
    if($f=New-InputBox -EmailAddress [email protected]){
    'Email is:{0} for Employee:{1}' -f $f.Controls['EmailAddress'].Text,$f.Controls['EmployeeNumber'].Text
    }else{
    Write-Host 'From cancelled!' -ForegroundColor red
    ¯\_(ツ)_/¯

  • Screen data entry box that displays data from text file AND write back to file.

    I want the user to be able to view/edit a 'setup file' FROM THE SAME INDICATOR BOXES for a application. I tried to read the file(text), display individual data in indicator boxes and re-write file when user is finished. This causes errors since you can't use indicators boxes as inputs for the file write. Is there some kind of indicator/control/data entry box that the user can view the data, edit the data, and re-write the data from the box???

    hi
    I have created this example for your reference.
    I modified the Configuration File Examples in LV Examples, together with a few file check & create functions.
    Hope this will help.
    Note: The Configuration File Example from LV are COOL, indeed.
    Cheers
    ian.f
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    iFunc_Setup_Config_File.zip ‏102 KB

  • I using an event structure for an input box and also for hardware input

    Hi there!
    I have many input boxes and display boxes on my user interface and i have a case for it in the event structure. If the user changes the values of the input boxes, the particular event case writes this new value to the hardware. However, in the timeout section of the event structure, we read the inputs from the hardware and we set the value for its related display object.  Within the timeout section i set the value for the related user interface display component, by making use of the property node value.
    Furthermore, for most of the display components, i have a event case for a value change associated with it. In that event case, i check for range errors and so forth.
    My assumption was that when i read the value in from the hardware and set the property node value, the user interface component's value will change and it would then trigger the event of the value changed for that component. 
    My assumption worked to the point of updating the component's value, however, it did not trigger the event  for the value changed for this component.
    Please advise me on how to achieve what i wish to.
    Thanks.
    Regards,

    Local variables are actually much more efficient than property nodes as far as execution speed goes. Take that same VI and delete the property node and instead write to a local variable inside the loop. You'll see the speed nearly identical to writing directly to the indicator. But note that variables also cause a copy of the data to be created. So if you're just using the "Value" property, you're much better off using a local variable. But don't use both at the same time. If you are reading/writing other properties when you update/read the value, you might as well use the value property.
    Sometimes you can't get around using either variables or property nodes. Initializing controls to saved values from an ini file is one example. But in this case, they are only written to once as the application starts so the performance hit is negligible.
    One thing you can do is store values in a shift register as they are read and pass this through your application so the last value read can be accessed from anywhere. You can even create a cluster that runs through the shift register to hold several values in a single register. This can be expanded a bit farther to create what's called a Functional Global. This basically a subVI with a While loop that only runs once on each call. It has a shift register to store data and a Case structure to Read or Write data into the register. There's a pretty good example that ships with LabVIEW showing how these work. Open the Example finder and search for "Functional Global Communication". This example shows how to use them to pass data between two independent loops, but they work just as well in a single loop application.
    One of the big advantages of these Functional Globals over the standard LabVIEW Globals and local variables is that you can add cases to manipulate the data in addition to just storing it. Also, since it's a subVI, access to the data is protected to one caller at a time whereas variables can have multiple reads and/or writes at the same time. This can cause race conditions.
    Hope that helps a bit.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Order of data in DTP

    Hi All
    Can you clear up my confusion please.
    I am transferring data from one DSO to another DSO in an attempt to perform a merge. The records in DSO1 have been modelled incorrectly so one logocal record can appear as 2 physical records. These get merged when going into DSO2.
    However I need to control the order of the data so that the data can be overwritten correctly. I was intending to use Semantic Group functionality to achieve this. When I press the Semantic Group button the list of fields is displayed but I cannot tick any of them. Is there an OSS note for this or am I not using this option correctly.
    Instead I have found that changing the 'Extraction from' setting also changes the order. The default was Active Table (without Archive) and this yielded the wrong results. Setting it to the Change Log appears to give the correct results (need more testing).
    Can someone explain how to use these settings and what impact they have please ?
    Regards
    Fuey

    Hi Raj
    For each group of 2 logically same records one of them will have a blank in one of the key fields. The other will be fully filled in. I would like the blank one to be processed first as it would have arrived first into DSO1..
    Using the Change Log as the Extraction source appears to produce the correct order. Is this a coincident or will this be consisttent in the future. Does the Change Log ensure that data is sent out in the same order that it arrived etc ??
    Regards
    Fuey

Maybe you are looking for

  • I can't sign OUT of iCloud on my new phone. I have a new email address...

    We got new phones today. My wife and I had the same iCloud account and the friends at Verizon told us to each have one. So I set up my own account. We went to set up our phones and it keeps asking me for the OLD password (2 email addresses ago) and t

  • Can you create 3D object using Repousse w/ front and back Inflation w/o seam?

    Greetings. I have created a 3d object using repousse in Photoshop (CS5 extended). The original 2d image is circular. I used the Magic Wand Tool to select the 2d image, then 3D/Repousse/Current Selection to create, selecting the inflate (rounded) Repo

  • What format should my usb drives be for boot camp

    I am Installing Windows 7 Home Premium SP1 on my late 2012 Mac Mini. I have the S/W on my desktop as an .iso format, and my test to check if Boot Camp would find it worked. Now I will be getting an USB drive (my 4GB wasn't big enough so will use it f

  • USB needs reseting after startup

    Every time i restart my pc i have to unplug my keyboard(piano) & dongle for them to be recognised. Any ideas what is causing this i have updated drivers for keyboard & dongle i have no problems with my logitech mouse wihich is my only other usb devic

  • Jdk 1.0.2 download

    I need jdk 1.0.2. I know it is more than a decade old, not supported and is not available in Sun website for download. can somebody give me pointers where I can download it from? Thanks in advance.