still problems with drop-down list fill the Script

Well, I used the information I got this forum to fill a drop in a repeatable subform with javascript (and it even works with FormCalc) problem solved. But now when I test the script in format acrobat (with calculations) the last item on my list does not seem to be working properly. They are scripted like that on the preOpen event.

DropDownListName.additem ("item 1", "1.00");

DropDownListName.additem ("item 2", "2.00");

etc.,

etc.

They are all the same, and they all show during the test. But when I click on the last item, it automatically entered the first element on the form and for some reason that I don't know, when I click on the arrow to the bottom of the drop-down list once again, will be my listed items 1-6 and 1-6 new (Double listing the items). If I click it a third time he triple will list the elements... Weird! Maybe I'm just tired, but more probably think I do something wrong (again!) Anyone have any ideas?

One more thing so I don't have to add another post and I hope you people leave him alone. How do the total field sum of script so we round to the nearest cent (1.856 = 1.86) or which is not easy

Hello

The second issue of additional items in the drop-down list is easily sorted by including a line in the preOpen to clear the list first.

DropDownListName.clearItems ();

This should go before the addItem script.

This erases the existing list, before be filled again. You would tend to use addItems, where list items will change according to the previous intervention of the user with the form.

Regarding the round total, you can do this with script (check "Round" in the help file), but it is not necessary.

When you have the total selected object, just go to the object/field tab and click models. On the display tab, you can select a model of currency with the currency symbol, the 2 decimal and thousands separator (IF your item is a numeric field).

Good luck

Niall

Tags: Adobe LiveCycle

