How to use key value pairs in a dropdown - Forum - OpenEdge BPM - Progress Community

How to use key value pairs in a dropdown

 Forum

How to use key value pairs in a dropdown

  • I have Dataslot which contains a Map object, al list of Key, Value pairs.

    I want to display a dropdown list which displays the Value, but uses the Key.

    In HTML this should be rendered as

    <select ...>

      <option value="MyKey1">My Value 1</option>

      <option value="MyKey2">My Value 2</option>

      <option value="MyKey3">My Value 3</option>

      <option value="MyKey4">My Value 4</option>

    </select>

    However,

    When I drag the dataslot to the  form, it is rendered as

    <select ...>

      <option value="MyKey1">MyKey1</option>

      <option value="MyKey2">MyKey2</option>

      <option value="MyKey3">MyKey3</option>

      <option value="MyKey4">MyKey4</option>

    </select>

    So the combobox displays the key. I don't want this.

    Switching the key and the value is not a solution. And even if I would, I don't have a clue what the selected Key is.

    I tried to use a combox box control and set the source of the options manually, but the controls only accept list datasources for the options.

    How can I solve this problem?

  • Hello Hendrik,

    Its a BUG in SBM. i will shortly give you a workaround.

    Thanks,

    Sandip

  • Hello Hendrik,

    Please take back up of existing com.savvion.studio.core_7.5.2.XXXXXXXXXXXXxxxx.jar under $BPM_HOME\eclipse\plugins directory and replace it with the attached one.Extract the attached Jar.ZIP to get the jar file. Make sure you close the Studio and then replace. Rebuild the application and redeploy and retest the issue.

    I assume that you are using BPM Studio 7.5.2(466) build.

    Thanks,

    Sandip

  • Hello Hendrik,

    Were you able to overcome the issue ?

    Thanks,

    Sandip

  • No.

    I found two files on my machine:

      C:\savvion\BPMStudio75\eclipse\plugins\com.savvion.studio.core_7.5.2.201004162155.jar

      C:\savvion\BPMStudio75\eclipse\plugins\com.savvion.studio.core_7.5.2.201006101212.jar

    Copying com.savvion.studio.core_7.5.2.201010250259.jar to the directory   C:\savvion\BPMStudio75\eclipse\plugins\ seems to have no effect.

    After removing both files mentioned above, the studio did not work anymore.

    So I placed the files back and removed com.savvion.studio.core_7.5.2.201010250259.jar

    Regards,

    Hendrik

  • Hello Hendrik,

    I have retested that jar file which works absolutely fine at my end.

    Please make sure you have removed the previous two files, there should be only one om.savvion.studio.core_7.5.2 file in default setup.(without any HOTFIX)

    C:\savvion\BPMStudio75\eclipse\plugins\com.savvion.studio.core_7.5.2.201004162155.jar
    C:\savvion\BPMStudio75\eclipse\plugins\com.savvion.studio.core_7.5.2.201006101212.jar

    and have removed the BPM Studio temp cache folders under C:\savvion\BPMStudio75\eclipse\eclipse\configuration directory listed below

    1.org.eclipse.core.runtime
    2.org.eclipse.osgi
    3.org.eclipse.update

    Thanks,
    Sandip

  • When I remove both files and copy the new one, BPM Studio does not work anymore.

    I cannot open any process templates.

    When I try to do that, an XML is shown.

    When I do a clean install of BPM Studio 7.5 SP2, there is only one file: com.savvion.studio.core_7.5.2.201004162155.jar

    When I remove that file and copy yours, it works. Combo boxes are now generated correct.

    My Question now is how to deal with patches/Hotfixes.

    I don't know what was fixed by the Hotfix installed first, but probably that will not work anymore.

    regards,

    Hendrik Romkes

  • Hello Hendrik,

    Yes, the earlier FIXES in the HOTFIX you have applied will no more be available as it will get overwritten. Ideally, this FIX should be available in HOTFIX. Since it has not been included in hotfix, we build a temporary patch for you on default code line.

    Please let me know the HOTFIX detail you have applied on Studio so that i can include the FIX and repackage it and make it available for you.This will not break other FIXES in HOTFIX you have.

    Regards,

    Sandip

  • Sandip,

    Ik have applied patch 7.5.2.2

    Regards,

    Hendrik

  • Sandip,

    Do you allready have a new package for me?

    Regards,

    Hendrik

  • Hello Hendrik,

    PFA jar file which is HOTFIX 2 compatible. Make sure you remove already existing file i.e com.savvion.studio.core_7.5.2.2010xxxxxxxx.jar.

    Thanks,

    Sandip

  • Sandip,

    Unfortunately your latest file does not work when I have the hotfix applied.

    I tried several combinations of the following files:

    (1) com.savvion.studio.core_7.5.2.201004162155.jar (4.796.067 bytes) clean install

    (2) com.savvion.studio.core_7.5.2.201006101212.jar (4.815.609 bytes) from the hotfix

    (3) com.savvion.studio.core_7.5.2.201010250259.jar (3.895.365 bytes) the jar you sent earlier

    (4) com.savvion.studio.core_7.5.2.201008051938.jar (3.896.826 bytes) your latest file

    After a clean install, with only (1) in the plugins directory, comboboxes are generated wrong.

    After a clean install, with (1) and (3) in the plugins directory, comboboxes are correct , but no hotfixes are applied.

    After a clean install, with only (3) in the plugins directory, comboboxes are correct , but no hotfixes are applied.

    After applying the hotfix with only (2) in the plugins directory, comboboxes are generated wrong.

    After applying the hotfix with only (4) in the plugins directory, BPM Studio does not work.

    Process templates cannot be opened.

    When I try to do that, an XML document is shown.

    After applying the hotfix with (2) and (4) in the plugins directory, BPM Studio does work,but comboboxes are generated wrong.

    So (2) cannot be removed, because when I do that, studio does not work anymore.

    I think that other files from the hotfix depend on it.

    I examined the contents of the hotfix.

    It appears that there are several files with the extension .201006101212.jar, of which (2) is one.

    Below I listed the contents of the hotfix zipfile.

    Could you generate the correct jar for me.

    Is the extension .201006101212.jar enough for you to determine the version/patch level?

    I am confused about the patch level, because the name of the folder I copied the patch from is bpmstudio-7.5.2.2_patch

    However, bpmstudio_hotfix_installation_guide.pdf in this folder mentions

      "Installation Guide for Progress Savvion BPM Studio 7.5 SP2 HotFix1"

    Hotfix contents:

    ===================================================

    artifacts.jar

    content.jar

    features

    index.html

    plugins

    site.xml

    web

    features\com.savvion.studio_7.5.2.201006101212.jar

    plugins\com.savvion.bizrules.eclipse_7.5.2.201006101212.jar

    plugins\com.savvion.bpmstudio_7.5.2.201006101212.jar

    plugins\com.savvion.deployment.client_7.5.2.201006101212.jar

    plugins\com.savvion.deployment.common_7.5.2.201006101212.jar

    plugins\com.savvion.studio.adapters_7.5.2.201006101212.jar

    plugins\com.savvion.studio.common_7.5.2.201006101212.jar

    plugins\com.savvion.studio.core_7.5.2.201006101212.jar

    plugins\com.savvion.studio.deployment.wizard_7.5.2.201006101212.jar

    plugins\com.savvion.studio.lib_7.5.2.201006101212.jar

    plugins\com.savvion.studio.repository_7.5.2.201006101212.jar

    plugins\com.savvion.studio.rules_7.5.2.201006101212.jar

    plugins\com.savvion.studio.sbm_7.5.2.201006101212.jar

    plugins\com.savvion.studio.simulation_7.5.2.201006101212.jar

    plugins\com.savvion.studio.spt2xpdl.wizard_7.5.2.201006101212.jar

    plugins\com.savvion.studio.spt2xpdl_7.5.2.201006101212.jar

    plugins\com.savvion.studio.tools_7.5.2.201006101212.jar

    plugins\com.savvion.studio.widgets_7.5.2.201006101212.jar

    plugins\com.savvion.studio.xpdl2spt_7.5.2.201006101212.jar

    plugins\com.savvion.studio.xpdl_7.5.2.201006101212.jar

    web\site.css

    web\site.xsl

    Regards,

    Hendrik

  • Hello Hendrik,

    I would request you to open up support work request so that such issues can be further investigated through our “Support Standard Process”  in a better and standard way. This will also avoid delay and inconvenience.

    Please visit the below mentioned URL to initate workrequest to Progress|Savvion Support for further continuation of this issue and other issues you may further  encounter.

    http://web.progress.com/en/support/index.html

    Thanks,

    Sandip