we had a similar problem. There are different way's to solve the problem.
You could use the preload lookup functionality for integer controls.
You could use a web defined control and override the layout and setcontrol methods (called to set the value from the web parameters to the control) to convert the value to and from integer. This means you also have to generate the html output by yourself including the web lookup button.
The last possibility is, to use a control which is not bound to a database field. In this situation you manually have to copy the value from the database field to the control and vice versa.
Regards
Andreas Gahr
-----Urspr�ngliche Nachricht-----
Von: Agus Riyadi [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 9. Juni 2004 05:54
An: [EMAIL PROTECTED]
Betreff: [development-axapta] web integer custom lookup
Hi all,
I'm using axapta 3.0 sp2
I have an integer field, in standard form it has lookup to a table.
When developing enterprise portal, I think it has lookup button as in standard form, but it doesn't (because it is integer).
So I think I have to create my own custom lookup for this integer field.
But since enterprise portal doesn't support custom lookup for web integer (EP only support web date and web edit), I put an webedit, set its data source and data field properties to the integer field. The lookup button property set to 'always', and lookup method set to 'custom'. Then I override its lookup method.
The problem is when I got an integer value after choosing from the popup, e.g. 6 . Then I process the form with a web button, it display this warning message :
The value '54' in field 'myIntegerField' is not found in relating table 'aTable'
I think it is because of the webedit. My idea is converting the value '54' to its original integer value 6, but I wonder how do I get this value. I have tried to debug but couldn't stop to get the value.
I hope someone would tell me if they have faced this problem before, or maybe there is an alternative solution of web integer lookup?
Thanks in advanced.
Agus
[Non-text portions of this message have been removed]
Yahoo! Groups Links
Prozesse verstehen - Technologien beherrschen.
Unter dem Veranstaltungsmotto "Integrierte Innovation" laden wir Sie herzlich am 22. Juni 2004 zum Branchentag Anlagen- und Apparatebau ein.
Erleben Sie innovative Produkte und interessante Vortr�ge. Das amball-Team freut sich auf ein Gespr�ch mit Ihnen.
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