Similar Questions

  • Problem with drop-down list that prevents the use of the functions, will not go away.

    Hello

    I have Windows 7.  I could not afford MS Office, so I downloaded OpenOffice and, later, LibreOffice.  My problem is, when I open a document to write in a program, a drop-down list (formatting) is displayed.  It starts with "Default" at the top.  The box does not work, if I click on anything that it just flashes.  Or it will disappear.  I tried everything I can think of to get rid of him.  And, as long as it's here, I can't write to a document.  I can close, but only by closing the program.

    Is this problem only with free Office programs.  Sometimes when I am looking for a program in Windows 7, or if I'm looking for the Help menu in 7.

    I'm not very savvy computer.  If you would be interested to help me, thank you very much, but please don't expect me to know some thing on anything whatsoever.  I used to use the mode BACK back in the day, but the subterrain of computers is a subject that I've lost contact with long ago.

    You can also try to test with another Windows user, in case you have a corrupt user profile.

    If things were OK and then maybe a few days ago, System Restore is an option.

    How to repair the operating system and how to restore the configuration of the operating system to an earlier point in time in Windows Vista (or 7)
    http://support.Microsoft.com/kb/936212/#appliesTo

    Don't you see the same problems in Mode safe?

    Startup options (including safe mode)
    http://Windows.Microsoft.com/en-us/Windows7/advanced-startup-options-including-safe-mode

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/default.aspx/KB/929135

  • Problem in drop-down list in the column Selector?

    Hi friends...
    I use the view selector to column for the first time in OBIEE.
    I have this problem:

    (1) even if I chose the columns in the left pane, my drop-down list is not filled with the corresponding values? Please let me now how to fill the drop down in the column picker.
    (2) I have a column count that has almost 1000 enteries of integers ranging from 1 to 500. I put only 5 values in my County of drop down (like the 50, 100, 200, 250, 500) that actually filters the column number as (less than these values). Suppose that user select 50 so it will filter the report less a 50-count indictment.


    Thanks in advance

    Hi Toony,

    for your second question... I don't know where you want to display these values if variable County presentation or somewhere else... ??
    Anyway, if it's in the guests... then follow these steps

    For column filter prompts:
    Select this particular column and create the bins on that particular column so that these 5 values and give the same name for this particular... as value...
    for 50--> 50 as display name
    for 100--> 100 name allow... like wise for the user to understand...
    Now create the same column guest on this particular column... and moving forward

    Variable application:
    In the variable of the presentation, select display , select the SQL... (some thing like this option, I don't remember exactly what it is... but using this, we can write the SQL code to display the values in the drop-down list)
    There, you write the following SQL code SELECT columnname FROM SubjectAreaName WHERE ColumnName IN (50, 100, 200, 250, 500)
    As we filter the values of column to contain only the values that we mentioned...

    It can helful for you, if it's not... Sorry for wasting your valuable time

    Thank you & best regards
    Kishore Guggilla

  • Problem with drop-down list: under Windows, it works, on Mac is not

    Dear forum,

    I'm reworking the script MultiPageImporter2.5 by Scott Zanelli; going to add new features.

    So far, I added a drop-down list so that the user could choose which pages to put a pdf/indd file: odd/even/as well.

    my dialog box.jpg

    However, I encountered a strange problem: on Windows, it works as expected, but on Mac, nothing happens when I click on the shortcut menu. When I write a dialog box, I almost always use the automatic layout and never encountered such a problem before. But in this text the author uses a fixed position for the controls so I followed his style of coding:

    dLog.pageSideMode = dLog.pan4.add('dropdownlist', [10,110,180,40], ["Odd and Even Pages", "Only Odd Pages", "Only Even Pages"]);
    dLog.pageSideMode.selection = pageSideMode;
    

    The drop-down list is visible both on Windows and Mac, but on a Mac, it is not clickable. What I am doing wrong?

    Another question: in the script, the author has created three pop-up windows. In the code, each popup has a different height (the last element of the array 'limits') - 60, 88, 33. Does make sense to make them different if on the screen they are exactly the same (I mean height).

    Here's my version of the script.

    I think the easiest solution for me here is to rework the part fixed dialog for automatic layout.

    Thanks in advance.

    Kasyan

    Hello

    I don't think you're doing something wrong. If you change the vertical position of the popup to 90, the popup works if you click at the top, not if you click on the bottom.

    I think that you have found a bug in the previous DAY.

    P.

  • How the auto fill a field based on the drop-down list unless the specific item is selected

    Hi all

    My apologies if I posted this in in the wrong place, but I am new to these forums, JavaScript and Adobe LiveCycle.

    I am trying to build a form using LiveCycle Acrobat but have problems with the drop-down lists.

    Inititaly I just wanted to fill in the fields in a table based on a matching menu selection dropdown in another table.

    I used the following code and it worked fine:

    Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)

    fFrom var = xfa.resolveNodes ("Workbook.Content.Table1.Row3.AppropriationDetails [*]. Row4.cell1');

    OTF var = xfa.resolveNodes ("Workbook.Content.Table2.Row3.AppropriationDetails [*]. Row4.cell1");

    for (var i = 0; i < = fFrom.length - 1; i ++) {}

    fTo.item (i) .rawValue = fFrom.item (i) .boundItem (xfa.event.newText);

    }

    The problem is that now I want the code above works UNLESS one of the items in the drop-down list is enabled specifically in this case, I want the text box in the other table to display a message such as "Details of the entry in the field below.

    I tried to create an If Else statement using the following code:

    Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)

    fFrom var = xfa.resolveNodes ("Workbook.Content.Table1.Row3.AppropriationDetails [*]. Row4.cell1');

    OTF var = xfa.resolveNodes ("Workbook.Content.Table2.Row3.AppropriationDetails [*]. Row4.cell1");

    for (var i = 0; i < = fFrom.length - 1; i ++) {}

    If (fFrom.item (i) .rawvalue = "Option 3") {}

    fTo.item (i) .rawValue = "enter the details in the field below.

    }

    else {}

    fTo.item (i) .rawValue = fFrom.item (i) .boundItem (xfa.event.newText);

    }

    }

    The code now filled the field with "Enter the details in the field below" any item I select in the drop-down list.

    Your help is greatly appreciated.

    See you soon,.

    ozzy_q

    Hello

    You use .rawValue in the change event. This will cause problems because the selection of the users has not received .rawValue from the drop-down list at the time when the change event is triggered.

    Move your script as it should to the output of the dropdown event.

    Hope that helps,

    Niall

  • Fill the drop-down list in the SQL data source

    I have a data source that retrieves data from an sqlite database. How do I pass two areas of this query to a drop-down list on the page. I want to create a drop down list with the value and the text of this data source

    Hello

    To extract the values you need to wait for onDataLoaded. "data" parameter is a list of cards.

    An example of code for data access :

    http://supportforums.BlackBerry.com/T5/Cascades-development/SQLite-count-query/m-p/2477699#M27180

    http://supportforums.BlackBerry.com/T5/Cascades-development/DataSource-data-in-JavaScript/m-p/244171...

    To add an option to the menu drop-down:

    attachedObjects: [
      ComponentDefinition {
        id: optionFactory
        Option {
        }
      }
    ]
    
    ... to add an option:
    
    var newOption = optionFactory.createObject()
    newOption.text = 'Text to add' // or a variable fetched from data source//newOption.otherfields = ...
    dropdownId.add(newOption);
    
  • Drop-down lists of the fill of the text fields on a different page from the drop-down list.

    Hi all

    I have a form with multiple pages. The first page contains a number of drop-down lists. These lists, drop-down list when the option is chosen, must complete a field text on another page. I can get the drop down menu to populate the text field when it is on the same page, but as soon as I move the text field to another page, the script does not work. Can anyone offer a solution? I used javascript on the changes to the scripts.

    Every time reference you the other object... so I guess in the code located on the DDlist.

    Paul

  • Fill the drop-down list on the duration box

    Hi all

    Please help me to fill in a drop-down list on the duration.
    vcclient_no: = FK_SPLIT (vcBuffer);
    vcpol_ref: = FK_SPLIT (vcBuffer);
    vcmake: = FK_SPLIT (vcBuffer);
    vcmodel: = FK_SPLIT (vcBuffer);
    vcchassis: = FK_SPLIT (vcBuffer);

    I need fill out the values of these variables to a drop-down list box.

    Take a look at the online help, there is a complete example.

  • How to trigger a refresh of a drop-down list when the selection is changed

    Hello

    This is a general question of ExtendScript, but since I work with FM, I'll ask here first. I have a bit of a paradox here and I'm not sure of the best way to manage it.

    I have a dialog box with a drop-down list, where I want to refresh some controls when the user changes the selection in the list (dropdownList.onChange). This includes them refresh the content of the list itself. However, the problem is, whenever I try to update the content of the list, onChange triggers again. So, if I put the call to update box in the onChange handler, it will result an infinite loop, because my upgrade function fires onChange when it refreshes the list.

    Does anyone know a better methodology, where I can safely triggers a refresh of a drop-down list in the list's onChange event handler? I really wish that onChange was reserved for an action of the user only, or at least there is a property for this purpose.

    Russ

    Hi Fabio,.

    You can't "Refresh" a menu drop-down.

    But you can rebuild.

    You must do it "manually".

    As I do:

    1. I have a picture I want to show in the dropdownlist control.

    2. I have delete all children: myList.removeAll ();

    3 I have rebuild the list via mylist.add ("item", "myArray [index] in a for - loop.

    But if you know the exact position of the elements to remove or add, you can do so via splice()

  • Hide drop-down list in the Section of Pages in Pivot mode

    Hello

    I have a condition of report where I need to use columns in the section of Pages in Pivot mode, but I need to hide the display so that it cannot be displayed to the user.
    Is there a way we can achieve this. I am able to hide the values inside the hidden option or by giving the white police and in color, but the drop still exists. I want to hide even the drop-down list also, the user does not know that there is no drop-down list. I can't remove the pivot as my report depends on these columns showing rolling months of data. There are a lot of customization in this report, can you get it someone please let me know no work around for this problem.

    Thank you
    Knockaert

    Hi Karthik,

    You can hide the fall down by adding the css code.

    In responses, add a static text / narrative view and Add (enable html) code below

    otherwise in the dashboard add text and enter the code above it...
    This will hide the drop down.

    Thank you
    Vino

  • Help with drop-down lists

    I am using LiveCycle Designer ES 8.2 in Windows 7 and I have created a form here: http://olympicanimalsanctuary.org/volunteerapp.PDF

    I have two drop-down lists in the form, under the heading "internship seekers only" on the right side of the first page.  I created these manually, not with any code. When I try to click on the drop down menus in preview mode, as well as in Acrobat and online, the lists will not be open.  They Flash open for a split second, then close it again before I can click on my selection.  Someone else has the same problem with my form, or is this a problem on the end of my computer?  Any suggestions?  I have read some other forums where people have this problem with the drop down menus in other applications as well, but I only have this issue with my own form.

    Today is my first day using this application, so please, be gentle.

    Thank you

    Steve

    Hello

    I suspect that the drop-down list of objects has become corrupt or you have copied the object and then changed its type in a drop-down list or the object picked up the attributes of a shipment by the subject of the e-mail message.

    If you select the drop-down list and go to the XML Source, you will see the click event script is set to "mailto:"

    Solution is always the same - a drop-down menu again drag the shape.

    Niall

  • How can I sort alphabetically in the drop-down list in the Tools menu of Firefox?

    The Tools menu has a drop-down list, but the entries are not in alphabetical order. Options and a few individual add-ons/extensions appear in the list, but not in alphabetical order. It would be useful to them in alphabetical order in the list, however, I can't find any option to sort. Did I miss a hidden, built-in option for sorting? Is there an add-on may be providing a way to sort? Someone has an idea? I have not found anything this either in my research on the subject... just what is the sorting of bookmarks. But it's the combo of Tools menu I want to be able to twist. Anyone?

    There is no built-in opportunities to change the menus of the application. The easiest way to do this is by using the editor from Menu Add-on.

    Advanced users familiar with CSS can create a custom style sheet and apply it with Stylish.

  • How does one increase the number of entries in the drop-down list of the address bar?

    It seems that the number of entries in the drop-down list of the address bar is limited to twelve URLS. I would find it convenient that more than twelve years can be shown, but do not know how to increase the number.

    Increase or decrease browser.urlbar.maxRichResults using Subject: config

    NOTE: The FasterFox extension may affect the number of items displayed if you have it installed (addons > Extensions).

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

  • Impossible to delete previously selected items from the drop-down lists at the click of the button Reset on a page of the screen.

    Hello

    I'm unable to clear previously selected items from the drop-down lists at the click of the button Reset on a page of the screen. The code I did to clear the previous value when the click on the button Reset is as below.

    {} public void onReinitialize (ActionEvent actionEvent)

    System.out.println ("onReinitialize is called ::");

    UIComponent uiComp = actionEvent.getComponent ();

    If (uiComp is nothing)

    {

    otherwise we use the button that we linked to that bean

    uiComp = getButtonResetByBean ();

    _logger.info ("reset fields: buttonID =" + uiComp.getId ());

    }

    on the other

    {

    _logger.info ("reset fields: CompID =" + uiComp.getId ());

    }

    Pass the component inside the uniforms, UIXForm, UIXSubform, UIXRegion, UIXPopup, RichCarousel

    or RichPanelCollection that contains the components to reset

    getTextIDLOV () .setValue (null);

    ResetUtils.reset (uiComp);

    }

    ---

    Using this code Iam able to clear the entrance to the text box but can not clear previously selected items from the drop-down lists when the reset button is clicked

    Can anyone please help on this issue.

    It's simple, you can set GenerateIsNullClauseForBindVars = "false" in the viewCriteria who created in EmployeeView

    After doing that it will fill the list of employees only after the Department selection

    Again check the enclosed application

    Ashish

  • CC App drop-down list in the menu bar (Mac) completely blank!

    CC App drop-down list in the menu bar (Mac) completely blank! I tried to delete the opm.db file, logging in via the browser and change my password. Nothing works! By making the two above, I get a login screen in the fall to the bottom of the window, but at the time wherever I am connected, it becomes totally empty. I am running an iMac and OS 10.9.5 3.4Ghz i7. Can not work of the CC function without the content of this window, so the only way I can close the app is by restarting the computer. CC wants me Uninstaller uninstall ALL my applications from Adobe, which is not practical. All of the other CC users on the site here do not have this problem, so it does not appear to be linked to the firewall. Help would be appreciated!

    4.png

    Hi Matt,

    Please refer to the threads below where this issue has been addressed:

    Creative cloud is empty window why?

    Cloud Desktop App is empty?

    New application Cloud Creative unusable: it is empty!

    Re: Empty opening creative cloud app

    Kind regards

    Sheena

Maybe you are looking for