Page 1 of 1

List Box Selection

Posted: Fri Jun 12, 2015 1:17 pm
by gleary
I want to have a user enter/paste a list of items into a ?list/text box? and then use the boxes input to select the inventory items. It could be hundreds of item #'s. What is a good approach (will use sql once I have my input). I am new to profound and have not had my official training yet. So, I am still figuring things out on my own

Re: List Box Selection

Posted: Sat Jun 13, 2015 3:10 am
by Scott Klement
Hmmm... well for one thing, you can't paste text into a list box, that's not how a list box works. List boxes just show a list of items (the list is provided by the program) and the user can select an item in the list with a mouse. But, they cannot paste data, it's purely done by mouse clicks.

You could paste into a textbox, though. Or a textarea, combo box, etc.

Most likely, you'd bind a very large character field to either a textbox or textarea, so that all the data that's pasted would fit in this large field. Then, your RPG program would have to know how to interpret the data in the field (it's not clear to me what format that data is in) to get the relevant details out of it to build an SQL statement or whatever it is you''re going to do with the data.