veyant
11th August 2004, 08:52
Hi,
Is this scenario possible in Baan that i can create a field on Form containing values which are extracted from a table.
actually i want a Enum variable field on Form but the Enum's Values should be derived from a table. e.g. I want a Enum field on form which contains Employee Names for all the employees so that user can select the name & can execute on basis of selected value.
please help.
Sandeep Makan
vahdani
11th August 2004, 14:20
This is not possible in Baan. You have to use the Baan "zoom" mechanism instead. You have to put the appropriate display session (in your case for example session tccom0501s000) in the field definition on the form.
SriksAdi
11th August 2004, 14:31
Hi,
You can enable auto zoom on the field. which would automatically take you to the zoom.
regards
Sriks
mark_h
11th August 2004, 15:32
You could do a drop down boxes can be done in Baan. Search this forum and see how it can be done - If you do not find any threads let me know and I will search for it. I am not sure what the constraints are, but this could work in place of what you are thinking.
Mark
NPRao
11th August 2004, 18:39
I think you can use ttstpzoom list for this instance. I think there are some differences in the usage from BaaN-4 to BaaN-5 series.
Here is a sample code-
before.zoom:
wait.and.activate( "ottstpzoomlist",|* Zoom list program
blcn.code.count, |* Number of items
BLCN.COL, |* Column
BLCN.ROW, |* Row
current.window(), |* Current Window
blcn.choice.desc) |* List
if g.exit.menu then
zttnt900.blcn = blcn.choice.code(1,g.exit.menu)
blcn.choice = blcn.choice.desc(1,g.exit.menu)
display("blcn.choice")
endif
choice.again()
malutz
12th August 2004, 11:25
Hej,
could you please describe the fields that you pass on to "ottstpzoomlist" a bit close. I tired to run it simular to your example but i always get the following error:
object [number] in process [number] not found
Float exception in ottstpzoomlist
Thx. :confused:
malutz
12th August 2004, 13:25
Found it.
|Start Baan IV format
|The 13 arguments set to 0 are place holders. At the time of this writing
|their function is unknown, but thought to be controls for the listbox for
|window size, scroll bar, etc.
wait.and.activate("ottstpzoomlist",
counter,
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
enames)
|End Baan IV format
|Start Baan V format
| wait.and.activate("ottstpzoomlist",
| counter,
| str$(lcol),
| str$(lrow),
| object.window,
| enames)
|End Baan V format
Very nice function.
:D :D :D
avpatil
17th August 2004, 04:44
Hi Veyant,
Here is the program that you can use as guide lines., It works in Baan IV. Basically update the card.name and it can be through a table. In program below I am generating a list for name of credit cards. You can get more information in this forum. I found this in this forum almost 3 years before.
Arvind
create.list.box()
listbox.choice = handle.listbox(0,0,list.total,card.name)
tdbgn055.type = card.name(1,listbox.choice)
function create.list.box()
{
for list.total = 1 to 4
on case list.total
case 1:
card.name(1,(list.total)) = "VISA"
break
case 2:
card.name(1,list.total ) = "MASTER"
break
case 3:
card.name(1,list.total ) = "AMERICAN EXPRESS"
break
case 4:
card.name(1,list.total ) = "DISCOVER"
break
endcase
endfor
| card.name(1,1) = "--Choose Card--"
| list.total = 4
list.total = 4
}
~Vamsi
17th August 2004, 17:39
http://www.baanboard.com/baanboard/showthread.php?t=1160