Open tabbed panels from dropdown list option value

I have about 10 tabbed panels on my page.
I created a dropdown list, <option value></option value>.
I need to open the specific panel when an option is selected from the dropdown list.  I know how to open tabbed panels by URL, a button, and a link on the same page.  But how do i open a tabbed panel from a dropdown list.  The <option value> in IE does not allow for onclick events in IE. 

Yes and I have been trying to find that.  Right now I have it setup where the onchange event is "location = this.options[this.selectedIndex].value;">
and then I have each<option> in the dropdown list with teh value=http://URL.com?tab=3#tabbedpanels1.
It works but it isn't as dynamic as I would like.  When i select each option in the dropdown, it refreshes the page and opens the correct tabbed panel. Then the dropdown list is reset to the default value because the page refreshed.  I wanted to do this without the page refreshing, that way the dropdown list item remains at what I selected to open the tabbedpanel. and plus, I didn't want the page to refresh everytime but to just open the tabbedpanel the same way as if i made a button to open it.

Similar Messages

  • Selecting a Role from dropdown list throws error

    Hi,
    I'm using CRM Web UI 7.0. I'm facing problem selecting a Role from dropdown list in the assignment block Roles in the screen Employee. The problem is that the dropdown list doesn't show any value on clicking and gives an error message "Error on page" at the bottom of page. The roles exist in the system and also I'm able to see them for Accounts screen & in the GUI.
    Kindly help.
    Regards,
    Shaili

    Hi,
    Just to add to this issue: WebUI-> Account Management-> Contacts-> Roles-> Edit list. When we try to add a role from dropdown in Firefox, it works fine but same throws an error in Internet Explorer related to some script.
    Did someone face similar issue and how was it solved?
    Regards,
    Shikha

  • TabNavigator: Tabs have a dropdown list

    I want to create a TabNavigator, in which some of the tabs
    contain a dropdown list. When those tabs are clicked, the
    dropdown list is displayed and you can select one of the
    items in the list. The display will change after the selection.
    Is there is simple way to do it within TabNavigator?

    I don't think you want a TabNavigator then. The tabs in a
    TabNavigator are used to, on click, switch through a view stack for
    instance.
    Seems like you could do what you wanted without a
    TabNavigator at all. Place some labels at the top (styled like tabs
    if you so desire), on click use an Effect to show a canvas sized as
    your desired subnav (wipe down from the label you clicked, move it
    via animation, bounce, etc).

  • How to populate form fields by choosing a parameter from a list of values?

    I have a unique field (say claim #)that is displayed at the top right of the page. Whenever I choose a value from the list of values and query the DB, all the subsequent forms(representation of one or more tables, linked by claim#) present below the search field should be populated with apt values.
    The issue here is, the forms displayed in the bottom of the page represent different master tables linked by the universal identifier(claim#) for my system.
    Please guide me if anyone knows a solution for this issue.
    Regards
    Arun

    You might want to look at the Acrobat Forms Data Format (FDF) Toolkit to create an FDF file that has the webbased PDF form refereced as the form source for the FDF data. You could also look at PDFTK and PDF Hacks.
    This is more of a developers issue than a simple Acrobat JavaScript issue.
    If may salary were to be doubled, I would still receive the same amount.
    If you do not like the responses ask for double your fee back.
    What do you expect for free?

  • Invalid Table Name SQL ReporError From Unsubmitted List of Value Table Name

    I have an application in which a user selects a table name from a list of values and a SQL report shows data from the table selected. On entry into this page the "invalid table name" error shows until you select a table name.
    My list of values is a LOV with redirect.
    Is there any way to remove this error or not show the report?
    Any help is appreciated.
    Thanks,
    Kyle

    I resolved my issue by doing the following:
    Create a process
    Process Point - On Load - Before Header
    Run Process - Once Per Session or When Reset
    Process Source:
    (item in list of value set equal to return value in list of value)
    :P10_VERSION := 'ALLVERSIONS';

  • Open a tabbed panel from a dynamic list box

    Hi all,
    I have Spry tabbed panelks working fine on my site, "click on button and open selected panel", great.
    Is it possible to have a list box populated from an SQL table and when an item in the list box is selected open the appropiate panel.
    The SQL table has three feilds, RecordID, Description, TabID.
    Example:
    RecordID
    Description
    TabID
    1
    USA
    0
    2
    United Kingdom
    0
    3
    France
    1
    4
    Spain
    1
    From a select list I select France "TabID 1", I would ike this selection to open the Tabbed panle which holds info about France.
    Select list code:
    <code><form id="form1" name="form1" method="post" action="">
                        <select name="select" class="searchbox" id="select" onchange="TabbedPanels1.showPanel('dontarget')">
    >
                          <option value=" ">Please select your airline...</option>
                          <?php
    do { 
    ?>
                          <option value="<?php echo $row_checkin_airlines['TabPanel']?>"><?php echo $row_checkin_airlines['AirlineName']?></option>
                          <?php
    } while ($row_checkin_airlines = mysql_fetch_assoc($checkin_airlines));
      $rows = mysql_num_rows($checkin_airlines);
      if($rows > 0) {
          mysql_data_seek($checkin_airlines, 0);
       $row_checkin_airlines = mysql_fetch_assoc($checkin_airlines);
    ?>
                        </select>
                      </form>
    </code>
    Tabbed Panle code:
    <code>
    <div id="TabbedPanels1" class="VTabbedPanels">
        <ul class="TabbedPanelsTabGroup">
          <li class="TabbedPanelsTab" tabindex="0"><img src="images/one_world_button.png" width="192" height="124" border="0" /></li>
          <li class="TabbedPanelsTab" tabindex="0"><img src="images/star_alliance_button.png" width="192" height="124" border="0" /></li>
          <li class="TabbedPanelsTab" tabindex="0"><img src="images/sky_team_button.png" alt="" width="192" height="124" border="0" /></li>
          <li class="TabbedPanelsTab" tabindex="0"><img src="images/others_button.png" width="192" height="124" border="0" /></li>
          <li class="TabbedPanelsTab" tabindex="0"><img src="images/no_online_checkin_button.png" width="192" height="124" border="0" /></li>
        </ul>
        <div class="TabbedPanelsContentGroup">
          <div class="TabbedPanelsContent">
         // followed by the pabel content
    </code>
    Many thanks for any help you can provide.
    Best regards,
    Dereck

    Have a look at the following
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet">
    </head>
    <body>
    <select name="myChoice" onchange="TabbedPanels1.showPanel(Number(this.value));">
        <option value='-1'>Please choose...</option>
        <option value='0'>USA</option>
        <option value='0'>UK</option>
        <option value='1'>France</option>
        <option value='1'>Spain</option>
    </select>
    <hr>
    <div id="TabbedPanels1" class="VTabbedPanels">
      <ul class="TabbedPanelsTabGroup">
        <li class="TabbedPanelsTab" tabindex="0">Tab 1</li>
        <li class="TabbedPanelsTab" tabindex="0">Tab 2</li>
      </ul>
      <div class="TabbedPanelsContentGroup">
        <div class="TabbedPanelsContent">Content 1</div>
        <div class="TabbedPanelsContent">Content 2</div>
      </div>
    </div>
    <script src="SpryAssets/SpryTabbedPanels.js"></script>
    <script>var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");</script>
    </body>
    </html>
    Gramps

  • Remove default value from dropdown list

    I am currently working with Acrobat XI Pro version. I want to know whether it is possible to remove the default value from a dropdown list.
    When the list has less than 4 items, it is possible to deselect the default value by pressing the whitespace below. However, when there are more items, this is not possible anymore.
    I have read that you should include a whitespace as item in the item list, however, then you will see an empty list item when people are working with the pdf which is not preferable.
    So, does anyone know how to remove the default value from a dropdown list?
    Thanks!

    Ok, I found a perfect workaround for my problem using FormsCentral for Acrobat. Here is what you should do:
    Step 1:
    -   Open FormsCentral
    -   Create New Form (Choose Blank Form)
    -   Click on the dropdown icon to create a new dropdown
    -   Fill in the list items by clicking on the edit (you also can add a label if you want)
    -   Click: File > Save as PDF Form...
    Step 2:
    -   Open the saved PDF (you now see a blank pdf with a dropdown menu)
    -   Click: Tools > Forms > Edit Form (when a popup shows that you should save a copy of the document in order to make changes, press "Save as a copy" and open the pdf copy file with Acrobat)
    -   Select the dropdown, copy the dropdown and paste it in the desired document
    Now you have a dropdown menu without a default choice. Keep in mind that you cannot edit the items in the dropdown, because a default choice will be chosen and you have to use the pdf copy file again. As long as you don't click on a list item, it doesn't choose a default choice.
    It is not a perfect solution, but it works for me.
    Good luck and thanks!

  • Adobe Form Section is Not Showing When Value is Selected from Dropdown List

    Hello Experts
    We have this issue where an ADOBE FORM is embedded in a WEBDYNPRO APPLICATION. 
    When selecting a value from the dropdown field in the ADOBE FORM, some particular section in the ADOBE FORM is not shown.
    Here's the ADS and NW versions that we were using.  We are running on EHP5 landscape.
    - ADS - 7.3 SPS 3
    - NW 7.3 SPS 3
    PS. The same program is working in EHP4 correctly.
    Any idea on how to resolve this issue?

    This is a custom built form, the thing is we just upgraded our system to EHP5 and we are in the test phase. The same form works in system in EHP4.
    Based on the dropdown list selection, there are some sections in the form which are hidden previously will be shown now. when you change the country in the dropdown the new sections appear. The sections will not be visible before you select the couuntry from dropdown.
    Should I upgrade my Adobe live cycle designer version to a higher one?
    Thanks

  • Select value from dropdown list

    hi All,
    we have a bsp application MVC based, we have a dropdown list,  what we require is when user selects an entry from drop down list and presses a button, we want to select that value from drop down list and then pass it to the method that will be called when button is pressed event..
    I want to know two things
    1. How do i get the selected value from dropdown ?
    2. hw can i retain it to send it to method call in handle_event bit
    thank you all

    Hi,
    If your application is stateless you have to capture the selected value in do_handle_data and assign it to the controller class attribute and later use this value in do_handle_event directly.
    If your application is stateful, on your dropdownlist htmlb tag click F1 you can read the documentation which also shows how to capture the value of dropdownlist in do_handle_event. In the same documentation you can even find few samples provided and check those samples in your system.
    Hope this helps.
    Regards,
    Abhinav

  • Calculating dynamic values from dropdown lists

    Hi all, here's the noob question of the day
    I'm creating an invoice form in LiveCycle Designer and I'm totally stuck at tax calculations:
    for each product you're able to choose between two tax percentages from a dropdown list and, at the end of the form, I want to show a total amount of each tax.
    product
    qty
    unit price
    vat
    net price
    red shoes pack
    2
    20$
    4%
    40$
    black shoes pack
    1
    25$
    4%
    25$
    white umbrella
    1
    10$
    7%
    10$
    total net price
    75$
    + TAX 4%
    2.60$
    + TAX 7%
    0.70$
    Total
    78.30$
    How can I set the + TAX 4% and + TAX 7% fields to grab their respective product rows?
    Sorry for my bad english.. I hope you get the question!

    You woudl have to look at each row inside of a for loop and then determine if that row had 4% or 7% tax. Then you coudl keep a running total of the tax for you calcultions such that when the for loop ended you would have the 4 and 7% totals calculated.
    Make sense?
    Paul

  • Choose OU from dropdown list in MDT 2012 without using Lite Touch Wizard??

    Is there a way to adding a dropdown to an hta and javascript file to allow a dropdown selection of the OU's in your AD container. Right now I have set that up with HTML and javascript but it will not succeed in passing the value over. Or is there a way of
    adding a task to the deployment wizard where a dropdown with the xml values of your OU's would show up and prompt? 
    Any other ways of making this work would be accepted. We just don't want to use the Lit Touch Wizard on top of our HTA and java.
    This is my Java code at the moment.
    var oTimer;
    // This is the javascript backend for the The BitLocker FrontEnd HTA - CM12 ver 3.0, Jan, 2013.
    // report bugs, suggestions, corrections, fixes etc to [email protected] or visit windows-noob.com
    // Below are the functions used in the HTA
    function searchcomputer(searchstring ) {
    var WShell = new ActiveXObject("WScript.Shell");
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    oEnvironment("SearchString")=searchstring;
    var oExec = WShell.Run ("cscript //NoLogo " + GetScriptRoot() + "\\wnb\\searchcomputerbyname.wsf", 0, true);
    return oEnvironment("search_Computer");
    function performeComputerSearch() {
    var searchString = '';
    var searchTextBox = document.getElementById('searchstring_association');
    var searchReturnedResult = false;
    Clear the drop down from previous searches and add the first default element to the drop down.
    var el = document.getElementById("destinationComputerList");
    /* Clear drop down list. */
    while(el.options.length > 0)
    el.options.remove(0);
    /* Create first element, showing that the user has to select an element from the drop down list. */
    var opt1 = document.createElement("option");
    el.options.add(opt1);
    opt1.text = 'Select destination';
    opt1.value = '';
    Drop down blanked and first default value is added.
    if( searchTextBox != null ) {
    searchString = searchTextBox.value;
    if( searchString != '' ) {
    searchcomputer(searchString );
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    var currentComputerResourceId = oEnvironment("GetResourceId");
    /* When web service returns process the result. */
    var html = new ActiveXObject("Microsoft.XMLDOM");
    /* Here extract the result from the oEnviroment , remeber to create the oEnviorment object if it's not created before. */
    var result = oEnvironment("search_Computer");
    // alert(result);
    html.loadXML(result);
    /* Retrive all the computers in the search result. */
    var anodes = html.selectNodes("//Resource");
    /* Create drop down elements base on the */
    for (var i=0; i < anodes.length; i++){
    var obsolete = anodes(i).selectSingleNode("Obsolete").text;
    var resourceid = anodes(i).selectSingleNode("ResourceID").text;
    if( obsolete == 'false' && currentComputerResourceId != resourceid ) {
    /* Computer is not Obsolete, added it to the drop down. */
    var name = anodes(i).selectSingleNode("Name").text;
    // alert (name);
    var SMSUniqueIdentifier= anodes(i).selectSingleNode("ResourceID").text;
    var opt = document.createElement("option");
    // Add an Option object to Drop Down/List Box
    el.options.add(opt);
    // Assign text and value to Option object
    opt.text = 'ResourceID: ' + SMSUniqueIdentifier + ', Name: ' + name;
    opt.value = resourceid;
    searchReturnedResult = true;
    if( searchReturnedResult == false ) {
    alert( "Query for '" + searchString + "' didn't return any computer to make association with, please redefine your search string." );
    function makeAssociation () {
    /* Make sure that the user has selected a destination computer. */
    var el = document.getElementById("destinationComputerList");
    var selectedresourceId = el.value;
    if( selectedresourceId == '' ) {
    /* User havn't selected a computer to make association with. */
    alert('No destination computer selected' );
    } else {
    /* Call the other web service to make the association. */
    alert( 'The selected ResourceId is: ' + selectedresourceId);
    var answer = makeAssosiationWebServiceCall(selectedresourceId);
    if(answer == "True" ){
    alert("Successfully Associated Computers");
    } else {
    alert(answer + 'UnSuccessfully Associated Computers');
    function IdentifySCCMDrive()
    var fso = new ActiveXObject("Scripting.FileSystemObject");
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    var drives = new Enumerator(fso.Drives);
    for(drives.moveFirst();!drives.atEnd();drives.moveNext())
    var drive = drives.item();
    if(drive.IsReady && fso.fileexists(drive.path + "\\SMS\\data\\TsmBootstrap.ini"))
    var fileContents = fso.OpenTextFile(drive.Path + "\\SMS\\data\\TsmBootstrap.ini").ReadAll();
    if(fileContents.search("MediaType=FullMedia") > -1)
    oEnvironment("SCCMDRIVE") = drive.Path;
    return drive.Path;
    function makeAssosiationWebServiceCall(dest){
    var WShell = new ActiveXObject("WScript.Shell");
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    oEnvironment("ReferenceComputerResourceId") = oEnvironment("GetResourceId");
    oEnvironment("DestinationComputerResourceId") = dest;
    var oExec = WShell.Run ("cscript //NoLogo " + GetScriptRoot() + "\\wnb\\AddComputerAssociationbyID.wsf", 0, true);
    return oEnvironment("AddComputerAssociationByIDResult");
    function OnLoad()
    var WShell = new ActiveXObject("WScript.Shell");
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    document.getElementById('txtComputerNew').value = oEnvironment("OSDCOMPUTERNAME");
    var oTSProgressUI = new ActiveXObject("Microsoft.SMS.TSProgressUI");
    oTSProgressUI.CloseProgressDialog();
    GetTSVersion();
    GetUSMTVersion()
    IdentifySCCMDrive();
    populateUSMTDropList();
    if(oEnvironment("TPM_Available") == "True")
    document.getElementsByName("RefreshckBoxEnableBitLocker").item(0).disabled = false;
    document.getElementsByName("NewComputerckBoxEnableBitLocker").item(0).disabled = false;
    document.title = "The CM12 BitLocker FrontEnd HTA";
    function inpBoxUser_OnKeyUp(strCaller)
    if(oTimer != undefined)
    window.clearTimeout(oTimer);
    document.getElementById('txtUserRefresh').value = document.getElementById(strCaller).value;
    document.getElementById('txtUserNew').value = document.getElementById(strCaller).value;
    oTimer = window.setTimeout("doADCheck('" + strCaller + "')", 2000);
    function inpBoxComputer_OnKeyUp(strCaller)
    if(oTimer != undefined)
    window.clearTimeout(oTimer);
    // document.getElementById('txtComputerRefresh').value = document.getElementById(strCaller).value;
    document.getElementById('txtComputerNew').value = document.getElementById(strCaller).value;
    oTimer = window.setTimeout("doADCheck('" + strCaller + "')", 2000);
    function doADCheck(strCaller)
    strFullName = GetRealName(document.getElementById(strCaller).value);
    if (strFullName == "NOACCOUNT") {
    document.getElementById('txtUserNew').style.background = "#EC736A";
    document.getElementById('txtUserRefresh').style.background = "#EC736A";
    document.getElementById('txtUserInfoNew').innerHTML = "";
    document.getElementById('txtUserInfoRefresh').innerHTML = "";
    else if(strFullName == "SERVFAIL") {
    document.getElementById('txtUserNew').style.background = "#FFA61C";
    document.getElementById('txtUserRefresh').style.background = "#FFA61C";
    document.getElementById('txtUserInfoNew').innerHTML = "SERVER FAILURE";
    document.getElementById('txtUserInfoRefresh').innerHTML = "SERVER FAILURE";
    else
    document.getElementById('txtUserNew').style.background = "#6EC6F0";
    document.getElementById('txtUserRefresh').style.background = "#6EC6F0";
    document.getElementById('txtUserInfoNew').innerHTML = strFullName;
    document.getElementById('txtUserInfoRefresh').innerHTML = strFullName;
    if (document.getElementById(strCaller).value.length == 0) {
    document.getElementById('txtUserNew').style.background = "#FFFFFF";
    document.getElementById('txtUserRefresh').style.background = "#FFFFFF";
    document.getElementById('txtUserInfoNew').innerHTML = "";
    document.getElementById('txtUserInfoRefresh').innerHTML = "";
    function GetRealName (strUserName)
    var WShell = new ActiveXObject("WScript.Shell");
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    var oExec = WShell.Run ("cscript //NoLogo " + GetScriptRoot() + "\\wnb\\UserNameHelper.wsf /USERNAME:" + strUserName, 0, true);
    return oEnvironment("UserFullName");
    function GetScriptRoot ()
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    return oEnvironment("SCRIPTROOT");
    function Shutdown()
    var WShell = new ActiveXObject("WScript.Shell");
    if(window.confirm("Ok to shutdown?"))
    WShell.Run ("wpeutil shutdown",0, true);
    function Reboot()
    var WShell = new ActiveXObject("WScript.Shell");
    if(window.confirm("Ok to reboot?"))
    WShell.Run ("wpeutil reboot",0, true);
    function closeHTA()
    var WShell = new ActiveXObject("WScript.Shell");
    if(window.confirm("Ok to Exit?"))
    WShell.Run ("wpeutil shutdown",0, true);
    function commandPrompt()
    var WShell = new ActiveXObject("WScript.Shell");
    // if(window.confirm("Open Command Prompt?"))
    WShell.Run ("cmd.exe /k",1, true);
    function cmtrace()
    var WShell = new ActiveXObject("WScript.Shell");
    // if(window.confirm("Open Command Prompt?"))
    WShell.Run ("cmd.exe /k viewlog.cmd",1, true);
    function showreport()
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    alert(oEnvironment("UUID"));
    function GetSCCMAssignedSite()
    var WShell = new ActiveXObject("WScript.Shell");
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    var oExec = WShell.Run ("cscript //NoLogo " + GetScriptRoot() + "\\wnb\\sitecode.wsf", 0, true);
    return oEnvironment("SiteCode");
    function IsComputerKnown()
    var WShell = new ActiveXObject("WScript.Shell");
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    var oExec = WShell.Run ("cscript //NoLogo " + GetScriptRoot() + "\\wnb\\IsComputerKnown.wsf", 0, true);
    return oEnvironment("IsComputerKnown");
    function myFunction()
    var myVal = document.getElementById("ADOU").value;
    var outPut = "";
    switch (myVal) {
    case "1":
    outPut = "OU=Administrative,OU=Workstations,DC=imo-online,DC=com";
    break;
    case "2":
    outPut = "OU=Development,OU=Workstations,DC=imo-online,DC=com";
    break;
    case "3":
    outPut = "OU=External,OU=Workstations,DC=imo-online,DC=com";
    break;
    case "4":
    outPut = "OU=IT,OU=Workstations,DC=imo-online,DC=com";
    break;
    case "5":
    outPut = "OU=Restricted,OU=Workstations,DC=imo-online,DC=com";
    break;
    case "6":
    outPut = "OU=Sales,OU=Workstations,DC=imo-online,DC=com";
    break;
    case "7":
    outPut = "OU=Service Computers,OU=Workstations,DC=imo-online,DC=com";
    break;
    alert(outPut);
    function GetComputerName()
    var WShell = new ActiveXObject("WScript.Shell");
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    var oExec = WShell.Run ("cscript //NoLogo " + GetScriptRoot() + "\\wnb\\GetComputerName.wsf", 0, true);
    return oEnvironment("GetComputerName");
    function GetResourceID()
    var WShell = new ActiveXObject("WScript.Shell");
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    var oExec = WShell.Run ("cscript //NoLogo " + GetScriptRoot() + "\\wnb\\GetResourceID.wsf", 0, true);
    return oEnvironment("GetResourceID");
    function getUserFriendlyBoolValue( value ) {
    if ( value )
    return "Yes";
    else
    return "No";
    function GetTSVersion()
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    sversioninfo = oEnvironment("_SMSTSPackageName");
    sHTML = "Task&nbsp;Sequence&nbsp;&nbsp;=&nbsp;&nbsp;" + sversioninfo ;
    document.getElementsByName('DivTSVersion').item(0).innerHTML = sHTML;
    function GetUSMTVersion()
    var fso = new ActiveXObject("Scripting.FileSystemObject");
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    var drives = new Enumerator(fso.Drives);
    var fileContents = "Unidentified Version"
    for(drives.moveFirst();!drives.atEnd();drives.moveNext())
    var drive = drives.item();
    if(drive.IsReady && fso.fileexists(drive.path + "\\_smstasksequence\\wdpackage\\usmt\\usmt_rulesets_version.txt"))
    fileContents = fso.OpenTextFile(drive.Path + "\\_smstasksequence\\wdpackage\\usmt\\usmt_rulesets_version.txt").Read(25);
    //alert(fileContents);
    sHTML = "USMT&nbsp;RuleSet&nbsp;&nbsp;&nbsp;=&nbsp;&nbsp;" + fileContents ;
    document.getElementsByName('DivUSMTVersion').item(0).innerHTML = sHTML;
    function ShowUSMTVersion()
    var fso = new ActiveXObject("Scripting.FileSystemObject");
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    var drives = new Enumerator(fso.Drives);
    var fileContents = ""
    for(drives.moveFirst();!drives.atEnd();drives.moveNext())
    var drive = drives.item();
    if(drive.IsReady && fso.fileexists(drive.path + "\\_smstasksequence\\wdpackage\\usmt\\usmt_rulesets_version.txt"))
    fileContents = fso.OpenTextFile(drive.Path + "\\_smstasksequence\\wdpackage\\usmt\\usmt_rulesets_version.txt").Read(25);
    alert(fileContents);
    sHTML = "USMT RuleSet&nbsp;&nbsp;=&nbsp;&nbsp;" + fileContents ;
    document.getElementsByName('DivUSMTVersion').item(0).innerHTML = sHTML;
    function ShowVersion()
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    alert('Task Sequence version=' +oEnvironment("_SMSTSPackageName"));
    function populateUSMTDropList()
    var WShell = new ActiveXObject("WScript.Shell");
    var fso = new ActiveXObject("Scripting.FileSystemObject");
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    sHTML = "<option value='NULL'>No Restore</option>\n";
    sHTML = sHTML + "<option value='SMP'>SMP (Requires Computer Association)</option>\n";
    // sUsmtStorePath = "c:\\USMTStores";
    sUsmtStorePath = "\\\\sccm\\USMTStores";
    if(fso.FolderExists(sUsmtStorePath))
    var SubFolders = new Enumerator(fso.GetFolder(sUsmtStorePath).SubFolders);
    for(SubFolders.moveFirst();!SubFolders.atEnd();SubFolders.moveNext())
    var folder = SubFolders.item();
    sLabel = folder.name ;
    sValue = folder.name;
    if (folder.name.toUpperCase() != "X86" && folder.name.toUpperCase() != "X64")
    sHTML = sHTML + "<option value='" + sValue + "'>" + sLabel + "</option>\n" ;
    sHTML = "<select id='shareDropDown' name='shareDropDown'>\n" + sHTML + "</select>";
    // You need to have a <div> in your HTML with the ID and NAME of divCboList
    document.getElementsByName('divUSMTDropDown').item(0).innerHTML = sHTML;
    function buildConfirmationMessage( deploymentType, targetUser, targetComputer, dochkdsk, doBackup, doBackupNetwork, doOffline, regionValue, languageValue, BitLockervalue, ADOU, PreProvBitLockervalue, usmtvalue, AUTOComputerName, SCEPvalueRefresh, SCEPvalueNew, EnableBitLockerRefresh, ADOU, EnableBitLockerNew) {
    var arr = new Array();
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Deployment type variable: ";
    switch(deploymentType) {
    case 0:
    arr[arr.length] = "BACKUPOLD";
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Do CHKDSK: " + getUserFriendlyBoolValue( dochkdsk);
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Do backup: " + getUserFriendlyBoolValue( doBackup);
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Do backupNetwork: " + getUserFriendlyBoolValue( doBackupNetwork);
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Do Offline: " + getUserFriendlyBoolValue( doOffline);
    arr[arr.length] = "\r\n";
    break;
    case 1:
    arr[arr.length] = "REFRESH";
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Do CHKDSK: " + getUserFriendlyBoolValue( dochkdsk);
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Do backup: " + getUserFriendlyBoolValue( doBackup);
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Do backupNetwork: " + getUserFriendlyBoolValue( doBackupNetwork);
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Target user: " + targetUser;
    arr[arr.length] = "\r\n";
    arr[arr.length] = "AUTO-ComputerName: " + getUserFriendlyBoolValue( AUTOComputerName);
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Enable SCEP: " + getUserFriendlyBoolValue( SCEPvalueRefresh);
    arr[arr.length] = "\r\n";
    arr[arr.length] = "EnableBitLockerRefresh: " + getUserFriendlyBoolValue( EnableBitLockerRefresh);
    arr[arr.length] = "\r\n";
    arr[arr.length] = "ADOU: " + getUserFriendlyBoolValue( ADOU);
    arr[arr.length] = "\r\n";
    break;
    case 2:
    arr[arr.length] = "NEWCOMPUTER";
    arr[arr.length] = "\r\n";
    arr[arr.length] = "RegionValue: " + regionValue;
    arr[arr.length] = "\r\n";
    arr[arr.length] = "LanguageValue: " + languageValue;
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Target user: " + targetUser;
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Target computer: " + targetComputer;
    arr[arr.length] = "\r\n";
    arr[arr.length] = "AUTO-ComputerName: " + getUserFriendlyBoolValue( AUTOComputerName);
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Enable SCEP: " + getUserFriendlyBoolValue( SCEPvalueNew);
    arr[arr.length] = "\r\n";
    arr[arr.length] = "EnableBitLockerNew: " + getUserFriendlyBoolValue( EnableBitLockerNew);
    arr[arr.length] = "\r\n";
    arr[arr.length] = "BitLockerdropdown: " + BitLockervalue;
    arr[arr.length] = "\r\n";
    arr[arr.length] = "\r\n";
    arr[arr.length] = "Pre-Provision BitLocker: " + PreProvBitLockervalue;
    arr[arr.length] = "\r\n";
    arr[arr.length] = "USMTdropdown: " + usmtvalue;
    arr[arr.length] = "\r\n";
    break;
    return "Please make sure your selections are ok before proceeding.\nYour Choices:-\n" + arr.join('');
    function Proceed(actionToPerform) {
    var deploymentType = '';
    var targetUser = '';
    var targetComputer = '';
    var dochkdsk = '';
    var doBackup = '';
    var doBackupNetwork = '';
    var AUTOComputerName = '';
    var EnableBitLockerRefresh = '';
    var ADOU1 = '';
    var EnableBitLockerNew = '';
    var doOffline = '';
    var regionValue = '';
    var languageValue = '';
    var BitLockerValue = '';
    var PreProvBitLockerValue = '';
    var SCEPvalueRefresh = '';
    var SCEPvalueNew = '';
    var SCEPvalue = '';
    var usmtvalue = '';
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    // Extract the values.
    switch (actionToPerform) {
    case 'Backup':
    // alert( 'You have chosen Backup.');
    deploymentType = 0;
    dochkdsk= document.getElementById('ckchkdsk').checked;
    doBackup= document.getElementById('ckBoxFullBackup').checked;
    doBackupNetwork= document.getElementById('ckBoxFullBackupNetwork').checked;
    doOffline= document.getElementById('ckBoxDoOffline').checked;
    break;
    case 'Reinstall':
    // alert( 'You have chosen Reinstall.');
    deploymentType = 1;
    dochkdsk= document.getElementById('Refreshckchkdsk').checked;
    doBackup= document.getElementById('RefreshckBoxFullBackup').checked;
    doBackupNetwork= document.getElementById('RefreshckBoxFullBackupNetwork').checked;
    doOffline= true;
    if(document.getElementById('txtUserRefresh').value)
    targetUser = document.getElementById('txtUserRefresh').value;
    else
    targetUser = "EMPTY";
    // targetUser = document.getElementById('txtUserRefresh').value;
    AUTOComputerName= document.getElementById('RefreshckBoxAUTO-ComputerName').checked;
    SCEPvalue= document.getElementById('SCEPckBoxRefresh').checked;
    EnableBitLockerRefresh= document.getElementById('RefreshckBoxEnableBitLocker').checked;
    ADOU= document.getElementById('ADOU').checked;
    break;
    case 'Newcomputer':
    // alert( 'You have chosen New computer.');
    deploymentType = 2;
    var regionDrop = document.getElementById('regionDropDown');
    var languageDrop = document.getElementById('languageDropDown');
    var BitLockerDrop = document.getElementById('BitLockerDropDown');
    var usmtdrop = document.getElementById('shareDropDown');
    // added code to give targetUser a value if none entered
    if(document.getElementById('txtUserNew').value)
    targetUser = document.getElementById('txtUserNew').value;
    else
    targetUser = " ";
    // added code to give targetComputer a value if none entered
    if(document.getElementById('txtComputerNew').value)
    targetComputer = document.getElementById('txtComputerNew').value;
    else
    targetComputer = oEnvironment("OSDCOMPUTERNAME");
    //AUTOComputerName = document.getElementById('ComputerNewckBoxAUTO-ComputerName').checked;
    SCEPvalue= document.getElementById('SCEPckBoxNew').checked;
    EnableBitLockerNew = document.getElementById('NewComputerckBoxEnableBitlocker').checked;
    BitLockerValue = BitLockerDrop.options[BitLockerDrop.selectedIndex].value;
    ADOU1 = ADOU.options[ADOU.selectedIndex].value;
    PreProvBitLockerValue = document.getElementById('ckBoxPreProvBitLocker').checked;
    usmtvalue = usmtdrop.options[usmtdrop.selectedIndex].value;
    break;
    default:
    // keep the values case sensitive !! If no type, Backup, Reinstall or New computer image is selected, the click on the Proceed
    // image will excute this section (between default: and break;. Keep it clear but DON'T remove the break.
    // alert("'" + actionToPerform + "' isn't a valid selection.");
    return;
    break;
    // Ask user if the values are ok to proceed with.
    if(window.confirm( buildConfirmationMessage(deploymentType, targetUser, targetComputer, dochkdsk, doBackup, doBackupNetwork, doOffline, regionValue, languageValue, BitLockerValue,PreProvBitLockerValue, usmtvalue, AUTOComputerName, SCEPvalue, SCEPvalue, ADOU, EnableBitLockerRefresh, EnableBitLockerNew) ) ) {
    var oEnvironment = new ActiveXObject("Microsoft.SMS.TSEnvironment");
    window.moveTo(2000,2000);
    var WShell = new ActiveXObject("WScript.Shell");
    switch(deploymentType) {
    case 0 :
    oEnvironment("DEPLOYMENTTYPE") = "BACKUPOLD";
    oEnvironment("DOCHKDSK") = dochkdsk;
    oEnvironment("DOBACKUP") = doBackup;
    oEnvironment("DOBACKUPNETWORK") = doBackupNetwork;
    oEnvironment("DOOFFLINE") = doOffline;
    break;
    case 1:
    oEnvironment("DEPLOYMENTTYPE") = "REFRESH";
    oEnvironment("DOCHKDSK") = dochkdsk;
    oEnvironment("DOBACKUP") = doBackup;
    oEnvironment("DOBACKUPNETWORK") = doBackupNetwork;
    oEnvironment("TARGETUSER") = targetUser;
    oEnvironment("DOOFFLINE") = doOffline;
    oEnvironment("AUTOComputerName") = AUTOComputerName;
    oEnvironment("SCEPvalue") = SCEPvalue;
    oEnvironment("EnableBitLockerRefresh") = EnableBitLockerRefresh;
    oEnvironment("ADOU1") = ADOU;
    break;
    case 2 :
    oEnvironment("DEPLOYMENTTYPE") = "NEWCOMPUTER";
    oEnvironment("RegionValue") = regionValue;
    oEnvironment("LanguageValue") = languageValue;
    oEnvironment("TARGETUSER") = targetUser;
    oEnvironment("OSDCOMPUTERNAME") = targetComputer;
    oEnvironment("AUTOComputerName") = AUTOComputerName;
    oEnvironment("SCEPvalue") = SCEPvalue;
    oEnvironment("EnableBitLockerNew") = EnableBitLockerNew;
    oEnvironment("BitLockerValue") = BitLockerValue;
    oEnvironment("PreProvBitLockerValue") = PreProvBitLockerValue;
    oEnvironment("uddir") = usmtvalue;
    break;
    if(oEnvironment("_SMSTSMEDIATYPE") && oEnvironment("_SMSTSMEDIATYPE") == "FullMedia") {
    oEnvironment("OSDStateStorePath") = oEnvironment("SCCMDRIVE") + "\\DiskBackups";
    window.setTimeout('window.close()', 2000);

    My issue is it wont complete the task and have to shut down the deployment. 
    I am not sure what I am doing wrong in my java function that is not outputting these OU containers.
    The movetocomputerOU is specified in the customsettings.ini file below
    [MoveComputerToOU]
    WebService=http://server/Deployment/ad.asmx/MoveComputerToOU
    Parameters=OSDComputerName,MachineObjectOU
    OSDComputerName=ComputerName
    MachineObjectOU=OUPath
    function MyFunction()
    var myVal = document.getElementById("ADOU").value;
    var outPut = "";
    switch (myVal) {
    case "1":
    outPut = "OU=Administrative,OU=Workstations,DC=imo-online,DC=com";
    break;
    case "2":
    outPut = "OU=Development,OU=Workstations,DC=imo-online,DC=com";
    break;
    case "3":
    outPut = "OU=External,OU=Workstations,DC=imo-online,DC=com";
    break;
    case "4":
    outPut = "OU=IT,OU=Workstations,DC=imo-online,DC=com";
    break;
    case "5":
    outPut = "OU=Restricted,OU=Workstations,DC=imo-online,DC=com";
    break;
    case "6":
    outPut = "OU=Sales,OU=Workstations,DC=imo-online,DC=com";
    break;
    case "7":
    outPut = "OU=Service Computers,OU=Workstations,DC=imo-online,DC=com";
    break;
    alert(outPut);

  • Please help opening pdf file from dropdown or listbox

    Have looked through most of the forums, don't think i missed the answer but here goes
    I have a form that includes 4 dropdown catagories; i am trying to have it so that when the friendly text is select from the dropdown it opens a new pdf file with the requested info.
    New to designer, in the past i would rely on bookmarks, so what can i do
    Thanks

    [email protected] wrote:
    > Have looked through most of the forums, don't think i missed the answer but here goes
    > I have a form that includes 4 dropdown catagories; i am trying to have it so that when the friendly text is select from the dropdown it opens a new pdf file with the requested info.
    > New to designer, in the past i would rely on bookmarks, so what can i do
    >
    > Thanks
    Here's a detailed explanation:
    - Create a dropdown list with your 4 categories as the text values
    - Go to the binding tab and check the checkbox that says "Specify Item
    Values". You will see your four categories and they each will have been
    assigned a number (0, 1, 2, 3). Change these number values to be the
    URL to the PDF that you want each category to be associated with.
    - Add a 'change' event to your dropdown list. Select Javascript as the
    scripting language. Put the following code in your change event:
    var selectedText = xfa.event.newText;
    var redirectURL = this.boundItem(selectedText);
    xfa.host.gotoURL(redirectURL);
    Hope this helps!
    Justin Klei
    Cardinal Solutions Group
    www.cardinalsolutions.com

  • How can I select properties from dropdown lists using only the keyboard?

    Hi,
    I am using SAP Netweaver Studio and when modifying UI elements in views, I want to select the value for a property from the corresponding dropdown list in the Properties view using only the keyboard.
    When a property row is selected, "Enter" toggles to Edit mode, Alt+ArrowDown expands the list, but ArrowUp or ArrowDown directly selects the previous/next item list and changes to Selected mode.  Which key is used to navigate between the list items without selecting them immediately?
    Thanks a lot. I deal with lots of views and this would save me quite a few massage hours
    Maria
    Edited by: Maria Marinova on Feb 14, 2008 9:40 AM
    Edited by: Maria Marinova on Feb 14, 2008 9:40 AM

    Thanks Andrew. When creating an external table does it requires an access to SQL*Loader?
    CREATE TABLE dept_external (
       deptno     NUMBER(6),
       dname      VARCHAR2(20),
       loc        VARCHAR2(25)
    ORGANIZATION EXTERNAL
    (TYPE oracle_loader
    DEFAULT DIRECTORY admin
    ACCESS PARAMETERS
    RECORDS DELIMITED BY newline
    BADFILE 'ulcase1.bad'
    DISCARDFILE 'ulcase1.dis'
    LOGFILE 'ulcase1.log'
    SKIP 20
    FIELDS TERMINATED BY ","  OPTIONALLY ENCLOSED BY '"'
    deptno     INTEGER EXTERNAL(6),
    dname      CHAR(20),
    loc        CHAR(25)
    LOCATION ('ulcase1.ctl')
    REJECT LIMIT UNLIMITED;

  • Prompt Order when opening Report - And order in List Of Values

    I guess this is a fearly easy question... But I thought easier to ask you guys than struggling all night.
    1 -  I have a report with some prompts.  How do I change the order they appear in ?
    2 - For some List Of Values I have really a strange order. How come ? And What should I do to fix it ?
    Hoping on some good answers in the weekend
    Best Regards
    Ingrid

    Hi Ingrid,
    You can set the "Prompt Order" in "Properties" tab in the Query Panel.
    1.Make sure that you are in the Query Panel.  Make sure that "Edit Query" button is pressed.
    2.Click on the "Properties" tab, just beside "Data" Tab
    3.Scroll down to see the "Prompt Order" option. Select the prompt and use " UP or DOWN" arrows (not the keyboard arrows. Expand the "properties" tab window, if you don't see the arrows) to change the prompt order.
    Thanks,
    Raveendra

  • Javascript needed - need checkbox to check automatically based on selected item from dropdown list

    I am building a fillable form.  In this form, I have created items in a dropdown list.  Based on the item picked from the dropdown list, I need a corresponding checkbox to be checked.  I am certain there is an easy javascript to resolve my current problem.  Please assist.
    For example: dropdown list field (SubSupplier1) -   Demolition                            export value 2
                                                                                    Rough Carpentry Labor       export value 4
                                                                                    Rough Carpentry Material    export value 3
    I need the corresponding checkbox (SalesTax1) to automatically be checked when Demolition (export value 2) or Rough Carpentry Material (export value 3) is selected.
    Thank you,
    Jennifer

    Hi Jennifer,
    This should help you do what you need. Place it in the Custom Calculation property of the dropbox and select "commit selected value immediately" in the fields options:
    var drop = this.getField("SubSupplier1");
    var check = this.getField("SalesTax1");
    if ((drop.value == 2) || (drop.value == 3)){
    check.checkThisBox(0,true);
    else {
    check.checkThisBox(0,false);
    The code is asking if the export value of the field is either '2' or '3' and if so, check the box.
    Otherwise uncheck the box.
    If you don't want it to uncheck on other selections, remove the 'else' section of code.

Maybe you are looking for

  • No Phone or Internet for 14 days..!!!

    Phone line has been down for 14 days now with very intermittment internet access. Unable to work have to drive up the road to get mobile access as well as that depends on the BT router being active. Really getting quite fed up now of being told an en

  • Using AX as wireless router, how to set up w/ security and airtunes on XP

    I previously had a Linksys wireless router. I just purchased an Airport express to use as the wireless router (and remove the Linksys router) as well as use the Airtunes functionality. After some trial and error, I have been able to wireless connect

  • Parameter form button position

    Hi Is it possible to change the position of the "Submit Query" & "Reset" buttons on the parameter form? I would like them to be at the bottom instead of at the top of the page. TIA Simon

  • Web Dynpro iviews integration with web page composer

    Hi, Can web dynpro iviews be integrated into web page composer? I was trying to integrate one ESS web dynpro iview into wpc but the system is throwing an error: We are on EP7.01 SP3 (Enhancement Pack1). Please advice if the integration is possible in

  • Can I save an IMovie slideshow to a DVD or do I need to use IDVD?

    I created a slideshow using still pictures/movies in IMovie. Can I save this to a DVD or do I now need to create something using IDVD?