We can create a drop-down list as variable?

Hi all

Can we create ComboBox with variable texts. I'm trying to do, but locked. my code is

myTable var = myText.convertToTable ();

var myRowCount = myTable [0].rows.count ();

var e = "";

for (i = 0; i < = myRowCount-1; i ++) {}

e = "\""+myTable[0].rows[i].contents+"\","+ e;

}

var s = "[" + try () + "]";

alert (s);

myDialog = app.dialogs.add var ({name: "Choose printer Preset"});

with (myDialog.dialogColumns.add ()) {}

staticTexts.add ({staticLabel: "Presets :"});})

}

with (myDialog.dialogColumns.add ()) {}

var = dropdowns.add myList ({stringList: s, selectedIndex:1});})

}

var result = myDialog.show ();

So I have create table with text, then give it to the drop-down list parameter, but I got the error message "invalid parameter."

Any suggestion please.

Thank you

Selva

Hi Selva,

I modified your JS code above, I hope that you expect this! Check and come back.

var myDoc = app.activeDocument;
var myText = app.selection[0];
var myTable = myText.convertToTable();
var myRowCount = myTable.rows.count();

var Arr = [];
for (i = 0; i<=myRowCount-1; i++){
    //Arr.push(myTable.rows[i].contents+"\r");
     Arr.push("\""+myTable.rows[i].contents+"\", ");
    }
//alert(Arr);

var myDialog = app.dialogs.add({name: "Table Text"});
with (myDialog.dialogColumns.add()){
     staticTexts.add({staticLabel:"Row Texts: "});
     }
with (myDialog.dialogColumns.add()){
     var myList = dropdowns.add({stringList:Arr, selectedIndex:0});
     }
var result = myDialog.show();

THX

csm_phil

Tags: InDesign

