Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
3 replies Latest Post - ‏2008-03-12T14:10:25Z by SystemAdmin
SystemAdmin
SystemAdmin
895 Posts
ACCEPTED ANSWER

Pinned topic help needed with Select builder

‏2008-03-07T19:21:31Z |
Hi,

I am using select builder to list of departments. the sql statement returns department id and department name. I want to display department name in the select list but when the form is submitted I want to get the department id value instead of name. In a straight HTML we do eg:

<select name="departmentid">
<option value="1">Accounting</option>
<option value="2">Marketing</option>
..........
</select>

How can I do this in portlet factory?

Thanks,

-R
Updated on 2008-03-12T14:10:25Z at 2008-03-12T14:10:25Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    895 Posts
    ACCEPTED ANSWER

    Re: help needed with Select builder

    ‏2008-03-10T19:21:13Z  in response to SystemAdmin
    Hi,
    On Select Builder, you have 2 fields to specify at XML Data Source Elements:
    Value Element: Put here the xml variable attribute with department ID
    Label Element: Put here the xml variable attribute with department Value

    Best Regards
    John
    • SystemAdmin
      SystemAdmin
      895 Posts
      ACCEPTED ANSWER

      Re: help needed with Select builder

      ‏2008-03-12T14:10:25Z  in response to SystemAdmin
      Example of the usage of Select builder
      Select Data: ${MethodCall/EmployeeServiceConsumerGetDepartmentListing}

      XML Data Source

      Value Element: DPT_ID
      Label Element: DPT_NM

      Message was edited by: Rama.Jaini

      Message was edited by: Rama.Jaini
      Updated on 2008-03-12T14:10:25Z at 2008-03-12T14:10:25Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    895 Posts
    ACCEPTED ANSWER

    Re: help needed with Select builder

    ‏2008-03-10T19:51:35Z  in response to SystemAdmin
    Thanks