Manage Learn to apply best practices and optimize your operations.

A new type of option selection with search facility

The tip is about simulation of picklist on the Web with search facility.

The tip is about simulation of picklist on the Web with search facility.

One of my clients required an application in one of its pages that, when he clicks on 'A', he should get all entries of organizations details starting with 'A' in different columns like picklist. After displaying that list, he wanted to select one of them, and like picklist, the value should populate a field in the form.

For that, the following things have to be created:
1.Create an agent with which takes an string to search the document Put the collection in a folder. Don't forget to remove old documents from the folder before putting new value to it.
Initiate this agent with every letter with that string for eg. for A-"A*", for B-"B*" etc
2.The folder design must have checkbox/radio in the first column as written in html.
3.Write a function in a form in that function--just use JavaScript to populate window.opener fields.
4. Embed that folder in this form.
5. On click of that checkbox/radio fields call that function.
6. Now come to the form from where you want to start this process.
7. Put a button just beside that field, and there write your javascript with parameters.
8. Pass parameters for opening the form where your folder is embedded.
9. First line of the form will show A-Z grid having an action hotspot which runs that agent with its letter parameter.
10. When someone clicks on A, the agent runs with a parameter that puts the docs in folder.
11. The output comes as organization name, address, many columns you add to the doc with a checkbox option.
12.When the user clicks on any checkbox, the function written on the JS header comes in action which takes parameter from a document(view column) and makes it available to function.
13. This parameter is sent to the window.opener to populate a field.

Dig Deeper on Domino Resources - Part 2

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...