Active Dropdown List

http://javascript.about.com/library/bl3drop.htm
Hello,
Could active dropdown list function be written in pdf form?
I need 3 consecutive dropdown lists which data are actively connected together.
Please take a look sample at about URL. Thank you.
Q

That would be similar to Group Expansion :-). No, SharePoint does not have that out of the box, you would want to enumerate each SPUser of an SPGroup.
Trevor Seward
Follow or contact me at...
&nbsp&nbsp
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

Similar Messages

  • Data Table will not bind to Dropdown List selection

    I get the following error when I try to use my own database tables (As in the "Using Databound Components to Access Databases" tutorial). It is a Oracle9i database. The Table (Vehicle)I use to populate the Dropdown List has around 450 000 rows, and the ComponentRowset returns 362 000 rows when run without a parameter.
    Exception Details: javax.faces.el.EvaluationException
    java.lang.NullPointerException
    Possible Source of Error:
    Class Name: com.sun.faces.el.ValueBindingImpl
    File Name: ValueBindingImpl.java
    Method Name: getValue
    Line Number: 206
    Please help! What am I doing wrong? As far as I can see the code is identical to the "Using Databound Components to Access Databases" tutorial.
    Here is the code:
    * Page1.java
    * Created on 12 October 2004, 05:56
    * Copyright jgenis
    package ucodapp;
    import javax.faces.*;
    import com.sun.jsfcl.app.*;
    import javax.faces.component.html.*;
    import com.sun.jsfcl.data.*;
    import javax.faces.component.*;
    import com.sun.sql.rowset.*;
    import javax.faces.event.*;
    import javax.faces.convert.*;
    public class Page1 extends AbstractPageBean {
        // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Definition">
        private int __placeholder;
        private HtmlForm form1 = new HtmlForm();
        public HtmlForm getForm1() {
            return form1;
        public void setForm1(HtmlForm hf) {
            this.form1 = hf;
        private HtmlDataTable dataTable1 = new HtmlDataTable();
        public HtmlDataTable getDataTable1() {
            return dataTable1;
        public void setDataTable1(HtmlDataTable hdt) {
            this.dataTable1 = hdt;
        private JdbcRowSetXImpl componentRowSet = new JdbcRowSetXImpl();
        public JdbcRowSetXImpl getComponentRowSet() {
            return componentRowSet;
        public void setComponentRowSet(JdbcRowSetXImpl jrsxi) {
            this.componentRowSet = jrsxi;
        private HtmlOutputLabel componentLabel1 = new HtmlOutputLabel();
        public HtmlOutputLabel getComponentLabel1() {
            return componentLabel1;
        public void setComponentLabel1(HtmlOutputLabel hol) {
            this.componentLabel1 = hol;
        private HtmlOutputText componentLabel1Text = new HtmlOutputText();
        public HtmlOutputText getComponentLabel1Text() {
            return componentLabel1Text;
        public void setComponentLabel1Text(HtmlOutputText hot) {
            this.componentLabel1Text = hot;
        private UIColumn column1 = new UIColumn();
        public UIColumn getColumn1() {
            return column1;
        public void setColumn1(UIColumn uic) {
            this.column1 = uic;
        private HtmlOutputText outputText1 = new HtmlOutputText();
        public HtmlOutputText getOutputText1() {
            return outputText1;
        public void setOutputText1(HtmlOutputText hot) {
            this.outputText1 = hot;
        private HtmlOutputText outputText2 = new HtmlOutputText();
        public HtmlOutputText getOutputText2() {
            return outputText2;
        public void setOutputText2(HtmlOutputText hot) {
            this.outputText2 = hot;
        private UIColumn column2 = new UIColumn();
        public UIColumn getColumn2() {
            return column2;
        public void setColumn2(UIColumn uic) {
            this.column2 = uic;
        private HtmlOutputText outputText3 = new HtmlOutputText();
        public HtmlOutputText getOutputText3() {
            return outputText3;
        public void setOutputText3(HtmlOutputText hot) {
            this.outputText3 = hot;
        private HtmlOutputText outputText4 = new HtmlOutputText();
        public HtmlOutputText getOutputText4() {
            return outputText4;
        public void setOutputText4(HtmlOutputText hot) {
            this.outputText4 = hot;
        private UIColumn column3 = new UIColumn();
        public UIColumn getColumn3() {
            return column3;
        public void setColumn3(UIColumn uic) {
            this.column3 = uic;
        private HtmlOutputText outputText5 = new HtmlOutputText();
        public HtmlOutputText getOutputText5() {
            return outputText5;
        public void setOutputText5(HtmlOutputText hot) {
            this.outputText5 = hot;
        private HtmlOutputText outputText6 = new HtmlOutputText();
        public HtmlOutputText getOutputText6() {
            return outputText6;
        public void setOutputText6(HtmlOutputText hot) {
            this.outputText6 = hot;
        private UIColumn column4 = new UIColumn();
        public UIColumn getColumn4() {
            return column4;
        public void setColumn4(UIColumn uic) {
            this.column4 = uic;
        private HtmlOutputText outputText7 = new HtmlOutputText();
        public HtmlOutputText getOutputText7() {
            return outputText7;
        public void setOutputText7(HtmlOutputText hot) {
            this.outputText7 = hot;
        private HtmlOutputText outputText8 = new HtmlOutputText();
        public HtmlOutputText getOutputText8() {
            return outputText8;
        public void setOutputText8(HtmlOutputText hot) {
            this.outputText8 = hot;
        private UIColumn column5 = new UIColumn();
        public UIColumn getColumn5() {
            return column5;
        public void setColumn5(UIColumn uic) {
            this.column5 = uic;
        private HtmlOutputText outputText9 = new HtmlOutputText();
        public HtmlOutputText getOutputText9() {
            return outputText9;
        public void setOutputText9(HtmlOutputText hot) {
            this.outputText9 = hot;
        private HtmlOutputText outputText10 = new HtmlOutputText();
        public HtmlOutputText getOutputText10() {
            return outputText10;
        public void setOutputText10(HtmlOutputText hot) {
            this.outputText10 = hot;
        private UIColumn column6 = new UIColumn();
        public UIColumn getColumn6() {
            return column6;
        public void setColumn6(UIColumn uic) {
            this.column6 = uic;
        private HtmlOutputText outputText11 = new HtmlOutputText();
        public HtmlOutputText getOutputText11() {
            return outputText11;
        public void setOutputText11(HtmlOutputText hot) {
            this.outputText11 = hot;
        private HtmlOutputText outputText12 = new HtmlOutputText();
        public HtmlOutputText getOutputText12() {
            return outputText12;
        public void setOutputText12(HtmlOutputText hot) {
            this.outputText12 = hot;
        private UIColumn column7 = new UIColumn();
        public UIColumn getColumn7() {
            return column7;
        public void setColumn7(UIColumn uic) {
            this.column7 = uic;
        private HtmlOutputText outputText13 = new HtmlOutputText();
        public HtmlOutputText getOutputText13() {
            return outputText13;
        public void setOutputText13(HtmlOutputText hot) {
            this.outputText13 = hot;
        private HtmlOutputText outputText14 = new HtmlOutputText();
        public HtmlOutputText getOutputText14() {
            return outputText14;
        public void setOutputText14(HtmlOutputText hot) {
            this.outputText14 = hot;
        private RowSetDataModel dataTable1Model = new RowSetDataModel();
        public RowSetDataModel getDataTable1Model() {
            return dataTable1Model;
        public void setDataTable1Model(RowSetDataModel rsdm) {
            this.dataTable1Model = rsdm;
        private HtmlSelectOneMenu dropdown1 = new HtmlSelectOneMenu();
        public HtmlSelectOneMenu getDropdown1() {
            return dropdown1;
        public void setDropdown1(HtmlSelectOneMenu hsom) {
            this.dropdown1 = hsom;
        private UISelectItems dropdown1SelectItems = new UISelectItems();
        public UISelectItems getDropdown1SelectItems() {
            return dropdown1SelectItems;
        public void setDropdown1SelectItems(UISelectItems uisi) {
            this.dropdown1SelectItems = uisi;
        private JdbcRowSetXImpl vehicleRowSet = new JdbcRowSetXImpl();
        public JdbcRowSetXImpl getVehicleRowSet() {
            return vehicleRowSet;
        public void setVehicleRowSet(JdbcRowSetXImpl jrsxi) {
            this.vehicleRowSet = jrsxi;
        private BigDecimalConverter dropdown1Converter = new BigDecimalConverter();
        public BigDecimalConverter getDropdown1Converter() {
            return dropdown1Converter;
        public void setDropdown1Converter(BigDecimalConverter bdc) {
            this.dropdown1Converter = bdc;
        // </editor-fold>
        public Page1() {
            // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
            try {
                componentRowSet.setDataSourceName("java:comp/env/jdbc/CDS");
                componentRowSet.setCommand("SELECT ALL TRACKER.COMPONENT.PINNO, TRACKER.COMPONENT.UNITCODE, TRACKER.COMPONENT.INSTALLEDDATE, TRACKER.COMPONENT.INSTALLREPORTNO, TRACKER.COMPONENT.TNUSERIALNO, TRACKER.VEHICLE.REGNO, TRACKER.VEHICLE.VINNO, TRACKER.VEHICLE.VEHICLEID, TRACKER.TRACKERAGREEMENT.TAID, TRACKER.TAPRODUCT.TAPRODUCTID, TRACKER.COMPONENT.COMPONENTID, TRACKER.COMPONENT.TAPRODUCTID, TRACKER.COMPONENT.COMPONENTTYPEID, TRACKER.COMPONENT.INSTALLERID, TRACKER.TAPRODUCT.TAID, TRACKER.TAPRODUCT.PRODUCTTYPEID, TRACKER.TAPRODUCT.TAPRODUCTSTATUSID, TRACKER.TAPRODUCT.PRORATANRDAYS, TRACKER.TAPRODUCT.CONTRACTPERIOD, TRACKER.TAPRODUCT.BILLINGFREQUENCYID, TRACKER.TAPRODUCT.CANCELLATIONDATE, TRACKER.TAPRODUCT.STARTDATE, TRACKER.TAPRODUCT.SOURCEID, TRACKER.TAPRODUCT.PRICINGDATE, TRACKER.TAPRODUCT.DEALTYPEID, TRACKER.TAPRODUCT.ACTIONTYPEID, TRACKER.TAPRODUCT.ISSTANDARDBATTERY, TRACKER.TAPRODUCT.AUDITUSERID, TRACKER.TAPRODUCT.AUDITSRID, TRACKER.COMPONENT.SERIALNUMBER, TRACKER.COMPONENT.RECEIVEDDATE, TRACKER.COMPONENT.RESPONSECODE, TRACKER.COMPONENT.REPLYCODE, TRACKER.COMPONENT.ACTIVATIONCODE, TRACKER.COMPONENT.ALERT, TRACKER.COMPONENT.ALTDEACTIVATIONCODE, TRACKER.COMPONENT.INSTALLEDLOCATION, TRACKER.COMPONENT.VERSION, TRACKER.COMPONENT.SOFTWAREVERSION, TRACKER.COMPONENT.CANACTIVATE, TRACKER.COMPONENT.COMPONENTSTATUSID, TRACKER.COMPONENT.SIMNO, TRACKER.COMPONENT.LOCATECELLNO, TRACKER.COMPONENT.AUDITDT, TRACKER.COMPONENT.THEFTNO, TRACKER.TAPRODUCT.STATUSBEFORECANCELLATION, TRACKER.TAPRODUCT.AUDITDT, TRACKER.TRACKERAGREEMENT.VEHICLEID, TRACKER.TRACKERAGREEMENT.CUSTOMERID, TRACKER.TRACKERAGREEMENT.TASTATUSDATE, TRACKER.TRACKERAGREEMENT.TASTATUSID, TRACKER.TRACKERAGREEMENT.AUDITUSERID, TRACKER.TRACKERAGREEMENT.AUDITSRID, TRACKER.TRACKERAGREEMENT.AUDITDT, TRACKER.VEHICLE.MAKEMODELID, TRACKER.VEHICLE.VEHICLECOLOURID, TRACKER.VEHICLE.COLOURSHADEID, TRACKER.VEHICLE.BATTERYID, TRACKER.VEHICLE.INSURERID, TRACKER.VEHICLE.ENGINENO, TRACKER.VEHICLE.CHASSISNO, TRACKER.VEHICLE.POLICYNO, TRACKER.VEHICLE.YEARMODEL, TRACKER.VEHICLE.JOINDATE, TRACKER.VEHICLE.POLICYCOMMENCEDATE, TRACKER.VEHICLE.DESCRIPTION, TRACKER.VEHICLE.ACTIVE, TRACKER.VEHICLE.METALLICIND, TRACKER.VEHICLE.TEMPREGNO, TRACKER.VEHICLE.ORDERNUMBER, TRACKER.VEHICLE.POLICYSEQUENCENO, TRACKER.VEHICLE.AUDITUSERID, TRACKER.VEHICLE.AUDITSRID, TRACKER.VEHICLE.AUDITDT, TRACKER.VEHICLE.THEFTNO  FROM TRACKER.COMPONENT INNER JOIN TRACKER.TAPRODUCT ON TRACKER.COMPONENT.TAPRODUCTID=TRACKER.TAPRODUCT.TAPRODUCTID INNER JOIN TRACKER.TRACKERAGREEMENT ON TRACKER.TAPRODUCT.TAID=TRACKER.TRACKERAGREEMENT.TAID INNER JOIN TRACKER.VEHICLE ON TRACKER.TRACKERAGREEMENT.VEHICLEID=TRACKER.VEHICLE.VEHICLEID WHERE TRACKER.VEHICLE.VEHICLEID=?");
                dataTable1Model.setDataCacheKey("com.sun.datacache.Page1.componentRowSet");
                dataTable1Model.setRowSet(componentRowSet);
                dataTable1Model.setSchemaName("");
                dataTable1Model.setTableName("");
                vehicleRowSet.setDataSourceName("java:comp/env/jdbc/CDS");
                vehicleRowSet.setCommand("SELECT ALL TRACKER.VEHICLE.VEHICLEID, TRACKER.VEHICLE.REGNO  FROM TRACKER.VEHICLE");
                vehicleRowSet.setFetchSize(1000);
            } catch (Exception e) {
                log("Page1 Initialization Failure", e);
                throw e instanceof javax.faces.FacesException ? (FacesException) e : new FacesException(e);
            // </editor-fold>
            // Additional user provided initialization code
            // Initialization Code
            // Part of the Using Databound Components to Access Databases Tutorial
            // You can find this tutorial on the web -- use the link on the Welcome page
            try {
                vehicleRowSet.execute();
                vehicleRowSet.next();
                dataTable1Model.setObject(1, vehicleRowSet.getObject("VEHICLEID"));
            } catch (Exception ex) {
                throw new FacesException(ex);
            } // end try catch
        protected ucodapp.ApplicationBean1 getApplicationBean1() {
            return (ucodapp.ApplicationBean1)getBean("ApplicationBean1");
        protected ucodapp.SessionBean1 getSessionBean1() {
            return (ucodapp.SessionBean1)getBean("SessionBean1");
         * Bean cleanup.
        protected void afterRenderResponse() {
            vehicleRowSet.close();
            vehicleRowSet.close();
            componentRowSet.close();
        public void dropdown1_processValueChange(ValueChangeEvent vce) {
            // Dropdown List Event Code
            // Part of the Using Databound Components to Access Databases Tutorial
            // You can find this tutorial on the web -- use the link on the Welcome page
            try {
                dataTable1Model.setObject(1, dropdown1.getValue());
                dataTable1Model.execute();
            } catch (Exception e) {
                log("vehicle id change exception", e);
                error("Exception changing Vehicle Id: " + e);
            } // end try catch
            // User event code here...

    Take a look at the Page1 constructor.
    It appears that you're trying to bind the datatable to 2
    different rowsets. I suggest to clean up this
    constructor to make sure you're using the right
    rowset.
    Your value binding expressions on each column
    of the datatable may not be set to the right column.
    John
    JSC QA

  • How to Add values to dropdown list in runtime

    Hi All
    I wanted to add the items to the dropdown list in the plugin.
    The SDK Example WriteFishPrice shows the items are hard coded in the .fr file.
    i am looking for a similar concept, but not adding the items in the .fr file, i wanted to add the items in the .cpp or .h files and add the items to the dropdownlist.
    DECLARE_PMID(kWidgetIDSpace, kWFPDropDownListWidgetID, kWFPPrefix + 2)
    The declaration is done in WFPID.h file
    #define kWFPDropDownItem_1Key kWFPStringPrefix "kWFPDropDownItem_1Key"
    defining the string is done in WFPID.h
    I wanted to add the items in the same header file, is there any way that i can add the items in the header files instead of adding in .fr file
    Please guide me
    Thank you
    -Srinivas

    Hope this will help you a bit with both threads ; )<br />I'm not sure what you are trying to accomplish with defining the strings in an header or cpp file and not in the fr file(s). Usually you sort of predefine strings in the main fr file and then give a "final" translation definition for each string in the corrosponding language file. If you don't need or want to translate you can define string constants almost wherever you like and add them at runtime e.g. during dialog initialization. In this case you'd have to make each string not to be translateable with PMString.SetTranslatable(kFalse).<br />If you want to add items to a listbox or text edit during runtime you just have to get the interfaces and call their methods. Below is a small example taken from a dialog with a dropdown listbox, a text edit field and a button widget. In the DialogObserver I implemented the Update function to the following functionality:<br />- when the button (Insert Button) is pressed the content of the edit field is read and inserted into the listbox<br />- when something in the listbox is selected, the selection is shown/inserted into the text field<br /><br />void VSPDialogObserver::Update<br />(<br />     const ClassID& theChange,<br />     ISubject* theSubject,<br />     const PMIID& protocol,<br />     void* changedBy<br />)<br />{<br />     // Call the base class Update function so that default behavior will still occur (OK and Cancel buttons, etc.).<br />     CDialogObserver::Update(theChange, theSubject, protocol, changedBy);<br /><br />     do<br />     {<br />          InterfacePtr<IControlView> controlView(theSubject, UseDefaultIID());<br />          ASSERT(controlView);<br />          if(!controlView) <br />               break;<br />          <br />          InterfacePtr<IDialogController> dialogCtrl(this, UseDefaultIID());<br />          if (!dialogCtrl)<br />               break;<br /><br />          InterfacePtr<IPanelControlData> panelControlData(this, UseDefaultIID());<br />          if (!panelControlData)<br />               break;<br /><br />          //get currently selected/active widget<br />          WidgetID theSelectedWidget = controlView->GetWidgetID();<br />          <br /><br />          // is it the drop down list?<br />          if (theSelectedWidget== kVSPDropDownWidgetID) <br />          {<br />               TRACE("ListBoxAction");<br />               //insert selected string into edit field<br />               PMString strSelection =     dialogCtrl->GetTextControlData(kVSPDropDownWidgetID);<br />               strSelection.SetTranslatable(kFalse);<br />               dialogCtrl->SetTextControlData(kVSPTopEditBoxWidgetID, strSelection);<br />               break;<br />          }<br /><br />          // ist it the text edit field?<br />          if (theSelectedWidget == kVSPInsertButtonWidgetID && theChange == kTrueStateMessage)<br />          {<br />               TRACE("Insert Button pressed");<br />               IControlView* listView = panelControlData->FindWidget(kVSPDropDownWidgetID);<br />               InterfacePtr<IStringListControlData> listControlData(listView, UseDefaultIID());<br /><br />               //Insert the string into listbox<br />               PMString strText = dialogCtrl->GetTextControlData(kVSPTopEditBoxWidgetID);<br /><br />                        // obviously there can't be a translation for text entered by user<br />               strText.SetTranslatable(kFalse);<br />               listControlData->AddString(strText,kVSPTopEditBoxWidgetID);<br />          <br />               //"clear" the text edit field<br />               dialogCtrl->SetTextControlData(kVSPTopEditBoxWidgetID, "");<br />               break;<br />          }<br />     } while (kFalse);<br />}

  • How to set a keyboard event, which can response to dropdown list?

    Hi every one
    Can you set a keyboard keydown event for select the dropdown list item?
    Thanks
    Regard
    John
    //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    var
      w = new Window('dialog {orientation: "row", alignChildren: ["", "top"]}',"Indesign Tricks Wizard_Beta_V3", undefined, {closeButton: false}),  
      stringList = ["01   Close and SAVED",                                                        //       0
            "02   Close WITHOUT save",                                                   //       1
            "03   Save all files",                                                                //       2
            "04   Reverse",                                                                        //       3
            "-",                                                                                          //       4
            "05   Remove empty pages",                                                  //       5
            "-",                                                                                          //       6
            "06   Update years on Master in all opening Doc",               //       7
            "07   Years + 1 in Specific cells",                                          //       8
            "08   Copy and paste to Next Master",                                 //       9
            "-",                                                                                         //       10
            "09   Bring Styles and Swatches to next Doc",                      //       11
            "10   DEL and Replace Color",                                               //       12
            "11   Remove unused color",                                                 //       13
            "-",                                                                                         //       14
            "12   Remove missing link in all open files",                         //       15
            "13   Remove layer and missing link ",                                  //       16
            "14   Batch import styles from source document",               //       17
            "-",                                                                                         //       18
            "15   Gen Revised PDF",                                                        //       19
            "16   Report empty return at top",                                       //       20
            "17   Find-Change Paragraph Names",                                //       21
            "-",                                                                                         //       22
            "18   Break link from story",                                                //       23
            "19   Joint link to story",                                                       //       24
            "20   Extract pages",                                                            //       25
            "21   Joint text fame together",                                           //       26
            "22   Resize selected text"],                                                //       27
      mReminderString = "\"Batch import styles from source document\" usually cause indents problem.",
      lastSelected = Number(app.extractLabel("dialogWizard") ),
      p = w.add("panel", undefined, "Choose a job to do:"),
      s = p.add("group"),
      mDD = p.add("dropdownlist", undefined, stringList),
      mRem = p.add("statictext", undefined, mReminderString, {multiline: true} ),
      b = w.add('group {orientation: "column"}');
         mDD.preferredSize = [320,20];
         mRem.preferredSize = [320,30]; // set reminder height as 20 * line count (here 2 lines)
         if ( !lastSelected ) mDD.items[0].selected = true;
         else mDD.items[lastSelected].selected = true;
    // |||||||||||||||||||||||||||||||||||||||||||||||| modify reminder font here |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
             w.graphics.backgroundColor = w.graphics.newBrush (w.graphics.BrushType.SOLID_COLOR, [1, 0.26, 0.2]);
         mRem.alignment = "left";
         mRem.graphics.font = ScriptUI.newFont ("Arial", "Bold", 11);
         mRem.graphics.foregroundColor = mRem.graphics.newPen (w.graphics.PenType.SOLID_COLOR, [1, 1, 1], 1);
         p.graphics.font = ScriptUI.newFont ("Arial", "Bold", 10);
         p.graphics.foregroundColor = mRem.graphics.newPen (w.graphics.PenType.SOLID_COLOR, [1, 1, 1], 1);
         mDD.graphics.font = ScriptUI.newFont ("Arial", "Bold", 11);
         mDD.graphics.foregroundColor = mRem.graphics.newPen (w.graphics.PenType.SOLID_COLOR, [1, 0.26, 0.2], 1);
    // ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||
            var myIcon = "";
            var ib = b.add ('iconbutton', undefined, myIcon);
                  ib.onClick = function() {
                         w.close(1);
            w.addEventListener ("keydown", function(k) {if (k.keyName == "Enter") w.close(1);})
    // ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||
            b.add ('button', undefined, "取り消す", {name: "Cancel"}); 
    // ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||
    w.show();
    //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    Hi Peter
    look into script as below:
    //======================================================================================== =======================================================
    var
      w = new Window('dialog {orientation: "row", alignChildren: ["", "top"]}',"Indesign Tricks Wizard_Beta_V3", undefined, {closeButton: false}),  
      stringList = ["01   Close and SAVED",                                                        //       0
            "02   Close WITHOUT save",                                                   //       1
            "03   Save all files",                                                                //       2
            "04   Reverse",                                                                        //       3
            "-",                                                                                          //       4
            "05   Remove empty pages",                                                  //       5
            "-",                                                                                          //       6
            "06   Update years on Master in all opening Doc",               //       7
            "07   Years + 1 in Specific cells",                                          //       8
            "08   Copy and paste to Next Master",                                 //       9
            "-",                                                                                         //       10
            "09   Bring Styles and Swatches to next Doc",                      //       11
            "10   DEL and Replace Color",                                               //       12
            "11   Remove unused color",                                                 //       13
            "-",                                                                                         //       14
            "12   Remove missing link in all open files",                         //       15
            "13   Remove layer and missing link ",                                  //       16
            "14   Batch import styles from source document",               //       17
            "-",                                                                                         //       18
            "15   Gen Revised PDF",                                                        //       19
            "16   Report empty return at top",                                       //       20
            "17   Find-Change Paragraph Names",                                //       21
            "-",                                                                                         //       22
            "18   Break link from story",                                                //       23
            "19   Joint link to story",                                                       //       24
            "20   Extract pages",                                                            //       25
            "21   Joint text fame together",                                           //       26
            "22   Resize selected text"],                                                //       27
      mReminderString = "\"Batch import styles from source document\" usually cause indents problem.",
      lastSelected = Number(app.extractLabel("dialogWizard") ),
      p = w.add("panel", undefined, "Choose a job to do:"),
      s = p.add("group"),
      mDD = p.add("dropdownlist", undefined, stringList),
      mRem = p.add("statictext", undefined, mReminderString, {multiline: true} ),
      b = w.add('group {orientation: "column"}');
         mDD.preferredSize = [320,20];
         mRem.preferredSize = [320,30]; // set reminder height as 20 * line count (here 2 lines)
         if ( !lastSelected ) mDD.items[0].selected = true;
         else mDD.items[lastSelected].selected = true;
    // ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||
                mDD.active = true;                 //this syntax work in PC, but not work in MAC
                mDD.addEventListener ("keydown", function (k)
                        k = k.keyName.toLowerCase();
                                var i = 0;
                                        while (i < numbers.length-1 && numbers[i].charAt(0).toLowerCase() != k)
                                                   {++i;}
                                                if (numbers[i].charAt(0).toLowerCase() == k)
                                                                mDD.selection = i;
    // ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||
    // |||||||||||||||||||||||||||||||||||||||||||||||| modify reminder font here |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
             w.graphics.backgroundColor = w.graphics.newBrush (w.graphics.BrushType.SOLID_COLOR, [1, 0.26, 0.2]);
         mRem.alignment = "left";
         mRem.graphics.font = ScriptUI.newFont ("Arial", "Bold", 11);
         mRem.graphics.foregroundColor = mRem.graphics.newPen (w.graphics.PenType.SOLID_COLOR, [1, 1, 1], 1);
         p.graphics.font = ScriptUI.newFont ("Arial", "Bold", 10);
         p.graphics.foregroundColor = mRem.graphics.newPen (w.graphics.PenType.SOLID_COLOR, [1, 1, 1], 1);
         mDD.graphics.font = ScriptUI.newFont ("Arial", "Bold", 11);
         mDD.graphics.foregroundColor = mRem.graphics.newPen (w.graphics.PenType.SOLID_COLOR, [1, 0.26, 0.2], 1);
    // ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||
            var myIcon = ""
            var ib = b.add ('iconbutton', undefined, myIcon);
                  ib.onClick = function() {
                         w.close(1);
            w.addEventListener ("keydown", function(k) {if (k.keyName == "Enter") w.close(1);})
    // ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||
            b.add ('button', undefined, "取り消す", {name: "Cancel"}); 
    // ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||
    w.show();
    //======================================================================================== =======================================================
    Thank you
    Regard
    John

  • Dropdown List Not Refresh with Static PDF

    Hi,
    I'm using LiveCycle ES2 version 9 to design my form and view using Acrobat X Pro. In my form, I have a dropdown list that binds to a data connection to populate the list of products available. The SQL query of the data connection is as simple as below,
         "SELECT ProductCode, ProductName FROM PUB_Product WHERE ActiveInd = yes"
    Everything works perfectly when I save my PDF in dynamic form. However, due to some limitation with dynamic form, I have no choice but to save the PDF in static form. Problem with static form arises when there are changes to PUB_Product table which could be adding/removing product, setting an active product to non-active and etc. In case of any changes, I have to re-open the PDF in LiveCycle and save it in order to have the latest data reflected in the form. Is there anything I can do so that the changes to the product table will straight away reflected in the form without having to re-save it?
    Thanks in advance for your advise.
    Regards,
    Steven

    Hi Paul,
    Thanks for helping. I'm using Acrobat to view the PDF form. Thus, shouldn't have any problem connecting to the database.
    I've captured some screenshots as below and hope it helps you understand my situation better.
    This is my Access database
    This is my PDF. Added a data connection "Product" using SQL Query "SELECT ProductCode, ProductName FROM PUB_Product WHERE ActiveInd=yes" whereby it will only extract the "active" products.
    Binded the product code dropdown list with "Product" data connection to populate the list.
    The output of the PDF form. Only the active products are being listed.
    Now, if let's say I add a new product to my PUB_Product table, the dynamic form will straight away list the new product but not the static form.
    Dynamic form
    Static form
    In order to see the new product listed in the static form dropdown list, I have to re-open the form in Live Cycle and just simply save it. So my question is, is there anything I can do to skip this "open and save" step?
    Thanks.
    Regards,
    Steven

  • Dropdown list not updating when bound db changes

    I hope someone can help me.  I have a form created by Livecycle Designer ES.  It contains a dropdown list populated by a bound to a database table. All works well until the database table is altered.  The dropdown list does not reflect the change.  It is as if the values were snapshotted when the was saved in Livecycle.  I have been unable to find a way to make the list update. 
    Details:
    LiveCycle Designer ES version 8.2.1 - part of Adobe Acrobat Pro 9 with the latest updates.
    The table is contained in a SQL Server 2008 R2 database. 
    The data connection: OLEDB Database,
    Provider: Microsoft OLE DB Provider for ODBC Drivers
    Connection: UFN
    What am I doing wrong?
    -Rhinoplasty2012

    Hi Paul,
    Thanks for helping. I'm using Acrobat to view the PDF form. Thus, shouldn't have any problem connecting to the database.
    I've captured some screenshots as below and hope it helps you understand my situation better.
    This is my Access database
    This is my PDF. Added a data connection "Product" using SQL Query "SELECT ProductCode, ProductName FROM PUB_Product WHERE ActiveInd=yes" whereby it will only extract the "active" products.
    Binded the product code dropdown list with "Product" data connection to populate the list.
    The output of the PDF form. Only the active products are being listed.
    Now, if let's say I add a new product to my PUB_Product table, the dynamic form will straight away list the new product but not the static form.
    Dynamic form
    Static form
    In order to see the new product listed in the static form dropdown list, I have to re-open the form in Live Cycle and just simply save it. So my question is, is there anything I can do to skip this "open and save" step?
    Thanks.
    Regards,
    Steven

  • SSRS report - A single selection dropdown list converted to text box

    Hello everyone,
    We created a single selection dropdown parameter (City parameter) on a report. The data in this parameter is populated using MDX query. Also, it is filtered based on selection of another single selection dropdown list (Country parameter) of a report.
    The problem is when there is no cities for the selected country the dropdown list is gets converted to free type text box and user can insert city data in it. Why SSRS is not keeping it as empty dropdown list with no data?
    Any help would be much appreciated.
    Thanks, Ankit Shah
    Inkey Solutions, India.
    Microsoft Certified Business Management Solutions Professionals
    http://www.inkeysolutions.com/MicrosoftDynamicsCRM.html

    Hello Charlie,
    We developed a fresh report only with two parameters but still the dropdown control gets converted to text box in our case. We have two single selection parameters, Location and Customers. Based on selected Location the customer
    dropdown gets populated.
    Location Parameter Query
    WITH MEMBER [Measures].[ParameterCaption] AS [Location].[Location Name].CURRENTMEMBER.MEMBER_CAPTION MEMBER [Measures].[ParameterValue] AS [Location].[Location Name].CURRENTMEMBER.UNIQUENAME MEMBER
    [Measures].[ParameterLevel] AS [Location].[Location Name].CURRENTMEMBER.LEVEL.ORDINAL
    SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel]} ON COLUMNS , [Location].[Location Name].ALLMEMBERS ON ROWS FROM [Model]
    Customer Query
    WITH MEMBER [Measures].[ParameterCaption] AS
    [Customer].[Customer Name].CURRENTMEMBER.MEMBER_CAPTION
    MEMBER [Measures].[ParameterValue] AS
    [Customer].[Customer Name].CURRENTMEMBER.UNIQUENAME
    MEMBER [Measures].[ParameterLevel] AS [Customer].[Customer Name].CURRENTMEMBER.LEVEL.ORDINAL
    SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel],[Measures].[Amt]} ON COLUMNS,
    nonempty([Customer].[Customer Name].ALLMEMBERS,[Measures].[Amt]) ON ROWS FROM ( SELECT ( STRTOSET(@LocationName, CONSTRAINED) ) ON COLUMNS FROM [Model])
    Regarding parameter settings on General tab for both the above parameters we did not select any of the following values, all these checkboxes are empty:
    Allow Blank Value ("") , Allow null value, Allow multiple values.
    I think it has something related to [Measures].[Amt] that we used in customer parameter. We are now trying to take other two parameters where we would be not using the [Measures].[Amt] to filter the data. Will update you soon.
    Thanks, Ankit Shah
    Inkey Solutions, India.
    Microsoft Certified Business Management Solutions Professionals
    http://www.inkeysolutions.com/MicrosoftDynamicsCRM.html

  • How to create a dropdown list to list the values from two different tables?

    Hi,
    I have the following requirement:
    1. I have to create a dropdown list to display all the values from the second column of  a table.
    2. Another dropdown list to display all the values from the second column of another table.
    3. A text box should help me to add the selected values.
    How to get this done in a PDF? Please help.
    Regards,
    Latha

    Is this a LC form? Because Acrobat forms have no concept of tables, just
    individual fields...

  • Get unique values from Parent List in Dropdown List SPServices

    I have a dropdown list created using the SPServices ($().SPServices.SPCascadeDropdowns). It works as it should, I just need to add a requirement. I need to be able to filter the Parent Lookup list to show only unique values.
    $().SPServices.SPCascadeDropdowns({
    relationshipList: "ROInsComp",
    relationshipListParentColumn: "AIP-RY",
    relationshipListChildColumn: "NameAndCode",
    parentColumn: "AIP-RY",
    childColumn: "NameAndCode",
    debug: true});
    The issue is that in AIP-RY I have stored Years and each year could be repeated several times
    I followed some of the recommendations from this blog:
    GetListItems Unique Values
    I this is what I tried:
    $.ajax({
    url: weburl+'https://my-site/_layouts/filter.aspx?ListId='+escape('{544C8B6A-C9B3-4BA‌​D-B9CF-B032E5FD07DB}')+'&FieldInternalName='+"AIP-RY" + '&ViewId='+escape('{4B433420-156F-4F4F-9E3C-551DC43B593C}')+'&FilterOnly=1&Filte‌​r=1',
    success: function(data) {
    alert('It worked!');}
    No luck so far! Thanks!
    EM

    Thanks for looking into this. I'm not sure this would work: SPServices.SPCascadeDropdowns
    only works (as far as I know) for elements from the same list.
    EM

  • 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

  • I want to access the options in the context menu when clicking on a dropdown list in the bookmarks toolbar, but the context menu disappears when I try to click on one of the options. How can I keep the menu from disappearing?

    I have several dropdown lists in my bookmarks toolbar and would like to access the properties for some of the the items. This used to work fine. However, now, when I go to the list and place the cursor on a particular item, the context menu that is usually available on a right click disappears when I try to access one of the options. This is the menu that begins with Open. What can I do to regain this functionality? I really need the information in the Properties section. I'm using Firefox 3.6.8

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    Also check the Mouse driver settings in the Control Panel.

  • Difference between Combo Box and Dropdown List

    Hi All,
    I would like to know the difference between the elements 'Combo box' and 'Dropdown List' in VC. I am facing an issue where i am invoking an entry list and the output of the first element the entry list returns is getting reflected as the output for all the elements...
    So even if 2nd and 3rd row of the o/p from the entry list is giving only 2 items, if the 1st row returns only 1 then we are able to see only 1 item. Its as if the 1st row decides the items to be returned for all the rows.
    Please help.

    Hi Hezi,
    I have 2 columns in my table. First column is 'material number' and the 2nd one is 'production version'. There can 1,2 or 3 production version for each material. [This information is stored in the backend] This is retrieved through a method which invokes a bapi which in turn retrieves from the backend.
    I have provided a dropdown list for the 'production version' column. Lets say there are 2 rows. Material 1 and material 2. Lets say material 1 has 1 production version and material 2 has 2 production version. So rightfully speaking i should have 1 option in the dropdown for material 1 and 2 for material 2.
    But what i seeing is only 1 option for both the materials. This is wrong.
    Is there something that can be done to ensure that each row reflects the correct no. of options in the dropdown?

  • Unable to embed External CSS file, dropdown list,filter panel and dimension filter are not working in SAP Design Studio Tool

    Hello Everyone,
    I am new to SAP Design Studio. I am working on creating dashboards and I am using Design Studio 1.2 version. Please suggest some solutions for the following issues. Thanks in Advance.
    1. External CSS file which is embeded using custom CSS option under "application component properties" is not working.
        * I kept the external CSS file inside repository-> my application folder.
    2. During runtime, getting javascript error while selecting '-' option from filter panel.
    3. Unable to select or type dimension name under "dimension filer component" properties.
    4. Getting runtime error for dropdown list, and I have inserted the following code under "onStartup" option of Application component properties.
    "DROPDOWN_1.setItems(DS_1.getMemberList("PRODUCTREF", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 20));
    and dimension values are not populated in auto suggest."

    There should be an Error Log under View > Error Log that gives you more details of these errors.  Could you add that?  There is also a View > Script Problems log that provides more details as well.

  • DropDown list appl  is not working when integrated into Portal

    Hi all,
    In my WebDynpro appl, I have a dropdown list.Which sends data to backend(R/3). This appl is working fine, when it is integrtaed into portal, even before i select from dropdown am getting <b>Access Denied error</b>.
    Help me.
    Thanks a lot.

    Sounds like a PCD Permissions issue. Try assigning Read Access permissions to Everyone group for the following items:
    1) the Folder containing the iView and/or
    2) the application itself
    Read about how to assign permissions using the <a href="http://help.sap.com/saphelp_nw04/helpdata/en/f6/2604db05fd11d7b84200047582c9f7/frameset.htm">Permissions Editor</a>
    Read about <a href="http://help.sap.com/saphelp_nw04/helpdata/en/f6/2604f005fd11d7b84200047582c9f7/frameset.htm">Permissions</a>
    Message was edited by: Umair Salam

  • How can I use more than 2 dependent dropdown lists

    I would like to create a form using three level of dépendent dropdown lists.
    Some examples exist with States dropdown list depending on a Country dropdown list. I would like to have a third level City depending on the choice made in the second list. Thanks for your help and sorry for my English

    Hi,
    I used the script from http://acrobatusers.com/tutorials/js_list_combo_livecycle1 to create a two dependent drop-downs and then was able to extend this to three dependent drop-down lists. I have put an example up at https://workspaces.acrobat.com/?d=Ph1ZsLxdyeZk9dq9qovNeQ
    Hope this helps,
    Greig

Maybe you are looking for

  • X11 won't start anymore!

    Hello, this is a desperate call: I am at a conference with my MBP, (10.6.7, all updates done). I need Matlab for my presentation, which needs X11. X11 (and XQuartz) decided that they won't start anymore: the icon bounces in the dock for a while, then

  • Writing data from BW-IP into BW to be reported instantly in BPC 7.5 NW

    Dear all, we are currently designing an integrated BPC 7.5 NW / SAP BW planning environment. Due to various restrictions part of the plan data is supposed to be collected via SAP BW-IP. This is a must have-requirement. At the point of time when the d

  • Using Kinect as a webcam

    Hey, I am working on a project using skype API and i want to interface kinect for windows sdk to communicate with skype, as there is no support for kinect in skype some guys http://www.kinectdevs.com/forums/kinect-virtual-camera-kinect​-webcam-f17/ki

  • IWeb 2.0.2 - Media Unavailable To Viewers - requests they log into iDisk

    Hello, Encountered an annoyance to viewers of my web page published to a .mac account with iWeb 2.0.2. They log in just fine and the moment they go to view a page that has media files on it, it asks them the following: 'To view this movie, you need t

  • User message in the method "executeQueryForCollection"

    Hi everyone, I pray you excuse my english. I am working in jdev 11.1.2.1. I have an "adf:inputListOfValues" in a "jsf". In the search popup, I would display a message to the user if search criteria are not informed. To achieve this, I implemented the