FRM-41337 when I try to populate second list item [message #268993] |
Thu, 20 September 2007 06:52  |
scriptrunner
Messages: 1 Registered: September 2007
|
Junior Member |
|
|
Hi,
I have a form which contains two list items (LI1, LI2). They are both members of data block DB1 ("database item" = "yes" for both L1 and L2 list items).
I populate the first list (LI1) in form level trigger WHEN-NEW-FORM-INSTANCE with the data from table X and it runs ok. However, when I try to populate the second list (LI2) in the item level trigger WHEN-LIST-CHANGED, on the runtime, I receive an error message "FRM-41337:Cannot populate the list from record group".
There is no problem with the record group or item list. When I try to populate second list item (LI2) in the form level trigger WHEN-NEW-FORM-INSTANCE, it works just fine. It also works without any error when I changed the "Database Item" property of second list item (L2) to "No".
EXAMPLE:
When I open the form, I populate the first list (LI1) with the values "Plants", "Animals", "Mushrooms"...etc from a table. Then, when I select an item from this list, I want to populate second list (LI2) according to my LI1 selection from another table, for instance "rose, tree, grass..." or "bee, eagle, dog.."
Is there anyone have any idea about the solution?
|
|
|
|
|