Similar Questions

  • How can I create dependent drop-down list. ?

    Hello

    How can I create dependent drop-down list in my custom page.

    JAG

    Hello

    See my prev thred:

    Re: List of choices dependence relative to a framework for Oracle Page

    Concerning
    Meher Irk

  • create a drop-down list

    It would be possible to create a drop-down list to the fields of an external database or excel file?

    TKS

    Make sure your form is a form dynamic XML, if you do not find why you cannot connect to the data source share your form... There must be something that you are missing.

  • How to create the drop-down list, as in the generator of the APEX?

    Hello

    I use the theme 2. I would like to create a drop-down list as in Apex Application Builder, where, on top, you see home | Application Builder | SQL workshop. When you click on one of them, a menu drops down.

    Is it possible to do with standard APEX or I have to do some Javascript coding?

    Tamas

    Hello
    I have them tested again, as I'm new to apex and that I am in the process of upgrading my knowledge by reading books and documentation on the apex, but you may be interested in these plugins
    located @ http://www.apex-plugin.com/

    * [url http://www.apex-plugin.com/oracle-apex-plugins/region-plugin/warp11-css-menu_85.html] Warp11 CSS Menu *.
    * [url http://www.apex-plugin.com/oracle-apex-plugins/region-plugin/drop-down-menu_60.html] Drop-Down Menu *.
    and my favorite
    * [url http://www.apex-plugin.com/oracle-apex-plugins/region-plugin/jquery-menu_82.html] jQuery Menu *.

    Hope this helps

    Concerning
    Jean-Yves

  • HOW TO CREATE A DROP-DOWN LIST ON A WEB PAGE LIST?

    I would like help on how to create a drop-down list on a web page.

    I know that its pretty basic, but I'm only a beginner!

    See you soon

    Dan

    http://CSS-tricks.com/2282-simple-jQuery-DropDowns/

    http://coding.smashingmagazine.com/2011/06/16/five-useful-interactive-CSS-jQuery-technique s-deconstruted / # mega - drop-down list

    http://vandelaydesign.com/blog/Web-development/jQuery-drop-down-menus/

  • How can I create a drop-down list in Dreamweaver CC 2015?

    I've already implemented the site essentially, but one of the points on my navigation bar should be changed to make a drop-down list. Any help would be very appreciated! Thank you very much!

    (It is my first time using DW or any other similar software, so please respond to a beginner level!) Thanks again!

    A menu is a navigation bar. See if that helps you.  The drop occurs on the link products.

    Horizontal centered bootstrap tablets - http://alt-web.com/

  • How to create the drop-down list?

    I tried to find a way to reach this menu drop down animated and I can't.  I'm somewhere between (animation using the accordion panel and the substitution effect the composition).

    Any help would be appreciated.  It is the example of what I'm trying to achieve.

    Retired military community Washington DC | Hawks landing

    Thank you!

    Hello

    You can create the same drop-down list using the ToolTip Widget composition but the only way that you can add on turnover and deployment will be discoloration.

    Please check the attached file. http://adobe.ly/1IxxKfO

    Another alternative is to create a lively border animation and use it in Muse as a file OAM.

    Concerning

    Vivek

  • Is it possible to create interactive drop-down lists that reference the tables on pages separate from the PDF?

    I'm looking to create a user to input PDF in the drop-down lists are used to search for tables, however, I'm not very familiar with the options that are available or if this is even possible?  Also, is it possible to write a substantive code that could read the text of the user entered to perform a search or even solve an equation? Can someone let me know if these elements are possible and/or let me know what adobe program may be required to accomplish these tasks? Thank you!

    PDF documents have no concept of "tables" as MS Word or MS Excel has. There is content that looks like a table.

    Acrobat JavaScript knows tables and form fields. So we could have a table in JavaScript and complete a series of fields that looks like a table. You can use JavaScript to find the table.

    JavaScript in Acrobat can accept user entries in the fields and pop-up windows.

    It is possible to solve theoretical equations the user if the good rating or coding is used.

    D.P. Story is an evangelist generated LaTex PDF to create PDFS with mathematical symbols, and he also created the AcroTex product that allows to create educational tools that includes mathematics calculation self placement tests.

  • Create a drop-down list object appears

    Hi guru,.

    We are facing a problem with our 10gR 3 Oracle WCI portal.

    We have several groups of community administrators in which administrators of the community will be added. These groups have rights activity like creating portlets, create the snapshot of search, etc. associated with them, allowing administrators to the community different create their own items to the community.

    It worked very well until somedays back, however we have noticed that now, if we add a person to one of these groups of administrators of community, the drop-down list CREATE an OBJECT does not appear under the Division of Administration for the administrators of the community.

    Please can someone help us with what we face serious flak from the directors of the community.

    on the top of my head check that the Group has rights to this folder. If they have no administrator rights on this admin folder they won't see the drop-down list of objects create... try and post a reply.

  • How to create the drop-down list box

    Are you able to create a drop down box in Muse? For example, I want someone visits my site have the ability to configure a package by choosing options in the drop-down boxes.

    Here is the exact example that I'm looking.

    http://www.idwholesaler.com/PrimacyExpertSSSystem.html

    Click the OPTIONS tab. You will see the drop-down menu for options, that you must choose boxes.

    THANKS IN ADVANCE!

    This option is not yet available in Muse I'm sure they are working.

    You can use radio buttons.

  • How to create the drop-down list Actions?

    Hello

    I was wondering how to create this list drop-down list action in Adobe Livecycle when I choose a list item, it shows some fields of text under it.

    That is to say.

    Im having a drop down list which is having 2 1 list items is Yes and 2nd is no.

    Untitled.png

    Now, if I want to show some fields of text under it when I choose Yes and hide certain text fields when I choose No, what should I do?

    I also wanted to know that how to display the text fields in the pop-up box when I choose Yes.

    Thanks in advance!

    When you change the layout of a document in some way, you must save the PDF in dynamic PDF. Your currently saved him in the designer as a static pdf that's why nothing happens. Just do a file-> save as and select Dynamic PDF from the list. When you preview it the next time it will be set dynamic pdf.

  • Create the drop-down list on the other box

    I currently have a drop-down list box in my film. The selections are 1, 2, 3 and 4. I would like to generate another X to the combo boxes of the same structure based on this number. I.e. someone chooses 2 in ComboBoxA. So 2 of ComboxB are generated below that.

    If anyone can help with the syntax?

    Thank you

    Brandon

    :

    Import mx.controls.ComboBox;
    var tl:MovieClip =;
    var OL: Object = new Object();
    Lo.Close = {function (eobj:Object)}
    for (var i = 0; i)
    var cba:ComboBox = tl.createClassObject (mx.controls.ComboBox, "cb_" + i, i);
    CBA._x = cb._x;
    CBA._y = cb._y + (i + 1) * cba._height;
    cba.dataProvider = [what];
    }
    };
    cb.addEventListener ("close", lo);

  • Create a drop-down list of values with the country in?

    Hi, I looked everywhere and nothing helps I found something useful - without coding of all the values of a country in a lov, how do I get a drop-down list with the countries of the world in there?

    Thank you
    -C

    Hello

    If you like the privilege
    Connection to SQL more as SYS and run

    GRANT SELECT ON APEX_030200.wwv_flow_countries TO your_app_schema;
    

    Change your_app_schema to what is analysis application schema.

    Then use the LOV query like this

    select country_name,country_id
    from APEX_030200.wwv_flow_countries
    

    BR, Jari

  • How to create a drop-down list or drilled down in the dashboard?

    All the

    I have this requirement to create a dashboard that has a list of exploration down or the drop-down menu for a list of reports

    Example of

    -Sales Department

    -sales by region

    -UNITED STATES

    -Asia

    -Europe

    -Sales by period

    -Quarter

    -months

    -year

    I want to display like this, or something close to him

    any suggestions or ideas?

    Thank you very much

    Take a look at Oracle BI Publisher YouTube Channel

    http://www.YouTube.com/user/bipublisher?feature=watch

    more precisely

    http://www.YouTube.com/watch?v=2vKesnPjrAI&feature=C4-overview&list=UUWQO0Ent3xaT22bE7H7rX_g

  • How to remove a created library drop-down list

    Whenever I have create a new library and add a folder, only the folder is full or not, it still shows a drop to the bottom of the box with the name of the folder.

    Is there anyway I can get rid of it, it's just pretty boring. I want it to look like any other library.

    I knew I should have said that

    Group By > more > check "folder path".
    Group then in > folder path

Maybe you are looking for