Populating a Combo/Dropdown with data

lloydflloydf Member Posts: 73
How can I populate a Combo/Dropdown on a form to data in a table

thanks

Comments

  • DenSterDenSter Member Posts: 8,307
    Unfortunately, that's not possible. A combobox/dropdown list is populated by the optionstring property of an option type field/variable.
  • lloydflloydf Member Posts: 73
    Is it possible to build the optionstring variable dynamically by reading data from a Navision table?

    If so could you please give me an example.

    Thanks

    LLoyd
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Nope, that isn't possible either. The Optionstring-property is read-only.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • lloydflloydf Member Posts: 73
    Does that mean that the optionstring value is always hard coded?
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Yep, at design-time you decide the number of options.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • lloydflloydf Member Posts: 73
    So there is absolutely no way of dynamically populating a combo box?
  • JedrzejTJedrzejT Member Posts: 267
    Check this

    This is not dropdown.. but this is some solution

    http://www.mibuso.com/forum/viewtopic.p ... highlight=
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    lloydf wrote:
    So there is absolutely no way of dynamically populating a combo box?

    I will say this only once: No
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • Stefan_VerweyStefan_Verwey Member Posts: 18
    Hi Lloyd

    Just an alternative idea.

    If you can spare a table, create a new table to host your list of variables and use a lookup to that that new table.

    If you need to do the same for various reasons, use the same principle than used in Table 355 where Table ID & Dim Code etc are used within Filters when looking up the related applicable value needed.

    Regards, Stefan
  • lloydflloydf Member Posts: 73
    Thanks for that Stefan
    A good idea.Is it possible to create a table and structure it with a key to identify different lookups and filter on the lookup?
    eg Hold multiple lookups in the one table with a specific key for each.

    Lloyd
  • ivicaSDivicaSD Member Posts: 9
    I have found forum post with solution to this problem:

    http://forum.mibuso.com/discussion/48486/dropdowns-in-request-pages-in-reports
    --
    Ivica
Sign In or Register to comment.